Class TreatmentResource
- All Implemented Interfaces:
- Serializable,- SdkPojo,- 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.
- See Also:
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionstatic TreatmentResource.Builderbuilder()The delivery configuration settings for sending the treatment through a custom channel.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringid()The unique identifier for the treatment.final MessageConfigurationThe message configuration settings for the treatment.final Scheduleschedule()The schedule settings for the treatment.static Class<? extends TreatmentResource.Builder> final IntegerThe allocated percentage of users (segment members) that the treatment is sent to.final CampaignStatestate()The current status of the treatment.final TemplateConfigurationThe message template to use for the treatment.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final StringThe custom description of the treatment.final StringThe custom name of the treatment.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuildercopy
- 
Method Details- 
customDeliveryConfigurationThe 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. - Returns:
- 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.
 
- 
idThe unique identifier for the treatment. - Returns:
- The unique identifier for the treatment.
 
- 
messageConfigurationThe message configuration settings for the treatment. - Returns:
- The message configuration settings for the treatment.
 
- 
scheduleThe schedule settings for the treatment. - Returns:
- The schedule settings for the treatment.
 
- 
sizePercentThe allocated percentage of users (segment members) that the treatment is sent to. - Returns:
- The allocated percentage of users (segment members) that the treatment is sent to.
 
- 
stateThe current status of the treatment. - Returns:
- The current status of the treatment.
 
- 
templateConfigurationThe message template to use for the treatment. - Returns:
- The message template to use for the treatment.
 
- 
treatmentDescriptionThe custom description of the treatment. - Returns:
- The custom description of the treatment.
 
- 
treatmentNameThe custom name of the treatment. - Returns:
- The custom name of the treatment.
 
- 
toBuilderDescription copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
- toBuilderin interface- ToCopyableBuilder<TreatmentResource.Builder,- TreatmentResource> 
- Returns:
- a builder for type T
 
- 
builder
- 
serializableBuilderClass
- 
hashCode
- 
equals
- 
equalsBySdkFieldsDescription copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
- equalsBySdkFieldsin interface- SdkPojo
- Parameters:
- obj- the object to be compared with
- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
 
- 
toString
- 
getValueForField
- 
sdkFields
- 
sdkFieldNameToField- Specified by:
- sdkFieldNameToFieldin interface- SdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
 
 
-