@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PhoneNumberCountry extends Object implements Serializable, Cloneable, StructuredPojo
The phone number's country.
Constructor and Description |
---|
PhoneNumberCountry() |
Modifier and Type | Method and Description |
---|---|
PhoneNumberCountry |
clone() |
boolean |
equals(Object obj) |
String |
getCountryCode()
The phone number country code.
|
List<String> |
getSupportedPhoneNumberTypes()
The supported phone number types.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCountryCode(String countryCode)
The phone number country code.
|
void |
setSupportedPhoneNumberTypes(Collection<String> supportedPhoneNumberTypes)
The supported phone number types.
|
String |
toString()
Returns a string representation of this object.
|
PhoneNumberCountry |
withCountryCode(String countryCode)
The phone number country code.
|
PhoneNumberCountry |
withSupportedPhoneNumberTypes(Collection<String> supportedPhoneNumberTypes)
The supported phone number types.
|
PhoneNumberCountry |
withSupportedPhoneNumberTypes(PhoneNumberType... supportedPhoneNumberTypes)
The supported phone number types.
|
PhoneNumberCountry |
withSupportedPhoneNumberTypes(String... supportedPhoneNumberTypes)
The supported phone number types.
|
public void setCountryCode(String countryCode)
The phone number country code. Format: ISO 3166-1 alpha-2.
countryCode
- The phone number country code. Format: ISO 3166-1 alpha-2.public String getCountryCode()
The phone number country code. Format: ISO 3166-1 alpha-2.
public PhoneNumberCountry withCountryCode(String countryCode)
The phone number country code. Format: ISO 3166-1 alpha-2.
countryCode
- The phone number country code. Format: ISO 3166-1 alpha-2.public List<String> getSupportedPhoneNumberTypes()
The supported phone number types.
PhoneNumberType
public void setSupportedPhoneNumberTypes(Collection<String> supportedPhoneNumberTypes)
The supported phone number types.
supportedPhoneNumberTypes
- The supported phone number types.PhoneNumberType
public PhoneNumberCountry withSupportedPhoneNumberTypes(String... supportedPhoneNumberTypes)
The supported phone number types.
NOTE: This method appends the values to the existing list (if any). Use
setSupportedPhoneNumberTypes(java.util.Collection)
or
withSupportedPhoneNumberTypes(java.util.Collection)
if you want to override the existing values.
supportedPhoneNumberTypes
- The supported phone number types.PhoneNumberType
public PhoneNumberCountry withSupportedPhoneNumberTypes(Collection<String> supportedPhoneNumberTypes)
The supported phone number types.
supportedPhoneNumberTypes
- The supported phone number types.PhoneNumberType
public PhoneNumberCountry withSupportedPhoneNumberTypes(PhoneNumberType... supportedPhoneNumberTypes)
The supported phone number types.
supportedPhoneNumberTypes
- The supported phone number types.PhoneNumberType
public String toString()
toString
in class Object
Object.toString()
public PhoneNumberCountry clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.