public static interface TreatmentResource.Builder extends SdkPojo, CopyableBuilder<TreatmentResource.Builder,TreatmentResource>
| Modifier and Type | Method and Description |
|---|---|
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 status of the treatment.
|
default TreatmentResource.Builder |
state(Consumer<CampaignState.Builder> state)
The status of the treatment.
|
default TreatmentResource.Builder |
templateConfiguration(Consumer<TemplateConfiguration.Builder> templateConfiguration)
Sets the value of the TemplateConfiguration property for this object.
|
TreatmentResource.Builder |
templateConfiguration(TemplateConfiguration templateConfiguration)
Sets the value of the TemplateConfiguration property for this object.
|
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 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 status of the treatment.
state - The status of the treatment.default TreatmentResource.Builder state(Consumer<CampaignState.Builder> state)
The 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)
templateConfiguration - The new value for the TemplateConfiguration property for this object.default TreatmentResource.Builder templateConfiguration(Consumer<TemplateConfiguration.Builder> templateConfiguration)
TemplateConfiguration.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. A treatment is a variation of a campaign that's used for A/B testing of a campaign.
treatmentName - The custom name of the treatment. A treatment is a variation of a campaign that's used for A/B testing
of a campaign.Copyright © 2019. All rights reserved.