Class PolicyAttribute
- java.lang.Object
-
- com.amazonaws.services.elasticloadbalancing.model.PolicyAttribute
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class PolicyAttribute extends Object implements Serializable, Cloneable
Information about a policy attribute.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PolicyAttribute()
Default constructor for PolicyAttribute object.PolicyAttribute(String attributeName, String attributeValue)
Constructs a new PolicyAttribute object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyAttribute
clone()
boolean
equals(Object obj)
String
getAttributeName()
The name of the attribute.String
getAttributeValue()
The value of the attribute.int
hashCode()
void
setAttributeName(String attributeName)
The name of the attribute.void
setAttributeValue(String attributeValue)
The value of the attribute.String
toString()
Returns a string representation of this object; useful for testing and debugging.PolicyAttribute
withAttributeName(String attributeName)
The name of the attribute.PolicyAttribute
withAttributeValue(String attributeValue)
The value of the attribute.
-
-
-
Constructor Detail
-
PolicyAttribute
public PolicyAttribute()
Default constructor for PolicyAttribute object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
PolicyAttribute
public PolicyAttribute(String attributeName, String attributeValue)
Constructs a new PolicyAttribute object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
attributeName
- The name of the attribute.attributeValue
- The value of the attribute.
-
-
Method Detail
-
setAttributeName
public void setAttributeName(String attributeName)
The name of the attribute.
- Parameters:
attributeName
- The name of the attribute.
-
getAttributeName
public String getAttributeName()
The name of the attribute.
- Returns:
- The name of the attribute.
-
withAttributeName
public PolicyAttribute withAttributeName(String attributeName)
The name of the attribute.
- Parameters:
attributeName
- The name of the attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAttributeValue
public void setAttributeValue(String attributeValue)
The value of the attribute.
- Parameters:
attributeValue
- The value of the attribute.
-
getAttributeValue
public String getAttributeValue()
The value of the attribute.
- Returns:
- The value of the attribute.
-
withAttributeValue
public PolicyAttribute withAttributeValue(String attributeValue)
The value of the attribute.
- Parameters:
attributeValue
- The value of the attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PolicyAttribute clone()
-
-