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

The phone number ID, product type, or calling name fields to update, used * with the BatchUpdatePhoneNumber and UpdatePhoneNumber * actions.

See Also:

AWS * API Reference

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

The phone number ID to update.

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

The phone number ID to update.

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

The phone number ID to update.

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

The phone number ID to update.

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

The phone number ID to update.

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

The phone number ID to update.

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

The phone number ID to update.

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

The phone number ID to update.

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

The product type to update.

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

The product type to update.

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

The product type to update.

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

The product type to update.

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

The product type to update.

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

The product type to update.

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

The outbound calling name to update.

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

The outbound calling name to update.

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

The outbound calling name to update.

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

The outbound calling name to update.

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

The outbound calling name to update.

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

The outbound calling name to update.

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

The outbound calling name to update.

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

The outbound calling name to update.

*/ inline UpdatePhoneNumberRequestItem& 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 Chime } // namespace Aws