Class AccountAttribute

java.lang.Object
com.amazonaws.services.ec2.model.AccountAttribute
All Implemented Interfaces:
Serializable, Cloneable

public class AccountAttribute extends Object implements Serializable, Cloneable

Describes an account attribute.

See Also:
  • Constructor Details

    • AccountAttribute

      public AccountAttribute()
  • Method Details

    • setAttributeName

      public void setAttributeName(String attributeName)

      The name of the account attribute.

      Parameters:
      attributeName - The name of the account attribute.
    • getAttributeName

      public String getAttributeName()

      The name of the account attribute.

      Returns:
      The name of the account attribute.
    • withAttributeName

      public AccountAttribute withAttributeName(String attributeName)

      The name of the account attribute.

      Parameters:
      attributeName - The name of the account attribute.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getAttributeValues

      public List<AccountAttributeValue> getAttributeValues()

      One or more values for the account attribute.

      Returns:
      One or more values for the account attribute.
    • setAttributeValues

      public void setAttributeValues(Collection<AccountAttributeValue> attributeValues)

      One or more values for the account attribute.

      Parameters:
      attributeValues - One or more values for the account attribute.
    • withAttributeValues

      public AccountAttribute withAttributeValues(AccountAttributeValue... attributeValues)

      One or more values for the account attribute.

      NOTE: This method appends the values to the existing list (if any). Use setAttributeValues(java.util.Collection) or withAttributeValues(java.util.Collection) if you want to override the existing values.

      Parameters:
      attributeValues - One or more values for the account attribute.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withAttributeValues

      public AccountAttribute withAttributeValues(Collection<AccountAttributeValue> attributeValues)

      One or more values for the account attribute.

      Parameters:
      attributeValues - One or more values for the account 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public AccountAttribute clone()
      Overrides:
      clone in class Object