public static interface TreatmentResource.Builder extends SdkPojo, CopyableBuilder<TreatmentResource.Builder,TreatmentResource>
| Modifier and Type | Method and Description |
|---|---|
default TreatmentResource.Builder |
customDeliveryConfiguration(Consumer<CustomDeliveryConfiguration.Builder> customDeliveryConfiguration)
The delivery configuration settings for sending the treatment through a custom channel.
|
TreatmentResource.Builder |
customDeliveryConfiguration(CustomDeliveryConfiguration customDeliveryConfiguration)
The delivery configuration settings for sending the treatment through a custom channel.
|
TreatmentResource.Builder |
id(String id)
The unique identifier for the treatment.
|
default TreatmentResource.Builder |
messageConfiguration(Consumer<MessageConfiguration.Builder> messageConfiguration)
The message configuration settings for the treatment.
|
TreatmentResource.Builder |
messageConfiguration(MessageConfiguration messageConfiguration)
The message configuration settings for the treatment.
|
default TreatmentResource.Builder |
schedule(Consumer<Schedule.Builder> schedule)
The schedule settings for the treatment.
|
TreatmentResource.Builder |
schedule(Schedule schedule)
The schedule settings for the treatment.
|
TreatmentResource.Builder |
sizePercent(Integer sizePercent)
The allocated percentage of users (segment members) that the treatment is sent to.
|
TreatmentResource.Builder |
state(CampaignState state)
The current status of the treatment.
|
default TreatmentResource.Builder |
state(Consumer<CampaignState.Builder> state)
The current status of the treatment.
|
default TreatmentResource.Builder |
templateConfiguration(Consumer<TemplateConfiguration.Builder> templateConfiguration)
The message template to use for the treatment.
|
TreatmentResource.Builder |
templateConfiguration(TemplateConfiguration templateConfiguration)
The message template to use for the treatment.
|
TreatmentResource.Builder |
treatmentDescription(String treatmentDescription)
The custom description of the treatment.
|
TreatmentResource.Builder |
treatmentName(String treatmentName)
The custom name of the treatment.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildTreatmentResource.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.
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.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 that creates an instance of theCustomDeliveryConfiguration.Builder avoiding
the need to create one manually via CustomDeliveryConfiguration.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to customDeliveryConfiguration(CustomDeliveryConfiguration).customDeliveryConfiguration - a consumer that will call methods on CustomDeliveryConfiguration.BuildercustomDeliveryConfiguration(CustomDeliveryConfiguration)TreatmentResource.Builder id(String id)
The unique identifier for the treatment.
id - The unique identifier for the treatment.TreatmentResource.Builder messageConfiguration(MessageConfiguration messageConfiguration)
The message configuration settings for the treatment.
messageConfiguration - The message configuration settings for the treatment.default TreatmentResource.Builder messageConfiguration(Consumer<MessageConfiguration.Builder> messageConfiguration)
The message configuration settings for the treatment.
This is a convenience that creates an instance of theMessageConfiguration.Builder avoiding the need
to create one manually via MessageConfiguration.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to messageConfiguration(MessageConfiguration).messageConfiguration - a consumer that will call methods on MessageConfiguration.BuildermessageConfiguration(MessageConfiguration)TreatmentResource.Builder schedule(Schedule schedule)
The schedule settings for the treatment.
schedule - The schedule settings for the treatment.default TreatmentResource.Builder schedule(Consumer<Schedule.Builder> schedule)
The schedule settings for the treatment.
This is a convenience that creates an instance of theSchedule.Builder avoiding the need to create
one manually via Schedule.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result is
passed to schedule(Schedule).schedule - a consumer that will call methods on Schedule.Builderschedule(Schedule)TreatmentResource.Builder sizePercent(Integer sizePercent)
The allocated percentage of users (segment members) that the treatment is sent to.
sizePercent - The allocated percentage of users (segment members) that the treatment is sent to.TreatmentResource.Builder state(CampaignState state)
The current status of the treatment.
state - The current status of the treatment.default TreatmentResource.Builder state(Consumer<CampaignState.Builder> state)
The current status of the treatment.
This is a convenience that creates an instance of theCampaignState.Builder avoiding the need to
create one manually via CampaignState.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to state(CampaignState).state - a consumer that will call methods on CampaignState.Builderstate(CampaignState)TreatmentResource.Builder templateConfiguration(TemplateConfiguration templateConfiguration)
The message template to use for the treatment.
templateConfiguration - The message template to use for the treatment.default TreatmentResource.Builder templateConfiguration(Consumer<TemplateConfiguration.Builder> templateConfiguration)
The message template to use for the treatment.
This is a convenience that creates an instance of theTemplateConfiguration.Builder avoiding the need
to create one manually via TemplateConfiguration.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to templateConfiguration(TemplateConfiguration).templateConfiguration - a consumer that will call methods on TemplateConfiguration.BuildertemplateConfiguration(TemplateConfiguration)TreatmentResource.Builder treatmentDescription(String treatmentDescription)
The custom description of the treatment.
treatmentDescription - The custom description of the treatment.TreatmentResource.Builder treatmentName(String treatmentName)
The custom name of the treatment.
treatmentName - The custom name of the treatment.Copyright © 2021. All rights reserved.