commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
DeliveryCustomFieldAddedMessageBuilder.php
1<?php
2
3declare(strict_types=1);
10
22use DateTimeImmutable;
23use stdClass;
24
29{
34 private $id;
35
40 private $version;
41
46 private $createdAt;
47
52 private $lastModifiedAt;
53
58 private $lastModifiedBy;
59
64 private $createdBy;
65
70 private $sequenceNumber;
71
76 private $resource;
77
82 private $resourceVersion;
83
88 private $resourceUserProvidedIdentifiers;
89
94 private $name;
95
100 private $value;
101
106 private $deliveryId;
107
114 public function getId()
115 {
116 return $this->id;
117 }
118
125 public function getVersion()
126 {
127 return $this->version;
128 }
129
136 public function getCreatedAt()
137 {
138 return $this->createdAt;
139 }
140
147 public function getLastModifiedAt()
148 {
149 return $this->lastModifiedAt;
150 }
151
158 public function getLastModifiedBy()
159 {
160 return $this->lastModifiedBy instanceof LastModifiedByBuilder ? $this->lastModifiedBy->build() : $this->lastModifiedBy;
161 }
162
169 public function getCreatedBy()
170 {
171 return $this->createdBy instanceof CreatedByBuilder ? $this->createdBy->build() : $this->createdBy;
172 }
173
181 public function getSequenceNumber()
182 {
183 return $this->sequenceNumber;
184 }
185
192 public function getResource()
193 {
194 return $this->resource instanceof ReferenceBuilder ? $this->resource->build() : $this->resource;
195 }
196
203 public function getResourceVersion()
204 {
205 return $this->resourceVersion;
206 }
207
215 {
216 return $this->resourceUserProvidedIdentifiers instanceof UserProvidedIdentifiersBuilder ? $this->resourceUserProvidedIdentifiers->build() : $this->resourceUserProvidedIdentifiers;
217 }
218
225 public function getName()
226 {
227 return $this->name;
228 }
229
236 public function getValue()
237 {
238 return $this->value;
239 }
240
247 public function getDeliveryId()
248 {
249 return $this->deliveryId;
250 }
251
256 public function withId(?string $id)
257 {
258 $this->id = $id;
259
260 return $this;
261 }
262
267 public function withVersion(?int $version)
268 {
269 $this->version = $version;
270
271 return $this;
272 }
273
278 public function withCreatedAt(?DateTimeImmutable $createdAt)
279 {
280 $this->createdAt = $createdAt;
281
282 return $this;
283 }
284
289 public function withLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
290 {
291 $this->lastModifiedAt = $lastModifiedAt;
292
293 return $this;
294 }
295
300 public function withLastModifiedBy(?LastModifiedBy $lastModifiedBy)
301 {
302 $this->lastModifiedBy = $lastModifiedBy;
303
304 return $this;
305 }
306
311 public function withCreatedBy(?CreatedBy $createdBy)
312 {
313 $this->createdBy = $createdBy;
314
315 return $this;
316 }
317
322 public function withSequenceNumber(?int $sequenceNumber)
323 {
324 $this->sequenceNumber = $sequenceNumber;
325
326 return $this;
327 }
328
333 public function withResource(?Reference $resource)
334 {
335 $this->resource = $resource;
336
337 return $this;
338 }
339
344 public function withResourceVersion(?int $resourceVersion)
345 {
346 $this->resourceVersion = $resourceVersion;
347
348 return $this;
349 }
350
355 public function withResourceUserProvidedIdentifiers(?UserProvidedIdentifiers $resourceUserProvidedIdentifiers)
356 {
357 $this->resourceUserProvidedIdentifiers = $resourceUserProvidedIdentifiers;
358
359 return $this;
360 }
361
366 public function withName(?string $name)
367 {
368 $this->name = $name;
369
370 return $this;
371 }
372
377 public function withValue($value)
378 {
379 $this->value = $value;
380
381 return $this;
382 }
383
388 public function withDeliveryId(?string $deliveryId)
389 {
390 $this->deliveryId = $deliveryId;
391
392 return $this;
393 }
394
399 public function withLastModifiedByBuilder(?LastModifiedByBuilder $lastModifiedBy)
400 {
401 $this->lastModifiedBy = $lastModifiedBy;
402
403 return $this;
404 }
405
410 public function withCreatedByBuilder(?CreatedByBuilder $createdBy)
411 {
412 $this->createdBy = $createdBy;
413
414 return $this;
415 }
416
421 public function withResourceBuilder(?ReferenceBuilder $resource)
422 {
423 $this->resource = $resource;
424
425 return $this;
426 }
427
432 public function withResourceUserProvidedIdentifiersBuilder(?UserProvidedIdentifiersBuilder $resourceUserProvidedIdentifiers)
433 {
434 $this->resourceUserProvidedIdentifiers = $resourceUserProvidedIdentifiers;
435
436 return $this;
437 }
438
440 {
442 $this->id,
443 $this->version,
444 $this->createdAt,
445 $this->lastModifiedAt,
446 $this->lastModifiedBy instanceof LastModifiedByBuilder ? $this->lastModifiedBy->build() : $this->lastModifiedBy,
447 $this->createdBy instanceof CreatedByBuilder ? $this->createdBy->build() : $this->createdBy,
448 $this->sequenceNumber,
449 $this->resource instanceof ReferenceBuilder ? $this->resource->build() : $this->resource,
450 $this->resourceVersion,
451 $this->resourceUserProvidedIdentifiers instanceof UserProvidedIdentifiersBuilder ? $this->resourceUserProvidedIdentifiers->build() : $this->resourceUserProvidedIdentifiers,
452 $this->name,
453 $this->value,
454 $this->deliveryId
455 );
456 }
457
459 {
460 return new self();
461 }
462}
withResourceUserProvidedIdentifiersBuilder(?UserProvidedIdentifiersBuilder $resourceUserProvidedIdentifiers)
withResourceUserProvidedIdentifiers(?UserProvidedIdentifiers $resourceUserProvidedIdentifiers)