@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NumberValidateRequest extends Object implements Serializable, Cloneable, StructuredPojo
Specifies a phone number to validate and retrieve information about.
Constructor and Description |
---|
NumberValidateRequest() |
Modifier and Type | Method and Description |
---|---|
NumberValidateRequest |
clone() |
boolean |
equals(Object obj) |
String |
getIsoCountryCode()
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the phone number was
originally registered.
|
String |
getPhoneNumber()
The phone number to retrieve information about.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setIsoCountryCode(String isoCountryCode)
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the phone number was
originally registered.
|
void |
setPhoneNumber(String phoneNumber)
The phone number to retrieve information about.
|
String |
toString()
Returns a string representation of this object.
|
NumberValidateRequest |
withIsoCountryCode(String isoCountryCode)
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the phone number was
originally registered.
|
NumberValidateRequest |
withPhoneNumber(String phoneNumber)
The phone number to retrieve information about.
|
public void setIsoCountryCode(String isoCountryCode)
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the phone number was originally registered.
isoCountryCode
- The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the phone number was
originally registered.public String getIsoCountryCode()
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the phone number was originally registered.
public NumberValidateRequest withIsoCountryCode(String isoCountryCode)
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the phone number was originally registered.
isoCountryCode
- The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the phone number was
originally registered.public void setPhoneNumber(String phoneNumber)
The phone number to retrieve information about. The phone number that you provide should include a valid numeric country code. Otherwise, the operation might result in an error.
phoneNumber
- The phone number to retrieve information about. The phone number that you provide should include a valid
numeric country code. Otherwise, the operation might result in an error.public String getPhoneNumber()
The phone number to retrieve information about. The phone number that you provide should include a valid numeric country code. Otherwise, the operation might result in an error.
public NumberValidateRequest withPhoneNumber(String phoneNumber)
The phone number to retrieve information about. The phone number that you provide should include a valid numeric country code. Otherwise, the operation might result in an error.
phoneNumber
- The phone number to retrieve information about. The phone number that you provide should include a valid
numeric country code. Otherwise, the operation might result in an error.public String toString()
toString
in class Object
Object.toString()
public NumberValidateRequest clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2024. All rights reserved.