/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace ChimeSDKVoice { namespace Model { /** */ class CreatePhoneNumberOrderRequest : public ChimeSDKVoiceRequest { public: AWS_CHIMESDKVOICE_API CreatePhoneNumberOrderRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreatePhoneNumberOrder"; } AWS_CHIMESDKVOICE_API Aws::String SerializePayload() const override; /** *

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 CreatePhoneNumberOrderRequest& WithProductType(const PhoneNumberProductType& value) { SetProductType(value); return *this;} /** *

The phone number product type.

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

List of phone numbers, in E.164 format.

*/ inline const Aws::Vector& GetE164PhoneNumbers() const{ return m_e164PhoneNumbers; } /** *

List of phone numbers, in E.164 format.

*/ inline bool E164PhoneNumbersHasBeenSet() const { return m_e164PhoneNumbersHasBeenSet; } /** *

List of phone numbers, in E.164 format.

*/ inline void SetE164PhoneNumbers(const Aws::Vector& value) { m_e164PhoneNumbersHasBeenSet = true; m_e164PhoneNumbers = value; } /** *

List of phone numbers, in E.164 format.

*/ inline void SetE164PhoneNumbers(Aws::Vector&& value) { m_e164PhoneNumbersHasBeenSet = true; m_e164PhoneNumbers = std::move(value); } /** *

List of phone numbers, in E.164 format.

*/ inline CreatePhoneNumberOrderRequest& WithE164PhoneNumbers(const Aws::Vector& value) { SetE164PhoneNumbers(value); return *this;} /** *

List of phone numbers, in E.164 format.

*/ inline CreatePhoneNumberOrderRequest& WithE164PhoneNumbers(Aws::Vector&& value) { SetE164PhoneNumbers(std::move(value)); return *this;} /** *

List of phone numbers, in E.164 format.

*/ inline CreatePhoneNumberOrderRequest& AddE164PhoneNumbers(const Aws::String& value) { m_e164PhoneNumbersHasBeenSet = true; m_e164PhoneNumbers.push_back(value); return *this; } /** *

List of phone numbers, in E.164 format.

*/ inline CreatePhoneNumberOrderRequest& AddE164PhoneNumbers(Aws::String&& value) { m_e164PhoneNumbersHasBeenSet = true; m_e164PhoneNumbers.push_back(std::move(value)); return *this; } /** *

List of phone numbers, in E.164 format.

*/ inline CreatePhoneNumberOrderRequest& AddE164PhoneNumbers(const char* value) { m_e164PhoneNumbersHasBeenSet = true; m_e164PhoneNumbers.push_back(value); return *this; } private: PhoneNumberProductType m_productType; bool m_productTypeHasBeenSet = false; Aws::Vector m_e164PhoneNumbers; bool m_e164PhoneNumbersHasBeenSet = false; }; } // namespace Model } // namespace ChimeSDKVoice } // namespace Aws