Package com.amazonaws.services.ec2.model
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AccountAttribute()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccountAttributeclone()booleanequals(Object obj)StringgetAttributeName()The name of the account attribute.List<AccountAttributeValue>getAttributeValues()One or more values for the account attribute.inthashCode()voidsetAttributeName(String attributeName)The name of the account attribute.voidsetAttributeValues(Collection<AccountAttributeValue> attributeValues)One or more values for the account attribute.StringtoString()Returns a string representation of this object; useful for testing and debugging.AccountAttributewithAttributeName(String attributeName)The name of the account attribute.AccountAttributewithAttributeValues(AccountAttributeValue... attributeValues)One or more values for the account attribute.AccountAttributewithAttributeValues(Collection<AccountAttributeValue> attributeValues)One or more values for the account attribute.
-
-
-
Method Detail
-
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)orwithAttributeValues(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public AccountAttribute clone()
-
-