Interface CampaignResponse.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CampaignResponse.Builder,CampaignResponse>,SdkBuilder<CampaignResponse.Builder,CampaignResponse>,SdkPojo
- Enclosing class:
- CampaignResponse
public static interface CampaignResponse.Builder extends SdkPojo, CopyableBuilder<CampaignResponse.Builder,CampaignResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CampaignResponse.BuilderadditionalTreatments(Collection<TreatmentResource> additionalTreatments)An array of responses, one for each treatment that you defined for the campaign, in addition to the default treatment.CampaignResponse.BuilderadditionalTreatments(Consumer<TreatmentResource.Builder>... additionalTreatments)An array of responses, one for each treatment that you defined for the campaign, in addition to the default treatment.CampaignResponse.BuilderadditionalTreatments(TreatmentResource... additionalTreatments)An array of responses, one for each treatment that you defined for the campaign, in addition to the default treatment.CampaignResponse.BuilderapplicationId(String applicationId)The unique identifier for the application that the campaign applies to.CampaignResponse.Builderarn(String arn)The Amazon Resource Name (ARN) of the campaign.CampaignResponse.BuildercreationDate(String creationDate)The date, in ISO 8601 format, when the campaign was created.default CampaignResponse.BuildercustomDeliveryConfiguration(Consumer<CustomDeliveryConfiguration.Builder> customDeliveryConfiguration)The delivery configuration settings for sending the campaign through a custom channel.CampaignResponse.BuildercustomDeliveryConfiguration(CustomDeliveryConfiguration customDeliveryConfiguration)The delivery configuration settings for sending the campaign through a custom channel.default CampaignResponse.BuilderdefaultState(Consumer<CampaignState.Builder> defaultState)The current status of the campaign's default treatment.CampaignResponse.BuilderdefaultState(CampaignState defaultState)The current status of the campaign's default treatment.CampaignResponse.Builderdescription(String description)The custom description of the campaign.CampaignResponse.BuilderholdoutPercent(Integer holdoutPercent)The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.default CampaignResponse.Builderhook(Consumer<CampaignHook.Builder> hook)The settings for the AWS Lambda function to use as a code hook for the campaign.CampaignResponse.Builderhook(CampaignHook hook)The settings for the AWS Lambda function to use as a code hook for the campaign.CampaignResponse.Builderid(String id)The unique identifier for the campaign.CampaignResponse.BuilderisPaused(Boolean isPaused)Specifies whether the campaign is paused.CampaignResponse.BuilderlastModifiedDate(String lastModifiedDate)The date, in ISO 8601 format, when the campaign was last modified.default CampaignResponse.Builderlimits(Consumer<CampaignLimits.Builder> limits)The messaging limits for the campaign.CampaignResponse.Builderlimits(CampaignLimits limits)The messaging limits for the campaign.default CampaignResponse.BuildermessageConfiguration(Consumer<MessageConfiguration.Builder> messageConfiguration)The message configuration settings for the campaign.CampaignResponse.BuildermessageConfiguration(MessageConfiguration messageConfiguration)The message configuration settings for the campaign.CampaignResponse.Buildername(String name)The name of the campaign.CampaignResponse.Builderpriority(Integer 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.default CampaignResponse.Builderschedule(Consumer<Schedule.Builder> schedule)The schedule settings for the campaign.CampaignResponse.Builderschedule(Schedule schedule)The schedule settings for the campaign.CampaignResponse.BuildersegmentId(String segmentId)The unique identifier for the segment that's associated with the campaign.CampaignResponse.BuildersegmentVersion(Integer segmentVersion)The version number of the segment that's associated with the campaign.default CampaignResponse.Builderstate(Consumer<CampaignState.Builder> state)The current status of the campaign.CampaignResponse.Builderstate(CampaignState state)The current status of the campaign.CampaignResponse.Buildertags(Map<String,String> tags)A string-to-string map of key-value pairs that identifies the tags that are associated with the campaign.default CampaignResponse.BuildertemplateConfiguration(Consumer<TemplateConfiguration.Builder> templateConfiguration)The message template that’s used for the campaign.CampaignResponse.BuildertemplateConfiguration(TemplateConfiguration templateConfiguration)The message template that’s used for the campaign.CampaignResponse.BuildertreatmentDescription(String treatmentDescription)The custom description of the default treatment for the campaign.CampaignResponse.BuildertreatmentName(String treatmentName)The custom name of the default treatment for the campaign, if the campaign has multiple treatments.CampaignResponse.Builderversion(Integer version)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 Detail
-
additionalTreatments
CampaignResponse.Builder additionalTreatments(Collection<TreatmentResource> 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(TreatmentResource... 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.Builderavoiding the need to create one manually viaTreatmentResource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#additionalTreatments(List.) - 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:
#additionalTreatments(java.util.Collection)
-
applicationId
CampaignResponse.Builder applicationId(String 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
CampaignResponse.Builder arn(String 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
CampaignResponse.Builder creationDate(String 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.Builderavoiding the need to create one manually viaCustomDeliveryConfiguration.builder().When the
Consumercompletes,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:
customDeliveryConfiguration(CustomDeliveryConfiguration)
-
defaultState
CampaignResponse.Builder defaultState(CampaignState 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
default CampaignResponse.Builder defaultState(Consumer<CampaignState.Builder> 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.Builderavoiding the need to create one manually viaCampaignState.builder().When the
Consumercompletes,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:
defaultState(CampaignState)
-
description
CampaignResponse.Builder description(String 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
CampaignResponse.Builder holdoutPercent(Integer 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
CampaignResponse.Builder hook(CampaignHook 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
default CampaignResponse.Builder hook(Consumer<CampaignHook.Builder> 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.Builderavoiding the need to create one manually viaCampaignHook.builder().When the
Consumercompletes,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:
hook(CampaignHook)
-
id
CampaignResponse.Builder id(String 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
CampaignResponse.Builder isPaused(Boolean 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
CampaignResponse.Builder lastModifiedDate(String 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
CampaignResponse.Builder limits(CampaignLimits 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
default CampaignResponse.Builder limits(Consumer<CampaignLimits.Builder> limits)
The messaging limits for the campaign.
This is a convenience method that creates an instance of theCampaignLimits.Builderavoiding the need to create one manually viaCampaignLimits.builder().When the
Consumercompletes,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:
limits(CampaignLimits)
-
messageConfiguration
CampaignResponse.Builder messageConfiguration(MessageConfiguration 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.Builderavoiding the need to create one manually viaMessageConfiguration.builder().When the
Consumercompletes,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:
messageConfiguration(MessageConfiguration)
-
name
CampaignResponse.Builder name(String 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
CampaignResponse.Builder schedule(Schedule 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
default CampaignResponse.Builder schedule(Consumer<Schedule.Builder> schedule)
The schedule settings for the campaign.
This is a convenience method that creates an instance of theSchedule.Builderavoiding the need to create one manually viaSchedule.builder().When the
Consumercompletes,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:
schedule(Schedule)
-
segmentId
CampaignResponse.Builder segmentId(String 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
CampaignResponse.Builder segmentVersion(Integer 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
CampaignResponse.Builder state(CampaignState 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
default CampaignResponse.Builder state(Consumer<CampaignState.Builder> state)
The current status of the campaign.
This is a convenience method that creates an instance of theCampaignState.Builderavoiding the need to create one manually viaCampaignState.builder().When the
Consumercompletes,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:
state(CampaignState)
-
tags
CampaignResponse.Builder tags(Map<String,String> 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
CampaignResponse.Builder templateConfiguration(TemplateConfiguration 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.Builderavoiding the need to create one manually viaTemplateConfiguration.builder().When the
Consumercompletes,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:
templateConfiguration(TemplateConfiguration)
-
treatmentDescription
CampaignResponse.Builder treatmentDescription(String 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
CampaignResponse.Builder treatmentName(String 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
CampaignResponse.Builder version(Integer 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
CampaignResponse.Builder priority(Integer 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.
-
-