@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Treatment extends Object implements Serializable, Cloneable, StructuredPojo
A structure that defines one treatment in an experiment. A treatment is a variation of the feature that you are including in the experiment.
Constructor and Description |
---|
Treatment() |
Modifier and Type | Method and Description |
---|---|
Treatment |
addFeatureVariationsEntry(String key,
String value)
Add a single FeatureVariations entry
|
Treatment |
clearFeatureVariationsEntries()
Removes all the entries added into FeatureVariations.
|
Treatment |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
The description of the treatment.
|
Map<String,String> |
getFeatureVariations()
The feature variation used for this treatment.
|
String |
getName()
The name of this treatment.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDescription(String description)
The description of the treatment.
|
void |
setFeatureVariations(Map<String,String> featureVariations)
The feature variation used for this treatment.
|
void |
setName(String name)
The name of this treatment.
|
String |
toString()
Returns a string representation of this object.
|
Treatment |
withDescription(String description)
The description of the treatment.
|
Treatment |
withFeatureVariations(Map<String,String> featureVariations)
The feature variation used for this treatment.
|
Treatment |
withName(String name)
The name of this treatment.
|
public void setDescription(String description)
The description of the treatment.
description
- The description of the treatment.public String getDescription()
The description of the treatment.
public Treatment withDescription(String description)
The description of the treatment.
description
- The description of the treatment.public Map<String,String> getFeatureVariations()
The feature variation used for this treatment. This is a key-value pair. The key is the feature name, and the value is the variation name.
public void setFeatureVariations(Map<String,String> featureVariations)
The feature variation used for this treatment. This is a key-value pair. The key is the feature name, and the value is the variation name.
featureVariations
- The feature variation used for this treatment. This is a key-value pair. The key is the feature name, and
the value is the variation name.public Treatment withFeatureVariations(Map<String,String> featureVariations)
The feature variation used for this treatment. This is a key-value pair. The key is the feature name, and the value is the variation name.
featureVariations
- The feature variation used for this treatment. This is a key-value pair. The key is the feature name, and
the value is the variation name.public Treatment addFeatureVariationsEntry(String key, String value)
public Treatment clearFeatureVariationsEntries()
public void setName(String name)
The name of this treatment.
name
- The name of this treatment.public String getName()
The name of this treatment.
public Treatment withName(String name)
The name of this treatment.
name
- The name of this treatment.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.