Class SqsDestinationBuilder
java.lang.Object
com.commercetools.api.models.subscription.SqsDestinationBuilder
- All Implemented Interfaces:
Builder<SqsDestination>
SqsDestinationBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SqsDestination sqsDestination = SqsDestination.builder()
.queueUrl("{queueUrl}")
.region("{region}")
.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 SQS queue.build()builds SqsDestination with checking for non-null required valuesbuilds SqsDestination without checking for non-null required valuesOnly present ifauthenticationModeis set toCredentials.Only present ifauthenticationModeis set toCredentials.Defines the method of authentication for the SQS queue.URL of the Amazon SQS queue.AWS Region the message queue is located in.static SqsDestinationBuilderof()factory method for an instance of SqsDestinationBuilderstatic SqsDestinationBuilderof(SqsDestination template) create builder for SqsDestination instanceURL of the Amazon SQS queue.AWS Region the message queue is located in.
-
Constructor Details
-
SqsDestinationBuilder
public SqsDestinationBuilder()
-
-
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
-
queueUrl
URL of the Amazon SQS queue.
- Parameters:
queueUrl- value to be set- Returns:
- Builder
-
region
AWS Region the message queue is located in.
- Parameters:
region- value to be set- Returns:
- Builder
-
authenticationMode
Defines the method of authentication for the SQS queue.
- 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
-
getQueueUrl
URL of the Amazon SQS queue.
- Returns:
- queueUrl
-
getRegion
AWS Region the message queue is located in.
- Returns:
- region
-
getAuthenticationMode
Defines the method of authentication for the SQS queue.
- Returns:
- authenticationMode
-
build
builds SqsDestination with checking for non-null required values- Specified by:
buildin interfaceBuilder<SqsDestination>- Returns:
- SqsDestination
-
buildUnchecked
builds SqsDestination without checking for non-null required values- Returns:
- SqsDestination
-
of
factory method for an instance of SqsDestinationBuilder- Returns:
- builder
-
of
create builder for SqsDestination instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-