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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOnly present ifauthenticationModeis set toCredentials.accessSecret(String accessSecret) Only present ifauthenticationModeis 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 ifauthenticationModeis set toCredentials.Only present ifauthenticationModeis set toCredentials.Defines the method of authentication for the SNS topic.Amazon Resource Name (ARN) of the topic.static SnsDestinationBuilderof()factory method for an instance of SnsDestinationBuilderstatic SnsDestinationBuilderof(SnsDestination template) create builder for SnsDestination instanceAmazon Resource Name (ARN) of the topic.
-
Constructor Details
-
SnsDestinationBuilder
public SnsDestinationBuilder()
-
-
Method Details
-
accessKey
Only present if
authenticationModeis set toCredentials.- Parameters:
accessKey- value to be set- Returns:
- Builder
-
accessSecret
Only present if
authenticationModeis 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
authenticationModeis set toCredentials.- Returns:
- accessKey
-
getAccessSecret
Only present if
authenticationModeis 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:
buildin 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
-