Interface TreatmentResource.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<TreatmentResource.Builder,TreatmentResource>,SdkBuilder<TreatmentResource.Builder,TreatmentResource>,SdkPojo
- Enclosing class:
- TreatmentResource
public static interface TreatmentResource.Builder extends SdkPojo, CopyableBuilder<TreatmentResource.Builder,TreatmentResource>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default TreatmentResource.BuildercustomDeliveryConfiguration(Consumer<CustomDeliveryConfiguration.Builder> customDeliveryConfiguration)The delivery configuration settings for sending the treatment through a custom channel.TreatmentResource.BuildercustomDeliveryConfiguration(CustomDeliveryConfiguration customDeliveryConfiguration)The delivery configuration settings for sending the treatment through a custom channel.TreatmentResource.Builderid(String id)The unique identifier for the treatment.default TreatmentResource.BuildermessageConfiguration(Consumer<MessageConfiguration.Builder> messageConfiguration)The message configuration settings for the treatment.TreatmentResource.BuildermessageConfiguration(MessageConfiguration messageConfiguration)The message configuration settings for the treatment.default TreatmentResource.Builderschedule(Consumer<Schedule.Builder> schedule)The schedule settings for the treatment.TreatmentResource.Builderschedule(Schedule schedule)The schedule settings for the treatment.TreatmentResource.BuildersizePercent(Integer sizePercent)The allocated percentage of users (segment members) that the treatment is sent to.default TreatmentResource.Builderstate(Consumer<CampaignState.Builder> state)The current status of the treatment.TreatmentResource.Builderstate(CampaignState state)The current status of the treatment.default TreatmentResource.BuildertemplateConfiguration(Consumer<TemplateConfiguration.Builder> templateConfiguration)The message template to use for the treatment.TreatmentResource.BuildertemplateConfiguration(TemplateConfiguration templateConfiguration)The message template to use for the treatment.TreatmentResource.BuildertreatmentDescription(String treatmentDescription)The custom description of the treatment.TreatmentResource.BuildertreatmentName(String treatmentName)The custom name of the treatment.-
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
-
customDeliveryConfiguration
TreatmentResource.Builder customDeliveryConfiguration(CustomDeliveryConfiguration customDeliveryConfiguration)
The delivery configuration settings for sending the treatment through a custom channel. This object is required if the MessageConfiguration object for the treatment specifies a CustomMessage object.
- Parameters:
customDeliveryConfiguration- The delivery configuration settings for sending the treatment through a custom channel. This object is required if the MessageConfiguration object for the treatment specifies a CustomMessage object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customDeliveryConfiguration
default TreatmentResource.Builder customDeliveryConfiguration(Consumer<CustomDeliveryConfiguration.Builder> customDeliveryConfiguration)
The delivery configuration settings for sending the treatment through a custom channel. This object is required if the MessageConfiguration object for the treatment specifies a CustomMessage object.
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)
-
id
TreatmentResource.Builder id(String id)
The unique identifier for the treatment.
- Parameters:
id- The unique identifier for the treatment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messageConfiguration
TreatmentResource.Builder messageConfiguration(MessageConfiguration messageConfiguration)
The message configuration settings for the treatment.
- Parameters:
messageConfiguration- The message configuration settings for the treatment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messageConfiguration
default TreatmentResource.Builder messageConfiguration(Consumer<MessageConfiguration.Builder> messageConfiguration)
The message configuration settings for the treatment.
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)
-
schedule
TreatmentResource.Builder schedule(Schedule schedule)
The schedule settings for the treatment.
- Parameters:
schedule- The schedule settings for the treatment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schedule
default TreatmentResource.Builder schedule(Consumer<Schedule.Builder> schedule)
The schedule settings for the treatment.
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)
-
sizePercent
TreatmentResource.Builder sizePercent(Integer sizePercent)
The allocated percentage of users (segment members) that the treatment is sent to.
- Parameters:
sizePercent- The allocated percentage of users (segment members) that the treatment is sent to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
TreatmentResource.Builder state(CampaignState state)
The current status of the treatment.
- Parameters:
state- The current status of the treatment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
default TreatmentResource.Builder state(Consumer<CampaignState.Builder> state)
The current status of the 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 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)
-
templateConfiguration
TreatmentResource.Builder templateConfiguration(TemplateConfiguration templateConfiguration)
The message template to use for the treatment.
- Parameters:
templateConfiguration- The message template to use for the treatment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templateConfiguration
default TreatmentResource.Builder templateConfiguration(Consumer<TemplateConfiguration.Builder> templateConfiguration)
The message template to use for the treatment.
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
TreatmentResource.Builder treatmentDescription(String treatmentDescription)
The custom description of the treatment.
- Parameters:
treatmentDescription- The custom description of the treatment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
treatmentName
TreatmentResource.Builder treatmentName(String treatmentName)
The custom name of the treatment.
- Parameters:
treatmentName- The custom name of the treatment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-