@Generated(value="software.amazon.awssdk:codegen") public final class TreatmentResource extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TreatmentResource.Builder,TreatmentResource>
Specifies the settings for a campaign treatment. A treatment is a variation of a campaign that's used for A/B testing of a campaign.
| Modifier and Type | Class and Description |
|---|---|
static interface |
TreatmentResource.Builder |
| Modifier and Type | Method and Description |
|---|---|
static TreatmentResource.Builder |
builder() |
CustomDeliveryConfiguration |
customDeliveryConfiguration()
The delivery configuration settings for sending the treatment through a custom channel.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The unique identifier for the treatment.
|
MessageConfiguration |
messageConfiguration()
The message configuration settings for the treatment.
|
Schedule |
schedule()
The schedule settings for the treatment.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends TreatmentResource.Builder> |
serializableBuilderClass() |
Integer |
sizePercent()
The allocated percentage of users (segment members) that the treatment is sent to.
|
CampaignState |
state()
The current status of the treatment.
|
TemplateConfiguration |
templateConfiguration()
The message template to use for the treatment.
|
TreatmentResource.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
treatmentDescription()
The custom description of the treatment.
|
String |
treatmentName()
The custom name of the treatment.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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.
public final String id()
The unique identifier for the treatment.
public final MessageConfiguration messageConfiguration()
The message configuration settings for the treatment.
public final Schedule schedule()
The schedule settings for the treatment.
public final Integer sizePercent()
The allocated percentage of users (segment members) that the treatment is sent to.
public final CampaignState state()
The current status of the treatment.
public final TemplateConfiguration templateConfiguration()
The message template to use for the treatment.
public final String treatmentDescription()
The custom description of the treatment.
public final String treatmentName()
The custom name of the treatment.
public TreatmentResource.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<TreatmentResource.Builder,TreatmentResource>public static TreatmentResource.Builder builder()
public static Class<? extends TreatmentResource.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.