commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Subscription
EventBridgeDestinationBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Subscription
;
10
11
use
Commercetools\Base\Builder
;
12
use
Commercetools\Base\DateTimeImmutableCollection
;
13
use
Commercetools\Base\JsonObject
;
14
use
Commercetools\Base\JsonObjectModel
;
15
use
Commercetools\Base\MapperFactory
;
16
use stdClass;
17
21
final
class
EventBridgeDestinationBuilder
implements
Builder
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
{
110
return
new
EventBridgeDestinationModel
(
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
}
Commercetools\Api\Models\Subscription\EventBridgeDestinationBuilder
Definition:
EventBridgeDestinationBuilder.php:22
Commercetools\Api\Models\Subscription\EventBridgeDestinationBuilder\withSource
withSource(?string $source)
Definition:
EventBridgeDestinationBuilder.php:100
Commercetools\Api\Models\Subscription\EventBridgeDestinationBuilder\build
build()
Definition:
EventBridgeDestinationBuilder.php:108
Commercetools\Api\Models\Subscription\EventBridgeDestinationBuilder\getAccountId
getAccountId()
Definition:
EventBridgeDestinationBuilder.php:58
Commercetools\Api\Models\Subscription\EventBridgeDestinationBuilder\getSource
getSource()
Definition:
EventBridgeDestinationBuilder.php:69
Commercetools\Api\Models\Subscription\EventBridgeDestinationBuilder\getRegion
getRegion()
Definition:
EventBridgeDestinationBuilder.php:47
Commercetools\Api\Models\Subscription\EventBridgeDestinationBuilder\withAccountId
withAccountId(?string $accountId)
Definition:
EventBridgeDestinationBuilder.php:89
Commercetools\Api\Models\Subscription\EventBridgeDestinationBuilder\of
static of()
Definition:
EventBridgeDestinationBuilder.php:117
Commercetools\Api\Models\Subscription\EventBridgeDestinationBuilder\withRegion
withRegion(?string $region)
Definition:
EventBridgeDestinationBuilder.php:78
Commercetools\Api\Models\Subscription\EventBridgeDestinationModel
Definition:
EventBridgeDestinationModel.php:21
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Api\Models\Subscription\EventBridgeDestination
Definition:
EventBridgeDestination.php:15
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Subscription
Definition:
AzureEventGridDestination.php:9
Generated by
1.9.1