Class SnsDestinationBuilder
java.lang.Object
com.commercetools.api.models.subscription.SnsDestinationBuilder
- All Implemented Interfaces:
Builder<SnsDestination>
SnsDestinationBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SnsDestination snsDestination = SnsDestination.builder()
.topicArn("{topicArn}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionOnly present ifauthenticationMode
is set toCredentials
.accessSecret
(String accessSecret) Only present ifauthenticationMode
is set toCredentials
.authenticationMode
(AwsAuthenticationMode authenticationMode) Defines the method of authentication for the SNS topic.build()
builds SnsDestination with checking for non-null required valuesbuilds SnsDestination without checking for non-null required valuesOnly present ifauthenticationMode
is set toCredentials
.Only present ifauthenticationMode
is set toCredentials
.Defines the method of authentication for the SNS topic.Amazon Resource Name (ARN) of the topic.static SnsDestinationBuilder
of()
factory method for an instance of SnsDestinationBuilderstatic SnsDestinationBuilder
of
(SnsDestination template) create builder for SnsDestination instanceAmazon Resource Name (ARN) of the topic.
-
Constructor Details
-
SnsDestinationBuilder
public SnsDestinationBuilder()
-
-
Method Details
-
accessKey
Only present if
authenticationMode
is set toCredentials
.- Parameters:
accessKey
- value to be set- Returns:
- Builder
-
accessSecret
Only present if
authenticationMode
is set toCredentials
.- Parameters:
accessSecret
- value to be set- Returns:
- Builder
-
topicArn
Amazon Resource Name (ARN) of the topic.
- Parameters:
topicArn
- value to be set- Returns:
- Builder
-
authenticationMode
Defines the method of authentication for the SNS topic.
- Parameters:
authenticationMode
- value to be set- Returns:
- Builder
-
getAccessKey
Only present if
authenticationMode
is set toCredentials
.- Returns:
- accessKey
-
getAccessSecret
Only present if
authenticationMode
is set toCredentials
.- Returns:
- accessSecret
-
getTopicArn
Amazon Resource Name (ARN) of the topic.
- Returns:
- topicArn
-
getAuthenticationMode
Defines the method of authentication for the SNS topic.
- Returns:
- authenticationMode
-
build
builds SnsDestination with checking for non-null required values- Specified by:
build
in interfaceBuilder<SnsDestination>
- Returns:
- SnsDestination
-
buildUnchecked
builds SnsDestination without checking for non-null required values- Returns:
- SnsDestination
-
of
factory method for an instance of SnsDestinationBuilder- Returns:
- builder
-
of
create builder for SnsDestination instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-