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 Summary
Nested Classes -
Method Summary
Modifier 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.ToCopyableBuilder
copy
-
Method Details
-
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.
- 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.
-
id
The unique identifier for the treatment.
- Returns:
- The unique identifier for the treatment.
-
messageConfiguration
The message configuration settings for the treatment.
- Returns:
- The message configuration settings for the treatment.
-
schedule
The schedule settings for the treatment.
- Returns:
- The schedule settings for the treatment.
-
sizePercent
The 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.
-
state
The current status of the treatment.
- Returns:
- The current status of the treatment.
-
templateConfiguration
The message template to use for the treatment.
- Returns:
- The message template to use for the treatment.
-
treatmentDescription
The custom description of the treatment.
- Returns:
- The custom description of the treatment.
-
treatmentName
The custom name of the treatment.
- Returns:
- The custom name of the treatment.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<TreatmentResource.Builder,TreatmentResource> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description 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 interfaceSdkPojo- 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 interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-