public class ReplaceableAttribute extends Object implements Serializable
Constructor and Description |
---|
ReplaceableAttribute()
Default constructor for a new ReplaceableAttribute object.
|
ReplaceableAttribute(String name,
String value,
Boolean replace)
Constructs a new ReplaceableAttribute object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getName()
The name of the replaceable attribute.
|
Boolean |
getReplace()
A flag specifying whether or not to replace the attribute/value pair
or to add a new attribute/value pair.
|
String |
getValue()
The value of the replaceable attribute.
|
int |
hashCode() |
Boolean |
isReplace()
A flag specifying whether or not to replace the attribute/value pair
or to add a new attribute/value pair.
|
void |
setName(String name)
The name of the replaceable attribute.
|
void |
setReplace(Boolean replace)
A flag specifying whether or not to replace the attribute/value pair
or to add a new attribute/value pair.
|
void |
setValue(String value)
The value of the replaceable attribute.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ReplaceableAttribute |
withName(String name)
The name of the replaceable attribute.
|
ReplaceableAttribute |
withReplace(Boolean replace)
A flag specifying whether or not to replace the attribute/value pair
or to add a new attribute/value pair.
|
ReplaceableAttribute |
withValue(String value)
The value of the replaceable attribute.
|
public ReplaceableAttribute()
public ReplaceableAttribute(String name, String value, Boolean replace)
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 is false
.public String getName()
public void setName(String name)
name
- The name of the replaceable attribute.public ReplaceableAttribute withName(String name)
Returns a reference to this object so that method calls can be chained together.
name
- The name of the replaceable attribute.public String getValue()
public void setValue(String value)
value
- The value of the replaceable attribute.public ReplaceableAttribute withValue(String value)
Returns a reference to this object so that method calls can be chained together.
value
- The value of the replaceable attribute.public Boolean isReplace()
false
.false
.public void setReplace(Boolean replace)
false
.replace
- 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
.public ReplaceableAttribute withReplace(Boolean replace)
false
.
Returns a reference to this object so that method calls can be chained together.
replace
- 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
.public Boolean getReplace()
false
.false
.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.