commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
lib
commercetools-api
src
Models
Subscription
SnsDestinationBuilder.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
SnsDestinationBuilder
implements
Builder
22
{
27
private
$accessKey;
28
33
private
$accessSecret;
34
39
private
$topicArn;
40
45
private
$authenticationMode;
46
53
public
function
getAccessKey
()
54
{
55
return
$this->accessKey;
56
}
57
64
public
function
getAccessSecret
()
65
{
66
return
$this->accessSecret;
67
}
68
75
public
function
getTopicArn
()
76
{
77
return
$this->topicArn;
78
}
79
86
public
function
getAuthenticationMode
()
87
{
88
return
$this->authenticationMode;
89
}
90
95
public
function
withAccessKey
(?
string
$accessKey)
96
{
97
$this->accessKey = $accessKey;
98
99
return
$this;
100
}
101
106
public
function
withAccessSecret
(?
string
$accessSecret)
107
{
108
$this->accessSecret = $accessSecret;
109
110
return
$this;
111
}
112
117
public
function
withTopicArn
(?
string
$topicArn)
118
{
119
$this->topicArn = $topicArn;
120
121
return
$this;
122
}
123
128
public
function
withAuthenticationMode
(?
string
$authenticationMode)
129
{
130
$this->authenticationMode = $authenticationMode;
131
132
return
$this;
133
}
134
135
136
public
function
build
():
SnsDestination
137
{
138
return
new
SnsDestinationModel
(
139
$this->accessKey,
140
$this->accessSecret,
141
$this->topicArn,
142
$this->authenticationMode
143
);
144
}
145
146
public
static
function
of
():
SnsDestinationBuilder
147
{
148
return
new
self
();
149
}
150
}
Commercetools\Api\Models\Subscription\SnsDestinationBuilder
Definition
SnsDestinationBuilder.php:22
Commercetools\Api\Models\Subscription\SnsDestinationBuilder\build
build()
Definition
SnsDestinationBuilder.php:136
Commercetools\Api\Models\Subscription\SnsDestinationBuilder\getAccessKey
getAccessKey()
Definition
SnsDestinationBuilder.php:53
Commercetools\Api\Models\Subscription\SnsDestinationBuilder\withAuthenticationMode
withAuthenticationMode(?string $authenticationMode)
Definition
SnsDestinationBuilder.php:128
Commercetools\Api\Models\Subscription\SnsDestinationBuilder\withAccessKey
withAccessKey(?string $accessKey)
Definition
SnsDestinationBuilder.php:95
Commercetools\Api\Models\Subscription\SnsDestinationBuilder\getAuthenticationMode
getAuthenticationMode()
Definition
SnsDestinationBuilder.php:86
Commercetools\Api\Models\Subscription\SnsDestinationBuilder\getTopicArn
getTopicArn()
Definition
SnsDestinationBuilder.php:75
Commercetools\Api\Models\Subscription\SnsDestinationBuilder\of
static of()
Definition
SnsDestinationBuilder.php:146
Commercetools\Api\Models\Subscription\SnsDestinationBuilder\withTopicArn
withTopicArn(?string $topicArn)
Definition
SnsDestinationBuilder.php:117
Commercetools\Api\Models\Subscription\SnsDestinationBuilder\getAccessSecret
getAccessSecret()
Definition
SnsDestinationBuilder.php:64
Commercetools\Api\Models\Subscription\SnsDestinationBuilder\withAccessSecret
withAccessSecret(?string $accessSecret)
Definition
SnsDestinationBuilder.php:106
Commercetools\Api\Models\Subscription\SnsDestinationModel
Definition
SnsDestinationModel.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\SnsDestination
Definition
SnsDestination.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.8