public class AccountAttribute
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes an account attribute.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
attributeName
The name of the account attribute.
|
private SdkInternalList<AccountAttributeValue> |
attributeValues
One or more values for the account attribute.
|
Constructor and Description |
---|
AccountAttribute() |
Modifier and Type | Method and Description |
---|---|
AccountAttribute |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAttributeName()
The name of the account attribute.
|
java.util.List<AccountAttributeValue> |
getAttributeValues()
One or more values for the account attribute.
|
int |
hashCode() |
void |
setAttributeName(java.lang.String attributeName)
The name of the account attribute.
|
void |
setAttributeValues(java.util.Collection<AccountAttributeValue> attributeValues)
One or more values for the account attribute.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AccountAttribute |
withAttributeName(java.lang.String attributeName)
The name of the account attribute.
|
AccountAttribute |
withAttributeValues(AccountAttributeValue... attributeValues)
One or more values for the account attribute.
|
AccountAttribute |
withAttributeValues(java.util.Collection<AccountAttributeValue> attributeValues)
One or more values for the account attribute.
|
private java.lang.String attributeName
The name of the account attribute.
private SdkInternalList<AccountAttributeValue> attributeValues
One or more values for the account attribute.
public void setAttributeName(java.lang.String attributeName)
The name of the account attribute.
attributeName
- The name of the account attribute.public java.lang.String getAttributeName()
The name of the account attribute.
public AccountAttribute withAttributeName(java.lang.String attributeName)
The name of the account attribute.
attributeName
- The name of the account attribute.public java.util.List<AccountAttributeValue> getAttributeValues()
One or more values for the account attribute.
public void setAttributeValues(java.util.Collection<AccountAttributeValue> attributeValues)
One or more values for the account attribute.
attributeValues
- One or more values for the account attribute.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.
attributeValues
- One or more values for the account attribute.public AccountAttribute withAttributeValues(java.util.Collection<AccountAttributeValue> attributeValues)
One or more values for the account attribute.
attributeValues
- One or more values for the account attribute.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AccountAttribute clone()
clone
in class java.lang.Object