@Generated(value="software.amazon.awssdk:codegen") public final class WriteTreatmentResource extends Object implements SdkPojo, Serializable, ToCopyableBuilder<WriteTreatmentResource.Builder,WriteTreatmentResource>
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 |
WriteTreatmentResource.Builder |
| Modifier and Type | Method and Description |
|---|---|
static WriteTreatmentResource.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() |
MessageConfiguration |
messageConfiguration()
The message configuration settings for the treatment.
|
Schedule |
schedule()
The schedule settings for the treatment.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends WriteTreatmentResource.Builder> |
serializableBuilderClass() |
Integer |
sizePercent()
The allocated percentage of users (segment members) to send the treatment to.
|
TemplateConfiguration |
templateConfiguration()
The message template to use for the treatment.
|
WriteTreatmentResource.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
treatmentDescription()
A custom description of the treatment.
|
String |
treatmentName()
A custom name for the treatment.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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 MessageConfiguration messageConfiguration()
The message configuration settings for the treatment.
public Schedule schedule()
The schedule settings for the treatment.
public Integer sizePercent()
The allocated percentage of users (segment members) to send the treatment to.
public TemplateConfiguration templateConfiguration()
The message template to use for the treatment.
public String treatmentDescription()
A custom description of the treatment.
public String treatmentName()
A custom name for the treatment.
public WriteTreatmentResource.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<WriteTreatmentResource.Builder,WriteTreatmentResource>public static WriteTreatmentResource.Builder builder()
public static Class<? extends WriteTreatmentResource.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.