@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 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 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) to send the treatment to.
public final TemplateConfiguration templateConfiguration()
The message template to use for the treatment.
public final String treatmentDescription()
A custom description of the treatment.
public final 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 final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.