Class TreatmentResource
java.lang.Object
software.amazon.awssdk.services.pinpoint.model.TreatmentResource
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TreatmentResource.Builder,TreatmentResource>
@Generated("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.
- 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) 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.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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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
- Specified by:
toBuilderin interfaceToCopyableBuilder<TreatmentResource.Builder,TreatmentResource>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-