com.amazonaws.services.elasticloadbalancing.model
Class PolicyAttribute

java.lang.Object
  extended by com.amazonaws.services.elasticloadbalancing.model.PolicyAttribute

public class PolicyAttribute
extends Object

The PolicyAttribute data type. This data type contains a key/value pair that defines properties of a specific policy.


Constructor Summary
PolicyAttribute()
          Default constructor for a new PolicyAttribute object.
PolicyAttribute(String attributeName, String attributeValue)
          Constructs a new PolicyAttribute object.
 
Method Summary
 boolean equals(Object obj)
           
 String getAttributeName()
          The name of the attribute associated with the policy.
 String getAttributeValue()
          The value of the attribute associated with the policy.
 int hashCode()
           
 void setAttributeName(String attributeName)
          The name of the attribute associated with the policy.
 void setAttributeValue(String attributeValue)
          The value of the attribute associated with the policy.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 PolicyAttribute withAttributeName(String attributeName)
          The name of the attribute associated with the policy.
 PolicyAttribute withAttributeValue(String attributeValue)
          The value of the attribute associated with the policy.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PolicyAttribute

public PolicyAttribute()
Default constructor for a new PolicyAttribute object. Callers should use the setter or fluent setter (with...) methods to initialize this 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 associated with the policy.
attributeValue - The value of the attribute associated with the policy.
Method Detail

getAttributeName

public String getAttributeName()
The name of the attribute associated with the policy.

Returns:
The name of the attribute associated with the policy.

setAttributeName

public void setAttributeName(String attributeName)
The name of the attribute associated with the policy.

Parameters:
attributeName - The name of the attribute associated with the policy.

withAttributeName

public PolicyAttribute withAttributeName(String attributeName)
The name of the attribute associated with the policy.

Returns a reference to this object so that method calls can be chained together.

Parameters:
attributeName - The name of the attribute associated with the policy.
Returns:
A reference to this updated object so that method calls can be chained together.

getAttributeValue

public String getAttributeValue()
The value of the attribute associated with the policy.

Returns:
The value of the attribute associated with the policy.

setAttributeValue

public void setAttributeValue(String attributeValue)
The value of the attribute associated with the policy.

Parameters:
attributeValue - The value of the attribute associated with the policy.

withAttributeValue

public PolicyAttribute withAttributeValue(String attributeValue)
The value of the attribute associated with the policy.

Returns a reference to this object so that method calls can be chained together.

Parameters:
attributeValue - The value of the attribute associated with the policy.
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.