Interface SqsAction.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<SqsAction.Builder,SqsAction>,SdkBuilder<SqsAction.Builder,SqsAction>,SdkPojo
- Enclosing class:
- SqsAction
public static interface SqsAction.Builder extends SdkPojo, CopyableBuilder<SqsAction.Builder,SqsAction>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default SqsAction.Builderpayload(Consumer<Payload.Builder> payload)You can configure the action payload when you send a message to an Amazon SQS queue.SqsAction.Builderpayload(Payload payload)You can configure the action payload when you send a message to an Amazon SQS queue.SqsAction.BuilderqueueUrl(String queueUrl)The URL of the SQS queue where the data is written.SqsAction.BuilderuseBase64(Boolean useBase64)Set this to TRUE if you want the data to be base-64 encoded before it is written to the queue.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
queueUrl
SqsAction.Builder queueUrl(String queueUrl)
The URL of the SQS queue where the data is written.
- Parameters:
queueUrl- The URL of the SQS queue where the data is written.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
useBase64
SqsAction.Builder useBase64(Boolean useBase64)
Set this to TRUE if you want the data to be base-64 encoded before it is written to the queue. Otherwise, set this to FALSE.
- Parameters:
useBase64- Set this to TRUE if you want the data to be base-64 encoded before it is written to the queue. Otherwise, set this to FALSE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
payload
SqsAction.Builder payload(Payload payload)
You can configure the action payload when you send a message to an Amazon SQS queue.
- Parameters:
payload- You can configure the action payload when you send a message to an Amazon SQS queue.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
payload
default SqsAction.Builder payload(Consumer<Payload.Builder> payload)
You can configure the action payload when you send a message to an Amazon SQS queue.
This is a convenience method that creates an instance of thePayload.Builderavoiding the need to create one manually viaPayload.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topayload(Payload).- Parameters:
payload- a consumer that will call methods onPayload.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
payload(Payload)
-
-