/** * 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 Connect { namespace Model { /** *

Information about available phone numbers.

See Also:

AWS * API Reference

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

The phone number. Phone numbers are formatted [+] [country code] * [subscriber number including area code].

*/ inline const Aws::String& GetPhoneNumber() const{ return m_phoneNumber; } /** *

The phone number. Phone numbers are formatted [+] [country code] * [subscriber number including area code].

*/ inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; } /** *

The phone number. Phone numbers are formatted [+] [country code] * [subscriber number including area code].

*/ inline void SetPhoneNumber(const Aws::String& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = value; } /** *

The phone number. Phone numbers are formatted [+] [country code] * [subscriber number including area code].

*/ inline void SetPhoneNumber(Aws::String&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::move(value); } /** *

The phone number. Phone numbers are formatted [+] [country code] * [subscriber number including area code].

*/ inline void SetPhoneNumber(const char* value) { m_phoneNumberHasBeenSet = true; m_phoneNumber.assign(value); } /** *

The phone number. Phone numbers are formatted [+] [country code] * [subscriber number including area code].

*/ inline AvailableNumberSummary& WithPhoneNumber(const Aws::String& value) { SetPhoneNumber(value); return *this;} /** *

The phone number. Phone numbers are formatted [+] [country code] * [subscriber number including area code].

*/ inline AvailableNumberSummary& WithPhoneNumber(Aws::String&& value) { SetPhoneNumber(std::move(value)); return *this;} /** *

The phone number. Phone numbers are formatted [+] [country code] * [subscriber number including area code].

*/ inline AvailableNumberSummary& WithPhoneNumber(const char* value) { SetPhoneNumber(value); return *this;} /** *

The ISO country code.

*/ inline const PhoneNumberCountryCode& GetPhoneNumberCountryCode() const{ return m_phoneNumberCountryCode; } /** *

The ISO country code.

*/ inline bool PhoneNumberCountryCodeHasBeenSet() const { return m_phoneNumberCountryCodeHasBeenSet; } /** *

The ISO country code.

*/ inline void SetPhoneNumberCountryCode(const PhoneNumberCountryCode& value) { m_phoneNumberCountryCodeHasBeenSet = true; m_phoneNumberCountryCode = value; } /** *

The ISO country code.

*/ inline void SetPhoneNumberCountryCode(PhoneNumberCountryCode&& value) { m_phoneNumberCountryCodeHasBeenSet = true; m_phoneNumberCountryCode = std::move(value); } /** *

The ISO country code.

*/ inline AvailableNumberSummary& WithPhoneNumberCountryCode(const PhoneNumberCountryCode& value) { SetPhoneNumberCountryCode(value); return *this;} /** *

The ISO country code.

*/ inline AvailableNumberSummary& WithPhoneNumberCountryCode(PhoneNumberCountryCode&& value) { SetPhoneNumberCountryCode(std::move(value)); return *this;} /** *

The type of phone number.

*/ inline const PhoneNumberType& GetPhoneNumberType() const{ return m_phoneNumberType; } /** *

The type of phone number.

*/ inline bool PhoneNumberTypeHasBeenSet() const { return m_phoneNumberTypeHasBeenSet; } /** *

The type of phone number.

*/ inline void SetPhoneNumberType(const PhoneNumberType& value) { m_phoneNumberTypeHasBeenSet = true; m_phoneNumberType = value; } /** *

The type of phone number.

*/ inline void SetPhoneNumberType(PhoneNumberType&& value) { m_phoneNumberTypeHasBeenSet = true; m_phoneNumberType = std::move(value); } /** *

The type of phone number.

*/ inline AvailableNumberSummary& WithPhoneNumberType(const PhoneNumberType& value) { SetPhoneNumberType(value); return *this;} /** *

The type of phone number.

*/ inline AvailableNumberSummary& WithPhoneNumberType(PhoneNumberType&& value) { SetPhoneNumberType(std::move(value)); return *this;} private: Aws::String m_phoneNumber; bool m_phoneNumberHasBeenSet = false; PhoneNumberCountryCode m_phoneNumberCountryCode; bool m_phoneNumberCountryCodeHasBeenSet = false; PhoneNumberType m_phoneNumberType; bool m_phoneNumberTypeHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws