/** * 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 PinpointSMSVoiceV2 { namespace Model { /** */ class UpdatePhoneNumberRequest : public PinpointSMSVoiceV2Request { public: AWS_PINPOINTSMSVOICEV2_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_PINPOINTSMSVOICEV2_API Aws::String SerializePayload() const override; AWS_PINPOINTSMSVOICEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The unique identifier of the phone number. Valid values for this field can be * either the PhoneNumberId or PhoneNumberArn.

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

The unique identifier of the phone number. Valid values for this field can be * either the PhoneNumberId or PhoneNumberArn.

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

The unique identifier of the phone number. Valid values for this field can be * either the PhoneNumberId or PhoneNumberArn.

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

The unique identifier of the phone number. Valid values for this field can be * either the PhoneNumberId or PhoneNumberArn.

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

The unique identifier of the phone number. Valid values for this field can be * either the PhoneNumberId or PhoneNumberArn.

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

The unique identifier of the phone number. Valid values for this field can be * either the PhoneNumberId or PhoneNumberArn.

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

The unique identifier of the phone number. Valid values for this field can be * either the PhoneNumberId or PhoneNumberArn.

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

The unique identifier of the phone number. Valid values for this field can be * either the PhoneNumberId or PhoneNumberArn.

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

By default this is set to false. When set to true you can receive incoming * text messages from your end recipients.

*/ inline bool GetTwoWayEnabled() const{ return m_twoWayEnabled; } /** *

By default this is set to false. When set to true you can receive incoming * text messages from your end recipients.

*/ inline bool TwoWayEnabledHasBeenSet() const { return m_twoWayEnabledHasBeenSet; } /** *

By default this is set to false. When set to true you can receive incoming * text messages from your end recipients.

*/ inline void SetTwoWayEnabled(bool value) { m_twoWayEnabledHasBeenSet = true; m_twoWayEnabled = value; } /** *

By default this is set to false. When set to true you can receive incoming * text messages from your end recipients.

*/ inline UpdatePhoneNumberRequest& WithTwoWayEnabled(bool value) { SetTwoWayEnabled(value); return *this;} /** *

The Amazon Resource Name (ARN) of the two way channel.

*/ inline const Aws::String& GetTwoWayChannelArn() const{ return m_twoWayChannelArn; } /** *

The Amazon Resource Name (ARN) of the two way channel.

*/ inline bool TwoWayChannelArnHasBeenSet() const { return m_twoWayChannelArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the two way channel.

*/ inline void SetTwoWayChannelArn(const Aws::String& value) { m_twoWayChannelArnHasBeenSet = true; m_twoWayChannelArn = value; } /** *

The Amazon Resource Name (ARN) of the two way channel.

*/ inline void SetTwoWayChannelArn(Aws::String&& value) { m_twoWayChannelArnHasBeenSet = true; m_twoWayChannelArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the two way channel.

*/ inline void SetTwoWayChannelArn(const char* value) { m_twoWayChannelArnHasBeenSet = true; m_twoWayChannelArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the two way channel.

*/ inline UpdatePhoneNumberRequest& WithTwoWayChannelArn(const Aws::String& value) { SetTwoWayChannelArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the two way channel.

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

The Amazon Resource Name (ARN) of the two way channel.

*/ inline UpdatePhoneNumberRequest& WithTwoWayChannelArn(const char* value) { SetTwoWayChannelArn(value); return *this;} /** *

By default this is set to false. When an end recipient sends a message that * begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint * automatically replies with a customizable message and adds the end recipient to * the OptOutList. When set to true you're responsible for responding to HELP and * STOP requests. You're also responsible for tracking and honoring opt-out * requests.

*/ inline bool GetSelfManagedOptOutsEnabled() const{ return m_selfManagedOptOutsEnabled; } /** *

By default this is set to false. When an end recipient sends a message that * begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint * automatically replies with a customizable message and adds the end recipient to * the OptOutList. When set to true you're responsible for responding to HELP and * STOP requests. You're also responsible for tracking and honoring opt-out * requests.

*/ inline bool SelfManagedOptOutsEnabledHasBeenSet() const { return m_selfManagedOptOutsEnabledHasBeenSet; } /** *

By default this is set to false. When an end recipient sends a message that * begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint * automatically replies with a customizable message and adds the end recipient to * the OptOutList. When set to true you're responsible for responding to HELP and * STOP requests. You're also responsible for tracking and honoring opt-out * requests.

*/ inline void SetSelfManagedOptOutsEnabled(bool value) { m_selfManagedOptOutsEnabledHasBeenSet = true; m_selfManagedOptOutsEnabled = value; } /** *

By default this is set to false. When an end recipient sends a message that * begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint * automatically replies with a customizable message and adds the end recipient to * the OptOutList. When set to true you're responsible for responding to HELP and * STOP requests. You're also responsible for tracking and honoring opt-out * requests.

*/ inline UpdatePhoneNumberRequest& WithSelfManagedOptOutsEnabled(bool value) { SetSelfManagedOptOutsEnabled(value); return *this;} /** *

The OptOutList to add the phone number to. Valid values for this field can be * either the OutOutListName or OutOutListArn.

*/ inline const Aws::String& GetOptOutListName() const{ return m_optOutListName; } /** *

The OptOutList to add the phone number to. Valid values for this field can be * either the OutOutListName or OutOutListArn.

*/ inline bool OptOutListNameHasBeenSet() const { return m_optOutListNameHasBeenSet; } /** *

The OptOutList to add the phone number to. Valid values for this field can be * either the OutOutListName or OutOutListArn.

*/ inline void SetOptOutListName(const Aws::String& value) { m_optOutListNameHasBeenSet = true; m_optOutListName = value; } /** *

The OptOutList to add the phone number to. Valid values for this field can be * either the OutOutListName or OutOutListArn.

*/ inline void SetOptOutListName(Aws::String&& value) { m_optOutListNameHasBeenSet = true; m_optOutListName = std::move(value); } /** *

The OptOutList to add the phone number to. Valid values for this field can be * either the OutOutListName or OutOutListArn.

*/ inline void SetOptOutListName(const char* value) { m_optOutListNameHasBeenSet = true; m_optOutListName.assign(value); } /** *

The OptOutList to add the phone number to. Valid values for this field can be * either the OutOutListName or OutOutListArn.

*/ inline UpdatePhoneNumberRequest& WithOptOutListName(const Aws::String& value) { SetOptOutListName(value); return *this;} /** *

The OptOutList to add the phone number to. Valid values for this field can be * either the OutOutListName or OutOutListArn.

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

The OptOutList to add the phone number to. Valid values for this field can be * either the OutOutListName or OutOutListArn.

*/ inline UpdatePhoneNumberRequest& WithOptOutListName(const char* value) { SetOptOutListName(value); return *this;} /** *

By default this is set to false. When set to true the phone number can't be * deleted.

*/ inline bool GetDeletionProtectionEnabled() const{ return m_deletionProtectionEnabled; } /** *

By default this is set to false. When set to true the phone number can't be * deleted.

*/ inline bool DeletionProtectionEnabledHasBeenSet() const { return m_deletionProtectionEnabledHasBeenSet; } /** *

By default this is set to false. When set to true the phone number can't be * deleted.

*/ inline void SetDeletionProtectionEnabled(bool value) { m_deletionProtectionEnabledHasBeenSet = true; m_deletionProtectionEnabled = value; } /** *

By default this is set to false. When set to true the phone number can't be * deleted.

*/ inline UpdatePhoneNumberRequest& WithDeletionProtectionEnabled(bool value) { SetDeletionProtectionEnabled(value); return *this;} private: Aws::String m_phoneNumberId; bool m_phoneNumberIdHasBeenSet = false; bool m_twoWayEnabled; bool m_twoWayEnabledHasBeenSet = false; Aws::String m_twoWayChannelArn; bool m_twoWayChannelArnHasBeenSet = false; bool m_selfManagedOptOutsEnabled; bool m_selfManagedOptOutsEnabledHasBeenSet = false; Aws::String m_optOutListName; bool m_optOutListNameHasBeenSet = false; bool m_deletionProtectionEnabled; bool m_deletionProtectionEnabledHasBeenSet = false; }; } // namespace Model } // namespace PinpointSMSVoiceV2 } // namespace Aws