/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/chime-sdk-voice/ChimeSDKVoice_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/chime-sdk-voice/model/PhoneNumberType.h> #include <aws/chime-sdk-voice/model/PhoneNumberProductType.h> #include <aws/chime-sdk-voice/model/PhoneNumberStatus.h> #include <aws/chime-sdk-voice/model/PhoneNumberCapabilities.h> #include <aws/core/utils/memory/stl/AWSVector.h> #include <aws/chime-sdk-voice/model/CallingNameStatus.h> #include <aws/core/utils/DateTime.h> #include <aws/chime-sdk-voice/model/PhoneNumberAssociation.h> #include <utility> namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ChimeSDKVoice { namespace Model { /** * <p>A phone number used to call an Amazon Chime SDK Voice * Connector.</p><p><h3>See Also:</h3> <a * href="http://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/PhoneNumber">AWS * API Reference</a></p> */ class PhoneNumber { public: AWS_CHIMESDKVOICE_API PhoneNumber(); AWS_CHIMESDKVOICE_API PhoneNumber(Aws::Utils::Json::JsonView jsonValue); AWS_CHIMESDKVOICE_API PhoneNumber& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CHIMESDKVOICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** * <p>The phone number's ID.</p> */ inline const Aws::String& GetPhoneNumberId() const{ return m_phoneNumberId; } /** * <p>The phone number's ID.</p> */ inline bool PhoneNumberIdHasBeenSet() const { return m_phoneNumberIdHasBeenSet; } /** * <p>The phone number's ID.</p> */ inline void SetPhoneNumberId(const Aws::String& value) { m_phoneNumberIdHasBeenSet = true; m_phoneNumberId = value; } /** * <p>The phone number's ID.</p> */ inline void SetPhoneNumberId(Aws::String&& value) { m_phoneNumberIdHasBeenSet = true; m_phoneNumberId = std::move(value); } /** * <p>The phone number's ID.</p> */ inline void SetPhoneNumberId(const char* value) { m_phoneNumberIdHasBeenSet = true; m_phoneNumberId.assign(value); } /** * <p>The phone number's ID.</p> */ inline PhoneNumber& WithPhoneNumberId(const Aws::String& value) { SetPhoneNumberId(value); return *this;} /** * <p>The phone number's ID.</p> */ inline PhoneNumber& WithPhoneNumberId(Aws::String&& value) { SetPhoneNumberId(std::move(value)); return *this;} /** * <p>The phone number's ID.</p> */ inline PhoneNumber& WithPhoneNumberId(const char* value) { SetPhoneNumberId(value); return *this;} /** * <p>The phone number, in E.164 format.</p> */ inline const Aws::String& GetE164PhoneNumber() const{ return m_e164PhoneNumber; } /** * <p>The phone number, in E.164 format.</p> */ inline bool E164PhoneNumberHasBeenSet() const { return m_e164PhoneNumberHasBeenSet; } /** * <p>The phone number, in E.164 format.</p> */ inline void SetE164PhoneNumber(const Aws::String& value) { m_e164PhoneNumberHasBeenSet = true; m_e164PhoneNumber = value; } /** * <p>The phone number, in E.164 format.</p> */ inline void SetE164PhoneNumber(Aws::String&& value) { m_e164PhoneNumberHasBeenSet = true; m_e164PhoneNumber = std::move(value); } /** * <p>The phone number, in E.164 format.</p> */ inline void SetE164PhoneNumber(const char* value) { m_e164PhoneNumberHasBeenSet = true; m_e164PhoneNumber.assign(value); } /** * <p>The phone number, in E.164 format.</p> */ inline PhoneNumber& WithE164PhoneNumber(const Aws::String& value) { SetE164PhoneNumber(value); return *this;} /** * <p>The phone number, in E.164 format.</p> */ inline PhoneNumber& WithE164PhoneNumber(Aws::String&& value) { SetE164PhoneNumber(std::move(value)); return *this;} /** * <p>The phone number, in E.164 format.</p> */ inline PhoneNumber& WithE164PhoneNumber(const char* value) { SetE164PhoneNumber(value); return *this;} /** * <p>The phone number's country. Format: ISO 3166-1 alpha-2.</p> */ inline const Aws::String& GetCountry() const{ return m_country; } /** * <p>The phone number's country. Format: ISO 3166-1 alpha-2.</p> */ inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; } /** * <p>The phone number's country. Format: ISO 3166-1 alpha-2.</p> */ inline void SetCountry(const Aws::String& value) { m_countryHasBeenSet = true; m_country = value; } /** * <p>The phone number's country. Format: ISO 3166-1 alpha-2.</p> */ inline void SetCountry(Aws::String&& value) { m_countryHasBeenSet = true; m_country = std::move(value); } /** * <p>The phone number's country. Format: ISO 3166-1 alpha-2.</p> */ inline void SetCountry(const char* value) { m_countryHasBeenSet = true; m_country.assign(value); } /** * <p>The phone number's country. Format: ISO 3166-1 alpha-2.</p> */ inline PhoneNumber& WithCountry(const Aws::String& value) { SetCountry(value); return *this;} /** * <p>The phone number's country. Format: ISO 3166-1 alpha-2.</p> */ inline PhoneNumber& WithCountry(Aws::String&& value) { SetCountry(std::move(value)); return *this;} /** * <p>The phone number's country. Format: ISO 3166-1 alpha-2.</p> */ inline PhoneNumber& WithCountry(const char* value) { SetCountry(value); return *this;} /** * <p>The phone number's type.</p> */ inline const PhoneNumberType& GetType() const{ return m_type; } /** * <p>The phone number's type.</p> */ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** * <p>The phone number's type.</p> */ inline void SetType(const PhoneNumberType& value) { m_typeHasBeenSet = true; m_type = value; } /** * <p>The phone number's type.</p> */ inline void SetType(PhoneNumberType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** * <p>The phone number's type.</p> */ inline PhoneNumber& WithType(const PhoneNumberType& value) { SetType(value); return *this;} /** * <p>The phone number's type.</p> */ inline PhoneNumber& WithType(PhoneNumberType&& value) { SetType(std::move(value)); return *this;} /** * <p>The phone number's product type.</p> */ inline const PhoneNumberProductType& GetProductType() const{ return m_productType; } /** * <p>The phone number's product type.</p> */ inline bool ProductTypeHasBeenSet() const { return m_productTypeHasBeenSet; } /** * <p>The phone number's product type.</p> */ inline void SetProductType(const PhoneNumberProductType& value) { m_productTypeHasBeenSet = true; m_productType = value; } /** * <p>The phone number's product type.</p> */ inline void SetProductType(PhoneNumberProductType&& value) { m_productTypeHasBeenSet = true; m_productType = std::move(value); } /** * <p>The phone number's product type.</p> */ inline PhoneNumber& WithProductType(const PhoneNumberProductType& value) { SetProductType(value); return *this;} /** * <p>The phone number's product type.</p> */ inline PhoneNumber& WithProductType(PhoneNumberProductType&& value) { SetProductType(std::move(value)); return *this;} /** * <p>The phone number's status.</p> */ inline const PhoneNumberStatus& GetStatus() const{ return m_status; } /** * <p>The phone number's status.</p> */ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** * <p>The phone number's status.</p> */ inline void SetStatus(const PhoneNumberStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** * <p>The phone number's status.</p> */ inline void SetStatus(PhoneNumberStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** * <p>The phone number's status.</p> */ inline PhoneNumber& WithStatus(const PhoneNumberStatus& value) { SetStatus(value); return *this;} /** * <p>The phone number's status.</p> */ inline PhoneNumber& WithStatus(PhoneNumberStatus&& value) { SetStatus(std::move(value)); return *this;} /** * <p>The phone number's capabilities.</p> */ inline const PhoneNumberCapabilities& GetCapabilities() const{ return m_capabilities; } /** * <p>The phone number's capabilities.</p> */ inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; } /** * <p>The phone number's capabilities.</p> */ inline void SetCapabilities(const PhoneNumberCapabilities& value) { m_capabilitiesHasBeenSet = true; m_capabilities = value; } /** * <p>The phone number's capabilities.</p> */ inline void SetCapabilities(PhoneNumberCapabilities&& value) { m_capabilitiesHasBeenSet = true; m_capabilities = std::move(value); } /** * <p>The phone number's capabilities.</p> */ inline PhoneNumber& WithCapabilities(const PhoneNumberCapabilities& value) { SetCapabilities(value); return *this;} /** * <p>The phone number's capabilities.</p> */ inline PhoneNumber& WithCapabilities(PhoneNumberCapabilities&& value) { SetCapabilities(std::move(value)); return *this;} /** * <p>The phone number's associations.</p> */ inline const Aws::Vector<PhoneNumberAssociation>& GetAssociations() const{ return m_associations; } /** * <p>The phone number's associations.</p> */ inline bool AssociationsHasBeenSet() const { return m_associationsHasBeenSet; } /** * <p>The phone number's associations.</p> */ inline void SetAssociations(const Aws::Vector<PhoneNumberAssociation>& value) { m_associationsHasBeenSet = true; m_associations = value; } /** * <p>The phone number's associations.</p> */ inline void SetAssociations(Aws::Vector<PhoneNumberAssociation>&& value) { m_associationsHasBeenSet = true; m_associations = std::move(value); } /** * <p>The phone number's associations.</p> */ inline PhoneNumber& WithAssociations(const Aws::Vector<PhoneNumberAssociation>& value) { SetAssociations(value); return *this;} /** * <p>The phone number's associations.</p> */ inline PhoneNumber& WithAssociations(Aws::Vector<PhoneNumberAssociation>&& value) { SetAssociations(std::move(value)); return *this;} /** * <p>The phone number's associations.</p> */ inline PhoneNumber& AddAssociations(const PhoneNumberAssociation& value) { m_associationsHasBeenSet = true; m_associations.push_back(value); return *this; } /** * <p>The phone number's associations.</p> */ inline PhoneNumber& AddAssociations(PhoneNumberAssociation&& value) { m_associationsHasBeenSet = true; m_associations.push_back(std::move(value)); return *this; } /** * <p>The outbound calling name associated with the phone number.</p> */ inline const Aws::String& GetCallingName() const{ return m_callingName; } /** * <p>The outbound calling name associated with the phone number.</p> */ inline bool CallingNameHasBeenSet() const { return m_callingNameHasBeenSet; } /** * <p>The outbound calling name associated with the phone number.</p> */ inline void SetCallingName(const Aws::String& value) { m_callingNameHasBeenSet = true; m_callingName = value; } /** * <p>The outbound calling name associated with the phone number.</p> */ inline void SetCallingName(Aws::String&& value) { m_callingNameHasBeenSet = true; m_callingName = std::move(value); } /** * <p>The outbound calling name associated with the phone number.</p> */ inline void SetCallingName(const char* value) { m_callingNameHasBeenSet = true; m_callingName.assign(value); } /** * <p>The outbound calling name associated with the phone number.</p> */ inline PhoneNumber& WithCallingName(const Aws::String& value) { SetCallingName(value); return *this;} /** * <p>The outbound calling name associated with the phone number.</p> */ inline PhoneNumber& WithCallingName(Aws::String&& value) { SetCallingName(std::move(value)); return *this;} /** * <p>The outbound calling name associated with the phone number.</p> */ inline PhoneNumber& WithCallingName(const char* value) { SetCallingName(value); return *this;} /** * <p>The outbound calling name status.</p> */ inline const CallingNameStatus& GetCallingNameStatus() const{ return m_callingNameStatus; } /** * <p>The outbound calling name status.</p> */ inline bool CallingNameStatusHasBeenSet() const { return m_callingNameStatusHasBeenSet; } /** * <p>The outbound calling name status.</p> */ inline void SetCallingNameStatus(const CallingNameStatus& value) { m_callingNameStatusHasBeenSet = true; m_callingNameStatus = value; } /** * <p>The outbound calling name status.</p> */ inline void SetCallingNameStatus(CallingNameStatus&& value) { m_callingNameStatusHasBeenSet = true; m_callingNameStatus = std::move(value); } /** * <p>The outbound calling name status.</p> */ inline PhoneNumber& WithCallingNameStatus(const CallingNameStatus& value) { SetCallingNameStatus(value); return *this;} /** * <p>The outbound calling name status.</p> */ inline PhoneNumber& WithCallingNameStatus(CallingNameStatus&& value) { SetCallingNameStatus(std::move(value)); return *this;} /** * <p>The phone number creation timestamp, in ISO 8601 format.</p> */ inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; } /** * <p>The phone number creation timestamp, in ISO 8601 format.</p> */ inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; } /** * <p>The phone number creation timestamp, in ISO 8601 format.</p> */ inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; } /** * <p>The phone number creation timestamp, in ISO 8601 format.</p> */ inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); } /** * <p>The phone number creation timestamp, in ISO 8601 format.</p> */ inline PhoneNumber& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;} /** * <p>The phone number creation timestamp, in ISO 8601 format.</p> */ inline PhoneNumber& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;} /** * <p>The updated phone number timestamp, in ISO 8601 format.</p> */ inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const{ return m_updatedTimestamp; } /** * <p>The updated phone number timestamp, in ISO 8601 format.</p> */ inline bool UpdatedTimestampHasBeenSet() const { return m_updatedTimestampHasBeenSet; } /** * <p>The updated phone number timestamp, in ISO 8601 format.</p> */ inline void SetUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_updatedTimestampHasBeenSet = true; m_updatedTimestamp = value; } /** * <p>The updated phone number timestamp, in ISO 8601 format.</p> */ inline void SetUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_updatedTimestampHasBeenSet = true; m_updatedTimestamp = std::move(value); } /** * <p>The updated phone number timestamp, in ISO 8601 format.</p> */ inline PhoneNumber& WithUpdatedTimestamp(const Aws::Utils::DateTime& value) { SetUpdatedTimestamp(value); return *this;} /** * <p>The updated phone number timestamp, in ISO 8601 format.</p> */ inline PhoneNumber& WithUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetUpdatedTimestamp(std::move(value)); return *this;} /** * <p>The deleted phone number timestamp, in ISO 8601 format.</p> */ inline const Aws::Utils::DateTime& GetDeletionTimestamp() const{ return m_deletionTimestamp; } /** * <p>The deleted phone number timestamp, in ISO 8601 format.</p> */ inline bool DeletionTimestampHasBeenSet() const { return m_deletionTimestampHasBeenSet; } /** * <p>The deleted phone number timestamp, in ISO 8601 format.</p> */ inline void SetDeletionTimestamp(const Aws::Utils::DateTime& value) { m_deletionTimestampHasBeenSet = true; m_deletionTimestamp = value; } /** * <p>The deleted phone number timestamp, in ISO 8601 format.</p> */ inline void SetDeletionTimestamp(Aws::Utils::DateTime&& value) { m_deletionTimestampHasBeenSet = true; m_deletionTimestamp = std::move(value); } /** * <p>The deleted phone number timestamp, in ISO 8601 format.</p> */ inline PhoneNumber& WithDeletionTimestamp(const Aws::Utils::DateTime& value) { SetDeletionTimestamp(value); return *this;} /** * <p>The deleted phone number timestamp, in ISO 8601 format.</p> */ inline PhoneNumber& WithDeletionTimestamp(Aws::Utils::DateTime&& value) { SetDeletionTimestamp(std::move(value)); return *this;} /** * <p>The phone number's order ID.</p> */ inline const Aws::String& GetOrderId() const{ return m_orderId; } /** * <p>The phone number's order ID.</p> */ inline bool OrderIdHasBeenSet() const { return m_orderIdHasBeenSet; } /** * <p>The phone number's order ID.</p> */ inline void SetOrderId(const Aws::String& value) { m_orderIdHasBeenSet = true; m_orderId = value; } /** * <p>The phone number's order ID.</p> */ inline void SetOrderId(Aws::String&& value) { m_orderIdHasBeenSet = true; m_orderId = std::move(value); } /** * <p>The phone number's order ID.</p> */ inline void SetOrderId(const char* value) { m_orderIdHasBeenSet = true; m_orderId.assign(value); } /** * <p>The phone number's order ID.</p> */ inline PhoneNumber& WithOrderId(const Aws::String& value) { SetOrderId(value); return *this;} /** * <p>The phone number's order ID.</p> */ inline PhoneNumber& WithOrderId(Aws::String&& value) { SetOrderId(std::move(value)); return *this;} /** * <p>The phone number's order ID.</p> */ inline PhoneNumber& WithOrderId(const char* value) { SetOrderId(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<PhoneNumberAssociation> 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; Aws::String m_orderId; bool m_orderIdHasBeenSet = false; }; } // namespace Model } // namespace ChimeSDKVoice } // namespace Aws