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

A phone number used for Amazon Chime Business Calling or an Amazon Chime * Voice Connector.

See Also:

AWS * API Reference

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

The phone number ID.

*/ inline const Aws::String& GetPhoneNumberId() const{ return m_phoneNumberId; } /** *

The phone number ID.

*/ inline bool PhoneNumberIdHasBeenSet() const { return m_phoneNumberIdHasBeenSet; } /** *

The phone number ID.

*/ inline void SetPhoneNumberId(const Aws::String& value) { m_phoneNumberIdHasBeenSet = true; m_phoneNumberId = value; } /** *

The phone number ID.

*/ inline void SetPhoneNumberId(Aws::String&& value) { m_phoneNumberIdHasBeenSet = true; m_phoneNumberId = std::move(value); } /** *

The phone number ID.

*/ inline void SetPhoneNumberId(const char* value) { m_phoneNumberIdHasBeenSet = true; m_phoneNumberId.assign(value); } /** *

The phone number ID.

*/ inline PhoneNumber& WithPhoneNumberId(const Aws::String& value) { SetPhoneNumberId(value); return *this;} /** *

The phone number ID.

*/ inline PhoneNumber& WithPhoneNumberId(Aws::String&& value) { SetPhoneNumberId(std::move(value)); return *this;} /** *

The phone number ID.

*/ inline PhoneNumber& WithPhoneNumberId(const char* value) { SetPhoneNumberId(value); return *this;} /** *

The phone number, in E.164 format.

*/ inline const Aws::String& GetE164PhoneNumber() const{ return m_e164PhoneNumber; } /** *

The phone number, in E.164 format.

*/ inline bool E164PhoneNumberHasBeenSet() const { return m_e164PhoneNumberHasBeenSet; } /** *

The phone number, in E.164 format.

*/ inline void SetE164PhoneNumber(const Aws::String& value) { m_e164PhoneNumberHasBeenSet = true; m_e164PhoneNumber = value; } /** *

The phone number, in E.164 format.

*/ inline void SetE164PhoneNumber(Aws::String&& value) { m_e164PhoneNumberHasBeenSet = true; m_e164PhoneNumber = std::move(value); } /** *

The phone number, in E.164 format.

*/ inline void SetE164PhoneNumber(const char* value) { m_e164PhoneNumberHasBeenSet = true; m_e164PhoneNumber.assign(value); } /** *

The phone number, in E.164 format.

*/ inline PhoneNumber& WithE164PhoneNumber(const Aws::String& value) { SetE164PhoneNumber(value); return *this;} /** *

The phone number, in E.164 format.

*/ inline PhoneNumber& WithE164PhoneNumber(Aws::String&& value) { SetE164PhoneNumber(std::move(value)); return *this;} /** *

The phone number, in E.164 format.

*/ inline PhoneNumber& WithE164PhoneNumber(const char* value) { SetE164PhoneNumber(value); return *this;} /** *

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

*/ inline const Aws::String& GetCountry() const{ return m_country; } /** *

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

*/ inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; } /** *

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

*/ inline void SetCountry(const Aws::String& value) { m_countryHasBeenSet = true; m_country = value; } /** *

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

*/ inline void SetCountry(Aws::String&& value) { m_countryHasBeenSet = true; m_country = std::move(value); } /** *

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

*/ inline void SetCountry(const char* value) { m_countryHasBeenSet = true; m_country.assign(value); } /** *

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

*/ inline PhoneNumber& WithCountry(const Aws::String& value) { SetCountry(value); return *this;} /** *

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

*/ inline PhoneNumber& WithCountry(Aws::String&& value) { SetCountry(std::move(value)); return *this;} /** *

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

*/ inline PhoneNumber& WithCountry(const char* value) { SetCountry(value); return *this;} /** *

The phone number type.

*/ inline const PhoneNumberType& GetType() const{ return m_type; } /** *

The phone number type.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The phone number type.

*/ inline void SetType(const PhoneNumberType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The phone number type.

*/ inline void SetType(PhoneNumberType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The phone number type.

*/ inline PhoneNumber& WithType(const PhoneNumberType& value) { SetType(value); return *this;} /** *

The phone number type.

*/ inline PhoneNumber& WithType(PhoneNumberType&& value) { SetType(std::move(value)); return *this;} /** *

The phone number product type.

*/ inline const PhoneNumberProductType& GetProductType() const{ return m_productType; } /** *

The phone number product type.

*/ inline bool ProductTypeHasBeenSet() const { return m_productTypeHasBeenSet; } /** *

The phone number product type.

*/ inline void SetProductType(const PhoneNumberProductType& value) { m_productTypeHasBeenSet = true; m_productType = value; } /** *

The phone number product type.

*/ inline void SetProductType(PhoneNumberProductType&& value) { m_productTypeHasBeenSet = true; m_productType = std::move(value); } /** *

The phone number product type.

*/ inline PhoneNumber& WithProductType(const PhoneNumberProductType& value) { SetProductType(value); return *this;} /** *

The phone number product type.

*/ inline PhoneNumber& WithProductType(PhoneNumberProductType&& value) { SetProductType(std::move(value)); return *this;} /** *

The phone number status.

*/ inline const PhoneNumberStatus& GetStatus() const{ return m_status; } /** *

The phone number status.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The phone number status.

*/ inline void SetStatus(const PhoneNumberStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The phone number status.

*/ inline void SetStatus(PhoneNumberStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The phone number status.

*/ inline PhoneNumber& WithStatus(const PhoneNumberStatus& value) { SetStatus(value); return *this;} /** *

The phone number status.

*/ inline PhoneNumber& WithStatus(PhoneNumberStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The phone number capabilities.

*/ inline const PhoneNumberCapabilities& GetCapabilities() const{ return m_capabilities; } /** *

The phone number capabilities.

*/ inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; } /** *

The phone number capabilities.

*/ inline void SetCapabilities(const PhoneNumberCapabilities& value) { m_capabilitiesHasBeenSet = true; m_capabilities = value; } /** *

The phone number capabilities.

*/ inline void SetCapabilities(PhoneNumberCapabilities&& value) { m_capabilitiesHasBeenSet = true; m_capabilities = std::move(value); } /** *

The phone number capabilities.

*/ inline PhoneNumber& WithCapabilities(const PhoneNumberCapabilities& value) { SetCapabilities(value); return *this;} /** *

The phone number capabilities.

*/ inline PhoneNumber& WithCapabilities(PhoneNumberCapabilities&& value) { SetCapabilities(std::move(value)); return *this;} /** *

The phone number associations.

*/ inline const Aws::Vector& GetAssociations() const{ return m_associations; } /** *

The phone number associations.

*/ inline bool AssociationsHasBeenSet() const { return m_associationsHasBeenSet; } /** *

The phone number associations.

*/ inline void SetAssociations(const Aws::Vector& value) { m_associationsHasBeenSet = true; m_associations = value; } /** *

The phone number associations.

*/ inline void SetAssociations(Aws::Vector&& value) { m_associationsHasBeenSet = true; m_associations = std::move(value); } /** *

The phone number associations.

*/ inline PhoneNumber& WithAssociations(const Aws::Vector& value) { SetAssociations(value); return *this;} /** *

The phone number associations.

*/ inline PhoneNumber& WithAssociations(Aws::Vector&& value) { SetAssociations(std::move(value)); return *this;} /** *

The phone number associations.

*/ inline PhoneNumber& AddAssociations(const PhoneNumberAssociation& value) { m_associationsHasBeenSet = true; m_associations.push_back(value); return *this; } /** *

The phone number associations.

*/ inline PhoneNumber& AddAssociations(PhoneNumberAssociation&& value) { m_associationsHasBeenSet = true; m_associations.push_back(std::move(value)); return *this; } /** *

The outbound calling name associated with the phone number.

*/ inline const Aws::String& GetCallingName() const{ return m_callingName; } /** *

The outbound calling name associated with the phone number.

*/ inline bool CallingNameHasBeenSet() const { return m_callingNameHasBeenSet; } /** *

The outbound calling name associated with the phone number.

*/ inline void SetCallingName(const Aws::String& value) { m_callingNameHasBeenSet = true; m_callingName = value; } /** *

The outbound calling name associated with the phone number.

*/ inline void SetCallingName(Aws::String&& value) { m_callingNameHasBeenSet = true; m_callingName = std::move(value); } /** *

The outbound calling name associated with the phone number.

*/ inline void SetCallingName(const char* value) { m_callingNameHasBeenSet = true; m_callingName.assign(value); } /** *

The outbound calling name associated with the phone number.

*/ inline PhoneNumber& WithCallingName(const Aws::String& value) { SetCallingName(value); return *this;} /** *

The outbound calling name associated with the phone number.

*/ inline PhoneNumber& WithCallingName(Aws::String&& value) { SetCallingName(std::move(value)); return *this;} /** *

The outbound calling name associated with the phone number.

*/ inline PhoneNumber& WithCallingName(const char* value) { SetCallingName(value); return *this;} /** *

The outbound calling name status.

*/ inline const CallingNameStatus& GetCallingNameStatus() const{ return m_callingNameStatus; } /** *

The outbound calling name status.

*/ inline bool CallingNameStatusHasBeenSet() const { return m_callingNameStatusHasBeenSet; } /** *

The outbound calling name status.

*/ inline void SetCallingNameStatus(const CallingNameStatus& value) { m_callingNameStatusHasBeenSet = true; m_callingNameStatus = value; } /** *

The outbound calling name status.

*/ inline void SetCallingNameStatus(CallingNameStatus&& value) { m_callingNameStatusHasBeenSet = true; m_callingNameStatus = std::move(value); } /** *

The outbound calling name status.

*/ inline PhoneNumber& WithCallingNameStatus(const CallingNameStatus& value) { SetCallingNameStatus(value); return *this;} /** *

The outbound calling name status.

*/ inline PhoneNumber& WithCallingNameStatus(CallingNameStatus&& value) { SetCallingNameStatus(std::move(value)); return *this;} /** *

The phone number creation timestamp, in ISO 8601 format.

*/ inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; } /** *

The phone number creation timestamp, in ISO 8601 format.

*/ inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; } /** *

The phone number creation timestamp, in ISO 8601 format.

*/ inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; } /** *

The phone number creation timestamp, in ISO 8601 format.

*/ inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); } /** *

The phone number creation timestamp, in ISO 8601 format.

*/ inline PhoneNumber& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;} /** *

The phone number creation timestamp, in ISO 8601 format.

*/ inline PhoneNumber& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;} /** *

The updated phone number timestamp, in ISO 8601 format.

*/ inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const{ return m_updatedTimestamp; } /** *

The updated phone number timestamp, in ISO 8601 format.

*/ inline bool UpdatedTimestampHasBeenSet() const { return m_updatedTimestampHasBeenSet; } /** *

The updated phone number timestamp, in ISO 8601 format.

*/ inline void SetUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_updatedTimestampHasBeenSet = true; m_updatedTimestamp = value; } /** *

The updated phone number timestamp, in ISO 8601 format.

*/ inline void SetUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_updatedTimestampHasBeenSet = true; m_updatedTimestamp = std::move(value); } /** *

The updated phone number timestamp, in ISO 8601 format.

*/ inline PhoneNumber& WithUpdatedTimestamp(const Aws::Utils::DateTime& value) { SetUpdatedTimestamp(value); return *this;} /** *

The updated phone number timestamp, in ISO 8601 format.

*/ inline PhoneNumber& WithUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetUpdatedTimestamp(std::move(value)); return *this;} /** *

The deleted phone number timestamp, in ISO 8601 format.

*/ inline const Aws::Utils::DateTime& GetDeletionTimestamp() const{ return m_deletionTimestamp; } /** *

The deleted phone number timestamp, in ISO 8601 format.

*/ inline bool DeletionTimestampHasBeenSet() const { return m_deletionTimestampHasBeenSet; } /** *

The deleted phone number timestamp, in ISO 8601 format.

*/ inline void SetDeletionTimestamp(const Aws::Utils::DateTime& value) { m_deletionTimestampHasBeenSet = true; m_deletionTimestamp = value; } /** *

The deleted phone number timestamp, in ISO 8601 format.

*/ inline void SetDeletionTimestamp(Aws::Utils::DateTime&& value) { m_deletionTimestampHasBeenSet = true; m_deletionTimestamp = std::move(value); } /** *

The deleted phone number timestamp, in ISO 8601 format.

*/ inline PhoneNumber& WithDeletionTimestamp(const Aws::Utils::DateTime& value) { SetDeletionTimestamp(value); return *this;} /** *

The deleted phone number timestamp, in ISO 8601 format.

*/ inline PhoneNumber& WithDeletionTimestamp(Aws::Utils::DateTime&& value) { SetDeletionTimestamp(std::move(value)); return *this;} private: Aws::String m_phoneNumberId; bool m_phoneNumberIdHasBeenSet = false; Aws::String m_e164PhoneNumber; bool m_e164PhoneNumberHasBeenSet = false; Aws::String m_country; bool m_countryHasBeenSet = false; PhoneNumberType m_type; bool m_typeHasBeenSet = false; PhoneNumberProductType m_productType; bool m_productTypeHasBeenSet = false; PhoneNumberStatus m_status; bool m_statusHasBeenSet = false; PhoneNumberCapabilities m_capabilities; bool m_capabilitiesHasBeenSet = false; Aws::Vector m_associations; bool m_associationsHasBeenSet = false; Aws::String m_callingName; bool m_callingNameHasBeenSet = false; CallingNameStatus m_callingNameStatus; bool m_callingNameStatusHasBeenSet = false; Aws::Utils::DateTime m_createdTimestamp; bool m_createdTimestampHasBeenSet = false; Aws::Utils::DateTime m_updatedTimestamp; bool m_updatedTimestampHasBeenSet = false; Aws::Utils::DateTime m_deletionTimestamp; bool m_deletionTimestampHasBeenSet = false; }; } // namespace Model } // namespace Chime } // namespace Aws