public class CodeDeliveryDetailsType
extends java.lang.Object
implements java.io.Serializable
The delivery details for an email or SMS message that Amazon Cognito sent for authentication or verification.
| Constructor and Description |
|---|
CodeDeliveryDetailsType() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAttributeName()
The name of the attribute that Amazon Cognito verifies with the code.
|
java.lang.String |
getDeliveryMedium()
The method that Amazon Cognito used to send the code.
|
java.lang.String |
getDestination()
The email address or phone number destination where Amazon Cognito sent
the code.
|
int |
hashCode() |
void |
setAttributeName(java.lang.String attributeName)
The name of the attribute that Amazon Cognito verifies with the code.
|
void |
setDeliveryMedium(DeliveryMediumType deliveryMedium)
The method that Amazon Cognito used to send the code.
|
void |
setDeliveryMedium(java.lang.String deliveryMedium)
The method that Amazon Cognito used to send the code.
|
void |
setDestination(java.lang.String destination)
The email address or phone number destination where Amazon Cognito sent
the code.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CodeDeliveryDetailsType |
withAttributeName(java.lang.String attributeName)
The name of the attribute that Amazon Cognito verifies with the code.
|
CodeDeliveryDetailsType |
withDeliveryMedium(DeliveryMediumType deliveryMedium)
The method that Amazon Cognito used to send the code.
|
CodeDeliveryDetailsType |
withDeliveryMedium(java.lang.String deliveryMedium)
The method that Amazon Cognito used to send the code.
|
CodeDeliveryDetailsType |
withDestination(java.lang.String destination)
The email address or phone number destination where Amazon Cognito sent
the code.
|
public java.lang.String getDestination()
The email address or phone number destination where Amazon Cognito sent the code.
Constraints:
Length: 0 - 131072
The email address or phone number destination where Amazon Cognito sent the code.
public void setDestination(java.lang.String destination)
The email address or phone number destination where Amazon Cognito sent the code.
Constraints:
Length: 0 - 131072
destination - The email address or phone number destination where Amazon Cognito sent the code.
public CodeDeliveryDetailsType withDestination(java.lang.String destination)
The email address or phone number destination where Amazon Cognito sent the code.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 131072
destination - The email address or phone number destination where Amazon Cognito sent the code.
public java.lang.String getDeliveryMedium()
The method that Amazon Cognito used to send the code.
Constraints:
Allowed Values: SMS, EMAIL
The method that Amazon Cognito used to send the code.
DeliveryMediumTypepublic void setDeliveryMedium(java.lang.String deliveryMedium)
The method that Amazon Cognito used to send the code.
Constraints:
Allowed Values: SMS, EMAIL
deliveryMedium - The method that Amazon Cognito used to send the code.
DeliveryMediumTypepublic CodeDeliveryDetailsType withDeliveryMedium(java.lang.String deliveryMedium)
The method that Amazon Cognito used to send the code.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SMS, EMAIL
deliveryMedium - The method that Amazon Cognito used to send the code.
DeliveryMediumTypepublic void setDeliveryMedium(DeliveryMediumType deliveryMedium)
The method that Amazon Cognito used to send the code.
Constraints:
Allowed Values: SMS, EMAIL
deliveryMedium - The method that Amazon Cognito used to send the code.
DeliveryMediumTypepublic CodeDeliveryDetailsType withDeliveryMedium(DeliveryMediumType deliveryMedium)
The method that Amazon Cognito used to send the code.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SMS, EMAIL
deliveryMedium - The method that Amazon Cognito used to send the code.
DeliveryMediumTypepublic java.lang.String getAttributeName()
The name of the attribute that Amazon Cognito verifies with the code.
Constraints:
Length: 1 - 32
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
The name of the attribute that Amazon Cognito verifies with the code.
public void setAttributeName(java.lang.String attributeName)
The name of the attribute that Amazon Cognito verifies with the code.
Constraints:
Length: 1 - 32
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
attributeName - The name of the attribute that Amazon Cognito verifies with the code.
public CodeDeliveryDetailsType withAttributeName(java.lang.String attributeName)
The name of the attribute that Amazon Cognito verifies with the code.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 32
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
attributeName - The name of the attribute that Amazon Cognito verifies with the code.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object