AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
JourneySMSMessage.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/pinpoint/model/MessageType.h>
9#include <aws/core/utils/memory/stl/AWSString.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 JourneySMSMessage();
37 AWS_PINPOINT_API JourneySMSMessage(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
49 inline const MessageType& GetMessageType() const{ return m_messageType; }
50 inline bool MessageTypeHasBeenSet() const { return m_messageTypeHasBeenSet; }
51 inline void SetMessageType(const MessageType& value) { m_messageTypeHasBeenSet = true; m_messageType = value; }
52 inline void SetMessageType(MessageType&& value) { m_messageTypeHasBeenSet = true; m_messageType = std::move(value); }
53 inline JourneySMSMessage& WithMessageType(const MessageType& value) { SetMessageType(value); return *this;}
54 inline JourneySMSMessage& WithMessageType(MessageType&& value) { SetMessageType(std::move(value)); return *this;}
56
58
65 inline const Aws::String& GetOriginationNumber() const{ return m_originationNumber; }
66 inline bool OriginationNumberHasBeenSet() const { return m_originationNumberHasBeenSet; }
67 inline void SetOriginationNumber(const Aws::String& value) { m_originationNumberHasBeenSet = true; m_originationNumber = value; }
68 inline void SetOriginationNumber(Aws::String&& value) { m_originationNumberHasBeenSet = true; m_originationNumber = std::move(value); }
69 inline void SetOriginationNumber(const char* value) { m_originationNumberHasBeenSet = true; m_originationNumber.assign(value); }
70 inline JourneySMSMessage& WithOriginationNumber(const Aws::String& value) { SetOriginationNumber(value); return *this;}
71 inline JourneySMSMessage& WithOriginationNumber(Aws::String&& value) { SetOriginationNumber(std::move(value)); return *this;}
72 inline JourneySMSMessage& WithOriginationNumber(const char* value) { SetOriginationNumber(value); return *this;}
74
76
83 inline const Aws::String& GetSenderId() const{ return m_senderId; }
84 inline bool SenderIdHasBeenSet() const { return m_senderIdHasBeenSet; }
85 inline void SetSenderId(const Aws::String& value) { m_senderIdHasBeenSet = true; m_senderId = value; }
86 inline void SetSenderId(Aws::String&& value) { m_senderIdHasBeenSet = true; m_senderId = std::move(value); }
87 inline void SetSenderId(const char* value) { m_senderIdHasBeenSet = true; m_senderId.assign(value); }
88 inline JourneySMSMessage& WithSenderId(const Aws::String& value) { SetSenderId(value); return *this;}
89 inline JourneySMSMessage& WithSenderId(Aws::String&& value) { SetSenderId(std::move(value)); return *this;}
90 inline JourneySMSMessage& WithSenderId(const char* value) { SetSenderId(value); return *this;}
92
94
98 inline const Aws::String& GetEntityId() const{ return m_entityId; }
99 inline bool EntityIdHasBeenSet() const { return m_entityIdHasBeenSet; }
100 inline void SetEntityId(const Aws::String& value) { m_entityIdHasBeenSet = true; m_entityId = value; }
101 inline void SetEntityId(Aws::String&& value) { m_entityIdHasBeenSet = true; m_entityId = std::move(value); }
102 inline void SetEntityId(const char* value) { m_entityIdHasBeenSet = true; m_entityId.assign(value); }
103 inline JourneySMSMessage& WithEntityId(const Aws::String& value) { SetEntityId(value); return *this;}
104 inline JourneySMSMessage& WithEntityId(Aws::String&& value) { SetEntityId(std::move(value)); return *this;}
105 inline JourneySMSMessage& WithEntityId(const char* value) { SetEntityId(value); return *this;}
107
109
113 inline const Aws::String& GetTemplateId() const{ return m_templateId; }
114 inline bool TemplateIdHasBeenSet() const { return m_templateIdHasBeenSet; }
115 inline void SetTemplateId(const Aws::String& value) { m_templateIdHasBeenSet = true; m_templateId = value; }
116 inline void SetTemplateId(Aws::String&& value) { m_templateIdHasBeenSet = true; m_templateId = std::move(value); }
117 inline void SetTemplateId(const char* value) { m_templateIdHasBeenSet = true; m_templateId.assign(value); }
118 inline JourneySMSMessage& WithTemplateId(const Aws::String& value) { SetTemplateId(value); return *this;}
119 inline JourneySMSMessage& WithTemplateId(Aws::String&& value) { SetTemplateId(std::move(value)); return *this;}
120 inline JourneySMSMessage& WithTemplateId(const char* value) { SetTemplateId(value); return *this;}
122 private:
123
124 MessageType m_messageType;
125 bool m_messageTypeHasBeenSet = false;
126
127 Aws::String m_originationNumber;
128 bool m_originationNumberHasBeenSet = false;
129
130 Aws::String m_senderId;
131 bool m_senderIdHasBeenSet = false;
132
133 Aws::String m_entityId;
134 bool m_entityIdHasBeenSet = false;
135
136 Aws::String m_templateId;
137 bool m_templateIdHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace Pinpoint
142} // namespace Aws
void SetTemplateId(const Aws::String &value)
void SetOriginationNumber(Aws::String &&value)
void SetEntityId(const Aws::String &value)
AWS_PINPOINT_API JourneySMSMessage(Aws::Utils::Json::JsonView jsonValue)
JourneySMSMessage & WithEntityId(Aws::String &&value)
JourneySMSMessage & WithEntityId(const Aws::String &value)
void SetOriginationNumber(const Aws::String &value)
const Aws::String & GetEntityId() const
void SetMessageType(const MessageType &value)
JourneySMSMessage & WithTemplateId(const Aws::String &value)
JourneySMSMessage & WithSenderId(const Aws::String &value)
const Aws::String & GetOriginationNumber() const
JourneySMSMessage & WithEntityId(const char *value)
JourneySMSMessage & WithMessageType(const MessageType &value)
AWS_PINPOINT_API JourneySMSMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
JourneySMSMessage & WithOriginationNumber(const Aws::String &value)
void SetSenderId(const Aws::String &value)
JourneySMSMessage & WithSenderId(Aws::String &&value)
JourneySMSMessage & WithTemplateId(Aws::String &&value)
const Aws::String & GetSenderId() const
JourneySMSMessage & WithOriginationNumber(const char *value)
const Aws::String & GetTemplateId() const
JourneySMSMessage & WithMessageType(MessageType &&value)
JourneySMSMessage & WithSenderId(const char *value)
const MessageType & GetMessageType() const
JourneySMSMessage & WithTemplateId(const char *value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
JourneySMSMessage & WithOriginationNumber(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue