Class ReplaceableAttribute
- java.lang.Object
-
- com.amazonaws.services.simpledb.model.ReplaceableAttribute
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ReplaceableAttribute extends Object implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReplaceableAttribute()Default constructor for ReplaceableAttribute object.ReplaceableAttribute(String name, String value, Boolean replace)Constructs a new ReplaceableAttribute object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReplaceableAttributeclone()booleanequals(Object obj)StringgetName()The name of the replaceable attribute.BooleangetReplace()A flag specifying whether or not to replace the attribute/value pair or to add a new attribute/value pair.StringgetValue()The value of the replaceable attribute.inthashCode()BooleanisReplace()A flag specifying whether or not to replace the attribute/value pair or to add a new attribute/value pair.voidsetName(String name)The name of the replaceable attribute.voidsetReplace(Boolean replace)A flag specifying whether or not to replace the attribute/value pair or to add a new attribute/value pair.voidsetValue(String value)The value of the replaceable attribute.StringtoString()Returns a string representation of this object; useful for testing and debugging.ReplaceableAttributewithName(String name)The name of the replaceable attribute.ReplaceableAttributewithReplace(Boolean replace)A flag specifying whether or not to replace the attribute/value pair or to add a new attribute/value pair.ReplaceableAttributewithValue(String value)The value of the replaceable attribute.
-
-
-
Constructor Detail
-
ReplaceableAttribute
public ReplaceableAttribute()
Default constructor for ReplaceableAttribute object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
ReplaceableAttribute
public ReplaceableAttribute(String name, String value, Boolean replace)
Constructs a new ReplaceableAttribute object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
name- The name of the replaceable attribute.value- The value of the replaceable attribute.replace- A flag specifying whether or not to replace the attribute/value pair or to add a new attribute/value pair. The default setting isfalse.
-
-
Method Detail
-
setName
public void setName(String name)
The name of the replaceable attribute.- Parameters:
name- The name of the replaceable attribute.
-
getName
public String getName()
The name of the replaceable attribute.- Returns:
- The name of the replaceable attribute.
-
withName
public ReplaceableAttribute withName(String name)
The name of the replaceable attribute.- Parameters:
name- The name of the replaceable attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setValue
public void setValue(String value)
The value of the replaceable attribute.- Parameters:
value- The value of the replaceable attribute.
-
getValue
public String getValue()
The value of the replaceable attribute.- Returns:
- The value of the replaceable attribute.
-
withValue
public ReplaceableAttribute withValue(String value)
The value of the replaceable attribute.- Parameters:
value- The value of the replaceable attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setReplace
public void setReplace(Boolean replace)
A flag specifying whether or not to replace the attribute/value pair or to add a new attribute/value pair. The default setting isfalse.- Parameters:
replace- A flag specifying whether or not to replace the attribute/value pair or to add a new attribute/value pair. The default setting isfalse.
-
getReplace
public Boolean getReplace()
A flag specifying whether or not to replace the attribute/value pair or to add a new attribute/value pair. The default setting isfalse.- Returns:
- A flag specifying whether or not to replace the attribute/value
pair or to add a new attribute/value pair. The default setting is
false.
-
withReplace
public ReplaceableAttribute withReplace(Boolean replace)
A flag specifying whether or not to replace the attribute/value pair or to add a new attribute/value pair. The default setting isfalse.- Parameters:
replace- A flag specifying whether or not to replace the attribute/value pair or to add a new attribute/value pair. The default setting isfalse.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isReplace
public Boolean isReplace()
A flag specifying whether or not to replace the attribute/value pair or to add a new attribute/value pair. The default setting isfalse.- Returns:
- A flag specifying whether or not to replace the attribute/value
pair or to add a new attribute/value pair. The default setting is
false.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ReplaceableAttribute clone()
-
-