/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides information about a phone number.See Also:
AWS
* API Reference
The carrier or service provider that the phone number is currently registered * with. In some countries and regions, this value may be the carrier or service * provider that the phone number was originally registered with.
*/ inline const Aws::String& GetCarrier() const{ return m_carrier; } /** *The carrier or service provider that the phone number is currently registered * with. In some countries and regions, this value may be the carrier or service * provider that the phone number was originally registered with.
*/ inline bool CarrierHasBeenSet() const { return m_carrierHasBeenSet; } /** *The carrier or service provider that the phone number is currently registered * with. In some countries and regions, this value may be the carrier or service * provider that the phone number was originally registered with.
*/ inline void SetCarrier(const Aws::String& value) { m_carrierHasBeenSet = true; m_carrier = value; } /** *The carrier or service provider that the phone number is currently registered * with. In some countries and regions, this value may be the carrier or service * provider that the phone number was originally registered with.
*/ inline void SetCarrier(Aws::String&& value) { m_carrierHasBeenSet = true; m_carrier = std::move(value); } /** *The carrier or service provider that the phone number is currently registered * with. In some countries and regions, this value may be the carrier or service * provider that the phone number was originally registered with.
*/ inline void SetCarrier(const char* value) { m_carrierHasBeenSet = true; m_carrier.assign(value); } /** *The carrier or service provider that the phone number is currently registered * with. In some countries and regions, this value may be the carrier or service * provider that the phone number was originally registered with.
*/ inline NumberValidateResponse& WithCarrier(const Aws::String& value) { SetCarrier(value); return *this;} /** *The carrier or service provider that the phone number is currently registered * with. In some countries and regions, this value may be the carrier or service * provider that the phone number was originally registered with.
*/ inline NumberValidateResponse& WithCarrier(Aws::String&& value) { SetCarrier(std::move(value)); return *this;} /** *The carrier or service provider that the phone number is currently registered * with. In some countries and regions, this value may be the carrier or service * provider that the phone number was originally registered with.
*/ inline NumberValidateResponse& WithCarrier(const char* value) { SetCarrier(value); return *this;} /** *The name of the city where the phone number was originally registered.
*/ inline const Aws::String& GetCity() const{ return m_city; } /** *The name of the city where the phone number was originally registered.
*/ inline bool CityHasBeenSet() const { return m_cityHasBeenSet; } /** *The name of the city where the phone number was originally registered.
*/ inline void SetCity(const Aws::String& value) { m_cityHasBeenSet = true; m_city = value; } /** *The name of the city where the phone number was originally registered.
*/ inline void SetCity(Aws::String&& value) { m_cityHasBeenSet = true; m_city = std::move(value); } /** *The name of the city where the phone number was originally registered.
*/ inline void SetCity(const char* value) { m_cityHasBeenSet = true; m_city.assign(value); } /** *The name of the city where the phone number was originally registered.
*/ inline NumberValidateResponse& WithCity(const Aws::String& value) { SetCity(value); return *this;} /** *The name of the city where the phone number was originally registered.
*/ inline NumberValidateResponse& WithCity(Aws::String&& value) { SetCity(std::move(value)); return *this;} /** *The name of the city where the phone number was originally registered.
*/ inline NumberValidateResponse& WithCity(const char* value) { SetCity(value); return *this;} /** *The cleansed phone number, in E.164 format, for the location where the phone * number was originally registered.
*/ inline const Aws::String& GetCleansedPhoneNumberE164() const{ return m_cleansedPhoneNumberE164; } /** *The cleansed phone number, in E.164 format, for the location where the phone * number was originally registered.
*/ inline bool CleansedPhoneNumberE164HasBeenSet() const { return m_cleansedPhoneNumberE164HasBeenSet; } /** *The cleansed phone number, in E.164 format, for the location where the phone * number was originally registered.
*/ inline void SetCleansedPhoneNumberE164(const Aws::String& value) { m_cleansedPhoneNumberE164HasBeenSet = true; m_cleansedPhoneNumberE164 = value; } /** *The cleansed phone number, in E.164 format, for the location where the phone * number was originally registered.
*/ inline void SetCleansedPhoneNumberE164(Aws::String&& value) { m_cleansedPhoneNumberE164HasBeenSet = true; m_cleansedPhoneNumberE164 = std::move(value); } /** *The cleansed phone number, in E.164 format, for the location where the phone * number was originally registered.
*/ inline void SetCleansedPhoneNumberE164(const char* value) { m_cleansedPhoneNumberE164HasBeenSet = true; m_cleansedPhoneNumberE164.assign(value); } /** *The cleansed phone number, in E.164 format, for the location where the phone * number was originally registered.
*/ inline NumberValidateResponse& WithCleansedPhoneNumberE164(const Aws::String& value) { SetCleansedPhoneNumberE164(value); return *this;} /** *The cleansed phone number, in E.164 format, for the location where the phone * number was originally registered.
*/ inline NumberValidateResponse& WithCleansedPhoneNumberE164(Aws::String&& value) { SetCleansedPhoneNumberE164(std::move(value)); return *this;} /** *The cleansed phone number, in E.164 format, for the location where the phone * number was originally registered.
*/ inline NumberValidateResponse& WithCleansedPhoneNumberE164(const char* value) { SetCleansedPhoneNumberE164(value); return *this;} /** *The cleansed phone number, in the format for the location where the phone * number was originally registered.
*/ inline const Aws::String& GetCleansedPhoneNumberNational() const{ return m_cleansedPhoneNumberNational; } /** *The cleansed phone number, in the format for the location where the phone * number was originally registered.
*/ inline bool CleansedPhoneNumberNationalHasBeenSet() const { return m_cleansedPhoneNumberNationalHasBeenSet; } /** *The cleansed phone number, in the format for the location where the phone * number was originally registered.
*/ inline void SetCleansedPhoneNumberNational(const Aws::String& value) { m_cleansedPhoneNumberNationalHasBeenSet = true; m_cleansedPhoneNumberNational = value; } /** *The cleansed phone number, in the format for the location where the phone * number was originally registered.
*/ inline void SetCleansedPhoneNumberNational(Aws::String&& value) { m_cleansedPhoneNumberNationalHasBeenSet = true; m_cleansedPhoneNumberNational = std::move(value); } /** *The cleansed phone number, in the format for the location where the phone * number was originally registered.
*/ inline void SetCleansedPhoneNumberNational(const char* value) { m_cleansedPhoneNumberNationalHasBeenSet = true; m_cleansedPhoneNumberNational.assign(value); } /** *The cleansed phone number, in the format for the location where the phone * number was originally registered.
*/ inline NumberValidateResponse& WithCleansedPhoneNumberNational(const Aws::String& value) { SetCleansedPhoneNumberNational(value); return *this;} /** *The cleansed phone number, in the format for the location where the phone * number was originally registered.
*/ inline NumberValidateResponse& WithCleansedPhoneNumberNational(Aws::String&& value) { SetCleansedPhoneNumberNational(std::move(value)); return *this;} /** *The cleansed phone number, in the format for the location where the phone * number was originally registered.
*/ inline NumberValidateResponse& WithCleansedPhoneNumberNational(const char* value) { SetCleansedPhoneNumberNational(value); return *this;} /** *The name of the country or region where the phone number was originally * registered.
*/ inline const Aws::String& GetCountry() const{ return m_country; } /** *The name of the country or region where the phone number was originally * registered.
*/ inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; } /** *The name of the country or region where the phone number was originally * registered.
*/ inline void SetCountry(const Aws::String& value) { m_countryHasBeenSet = true; m_country = value; } /** *The name of the country or region where the phone number was originally * registered.
*/ inline void SetCountry(Aws::String&& value) { m_countryHasBeenSet = true; m_country = std::move(value); } /** *The name of the country or region where the phone number was originally * registered.
*/ inline void SetCountry(const char* value) { m_countryHasBeenSet = true; m_country.assign(value); } /** *The name of the country or region where the phone number was originally * registered.
*/ inline NumberValidateResponse& WithCountry(const Aws::String& value) { SetCountry(value); return *this;} /** *The name of the country or region where the phone number was originally * registered.
*/ inline NumberValidateResponse& WithCountry(Aws::String&& value) { SetCountry(std::move(value)); return *this;} /** *The name of the country or region where the phone number was originally * registered.
*/ inline NumberValidateResponse& WithCountry(const char* value) { SetCountry(value); return *this;} /** *The two-character code, in ISO 3166-1 alpha-2 format, for the country or * region where the phone number was originally registered.
*/ inline const Aws::String& GetCountryCodeIso2() const{ return m_countryCodeIso2; } /** *The two-character code, in ISO 3166-1 alpha-2 format, for the country or * region where the phone number was originally registered.
*/ inline bool CountryCodeIso2HasBeenSet() const { return m_countryCodeIso2HasBeenSet; } /** *The two-character code, in ISO 3166-1 alpha-2 format, for the country or * region where the phone number was originally registered.
*/ inline void SetCountryCodeIso2(const Aws::String& value) { m_countryCodeIso2HasBeenSet = true; m_countryCodeIso2 = value; } /** *The two-character code, in ISO 3166-1 alpha-2 format, for the country or * region where the phone number was originally registered.
*/ inline void SetCountryCodeIso2(Aws::String&& value) { m_countryCodeIso2HasBeenSet = true; m_countryCodeIso2 = std::move(value); } /** *The two-character code, in ISO 3166-1 alpha-2 format, for the country or * region where the phone number was originally registered.
*/ inline void SetCountryCodeIso2(const char* value) { m_countryCodeIso2HasBeenSet = true; m_countryCodeIso2.assign(value); } /** *The two-character code, in ISO 3166-1 alpha-2 format, for the country or * region where the phone number was originally registered.
*/ inline NumberValidateResponse& WithCountryCodeIso2(const Aws::String& value) { SetCountryCodeIso2(value); return *this;} /** *The two-character code, in ISO 3166-1 alpha-2 format, for the country or * region where the phone number was originally registered.
*/ inline NumberValidateResponse& WithCountryCodeIso2(Aws::String&& value) { SetCountryCodeIso2(std::move(value)); return *this;} /** *The two-character code, in ISO 3166-1 alpha-2 format, for the country or * region where the phone number was originally registered.
*/ inline NumberValidateResponse& WithCountryCodeIso2(const char* value) { SetCountryCodeIso2(value); return *this;} /** *The numeric code for the country or region where the phone number was * originally registered.
*/ inline const Aws::String& GetCountryCodeNumeric() const{ return m_countryCodeNumeric; } /** *The numeric code for the country or region where the phone number was * originally registered.
*/ inline bool CountryCodeNumericHasBeenSet() const { return m_countryCodeNumericHasBeenSet; } /** *The numeric code for the country or region where the phone number was * originally registered.
*/ inline void SetCountryCodeNumeric(const Aws::String& value) { m_countryCodeNumericHasBeenSet = true; m_countryCodeNumeric = value; } /** *The numeric code for the country or region where the phone number was * originally registered.
*/ inline void SetCountryCodeNumeric(Aws::String&& value) { m_countryCodeNumericHasBeenSet = true; m_countryCodeNumeric = std::move(value); } /** *The numeric code for the country or region where the phone number was * originally registered.
*/ inline void SetCountryCodeNumeric(const char* value) { m_countryCodeNumericHasBeenSet = true; m_countryCodeNumeric.assign(value); } /** *The numeric code for the country or region where the phone number was * originally registered.
*/ inline NumberValidateResponse& WithCountryCodeNumeric(const Aws::String& value) { SetCountryCodeNumeric(value); return *this;} /** *The numeric code for the country or region where the phone number was * originally registered.
*/ inline NumberValidateResponse& WithCountryCodeNumeric(Aws::String&& value) { SetCountryCodeNumeric(std::move(value)); return *this;} /** *The numeric code for the country or region where the phone number was * originally registered.
*/ inline NumberValidateResponse& WithCountryCodeNumeric(const char* value) { SetCountryCodeNumeric(value); return *this;} /** *The name of the county where the phone number was originally registered.
*/ inline const Aws::String& GetCounty() const{ return m_county; } /** *The name of the county where the phone number was originally registered.
*/ inline bool CountyHasBeenSet() const { return m_countyHasBeenSet; } /** *The name of the county where the phone number was originally registered.
*/ inline void SetCounty(const Aws::String& value) { m_countyHasBeenSet = true; m_county = value; } /** *The name of the county where the phone number was originally registered.
*/ inline void SetCounty(Aws::String&& value) { m_countyHasBeenSet = true; m_county = std::move(value); } /** *The name of the county where the phone number was originally registered.
*/ inline void SetCounty(const char* value) { m_countyHasBeenSet = true; m_county.assign(value); } /** *The name of the county where the phone number was originally registered.
*/ inline NumberValidateResponse& WithCounty(const Aws::String& value) { SetCounty(value); return *this;} /** *The name of the county where the phone number was originally registered.
*/ inline NumberValidateResponse& WithCounty(Aws::String&& value) { SetCounty(std::move(value)); return *this;} /** *The name of the county where the phone number was originally registered.
*/ inline NumberValidateResponse& WithCounty(const char* value) { SetCounty(value); return *this;} /** *The two-character code, in ISO 3166-1 alpha-2 format, that was sent in the * request body.
*/ inline const Aws::String& GetOriginalCountryCodeIso2() const{ return m_originalCountryCodeIso2; } /** *The two-character code, in ISO 3166-1 alpha-2 format, that was sent in the * request body.
*/ inline bool OriginalCountryCodeIso2HasBeenSet() const { return m_originalCountryCodeIso2HasBeenSet; } /** *The two-character code, in ISO 3166-1 alpha-2 format, that was sent in the * request body.
*/ inline void SetOriginalCountryCodeIso2(const Aws::String& value) { m_originalCountryCodeIso2HasBeenSet = true; m_originalCountryCodeIso2 = value; } /** *The two-character code, in ISO 3166-1 alpha-2 format, that was sent in the * request body.
*/ inline void SetOriginalCountryCodeIso2(Aws::String&& value) { m_originalCountryCodeIso2HasBeenSet = true; m_originalCountryCodeIso2 = std::move(value); } /** *The two-character code, in ISO 3166-1 alpha-2 format, that was sent in the * request body.
*/ inline void SetOriginalCountryCodeIso2(const char* value) { m_originalCountryCodeIso2HasBeenSet = true; m_originalCountryCodeIso2.assign(value); } /** *The two-character code, in ISO 3166-1 alpha-2 format, that was sent in the * request body.
*/ inline NumberValidateResponse& WithOriginalCountryCodeIso2(const Aws::String& value) { SetOriginalCountryCodeIso2(value); return *this;} /** *The two-character code, in ISO 3166-1 alpha-2 format, that was sent in the * request body.
*/ inline NumberValidateResponse& WithOriginalCountryCodeIso2(Aws::String&& value) { SetOriginalCountryCodeIso2(std::move(value)); return *this;} /** *The two-character code, in ISO 3166-1 alpha-2 format, that was sent in the * request body.
*/ inline NumberValidateResponse& WithOriginalCountryCodeIso2(const char* value) { SetOriginalCountryCodeIso2(value); return *this;} /** *The phone number that was sent in the request body.
*/ inline const Aws::String& GetOriginalPhoneNumber() const{ return m_originalPhoneNumber; } /** *The phone number that was sent in the request body.
*/ inline bool OriginalPhoneNumberHasBeenSet() const { return m_originalPhoneNumberHasBeenSet; } /** *The phone number that was sent in the request body.
*/ inline void SetOriginalPhoneNumber(const Aws::String& value) { m_originalPhoneNumberHasBeenSet = true; m_originalPhoneNumber = value; } /** *The phone number that was sent in the request body.
*/ inline void SetOriginalPhoneNumber(Aws::String&& value) { m_originalPhoneNumberHasBeenSet = true; m_originalPhoneNumber = std::move(value); } /** *The phone number that was sent in the request body.
*/ inline void SetOriginalPhoneNumber(const char* value) { m_originalPhoneNumberHasBeenSet = true; m_originalPhoneNumber.assign(value); } /** *The phone number that was sent in the request body.
*/ inline NumberValidateResponse& WithOriginalPhoneNumber(const Aws::String& value) { SetOriginalPhoneNumber(value); return *this;} /** *The phone number that was sent in the request body.
*/ inline NumberValidateResponse& WithOriginalPhoneNumber(Aws::String&& value) { SetOriginalPhoneNumber(std::move(value)); return *this;} /** *The phone number that was sent in the request body.
*/ inline NumberValidateResponse& WithOriginalPhoneNumber(const char* value) { SetOriginalPhoneNumber(value); return *this;} /** *The description of the phone type. Valid values are: MOBILE, LANDLINE, VOIP, * INVALID, PREPAID, and OTHER.
*/ inline const Aws::String& GetPhoneType() const{ return m_phoneType; } /** *The description of the phone type. Valid values are: MOBILE, LANDLINE, VOIP, * INVALID, PREPAID, and OTHER.
*/ inline bool PhoneTypeHasBeenSet() const { return m_phoneTypeHasBeenSet; } /** *The description of the phone type. Valid values are: MOBILE, LANDLINE, VOIP, * INVALID, PREPAID, and OTHER.
*/ inline void SetPhoneType(const Aws::String& value) { m_phoneTypeHasBeenSet = true; m_phoneType = value; } /** *The description of the phone type. Valid values are: MOBILE, LANDLINE, VOIP, * INVALID, PREPAID, and OTHER.
*/ inline void SetPhoneType(Aws::String&& value) { m_phoneTypeHasBeenSet = true; m_phoneType = std::move(value); } /** *The description of the phone type. Valid values are: MOBILE, LANDLINE, VOIP, * INVALID, PREPAID, and OTHER.
*/ inline void SetPhoneType(const char* value) { m_phoneTypeHasBeenSet = true; m_phoneType.assign(value); } /** *The description of the phone type. Valid values are: MOBILE, LANDLINE, VOIP, * INVALID, PREPAID, and OTHER.
*/ inline NumberValidateResponse& WithPhoneType(const Aws::String& value) { SetPhoneType(value); return *this;} /** *The description of the phone type. Valid values are: MOBILE, LANDLINE, VOIP, * INVALID, PREPAID, and OTHER.
*/ inline NumberValidateResponse& WithPhoneType(Aws::String&& value) { SetPhoneType(std::move(value)); return *this;} /** *The description of the phone type. Valid values are: MOBILE, LANDLINE, VOIP, * INVALID, PREPAID, and OTHER.
*/ inline NumberValidateResponse& WithPhoneType(const char* value) { SetPhoneType(value); return *this;} /** *The phone type, represented by an integer. Valid values are: 0 (mobile), 1 * (landline), 2 (VoIP), 3 (invalid), 4 (other), and 5 (prepaid).
*/ inline int GetPhoneTypeCode() const{ return m_phoneTypeCode; } /** *The phone type, represented by an integer. Valid values are: 0 (mobile), 1 * (landline), 2 (VoIP), 3 (invalid), 4 (other), and 5 (prepaid).
*/ inline bool PhoneTypeCodeHasBeenSet() const { return m_phoneTypeCodeHasBeenSet; } /** *The phone type, represented by an integer. Valid values are: 0 (mobile), 1 * (landline), 2 (VoIP), 3 (invalid), 4 (other), and 5 (prepaid).
*/ inline void SetPhoneTypeCode(int value) { m_phoneTypeCodeHasBeenSet = true; m_phoneTypeCode = value; } /** *The phone type, represented by an integer. Valid values are: 0 (mobile), 1 * (landline), 2 (VoIP), 3 (invalid), 4 (other), and 5 (prepaid).
*/ inline NumberValidateResponse& WithPhoneTypeCode(int value) { SetPhoneTypeCode(value); return *this;} /** *The time zone for the location where the phone number was originally * registered.
*/ inline const Aws::String& GetTimezone() const{ return m_timezone; } /** *The time zone for the location where the phone number was originally * registered.
*/ inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; } /** *The time zone for the location where the phone number was originally * registered.
*/ inline void SetTimezone(const Aws::String& value) { m_timezoneHasBeenSet = true; m_timezone = value; } /** *The time zone for the location where the phone number was originally * registered.
*/ inline void SetTimezone(Aws::String&& value) { m_timezoneHasBeenSet = true; m_timezone = std::move(value); } /** *The time zone for the location where the phone number was originally * registered.
*/ inline void SetTimezone(const char* value) { m_timezoneHasBeenSet = true; m_timezone.assign(value); } /** *The time zone for the location where the phone number was originally * registered.
*/ inline NumberValidateResponse& WithTimezone(const Aws::String& value) { SetTimezone(value); return *this;} /** *The time zone for the location where the phone number was originally * registered.
*/ inline NumberValidateResponse& WithTimezone(Aws::String&& value) { SetTimezone(std::move(value)); return *this;} /** *The time zone for the location where the phone number was originally * registered.
*/ inline NumberValidateResponse& WithTimezone(const char* value) { SetTimezone(value); return *this;} /** *The postal or ZIP code for the location where the phone number was originally * registered.
*/ inline const Aws::String& GetZipCode() const{ return m_zipCode; } /** *The postal or ZIP code for the location where the phone number was originally * registered.
*/ inline bool ZipCodeHasBeenSet() const { return m_zipCodeHasBeenSet; } /** *The postal or ZIP code for the location where the phone number was originally * registered.
*/ inline void SetZipCode(const Aws::String& value) { m_zipCodeHasBeenSet = true; m_zipCode = value; } /** *The postal or ZIP code for the location where the phone number was originally * registered.
*/ inline void SetZipCode(Aws::String&& value) { m_zipCodeHasBeenSet = true; m_zipCode = std::move(value); } /** *The postal or ZIP code for the location where the phone number was originally * registered.
*/ inline void SetZipCode(const char* value) { m_zipCodeHasBeenSet = true; m_zipCode.assign(value); } /** *The postal or ZIP code for the location where the phone number was originally * registered.
*/ inline NumberValidateResponse& WithZipCode(const Aws::String& value) { SetZipCode(value); return *this;} /** *The postal or ZIP code for the location where the phone number was originally * registered.
*/ inline NumberValidateResponse& WithZipCode(Aws::String&& value) { SetZipCode(std::move(value)); return *this;} /** *The postal or ZIP code for the location where the phone number was originally * registered.
*/ inline NumberValidateResponse& WithZipCode(const char* value) { SetZipCode(value); return *this;} private: Aws::String m_carrier; bool m_carrierHasBeenSet = false; Aws::String m_city; bool m_cityHasBeenSet = false; Aws::String m_cleansedPhoneNumberE164; bool m_cleansedPhoneNumberE164HasBeenSet = false; Aws::String m_cleansedPhoneNumberNational; bool m_cleansedPhoneNumberNationalHasBeenSet = false; Aws::String m_country; bool m_countryHasBeenSet = false; Aws::String m_countryCodeIso2; bool m_countryCodeIso2HasBeenSet = false; Aws::String m_countryCodeNumeric; bool m_countryCodeNumericHasBeenSet = false; Aws::String m_county; bool m_countyHasBeenSet = false; Aws::String m_originalCountryCodeIso2; bool m_originalCountryCodeIso2HasBeenSet = false; Aws::String m_originalPhoneNumber; bool m_originalPhoneNumberHasBeenSet = false; Aws::String m_phoneType; bool m_phoneTypeHasBeenSet = false; int m_phoneTypeCode; bool m_phoneTypeCodeHasBeenSet = false; Aws::String m_timezone; bool m_timezoneHasBeenSet = false; Aws::String m_zipCode; bool m_zipCodeHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws