/** * 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 namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Chime { namespace Model { /** *

The details of a phone number order created for Amazon Chime.

See * Also:

AWS * API Reference

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

The phone number order ID.

*/ inline const Aws::String& GetPhoneNumberOrderId() const{ return m_phoneNumberOrderId; } /** *

The phone number order ID.

*/ inline bool PhoneNumberOrderIdHasBeenSet() const { return m_phoneNumberOrderIdHasBeenSet; } /** *

The phone number order ID.

*/ inline void SetPhoneNumberOrderId(const Aws::String& value) { m_phoneNumberOrderIdHasBeenSet = true; m_phoneNumberOrderId = value; } /** *

The phone number order ID.

*/ inline void SetPhoneNumberOrderId(Aws::String&& value) { m_phoneNumberOrderIdHasBeenSet = true; m_phoneNumberOrderId = std::move(value); } /** *

The phone number order ID.

*/ inline void SetPhoneNumberOrderId(const char* value) { m_phoneNumberOrderIdHasBeenSet = true; m_phoneNumberOrderId.assign(value); } /** *

The phone number order ID.

*/ inline PhoneNumberOrder& WithPhoneNumberOrderId(const Aws::String& value) { SetPhoneNumberOrderId(value); return *this;} /** *

The phone number order ID.

*/ inline PhoneNumberOrder& WithPhoneNumberOrderId(Aws::String&& value) { SetPhoneNumberOrderId(std::move(value)); return *this;} /** *

The phone number order ID.

*/ inline PhoneNumberOrder& WithPhoneNumberOrderId(const char* value) { SetPhoneNumberOrderId(value); return *this;} /** *

The phone number order product type.

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

The phone number order product type.

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

The phone number order product type.

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

The phone number order product type.

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

The phone number order product type.

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

The phone number order product type.

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

The status of the phone number order.

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

The status of the phone number order.

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

The status of the phone number order.

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

The status of the phone number order.

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

The status of the phone number order.

*/ inline PhoneNumberOrder& WithStatus(const PhoneNumberOrderStatus& value) { SetStatus(value); return *this;} /** *

The status of the phone number order.

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

The ordered phone number details, such as the phone number in E.164 format * and the phone number status.

*/ inline const Aws::Vector& GetOrderedPhoneNumbers() const{ return m_orderedPhoneNumbers; } /** *

The ordered phone number details, such as the phone number in E.164 format * and the phone number status.

*/ inline bool OrderedPhoneNumbersHasBeenSet() const { return m_orderedPhoneNumbersHasBeenSet; } /** *

The ordered phone number details, such as the phone number in E.164 format * and the phone number status.

*/ inline void SetOrderedPhoneNumbers(const Aws::Vector& value) { m_orderedPhoneNumbersHasBeenSet = true; m_orderedPhoneNumbers = value; } /** *

The ordered phone number details, such as the phone number in E.164 format * and the phone number status.

*/ inline void SetOrderedPhoneNumbers(Aws::Vector&& value) { m_orderedPhoneNumbersHasBeenSet = true; m_orderedPhoneNumbers = std::move(value); } /** *

The ordered phone number details, such as the phone number in E.164 format * and the phone number status.

*/ inline PhoneNumberOrder& WithOrderedPhoneNumbers(const Aws::Vector& value) { SetOrderedPhoneNumbers(value); return *this;} /** *

The ordered phone number details, such as the phone number in E.164 format * and the phone number status.

*/ inline PhoneNumberOrder& WithOrderedPhoneNumbers(Aws::Vector&& value) { SetOrderedPhoneNumbers(std::move(value)); return *this;} /** *

The ordered phone number details, such as the phone number in E.164 format * and the phone number status.

*/ inline PhoneNumberOrder& AddOrderedPhoneNumbers(const OrderedPhoneNumber& value) { m_orderedPhoneNumbersHasBeenSet = true; m_orderedPhoneNumbers.push_back(value); return *this; } /** *

The ordered phone number details, such as the phone number in E.164 format * and the phone number status.

*/ inline PhoneNumberOrder& AddOrderedPhoneNumbers(OrderedPhoneNumber&& value) { m_orderedPhoneNumbersHasBeenSet = true; m_orderedPhoneNumbers.push_back(std::move(value)); return *this; } /** *

The phone number order creation time stamp, in ISO 8601 format.

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

The phone number order creation time stamp, in ISO 8601 format.

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

The phone number order creation time stamp, in ISO 8601 format.

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

The phone number order creation time stamp, in ISO 8601 format.

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

The phone number order creation time stamp, in ISO 8601 format.

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

The phone number order creation time stamp, in ISO 8601 format.

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

The updated phone number order time stamp, in ISO 8601 format.

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

The updated phone number order time stamp, in ISO 8601 format.

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

The updated phone number order time stamp, in ISO 8601 format.

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

The updated phone number order time stamp, in ISO 8601 format.

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

The updated phone number order time stamp, in ISO 8601 format.

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

The updated phone number order time stamp, in ISO 8601 format.

*/ inline PhoneNumberOrder& WithUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetUpdatedTimestamp(std::move(value)); return *this;} private: Aws::String m_phoneNumberOrderId; bool m_phoneNumberOrderIdHasBeenSet = false; PhoneNumberProductType m_productType; bool m_productTypeHasBeenSet = false; PhoneNumberOrderStatus m_status; bool m_statusHasBeenSet = false; Aws::Vector m_orderedPhoneNumbers; bool m_orderedPhoneNumbersHasBeenSet = false; Aws::Utils::DateTime m_createdTimestamp; bool m_createdTimestampHasBeenSet = false; Aws::Utils::DateTime m_updatedTimestamp; bool m_updatedTimestampHasBeenSet = false; }; } // namespace Model } // namespace Chime } // namespace Aws