Interface WriteCampaignRequest.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<WriteCampaignRequest.Builder,
,WriteCampaignRequest> SdkBuilder<WriteCampaignRequest.Builder,
,WriteCampaignRequest> SdkPojo
- Enclosing class:
WriteCampaignRequest
-
Method Summary
Modifier and TypeMethodDescriptionadditionalTreatments
(Collection<WriteTreatmentResource> additionalTreatments) An array of requests that defines additional treatments for the campaign, in addition to the default treatment for the campaign.additionalTreatments
(Consumer<WriteTreatmentResource.Builder>... additionalTreatments) An array of requests that defines additional treatments for the campaign, in addition to the default treatment for the campaign.additionalTreatments
(WriteTreatmentResource... additionalTreatments) An array of requests that defines additional treatments for the campaign, in addition to the default treatment for the campaign.default WriteCampaignRequest.Builder
customDeliveryConfiguration
(Consumer<CustomDeliveryConfiguration.Builder> customDeliveryConfiguration) The delivery configuration settings for sending the campaign through a custom channel.customDeliveryConfiguration
(CustomDeliveryConfiguration customDeliveryConfiguration) The delivery configuration settings for sending the campaign through a custom channel.description
(String description) A custom description of the campaign.holdoutPercent
(Integer holdoutPercent) The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.default WriteCampaignRequest.Builder
hook
(Consumer<CampaignHook.Builder> hook) The settings for the AWS Lambda function to invoke as a code hook for the campaign.hook
(CampaignHook hook) The settings for the AWS Lambda function to invoke as a code hook for the campaign.Specifies whether to pause the campaign.default WriteCampaignRequest.Builder
limits
(Consumer<CampaignLimits.Builder> limits) The messaging limits for the campaign.limits
(CampaignLimits limits) The messaging limits for the campaign.default WriteCampaignRequest.Builder
messageConfiguration
(Consumer<MessageConfiguration.Builder> messageConfiguration) The message configuration settings for the campaign.messageConfiguration
(MessageConfiguration messageConfiguration) The message configuration settings for the campaign.A custom name for the campaign.Defines the priority of the campaign, used to decide the order of messages displayed to user if there are multiple messages scheduled to be displayed at the same moment.default WriteCampaignRequest.Builder
schedule
(Consumer<Schedule.Builder> schedule) The schedule settings for the campaign.The schedule settings for the campaign.The unique identifier for the segment to associate with the campaign.segmentVersion
(Integer segmentVersion) The version of the segment to associate with the campaign.default WriteCampaignRequest.Builder
templateConfiguration
(Consumer<TemplateConfiguration.Builder> templateConfiguration) The message template to use for the campaign.templateConfiguration
(TemplateConfiguration templateConfiguration) The message template to use for the campaign.treatmentDescription
(String treatmentDescription) A custom description of the default treatment for the campaign.treatmentName
(String treatmentName) A custom name of the default treatment for the campaign, if the campaign has multiple treatments.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 Details
-
additionalTreatments
WriteCampaignRequest.Builder additionalTreatments(Collection<WriteTreatmentResource> additionalTreatments) An array of requests that defines additional treatments for the campaign, in addition to the default treatment for the campaign.
- Parameters:
additionalTreatments
- An array of requests that defines additional treatments for the campaign, in addition to the default treatment for the campaign.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalTreatments
An array of requests that defines additional treatments for the campaign, in addition to the default treatment for the campaign.
- Parameters:
additionalTreatments
- An array of requests that defines additional treatments for the campaign, in addition to the default treatment for the campaign.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalTreatments
WriteCampaignRequest.Builder additionalTreatments(Consumer<WriteTreatmentResource.Builder>... additionalTreatments) An array of requests that defines additional treatments for the campaign, in addition to the default treatment for the campaign.
This is a convenience method that creates an instance of theWriteTreatmentResource.Builder
avoiding the need to create one manually viaWriteTreatmentResource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toadditionalTreatments(List<WriteTreatmentResource>)
.- Parameters:
additionalTreatments
- a consumer that will call methods onWriteTreatmentResource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
customDeliveryConfiguration
WriteCampaignRequest.Builder customDeliveryConfiguration(CustomDeliveryConfiguration customDeliveryConfiguration) The delivery configuration settings for sending the campaign through a custom channel. This object is required if the MessageConfiguration object for the campaign specifies a CustomMessage object.
- Parameters:
customDeliveryConfiguration
- The delivery configuration settings for sending the campaign through a custom channel. This object is required if the MessageConfiguration object for the campaign specifies a CustomMessage object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customDeliveryConfiguration
default WriteCampaignRequest.Builder customDeliveryConfiguration(Consumer<CustomDeliveryConfiguration.Builder> customDeliveryConfiguration) The delivery configuration settings for sending the campaign through a custom channel. This object is required if the MessageConfiguration object for the campaign specifies a CustomMessage object.
This is a convenience method that creates an instance of theCustomDeliveryConfiguration.Builder
avoiding the need to create one manually viaCustomDeliveryConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocustomDeliveryConfiguration(CustomDeliveryConfiguration)
.- Parameters:
customDeliveryConfiguration
- a consumer that will call methods onCustomDeliveryConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
A custom description of the campaign.
- Parameters:
description
- A custom description of the campaign.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
holdoutPercent
The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.
- Parameters:
holdoutPercent
- The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hook
The settings for the AWS Lambda function to invoke as a code hook for the campaign. You can use this hook to customize the segment that's used by the campaign.
- Parameters:
hook
- The settings for the AWS Lambda function to invoke as a code hook for the campaign. You can use this hook to customize the segment that's used by the campaign.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hook
The settings for the AWS Lambda function to invoke as a code hook for the campaign. You can use this hook to customize the segment that's used by the campaign.
This is a convenience method that creates an instance of theCampaignHook.Builder
avoiding the need to create one manually viaCampaignHook.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohook(CampaignHook)
.- Parameters:
hook
- a consumer that will call methods onCampaignHook.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
isPaused
Specifies whether to pause the campaign. A paused campaign doesn't run unless you resume it by changing this value to false.
- Parameters:
isPaused
- Specifies whether to pause the campaign. A paused campaign doesn't run unless you resume it by changing this value to false.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
limits
The messaging limits for the campaign.
- Parameters:
limits
- The messaging limits for the campaign.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
limits
The messaging limits for the campaign.
This is a convenience method that creates an instance of theCampaignLimits.Builder
avoiding the need to create one manually viaCampaignLimits.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolimits(CampaignLimits)
.- Parameters:
limits
- a consumer that will call methods onCampaignLimits.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
messageConfiguration
The message configuration settings for the campaign.
- Parameters:
messageConfiguration
- The message configuration settings for the campaign.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messageConfiguration
default WriteCampaignRequest.Builder messageConfiguration(Consumer<MessageConfiguration.Builder> messageConfiguration) The message configuration settings for the campaign.
This is a convenience method that creates an instance of theMessageConfiguration.Builder
avoiding the need to create one manually viaMessageConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomessageConfiguration(MessageConfiguration)
.- Parameters:
messageConfiguration
- a consumer that will call methods onMessageConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
name
A custom name for the campaign.
- Parameters:
name
- A custom name for the campaign.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schedule
The schedule settings for the campaign.
- Parameters:
schedule
- The schedule settings for the campaign.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schedule
The schedule settings for the campaign.
This is a convenience method that creates an instance of theSchedule.Builder
avoiding the need to create one manually viaSchedule.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toschedule(Schedule)
.- Parameters:
schedule
- a consumer that will call methods onSchedule.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
segmentId
The unique identifier for the segment to associate with the campaign.
- Parameters:
segmentId
- The unique identifier for the segment to associate with the campaign.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
segmentVersion
The version of the segment to associate with the campaign.
- Parameters:
segmentVersion
- The version of the segment to associate with the campaign.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
As of 22-05-2023 tags has been deprecated for update operations. After this date any value in tags is not processed and an error code is not returned. To manage tags we recommend using either Tags in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi in the AWS SDK.
(Deprecated) A string-to-string map of key-value pairs that defines the tags to associate with the campaign. Each tag consists of a required tag key and an associated tag value.
- Parameters:
tags
- As of 22-05-2023 tags has been deprecated for update operations. After this date any value in tags is not processed and an error code is not returned. To manage tags we recommend using either Tags in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi in the AWS SDK.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templateConfiguration
The message template to use for the campaign.
- Parameters:
templateConfiguration
- The message template to use for the campaign.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templateConfiguration
default WriteCampaignRequest.Builder templateConfiguration(Consumer<TemplateConfiguration.Builder> templateConfiguration) The message template to use for the campaign.
This is a convenience method that creates an instance of theTemplateConfiguration.Builder
avoiding the need to create one manually viaTemplateConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totemplateConfiguration(TemplateConfiguration)
.- Parameters:
templateConfiguration
- a consumer that will call methods onTemplateConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
treatmentDescription
A custom description of the default treatment for the campaign.
- Parameters:
treatmentDescription
- A custom description of the default treatment for the campaign.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
treatmentName
A custom name of the default treatment for the campaign, if the campaign has multiple treatments. A treatment is a variation of a campaign that's used for A/B testing.
- Parameters:
treatmentName
- A custom name of the default treatment for the campaign, if the campaign has multiple treatments. A treatment is a variation of a campaign that's used for A/B testing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
priority
Defines the priority of the campaign, used to decide the order of messages displayed to user if there are multiple messages scheduled to be displayed at the same moment.
- Parameters:
priority
- Defines the priority of the campaign, used to decide the order of messages displayed to user if there are multiple messages scheduled to be displayed at the same moment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-