commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
EventBridgeDestinationBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
17
22{
27 private $region;
28
33 private $accountId;
34
39 private $source;
40
47 public function getRegion()
48 {
49 return $this->region;
50 }
51
58 public function getAccountId()
59 {
60 return $this->accountId;
61 }
62
69 public function getSource()
70 {
71 return $this->source;
72 }
73
78 public function withRegion(?string $region)
79 {
80 $this->region = $region;
81
82 return $this;
83 }
84
89 public function withAccountId(?string $accountId)
90 {
91 $this->accountId = $accountId;
92
93 return $this;
94 }
95
100 public function withSource(?string $source)
101 {
102 $this->source = $source;
103
104 return $this;
105 }
106
107
108 public function build(): EventBridgeDestination
109 {
111 $this->region,
112 $this->accountId,
113 $this->source
114 );
115 }
116
117 public static function of(): EventBridgeDestinationBuilder
118 {
119 return new self();
120 }
121}