AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Message.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/qbusiness/model/MessageType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/qbusiness/model/ActionReview.h>
13#include <aws/qbusiness/model/ActionExecution.h>
14#include <aws/qbusiness/model/AttachmentOutput.h>
15#include <aws/qbusiness/model/SourceAttribution.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace QBusiness
29{
30namespace Model
31{
32
39 class Message
40 {
41 public:
42 AWS_QBUSINESS_API Message();
43 AWS_QBUSINESS_API Message(Aws::Utils::Json::JsonView jsonValue);
44 AWS_QBUSINESS_API Message& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetMessageId() const{ return m_messageId; }
53 inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; }
54 inline void SetMessageId(const Aws::String& value) { m_messageIdHasBeenSet = true; m_messageId = value; }
55 inline void SetMessageId(Aws::String&& value) { m_messageIdHasBeenSet = true; m_messageId = std::move(value); }
56 inline void SetMessageId(const char* value) { m_messageIdHasBeenSet = true; m_messageId.assign(value); }
57 inline Message& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;}
58 inline Message& WithMessageId(Aws::String&& value) { SetMessageId(std::move(value)); return *this;}
59 inline Message& WithMessageId(const char* value) { SetMessageId(value); return *this;}
61
63
66 inline const Aws::String& GetBody() const{ return m_body; }
67 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
68 inline void SetBody(const Aws::String& value) { m_bodyHasBeenSet = true; m_body = value; }
69 inline void SetBody(Aws::String&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); }
70 inline void SetBody(const char* value) { m_bodyHasBeenSet = true; m_body.assign(value); }
71 inline Message& WithBody(const Aws::String& value) { SetBody(value); return *this;}
72 inline Message& WithBody(Aws::String&& value) { SetBody(std::move(value)); return *this;}
73 inline Message& WithBody(const char* value) { SetBody(value); return *this;}
75
77
80 inline const Aws::Utils::DateTime& GetTime() const{ return m_time; }
81 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
82 inline void SetTime(const Aws::Utils::DateTime& value) { m_timeHasBeenSet = true; m_time = value; }
83 inline void SetTime(Aws::Utils::DateTime&& value) { m_timeHasBeenSet = true; m_time = std::move(value); }
84 inline Message& WithTime(const Aws::Utils::DateTime& value) { SetTime(value); return *this;}
85 inline Message& WithTime(Aws::Utils::DateTime&& value) { SetTime(std::move(value)); return *this;}
87
89
93 inline const MessageType& GetType() const{ return m_type; }
94 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
95 inline void SetType(const MessageType& value) { m_typeHasBeenSet = true; m_type = value; }
96 inline void SetType(MessageType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
97 inline Message& WithType(const MessageType& value) { SetType(value); return *this;}
98 inline Message& WithType(MessageType&& value) { SetType(std::move(value)); return *this;}
100
102
105 inline const Aws::Vector<AttachmentOutput>& GetAttachments() const{ return m_attachments; }
106 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
107 inline void SetAttachments(const Aws::Vector<AttachmentOutput>& value) { m_attachmentsHasBeenSet = true; m_attachments = value; }
108 inline void SetAttachments(Aws::Vector<AttachmentOutput>&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::move(value); }
109 inline Message& WithAttachments(const Aws::Vector<AttachmentOutput>& value) { SetAttachments(value); return *this;}
110 inline Message& WithAttachments(Aws::Vector<AttachmentOutput>&& value) { SetAttachments(std::move(value)); return *this;}
111 inline Message& AddAttachments(const AttachmentOutput& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(value); return *this; }
112 inline Message& AddAttachments(AttachmentOutput&& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(std::move(value)); return *this; }
114
116
120 inline const Aws::Vector<SourceAttribution>& GetSourceAttribution() const{ return m_sourceAttribution; }
121 inline bool SourceAttributionHasBeenSet() const { return m_sourceAttributionHasBeenSet; }
122 inline void SetSourceAttribution(const Aws::Vector<SourceAttribution>& value) { m_sourceAttributionHasBeenSet = true; m_sourceAttribution = value; }
123 inline void SetSourceAttribution(Aws::Vector<SourceAttribution>&& value) { m_sourceAttributionHasBeenSet = true; m_sourceAttribution = std::move(value); }
125 inline Message& WithSourceAttribution(Aws::Vector<SourceAttribution>&& value) { SetSourceAttribution(std::move(value)); return *this;}
126 inline Message& AddSourceAttribution(const SourceAttribution& value) { m_sourceAttributionHasBeenSet = true; m_sourceAttribution.push_back(value); return *this; }
127 inline Message& AddSourceAttribution(SourceAttribution&& value) { m_sourceAttributionHasBeenSet = true; m_sourceAttribution.push_back(std::move(value)); return *this; }
129
131
132 inline const ActionReview& GetActionReview() const{ return m_actionReview; }
133 inline bool ActionReviewHasBeenSet() const { return m_actionReviewHasBeenSet; }
134 inline void SetActionReview(const ActionReview& value) { m_actionReviewHasBeenSet = true; m_actionReview = value; }
135 inline void SetActionReview(ActionReview&& value) { m_actionReviewHasBeenSet = true; m_actionReview = std::move(value); }
136 inline Message& WithActionReview(const ActionReview& value) { SetActionReview(value); return *this;}
137 inline Message& WithActionReview(ActionReview&& value) { SetActionReview(std::move(value)); return *this;}
139
141
142 inline const ActionExecution& GetActionExecution() const{ return m_actionExecution; }
143 inline bool ActionExecutionHasBeenSet() const { return m_actionExecutionHasBeenSet; }
144 inline void SetActionExecution(const ActionExecution& value) { m_actionExecutionHasBeenSet = true; m_actionExecution = value; }
145 inline void SetActionExecution(ActionExecution&& value) { m_actionExecutionHasBeenSet = true; m_actionExecution = std::move(value); }
146 inline Message& WithActionExecution(const ActionExecution& value) { SetActionExecution(value); return *this;}
147 inline Message& WithActionExecution(ActionExecution&& value) { SetActionExecution(std::move(value)); return *this;}
149 private:
150
151 Aws::String m_messageId;
152 bool m_messageIdHasBeenSet = false;
153
154 Aws::String m_body;
155 bool m_bodyHasBeenSet = false;
156
158 bool m_timeHasBeenSet = false;
159
160 MessageType m_type;
161 bool m_typeHasBeenSet = false;
162
163 Aws::Vector<AttachmentOutput> m_attachments;
164 bool m_attachmentsHasBeenSet = false;
165
166 Aws::Vector<SourceAttribution> m_sourceAttribution;
167 bool m_sourceAttributionHasBeenSet = false;
168
169 ActionReview m_actionReview;
170 bool m_actionReviewHasBeenSet = false;
171
172 ActionExecution m_actionExecution;
173 bool m_actionExecutionHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace QBusiness
178} // namespace Aws
Message & WithMessageId(const char *value)
Definition Message.h:59
void SetTime(const Aws::Utils::DateTime &value)
Definition Message.h:82
Message & WithActionExecution(const ActionExecution &value)
Definition Message.h:146
Message & AddSourceAttribution(const SourceAttribution &value)
Definition Message.h:126
bool MessageIdHasBeenSet() const
Definition Message.h:53
AWS_QBUSINESS_API Message & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetTime() const
Definition Message.h:80
void SetType(const MessageType &value)
Definition Message.h:95
AWS_QBUSINESS_API Message(Aws::Utils::Json::JsonView jsonValue)
void SetBody(Aws::String &&value)
Definition Message.h:69
Message & WithActionReview(ActionReview &&value)
Definition Message.h:137
Message & WithBody(Aws::String &&value)
Definition Message.h:72
void SetActionReview(ActionReview &&value)
Definition Message.h:135
Message & WithAttachments(Aws::Vector< AttachmentOutput > &&value)
Definition Message.h:110
Message & AddSourceAttribution(SourceAttribution &&value)
Definition Message.h:127
Message & WithTime(const Aws::Utils::DateTime &value)
Definition Message.h:84
const Aws::Vector< SourceAttribution > & GetSourceAttribution() const
Definition Message.h:120
void SetMessageId(const char *value)
Definition Message.h:56
void SetActionExecution(const ActionExecution &value)
Definition Message.h:144
void SetActionReview(const ActionReview &value)
Definition Message.h:134
Message & WithSourceAttribution(const Aws::Vector< SourceAttribution > &value)
Definition Message.h:124
const Aws::Vector< AttachmentOutput > & GetAttachments() const
Definition Message.h:105
void SetMessageId(Aws::String &&value)
Definition Message.h:55
bool AttachmentsHasBeenSet() const
Definition Message.h:106
void SetSourceAttribution(const Aws::Vector< SourceAttribution > &value)
Definition Message.h:122
void SetSourceAttribution(Aws::Vector< SourceAttribution > &&value)
Definition Message.h:123
const Aws::String & GetMessageId() const
Definition Message.h:52
Message & WithActionExecution(ActionExecution &&value)
Definition Message.h:147
bool ActionExecutionHasBeenSet() const
Definition Message.h:143
Message & WithBody(const char *value)
Definition Message.h:73
const MessageType & GetType() const
Definition Message.h:93
const ActionExecution & GetActionExecution() const
Definition Message.h:142
void SetActionExecution(ActionExecution &&value)
Definition Message.h:145
Message & WithAttachments(const Aws::Vector< AttachmentOutput > &value)
Definition Message.h:109
Message & WithMessageId(const Aws::String &value)
Definition Message.h:57
void SetMessageId(const Aws::String &value)
Definition Message.h:54
Message & WithSourceAttribution(Aws::Vector< SourceAttribution > &&value)
Definition Message.h:125
Message & AddAttachments(AttachmentOutput &&value)
Definition Message.h:112
void SetBody(const Aws::String &value)
Definition Message.h:68
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
bool SourceAttributionHasBeenSet() const
Definition Message.h:121
Message & WithActionReview(const ActionReview &value)
Definition Message.h:136
void SetAttachments(const Aws::Vector< AttachmentOutput > &value)
Definition Message.h:107
const Aws::String & GetBody() const
Definition Message.h:66
AWS_QBUSINESS_API Message()
Message & WithMessageId(Aws::String &&value)
Definition Message.h:58
Message & WithType(MessageType &&value)
Definition Message.h:98
void SetType(MessageType &&value)
Definition Message.h:96
Message & WithBody(const Aws::String &value)
Definition Message.h:71
void SetTime(Aws::Utils::DateTime &&value)
Definition Message.h:83
Message & WithType(const MessageType &value)
Definition Message.h:97
Message & WithTime(Aws::Utils::DateTime &&value)
Definition Message.h:85
bool ActionReviewHasBeenSet() const
Definition Message.h:133
Message & AddAttachments(const AttachmentOutput &value)
Definition Message.h:111
void SetAttachments(Aws::Vector< AttachmentOutput > &&value)
Definition Message.h:108
const ActionReview & GetActionReview() const
Definition Message.h:132
void SetBody(const char *value)
Definition Message.h:70
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue