@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Email extends Object implements Serializable, Cloneable, StructuredPojo
The email address associated with the user.
| Constructor and Description |
|---|
Email() |
| Modifier and Type | Method and Description |
|---|---|
Email |
clone() |
boolean |
equals(Object obj) |
Boolean |
getPrimary()
A Boolean value representing whether this is the primary email address for the associated resource.
|
String |
getType()
A string representing the type of address.
|
String |
getValue()
A string containing an email address.
|
int |
hashCode() |
Boolean |
isPrimary()
A Boolean value representing whether this is the primary email address for the associated resource.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setPrimary(Boolean primary)
A Boolean value representing whether this is the primary email address for the associated resource.
|
void |
setType(String type)
A string representing the type of address.
|
void |
setValue(String value)
A string containing an email address.
|
String |
toString()
Returns a string representation of this object.
|
Email |
withPrimary(Boolean primary)
A Boolean value representing whether this is the primary email address for the associated resource.
|
Email |
withType(String type)
A string representing the type of address.
|
Email |
withValue(String value)
A string containing an email address.
|
public void setValue(String value)
A string containing an email address. For example, "johndoe@amazon.com."
value - A string containing an email address. For example, "johndoe@amazon.com."public String getValue()
A string containing an email address. For example, "johndoe@amazon.com."
public Email withValue(String value)
A string containing an email address. For example, "johndoe@amazon.com."
value - A string containing an email address. For example, "johndoe@amazon.com."public void setType(String type)
A string representing the type of address. For example, "Work."
type - A string representing the type of address. For example, "Work."public String getType()
A string representing the type of address. For example, "Work."
public Email withType(String type)
A string representing the type of address. For example, "Work."
type - A string representing the type of address. For example, "Work."public void setPrimary(Boolean primary)
A Boolean value representing whether this is the primary email address for the associated resource.
primary - A Boolean value representing whether this is the primary email address for the associated resource.public Boolean getPrimary()
A Boolean value representing whether this is the primary email address for the associated resource.
public Email withPrimary(Boolean primary)
A Boolean value representing whether this is the primary email address for the associated resource.
primary - A Boolean value representing whether this is the primary email address for the associated resource.public Boolean isPrimary()
A Boolean value representing whether this is the primary email address for the associated resource.
public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.