/** * 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 ChimeSDKVoice { namespace Model { /** */ class UpdatePhoneNumberRequest : public ChimeSDKVoiceRequest { public: AWS_CHIMESDKVOICE_API UpdatePhoneNumberRequest(); // 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 "UpdatePhoneNumber"; } AWS_CHIMESDKVOICE_API Aws::String SerializePayload() const override; /** *

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 UpdatePhoneNumberRequest& WithPhoneNumberId(const Aws::String& value) { SetPhoneNumberId(value); return *this;} /** *

The phone number ID.

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

The phone number ID.

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

The product type.

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

The product type.

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

The product type.

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

The product type.

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

The product type.

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

The product type.

*/ inline UpdatePhoneNumberRequest& WithProductType(PhoneNumberProductType&& value) { SetProductType(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 UpdatePhoneNumberRequest& WithCallingName(const Aws::String& value) { SetCallingName(value); return *this;} /** *

The outbound calling name associated with the phone number.

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

The outbound calling name associated with the phone number.

*/ inline UpdatePhoneNumberRequest& WithCallingName(const char* value) { SetCallingName(value); return *this;} private: Aws::String m_phoneNumberId; bool m_phoneNumberIdHasBeenSet = false; PhoneNumberProductType m_productType; bool m_productTypeHasBeenSet = false; Aws::String m_callingName; bool m_callingNameHasBeenSet = false; }; } // namespace Model } // namespace ChimeSDKVoice } // namespace Aws