Interface WriteTreatmentResource.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<WriteTreatmentResource.Builder,WriteTreatmentResource>,SdkBuilder<WriteTreatmentResource.Builder,WriteTreatmentResource>,SdkPojo
- Enclosing class:
- WriteTreatmentResource
public static interface WriteTreatmentResource.Builder extends SdkPojo, CopyableBuilder<WriteTreatmentResource.Builder,WriteTreatmentResource>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default WriteTreatmentResource.BuildercustomDeliveryConfiguration(Consumer<CustomDeliveryConfiguration.Builder> customDeliveryConfiguration)The delivery configuration settings for sending the treatment through a custom channel.WriteTreatmentResource.BuildercustomDeliveryConfiguration(CustomDeliveryConfiguration customDeliveryConfiguration)The delivery configuration settings for sending the treatment through a custom channel.default WriteTreatmentResource.BuildermessageConfiguration(Consumer<MessageConfiguration.Builder> messageConfiguration)The message configuration settings for the treatment.WriteTreatmentResource.BuildermessageConfiguration(MessageConfiguration messageConfiguration)The message configuration settings for the treatment.default WriteTreatmentResource.Builderschedule(Consumer<Schedule.Builder> schedule)The schedule settings for the treatment.WriteTreatmentResource.Builderschedule(Schedule schedule)The schedule settings for the treatment.WriteTreatmentResource.BuildersizePercent(Integer sizePercent)The allocated percentage of users (segment members) to send the treatment to.default WriteTreatmentResource.BuildertemplateConfiguration(Consumer<TemplateConfiguration.Builder> templateConfiguration)The message template to use for the treatment.WriteTreatmentResource.BuildertemplateConfiguration(TemplateConfiguration templateConfiguration)The message template to use for the treatment.WriteTreatmentResource.BuildertreatmentDescription(String treatmentDescription)A custom description of the treatment.WriteTreatmentResource.BuildertreatmentName(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 Detail
-
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.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)
-
messageConfiguration
WriteTreatmentResource.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 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.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
WriteTreatmentResource.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 WriteTreatmentResource.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
WriteTreatmentResource.Builder sizePercent(Integer 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
WriteTreatmentResource.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 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.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
WriteTreatmentResource.Builder treatmentDescription(String 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
WriteTreatmentResource.Builder treatmentName(String 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.
-
-