Interface SNSTopicPublishAction.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<SNSTopicPublishAction.Builder,SNSTopicPublishAction>,SdkBuilder<SNSTopicPublishAction.Builder,SNSTopicPublishAction>,SdkPojo
- Enclosing class:
- SNSTopicPublishAction
public static interface SNSTopicPublishAction.Builder extends SdkPojo, CopyableBuilder<SNSTopicPublishAction.Builder,SNSTopicPublishAction>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default SNSTopicPublishAction.Builderpayload(Consumer<Payload.Builder> payload)You can configure the action payload when you send a message as an Amazon SNS push notification.SNSTopicPublishAction.Builderpayload(Payload payload)You can configure the action payload when you send a message as an Amazon SNS push notification.SNSTopicPublishAction.BuildertargetArn(String targetArn)The ARN of the Amazon SNS target where the message is sent.-
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
-
targetArn
SNSTopicPublishAction.Builder targetArn(String targetArn)
The ARN of the Amazon SNS target where the message is sent.
- Parameters:
targetArn- The ARN of the Amazon SNS target where the message is sent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
payload
SNSTopicPublishAction.Builder payload(Payload payload)
You can configure the action payload when you send a message as an Amazon SNS push notification.
- Parameters:
payload- You can configure the action payload when you send a message as an Amazon SNS push notification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
payload
default SNSTopicPublishAction.Builder payload(Consumer<Payload.Builder> payload)
You can configure the action payload when you send a message as an Amazon SNS push notification.
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)
-
-