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

Specifies the status and settings of the SMS channel for an * application.

See Also:

AWS * API Reference

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

Specifies whether to enable the SMS channel for the application.

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

Specifies whether to enable the SMS channel for the application.

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

Specifies whether to enable the SMS channel for the application.

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

Specifies whether to enable the SMS channel for the application.

*/ inline SMSChannelRequest& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *

The identity that you want to display on recipients' devices when they * receive messages from the SMS channel.

*/ inline const Aws::String& GetSenderId() const{ return m_senderId; } /** *

The identity that you want to display on recipients' devices when they * receive messages from the SMS channel.

*/ inline bool SenderIdHasBeenSet() const { return m_senderIdHasBeenSet; } /** *

The identity that you want to display on recipients' devices when they * receive messages from the SMS channel.

*/ inline void SetSenderId(const Aws::String& value) { m_senderIdHasBeenSet = true; m_senderId = value; } /** *

The identity that you want to display on recipients' devices when they * receive messages from the SMS channel.

*/ inline void SetSenderId(Aws::String&& value) { m_senderIdHasBeenSet = true; m_senderId = std::move(value); } /** *

The identity that you want to display on recipients' devices when they * receive messages from the SMS channel.

*/ inline void SetSenderId(const char* value) { m_senderIdHasBeenSet = true; m_senderId.assign(value); } /** *

The identity that you want to display on recipients' devices when they * receive messages from the SMS channel.

*/ inline SMSChannelRequest& WithSenderId(const Aws::String& value) { SetSenderId(value); return *this;} /** *

The identity that you want to display on recipients' devices when they * receive messages from the SMS channel.

*/ inline SMSChannelRequest& WithSenderId(Aws::String&& value) { SetSenderId(std::move(value)); return *this;} /** *

The identity that you want to display on recipients' devices when they * receive messages from the SMS channel.

*/ inline SMSChannelRequest& WithSenderId(const char* value) { SetSenderId(value); return *this;} /** *

The registered short code that you want to use when you send messages through * the SMS channel.

*/ inline const Aws::String& GetShortCode() const{ return m_shortCode; } /** *

The registered short code that you want to use when you send messages through * the SMS channel.

*/ inline bool ShortCodeHasBeenSet() const { return m_shortCodeHasBeenSet; } /** *

The registered short code that you want to use when you send messages through * the SMS channel.

*/ inline void SetShortCode(const Aws::String& value) { m_shortCodeHasBeenSet = true; m_shortCode = value; } /** *

The registered short code that you want to use when you send messages through * the SMS channel.

*/ inline void SetShortCode(Aws::String&& value) { m_shortCodeHasBeenSet = true; m_shortCode = std::move(value); } /** *

The registered short code that you want to use when you send messages through * the SMS channel.

*/ inline void SetShortCode(const char* value) { m_shortCodeHasBeenSet = true; m_shortCode.assign(value); } /** *

The registered short code that you want to use when you send messages through * the SMS channel.

*/ inline SMSChannelRequest& WithShortCode(const Aws::String& value) { SetShortCode(value); return *this;} /** *

The registered short code that you want to use when you send messages through * the SMS channel.

*/ inline SMSChannelRequest& WithShortCode(Aws::String&& value) { SetShortCode(std::move(value)); return *this;} /** *

The registered short code that you want to use when you send messages through * the SMS channel.

*/ inline SMSChannelRequest& WithShortCode(const char* value) { SetShortCode(value); return *this;} private: bool m_enabled; bool m_enabledHasBeenSet = false; Aws::String m_senderId; bool m_senderIdHasBeenSet = false; Aws::String m_shortCode; bool m_shortCodeHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws