Interface CampaignResponse.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CampaignResponse.Builder,
,CampaignResponse> SdkBuilder<CampaignResponse.Builder,
,CampaignResponse> SdkPojo
- Enclosing class:
CampaignResponse
-
Method Summary
Modifier and TypeMethodDescriptionadditionalTreatments
(Collection<TreatmentResource> additionalTreatments) An array of responses, one for each treatment that you defined for the campaign, in addition to the default treatment.additionalTreatments
(Consumer<TreatmentResource.Builder>... additionalTreatments) An array of responses, one for each treatment that you defined for the campaign, in addition to the default treatment.additionalTreatments
(TreatmentResource... additionalTreatments) An array of responses, one for each treatment that you defined for the campaign, in addition to the default treatment.applicationId
(String applicationId) The unique identifier for the application that the campaign applies to.The Amazon Resource Name (ARN) of the campaign.creationDate
(String creationDate) The date, in ISO 8601 format, when the campaign was created.default CampaignResponse.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.default CampaignResponse.Builder
defaultState
(Consumer<CampaignState.Builder> defaultState) The current status of the campaign's default treatment.defaultState
(CampaignState defaultState) The current status of the campaign's default treatment.description
(String description) The custom description of the campaign.holdoutPercent
(Integer holdoutPercent) The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.default CampaignResponse.Builder
hook
(Consumer<CampaignHook.Builder> hook) The settings for the AWS Lambda function to use as a code hook for the campaign.hook
(CampaignHook hook) The settings for the AWS Lambda function to use as a code hook for the campaign.The unique identifier for the campaign.Specifies whether the campaign is paused.lastModifiedDate
(String lastModifiedDate) The date, in ISO 8601 format, when the campaign was last modified.default CampaignResponse.Builder
limits
(Consumer<CampaignLimits.Builder> limits) The messaging limits for the campaign.limits
(CampaignLimits limits) The messaging limits for the campaign.default CampaignResponse.Builder
messageConfiguration
(Consumer<MessageConfiguration.Builder> messageConfiguration) The message configuration settings for the campaign.messageConfiguration
(MessageConfiguration messageConfiguration) The message configuration settings for the campaign.The name of 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 CampaignResponse.Builder
schedule
(Consumer<Schedule.Builder> schedule) The schedule settings for the campaign.The schedule settings for the campaign.The unique identifier for the segment that's associated with the campaign.segmentVersion
(Integer segmentVersion) The version number of the segment that's associated with the campaign.default CampaignResponse.Builder
state
(Consumer<CampaignState.Builder> state) The current status of the campaign.state
(CampaignState state) The current status of the campaign.A string-to-string map of key-value pairs that identifies the tags that are associated with the campaign.default CampaignResponse.Builder
templateConfiguration
(Consumer<TemplateConfiguration.Builder> templateConfiguration) The message template that’s used for the campaign.templateConfiguration
(TemplateConfiguration templateConfiguration) The message template that’s used for the campaign.treatmentDescription
(String treatmentDescription) The custom description of the default treatment for the campaign.treatmentName
(String treatmentName) The custom name of the default treatment for the campaign, if the campaign has multiple treatments.The version number of the campaign.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
An array of responses, one for each treatment that you defined for the campaign, in addition to the default treatment.
- Parameters:
additionalTreatments
- An array of responses, one for each treatment that you defined for the campaign, in addition to the default treatment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalTreatments
An array of responses, one for each treatment that you defined for the campaign, in addition to the default treatment.
- Parameters:
additionalTreatments
- An array of responses, one for each treatment that you defined for the campaign, in addition to the default treatment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalTreatments
CampaignResponse.Builder additionalTreatments(Consumer<TreatmentResource.Builder>... additionalTreatments) An array of responses, one for each treatment that you defined for the campaign, in addition to the default treatment.
This is a convenience method that creates an instance of theTreatmentResource.Builder
avoiding the need to create one manually viaTreatmentResource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toadditionalTreatments(List<TreatmentResource>)
.- Parameters:
additionalTreatments
- a consumer that will call methods onTreatmentResource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
applicationId
The unique identifier for the application that the campaign applies to.
- Parameters:
applicationId
- The unique identifier for the application that the campaign applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
The Amazon Resource Name (ARN) of the campaign.
- Parameters:
arn
- The Amazon Resource Name (ARN) of the campaign.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationDate
The date, in ISO 8601 format, when the campaign was created.
- Parameters:
creationDate
- The date, in ISO 8601 format, when the campaign was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customDeliveryConfiguration
CampaignResponse.Builder customDeliveryConfiguration(CustomDeliveryConfiguration customDeliveryConfiguration) The delivery configuration settings for sending the campaign through a custom channel.
- Parameters:
customDeliveryConfiguration
- The delivery configuration settings for sending the campaign through a custom channel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customDeliveryConfiguration
default CampaignResponse.Builder customDeliveryConfiguration(Consumer<CustomDeliveryConfiguration.Builder> customDeliveryConfiguration) The delivery configuration settings for sending the campaign through a custom channel.
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:
-
defaultState
The current status of the campaign's default treatment. This value exists only for campaigns that have more than one treatment.
- Parameters:
defaultState
- The current status of the campaign's default treatment. This value exists only for campaigns that have more than one treatment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultState
The current status of the campaign's default treatment. This value exists only for campaigns that have more than one treatment.
This is a convenience method that creates an instance of theCampaignState.Builder
avoiding the need to create one manually viaCampaignState.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todefaultState(CampaignState)
.- Parameters:
defaultState
- a consumer that will call methods onCampaignState.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
The custom description of the campaign.
- Parameters:
description
- The 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 use 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 use 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 use 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:
-
id
The unique identifier for the campaign.
- Parameters:
id
- The unique identifier for the campaign.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isPaused
Specifies whether the campaign is paused. A paused campaign doesn't run unless you resume it by changing this value to false.
- Parameters:
isPaused
- Specifies whether the campaign is paused. 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.
-
lastModifiedDate
The date, in ISO 8601 format, when the campaign was last modified.
- Parameters:
lastModifiedDate
- The date, in ISO 8601 format, when the campaign was last modified.- 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 CampaignResponse.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
The name of the campaign.
- Parameters:
name
- The name of 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 that's associated with the campaign.
- Parameters:
segmentId
- The unique identifier for the segment that's associated with the campaign.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
segmentVersion
The version number of the segment that's associated with the campaign.
- Parameters:
segmentVersion
- The version number of the segment that's associated with the campaign.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The current status of the campaign.
- Parameters:
state
- The current status of the campaign.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The current status of the campaign.
This is a convenience method that creates an instance of theCampaignState.Builder
avoiding the need to create one manually viaCampaignState.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostate(CampaignState)
.- Parameters:
state
- a consumer that will call methods onCampaignState.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
A string-to-string map of key-value pairs that identifies the tags that are associated with the campaign. Each tag consists of a required tag key and an associated tag value.
- Parameters:
tags
- A string-to-string map of key-value pairs that identifies the tags that are associated with the campaign. Each tag consists of a required tag key and an associated tag value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templateConfiguration
The message template that’s used for the campaign.
- Parameters:
templateConfiguration
- The message template that’s used for the campaign.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templateConfiguration
default CampaignResponse.Builder templateConfiguration(Consumer<TemplateConfiguration.Builder> templateConfiguration) The message template that’s used 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
The custom description of the default treatment for the campaign.
- Parameters:
treatmentDescription
- The 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
The 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
- The 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.
-
version
The version number of the campaign.
- Parameters:
version
- The version number of the campaign.- 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.
-