AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CampaignSmsMessage.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pinpoint/model/MessageType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Pinpoint
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_PINPOINT_API CampaignSmsMessage();
39 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetBody() const{ return m_body; }
47 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
48 inline void SetBody(const Aws::String& value) { m_bodyHasBeenSet = true; m_body = value; }
49 inline void SetBody(Aws::String&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); }
50 inline void SetBody(const char* value) { m_bodyHasBeenSet = true; m_body.assign(value); }
51 inline CampaignSmsMessage& WithBody(const Aws::String& value) { SetBody(value); return *this;}
52 inline CampaignSmsMessage& WithBody(Aws::String&& value) { SetBody(std::move(value)); return *this;}
53 inline CampaignSmsMessage& WithBody(const char* value) { SetBody(value); return *this;}
55
57
63 inline const MessageType& GetMessageType() const{ return m_messageType; }
64 inline bool MessageTypeHasBeenSet() const { return m_messageTypeHasBeenSet; }
65 inline void SetMessageType(const MessageType& value) { m_messageTypeHasBeenSet = true; m_messageType = value; }
66 inline void SetMessageType(MessageType&& value) { m_messageTypeHasBeenSet = true; m_messageType = std::move(value); }
67 inline CampaignSmsMessage& WithMessageType(const MessageType& value) { SetMessageType(value); return *this;}
68 inline CampaignSmsMessage& WithMessageType(MessageType&& value) { SetMessageType(std::move(value)); return *this;}
70
72
79 inline const Aws::String& GetOriginationNumber() const{ return m_originationNumber; }
80 inline bool OriginationNumberHasBeenSet() const { return m_originationNumberHasBeenSet; }
81 inline void SetOriginationNumber(const Aws::String& value) { m_originationNumberHasBeenSet = true; m_originationNumber = value; }
82 inline void SetOriginationNumber(Aws::String&& value) { m_originationNumberHasBeenSet = true; m_originationNumber = std::move(value); }
83 inline void SetOriginationNumber(const char* value) { m_originationNumberHasBeenSet = true; m_originationNumber.assign(value); }
84 inline CampaignSmsMessage& WithOriginationNumber(const Aws::String& value) { SetOriginationNumber(value); return *this;}
85 inline CampaignSmsMessage& WithOriginationNumber(Aws::String&& value) { SetOriginationNumber(std::move(value)); return *this;}
86 inline CampaignSmsMessage& WithOriginationNumber(const char* value) { SetOriginationNumber(value); return *this;}
88
90
94 inline const Aws::String& GetSenderId() const{ return m_senderId; }
95 inline bool SenderIdHasBeenSet() const { return m_senderIdHasBeenSet; }
96 inline void SetSenderId(const Aws::String& value) { m_senderIdHasBeenSet = true; m_senderId = value; }
97 inline void SetSenderId(Aws::String&& value) { m_senderIdHasBeenSet = true; m_senderId = std::move(value); }
98 inline void SetSenderId(const char* value) { m_senderIdHasBeenSet = true; m_senderId.assign(value); }
99 inline CampaignSmsMessage& WithSenderId(const Aws::String& value) { SetSenderId(value); return *this;}
100 inline CampaignSmsMessage& WithSenderId(Aws::String&& value) { SetSenderId(std::move(value)); return *this;}
101 inline CampaignSmsMessage& WithSenderId(const char* value) { SetSenderId(value); return *this;}
103
105
109 inline const Aws::String& GetEntityId() const{ return m_entityId; }
110 inline bool EntityIdHasBeenSet() const { return m_entityIdHasBeenSet; }
111 inline void SetEntityId(const Aws::String& value) { m_entityIdHasBeenSet = true; m_entityId = value; }
112 inline void SetEntityId(Aws::String&& value) { m_entityIdHasBeenSet = true; m_entityId = std::move(value); }
113 inline void SetEntityId(const char* value) { m_entityIdHasBeenSet = true; m_entityId.assign(value); }
114 inline CampaignSmsMessage& WithEntityId(const Aws::String& value) { SetEntityId(value); return *this;}
115 inline CampaignSmsMessage& WithEntityId(Aws::String&& value) { SetEntityId(std::move(value)); return *this;}
116 inline CampaignSmsMessage& WithEntityId(const char* value) { SetEntityId(value); return *this;}
118
120
124 inline const Aws::String& GetTemplateId() const{ return m_templateId; }
125 inline bool TemplateIdHasBeenSet() const { return m_templateIdHasBeenSet; }
126 inline void SetTemplateId(const Aws::String& value) { m_templateIdHasBeenSet = true; m_templateId = value; }
127 inline void SetTemplateId(Aws::String&& value) { m_templateIdHasBeenSet = true; m_templateId = std::move(value); }
128 inline void SetTemplateId(const char* value) { m_templateIdHasBeenSet = true; m_templateId.assign(value); }
129 inline CampaignSmsMessage& WithTemplateId(const Aws::String& value) { SetTemplateId(value); return *this;}
130 inline CampaignSmsMessage& WithTemplateId(Aws::String&& value) { SetTemplateId(std::move(value)); return *this;}
131 inline CampaignSmsMessage& WithTemplateId(const char* value) { SetTemplateId(value); return *this;}
133 private:
134
135 Aws::String m_body;
136 bool m_bodyHasBeenSet = false;
137
138 MessageType m_messageType;
139 bool m_messageTypeHasBeenSet = false;
140
141 Aws::String m_originationNumber;
142 bool m_originationNumberHasBeenSet = false;
143
144 Aws::String m_senderId;
145 bool m_senderIdHasBeenSet = false;
146
147 Aws::String m_entityId;
148 bool m_entityIdHasBeenSet = false;
149
150 Aws::String m_templateId;
151 bool m_templateIdHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace Pinpoint
156} // namespace Aws
CampaignSmsMessage & WithTemplateId(Aws::String &&value)
CampaignSmsMessage & WithEntityId(Aws::String &&value)
void SetMessageType(const MessageType &value)
void SetBody(const Aws::String &value)
CampaignSmsMessage & WithEntityId(const Aws::String &value)
CampaignSmsMessage & WithOriginationNumber(Aws::String &&value)
CampaignSmsMessage & WithOriginationNumber(const char *value)
CampaignSmsMessage & WithMessageType(MessageType &&value)
void SetSenderId(const Aws::String &value)
const Aws::String & GetOriginationNumber() const
CampaignSmsMessage & WithTemplateId(const Aws::String &value)
CampaignSmsMessage & WithEntityId(const char *value)
void SetOriginationNumber(const Aws::String &value)
CampaignSmsMessage & WithSenderId(const char *value)
CampaignSmsMessage & WithMessageType(const MessageType &value)
CampaignSmsMessage & WithBody(const Aws::String &value)
CampaignSmsMessage & WithBody(const char *value)
const MessageType & GetMessageType() const
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEntityId(const Aws::String &value)
CampaignSmsMessage & WithOriginationNumber(const Aws::String &value)
CampaignSmsMessage & WithSenderId(Aws::String &&value)
AWS_PINPOINT_API CampaignSmsMessage(Aws::Utils::Json::JsonView jsonValue)
void SetTemplateId(const Aws::String &value)
CampaignSmsMessage & WithTemplateId(const char *value)
CampaignSmsMessage & WithSenderId(const Aws::String &value)
CampaignSmsMessage & WithBody(Aws::String &&value)
void SetOriginationNumber(Aws::String &&value)
AWS_PINPOINT_API CampaignSmsMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue