/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ChimeSDKVoice { namespace Model { /** *

The phone number's country.

See Also:

AWS * API Reference

*/ class PhoneNumberCountry { public: AWS_CHIMESDKVOICE_API PhoneNumberCountry(); AWS_CHIMESDKVOICE_API PhoneNumberCountry(Aws::Utils::Json::JsonView jsonValue); AWS_CHIMESDKVOICE_API PhoneNumberCountry& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CHIMESDKVOICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The phone number country code. Format: ISO 3166-1 alpha-2.

*/ inline const Aws::String& GetCountryCode() const{ return m_countryCode; } /** *

The phone number country code. Format: ISO 3166-1 alpha-2.

*/ inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; } /** *

The phone number country code. Format: ISO 3166-1 alpha-2.

*/ inline void SetCountryCode(const Aws::String& value) { m_countryCodeHasBeenSet = true; m_countryCode = value; } /** *

The phone number country code. Format: ISO 3166-1 alpha-2.

*/ inline void SetCountryCode(Aws::String&& value) { m_countryCodeHasBeenSet = true; m_countryCode = std::move(value); } /** *

The phone number country code. Format: ISO 3166-1 alpha-2.

*/ inline void SetCountryCode(const char* value) { m_countryCodeHasBeenSet = true; m_countryCode.assign(value); } /** *

The phone number country code. Format: ISO 3166-1 alpha-2.

*/ inline PhoneNumberCountry& WithCountryCode(const Aws::String& value) { SetCountryCode(value); return *this;} /** *

The phone number country code. Format: ISO 3166-1 alpha-2.

*/ inline PhoneNumberCountry& WithCountryCode(Aws::String&& value) { SetCountryCode(std::move(value)); return *this;} /** *

The phone number country code. Format: ISO 3166-1 alpha-2.

*/ inline PhoneNumberCountry& WithCountryCode(const char* value) { SetCountryCode(value); return *this;} /** *

The supported phone number types.

*/ inline const Aws::Vector& GetSupportedPhoneNumberTypes() const{ return m_supportedPhoneNumberTypes; } /** *

The supported phone number types.

*/ inline bool SupportedPhoneNumberTypesHasBeenSet() const { return m_supportedPhoneNumberTypesHasBeenSet; } /** *

The supported phone number types.

*/ inline void SetSupportedPhoneNumberTypes(const Aws::Vector& value) { m_supportedPhoneNumberTypesHasBeenSet = true; m_supportedPhoneNumberTypes = value; } /** *

The supported phone number types.

*/ inline void SetSupportedPhoneNumberTypes(Aws::Vector&& value) { m_supportedPhoneNumberTypesHasBeenSet = true; m_supportedPhoneNumberTypes = std::move(value); } /** *

The supported phone number types.

*/ inline PhoneNumberCountry& WithSupportedPhoneNumberTypes(const Aws::Vector& value) { SetSupportedPhoneNumberTypes(value); return *this;} /** *

The supported phone number types.

*/ inline PhoneNumberCountry& WithSupportedPhoneNumberTypes(Aws::Vector&& value) { SetSupportedPhoneNumberTypes(std::move(value)); return *this;} /** *

The supported phone number types.

*/ inline PhoneNumberCountry& AddSupportedPhoneNumberTypes(const PhoneNumberType& value) { m_supportedPhoneNumberTypesHasBeenSet = true; m_supportedPhoneNumberTypes.push_back(value); return *this; } /** *

The supported phone number types.

*/ inline PhoneNumberCountry& AddSupportedPhoneNumberTypes(PhoneNumberType&& value) { m_supportedPhoneNumberTypesHasBeenSet = true; m_supportedPhoneNumberTypes.push_back(std::move(value)); return *this; } private: Aws::String m_countryCode; bool m_countryCodeHasBeenSet = false; Aws::Vector m_supportedPhoneNumberTypes; bool m_supportedPhoneNumberTypesHasBeenSet = false; }; } // namespace Model } // namespace ChimeSDKVoice } // namespace Aws