commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
BusinessUnitAssociatesSetMessageBuilder.php
1<?php
2
3declare(strict_types=1);
10
23use DateTimeImmutable;
24use stdClass;
25
30{
35 private $id;
36
41 private $version;
42
47 private $createdAt;
48
53 private $lastModifiedAt;
54
59 private $lastModifiedBy;
60
65 private $createdBy;
66
71 private $sequenceNumber;
72
77 private $resource;
78
83 private $resourceVersion;
84
89 private $resourceUserProvidedIdentifiers;
90
95 private $associates;
96
103 public function getId()
104 {
105 return $this->id;
106 }
107
114 public function getVersion()
115 {
116 return $this->version;
117 }
118
125 public function getCreatedAt()
126 {
127 return $this->createdAt;
128 }
129
136 public function getLastModifiedAt()
137 {
138 return $this->lastModifiedAt;
139 }
140
147 public function getLastModifiedBy()
148 {
149 return $this->lastModifiedBy instanceof LastModifiedByBuilder ? $this->lastModifiedBy->build() : $this->lastModifiedBy;
150 }
151
158 public function getCreatedBy()
159 {
160 return $this->createdBy instanceof CreatedByBuilder ? $this->createdBy->build() : $this->createdBy;
161 }
162
170 public function getSequenceNumber()
171 {
172 return $this->sequenceNumber;
173 }
174
181 public function getResource()
182 {
183 return $this->resource instanceof ReferenceBuilder ? $this->resource->build() : $this->resource;
184 }
185
192 public function getResourceVersion()
193 {
194 return $this->resourceVersion;
195 }
196
204 {
205 return $this->resourceUserProvidedIdentifiers instanceof UserProvidedIdentifiersBuilder ? $this->resourceUserProvidedIdentifiers->build() : $this->resourceUserProvidedIdentifiers;
206 }
207
214 public function getAssociates()
215 {
216 return $this->associates;
217 }
218
223 public function withId(?string $id)
224 {
225 $this->id = $id;
226
227 return $this;
228 }
229
234 public function withVersion(?int $version)
235 {
236 $this->version = $version;
237
238 return $this;
239 }
240
245 public function withCreatedAt(?DateTimeImmutable $createdAt)
246 {
247 $this->createdAt = $createdAt;
248
249 return $this;
250 }
251
256 public function withLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
257 {
258 $this->lastModifiedAt = $lastModifiedAt;
259
260 return $this;
261 }
262
267 public function withLastModifiedBy(?LastModifiedBy $lastModifiedBy)
268 {
269 $this->lastModifiedBy = $lastModifiedBy;
270
271 return $this;
272 }
273
278 public function withCreatedBy(?CreatedBy $createdBy)
279 {
280 $this->createdBy = $createdBy;
281
282 return $this;
283 }
284
289 public function withSequenceNumber(?int $sequenceNumber)
290 {
291 $this->sequenceNumber = $sequenceNumber;
292
293 return $this;
294 }
295
300 public function withResource(?Reference $resource)
301 {
302 $this->resource = $resource;
303
304 return $this;
305 }
306
311 public function withResourceVersion(?int $resourceVersion)
312 {
313 $this->resourceVersion = $resourceVersion;
314
315 return $this;
316 }
317
322 public function withResourceUserProvidedIdentifiers(?UserProvidedIdentifiers $resourceUserProvidedIdentifiers)
323 {
324 $this->resourceUserProvidedIdentifiers = $resourceUserProvidedIdentifiers;
325
326 return $this;
327 }
328
333 public function withAssociates(?AssociateCollection $associates)
334 {
335 $this->associates = $associates;
336
337 return $this;
338 }
339
344 public function withLastModifiedByBuilder(?LastModifiedByBuilder $lastModifiedBy)
345 {
346 $this->lastModifiedBy = $lastModifiedBy;
347
348 return $this;
349 }
350
355 public function withCreatedByBuilder(?CreatedByBuilder $createdBy)
356 {
357 $this->createdBy = $createdBy;
358
359 return $this;
360 }
361
366 public function withResourceBuilder(?ReferenceBuilder $resource)
367 {
368 $this->resource = $resource;
369
370 return $this;
371 }
372
377 public function withResourceUserProvidedIdentifiersBuilder(?UserProvidedIdentifiersBuilder $resourceUserProvidedIdentifiers)
378 {
379 $this->resourceUserProvidedIdentifiers = $resourceUserProvidedIdentifiers;
380
381 return $this;
382 }
383
385 {
387 $this->id,
388 $this->version,
389 $this->createdAt,
390 $this->lastModifiedAt,
391 $this->lastModifiedBy instanceof LastModifiedByBuilder ? $this->lastModifiedBy->build() : $this->lastModifiedBy,
392 $this->createdBy instanceof CreatedByBuilder ? $this->createdBy->build() : $this->createdBy,
393 $this->sequenceNumber,
394 $this->resource instanceof ReferenceBuilder ? $this->resource->build() : $this->resource,
395 $this->resourceVersion,
396 $this->resourceUserProvidedIdentifiers instanceof UserProvidedIdentifiersBuilder ? $this->resourceUserProvidedIdentifiers->build() : $this->resourceUserProvidedIdentifiers,
397 $this->associates
398 );
399 }
400
402 {
403 return new self();
404 }
405}
withResourceUserProvidedIdentifiers(?UserProvidedIdentifiers $resourceUserProvidedIdentifiers)
withResourceUserProvidedIdentifiersBuilder(?UserProvidedIdentifiersBuilder $resourceUserProvidedIdentifiers)