AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SMSChannelRequest.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Pinpoint
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_PINPOINT_API SMSChannelRequest();
36 AWS_PINPOINT_API SMSChannelRequest(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline bool GetEnabled() const{ return m_enabled; }
46 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
47 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
48 inline SMSChannelRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
50
52
56 inline const Aws::String& GetSenderId() const{ return m_senderId; }
57 inline bool SenderIdHasBeenSet() const { return m_senderIdHasBeenSet; }
58 inline void SetSenderId(const Aws::String& value) { m_senderIdHasBeenSet = true; m_senderId = value; }
59 inline void SetSenderId(Aws::String&& value) { m_senderIdHasBeenSet = true; m_senderId = std::move(value); }
60 inline void SetSenderId(const char* value) { m_senderIdHasBeenSet = true; m_senderId.assign(value); }
61 inline SMSChannelRequest& WithSenderId(const Aws::String& value) { SetSenderId(value); return *this;}
62 inline SMSChannelRequest& WithSenderId(Aws::String&& value) { SetSenderId(std::move(value)); return *this;}
63 inline SMSChannelRequest& WithSenderId(const char* value) { SetSenderId(value); return *this;}
65
67
71 inline const Aws::String& GetShortCode() const{ return m_shortCode; }
72 inline bool ShortCodeHasBeenSet() const { return m_shortCodeHasBeenSet; }
73 inline void SetShortCode(const Aws::String& value) { m_shortCodeHasBeenSet = true; m_shortCode = value; }
74 inline void SetShortCode(Aws::String&& value) { m_shortCodeHasBeenSet = true; m_shortCode = std::move(value); }
75 inline void SetShortCode(const char* value) { m_shortCodeHasBeenSet = true; m_shortCode.assign(value); }
76 inline SMSChannelRequest& WithShortCode(const Aws::String& value) { SetShortCode(value); return *this;}
77 inline SMSChannelRequest& WithShortCode(Aws::String&& value) { SetShortCode(std::move(value)); return *this;}
78 inline SMSChannelRequest& WithShortCode(const char* value) { SetShortCode(value); return *this;}
80 private:
81
82 bool m_enabled;
83 bool m_enabledHasBeenSet = false;
84
85 Aws::String m_senderId;
86 bool m_senderIdHasBeenSet = false;
87
88 Aws::String m_shortCode;
89 bool m_shortCodeHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace Pinpoint
94} // namespace Aws
SMSChannelRequest & WithShortCode(const Aws::String &value)
SMSChannelRequest & WithEnabled(bool value)
const Aws::String & GetSenderId() const
void SetShortCode(const Aws::String &value)
AWS_PINPOINT_API SMSChannelRequest(Aws::Utils::Json::JsonView jsonValue)
SMSChannelRequest & WithSenderId(const Aws::String &value)
AWS_PINPOINT_API SMSChannelRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
SMSChannelRequest & WithSenderId(Aws::String &&value)
SMSChannelRequest & WithShortCode(Aws::String &&value)
SMSChannelRequest & WithSenderId(const char *value)
const Aws::String & GetShortCode() const
void SetSenderId(const Aws::String &value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
SMSChannelRequest & WithShortCode(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue