Interface WriteTreatmentResource.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<WriteTreatmentResource.Builder,
,WriteTreatmentResource> SdkBuilder<WriteTreatmentResource.Builder,
,WriteTreatmentResource> SdkPojo
- Enclosing class:
WriteTreatmentResource
-
Method Summary
Modifier and TypeMethodDescriptiondefault WriteTreatmentResource.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.default WriteTreatmentResource.Builder
messageConfiguration
(Consumer<MessageConfiguration.Builder> messageConfiguration) The message configuration settings for the treatment.messageConfiguration
(MessageConfiguration messageConfiguration) The message configuration settings for the treatment.default WriteTreatmentResource.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) to send the treatment to.default WriteTreatmentResource.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) A custom description of the treatment.treatmentName
(String treatmentName) A custom name for 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
WriteTreatmentResource.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 WriteTreatmentResource.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:
-
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 WriteTreatmentResource.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) to send the treatment to.
- Parameters:
sizePercent
- The allocated percentage of users (segment members) to send the treatment to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 WriteTreatmentResource.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
A custom description of the treatment.
- Parameters:
treatmentDescription
- A custom description of the treatment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
treatmentName
A custom name for the treatment.
- Parameters:
treatmentName
- A custom name for the treatment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-