public class AccountAttribute extends Object implements Serializable, Cloneable
Describes an account attribute.
Constructor and Description |
---|
AccountAttribute() |
Modifier and Type | Method and Description |
---|---|
AccountAttribute |
clone() |
boolean |
equals(Object obj) |
String |
getAttributeName()
The name of the account attribute.
|
List<AccountAttributeValue> |
getAttributeValues()
One or more values for the account attribute.
|
int |
hashCode() |
void |
setAttributeName(String attributeName)
The name of the account attribute.
|
void |
setAttributeValues(Collection<AccountAttributeValue> attributeValues)
One or more values for the account attribute.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AccountAttribute |
withAttributeName(String attributeName)
The name of the account attribute.
|
AccountAttribute |
withAttributeValues(AccountAttributeValue... attributeValues)
One or more values for the account attribute.
|
AccountAttribute |
withAttributeValues(Collection<AccountAttributeValue> attributeValues)
One or more values for the account attribute.
|
public String getAttributeName()
public void setAttributeName(String attributeName)
attributeName
- The name of the account attribute.public AccountAttribute withAttributeName(String attributeName)
Returns a reference to this object so that method calls can be chained together.
attributeName
- The name of the account attribute.public List<AccountAttributeValue> getAttributeValues()
public void setAttributeValues(Collection<AccountAttributeValue> attributeValues)
attributeValues
- One or more values for the account attribute.public AccountAttribute withAttributeValues(AccountAttributeValue... attributeValues)
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.
Returns a reference to this object so that method calls can be chained together.
attributeValues
- One or more values for the account attribute.public AccountAttribute withAttributeValues(Collection<AccountAttributeValue> attributeValues)
Returns a reference to this object so that method calls can be chained together.
attributeValues
- One or more values for the account attribute.public String toString()
toString
in class Object
Object.toString()
public AccountAttribute clone()
Copyright © 2015. All rights reserved.