Interface TreatmentResource.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<TreatmentResource.Builder,
,TreatmentResource> SdkBuilder<TreatmentResource.Builder,
,TreatmentResource> SdkPojo
- Enclosing class:
TreatmentResource
-
Method Summary
Modifier and TypeMethodDescriptiondefault TreatmentResource.Builder
customDeliveryConfiguration
(Consumer<CustomDeliveryConfiguration.Builder> customDeliveryConfiguration) The delivery configuration settings for sending the treatment through a custom channel.customDeliveryConfiguration
(CustomDeliveryConfiguration customDeliveryConfiguration) The delivery configuration settings for sending the treatment through a custom channel.The unique identifier for the treatment.default TreatmentResource.Builder
messageConfiguration
(Consumer<MessageConfiguration.Builder> messageConfiguration) The message configuration settings for the treatment.messageConfiguration
(MessageConfiguration messageConfiguration) The message configuration settings for the treatment.default TreatmentResource.Builder
schedule
(Consumer<Schedule.Builder> schedule) The schedule settings for the treatment.The schedule settings for the treatment.sizePercent
(Integer sizePercent) The allocated percentage of users (segment members) that the treatment is sent to.default TreatmentResource.Builder
state
(Consumer<CampaignState.Builder> state) The current status of the treatment.state
(CampaignState state) The current status of the treatment.default TreatmentResource.Builder
templateConfiguration
(Consumer<TemplateConfiguration.Builder> templateConfiguration) The message template to use for the treatment.templateConfiguration
(TemplateConfiguration templateConfiguration) The message template to use for the treatment.treatmentDescription
(String treatmentDescription) The custom description of the treatment.treatmentName
(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 Details
-
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.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:
-
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
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.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:
-
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
The schedule settings for the treatment.
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:
-
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
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
The current status of the 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 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:
-
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.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 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
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.
-