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
-
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 SQS queue.build()
builds SqsDestination with checking for non-null required valuesbuilds SqsDestination 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 SQS queue.URL of the Amazon SQS queue.AWS Region the message queue is located in.static SqsDestinationBuilder
of()
factory method for an instance of SqsDestinationBuilderstatic SqsDestinationBuilder
of
(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
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
-
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
authenticationMode
is set toCredentials
.- Returns:
- accessKey
-
getAccessSecret
Only present if
authenticationMode
is 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:
build
in 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
-