commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
ConfluentCloudDestinationBuilder.php
1 <?php
2 
3 declare(strict_types=1);
10 
16 use stdClass;
17 
22 {
27  private $bootstrapServer;
28 
33  private $apiKey;
34 
39  private $apiSecret;
40 
45  private $acks;
46 
51  private $topic;
52 
57  private $key;
58 
65  public function getBootstrapServer()
66  {
67  return $this->bootstrapServer;
68  }
69 
76  public function getApiKey()
77  {
78  return $this->apiKey;
79  }
80 
87  public function getApiSecret()
88  {
89  return $this->apiSecret;
90  }
91 
98  public function getAcks()
99  {
100  return $this->acks;
101  }
102 
109  public function getTopic()
110  {
111  return $this->topic;
112  }
113 
120  public function getKey()
121  {
122  return $this->key;
123  }
124 
129  public function withBootstrapServer(?string $bootstrapServer)
130  {
131  $this->bootstrapServer = $bootstrapServer;
132 
133  return $this;
134  }
135 
140  public function withApiKey(?string $apiKey)
141  {
142  $this->apiKey = $apiKey;
143 
144  return $this;
145  }
146 
151  public function withApiSecret(?string $apiSecret)
152  {
153  $this->apiSecret = $apiSecret;
154 
155  return $this;
156  }
157 
162  public function withAcks(?string $acks)
163  {
164  $this->acks = $acks;
165 
166  return $this;
167  }
168 
173  public function withTopic(?string $topic)
174  {
175  $this->topic = $topic;
176 
177  return $this;
178  }
179 
184  public function withKey(?string $key)
185  {
186  $this->key = $key;
187 
188  return $this;
189  }
190 
191 
192  public function build(): ConfluentCloudDestination
193  {
195  $this->bootstrapServer,
196  $this->apiKey,
197  $this->apiSecret,
198  $this->acks,
199  $this->topic,
200  $this->key
201  );
202  }
203 
204  public static function of(): ConfluentCloudDestinationBuilder
205  {
206  return new self();
207  }
208 }