code: public function withThreadId(string $threadId): Aps
      {
          $cloned = clone $this;
  
          $cloned->threadId = $threadId;
  
          return $cloned;
      }
docs: Set thread id
  
  @param string $threadId
  
  @return Aps