AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Communication.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/support/Support_EXPORTS.h>
10#include <aws/support/model/AttachmentDetails.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Support {
22namespace Model {
23
33 public:
34 AWS_SUPPORT_API Communication() = default;
35 AWS_SUPPORT_API Communication(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
45 inline const Aws::String& GetCaseId() const { return m_caseId; }
46 inline bool CaseIdHasBeenSet() const { return m_caseIdHasBeenSet; }
47 template <typename CaseIdT = Aws::String>
48 void SetCaseId(CaseIdT&& value) {
49 m_caseIdHasBeenSet = true;
50 m_caseId = std::forward<CaseIdT>(value);
51 }
52 template <typename CaseIdT = Aws::String>
53 Communication& WithCaseId(CaseIdT&& value) {
54 SetCaseId(std::forward<CaseIdT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetBody() const { return m_body; }
65 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
66 template <typename BodyT = Aws::String>
67 void SetBody(BodyT&& value) {
68 m_bodyHasBeenSet = true;
69 m_body = std::forward<BodyT>(value);
70 }
71 template <typename BodyT = Aws::String>
72 Communication& WithBody(BodyT&& value) {
73 SetBody(std::forward<BodyT>(value));
74 return *this;
75 }
77
79
86 inline const Aws::String& GetSubmittedBy() const { return m_submittedBy; }
87 inline bool SubmittedByHasBeenSet() const { return m_submittedByHasBeenSet; }
88 template <typename SubmittedByT = Aws::String>
89 void SetSubmittedBy(SubmittedByT&& value) {
90 m_submittedByHasBeenSet = true;
91 m_submittedBy = std::forward<SubmittedByT>(value);
92 }
93 template <typename SubmittedByT = Aws::String>
94 Communication& WithSubmittedBy(SubmittedByT&& value) {
95 SetSubmittedBy(std::forward<SubmittedByT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetTimeCreated() const { return m_timeCreated; }
105 inline bool TimeCreatedHasBeenSet() const { return m_timeCreatedHasBeenSet; }
106 template <typename TimeCreatedT = Aws::String>
107 void SetTimeCreated(TimeCreatedT&& value) {
108 m_timeCreatedHasBeenSet = true;
109 m_timeCreated = std::forward<TimeCreatedT>(value);
110 }
111 template <typename TimeCreatedT = Aws::String>
112 Communication& WithTimeCreated(TimeCreatedT&& value) {
113 SetTimeCreated(std::forward<TimeCreatedT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::Vector<AttachmentDetails>& GetAttachmentSet() const { return m_attachmentSet; }
123 inline bool AttachmentSetHasBeenSet() const { return m_attachmentSetHasBeenSet; }
124 template <typename AttachmentSetT = Aws::Vector<AttachmentDetails>>
125 void SetAttachmentSet(AttachmentSetT&& value) {
126 m_attachmentSetHasBeenSet = true;
127 m_attachmentSet = std::forward<AttachmentSetT>(value);
128 }
129 template <typename AttachmentSetT = Aws::Vector<AttachmentDetails>>
130 Communication& WithAttachmentSet(AttachmentSetT&& value) {
131 SetAttachmentSet(std::forward<AttachmentSetT>(value));
132 return *this;
133 }
134 template <typename AttachmentSetT = AttachmentDetails>
135 Communication& AddAttachmentSet(AttachmentSetT&& value) {
136 m_attachmentSetHasBeenSet = true;
137 m_attachmentSet.emplace_back(std::forward<AttachmentSetT>(value));
138 return *this;
139 }
141 private:
142 Aws::String m_caseId;
143
144 Aws::String m_body;
145
146 Aws::String m_submittedBy;
147
148 Aws::String m_timeCreated;
149
150 Aws::Vector<AttachmentDetails> m_attachmentSet;
151 bool m_caseIdHasBeenSet = false;
152 bool m_bodyHasBeenSet = false;
153 bool m_submittedByHasBeenSet = false;
154 bool m_timeCreatedHasBeenSet = false;
155 bool m_attachmentSetHasBeenSet = false;
156};
157
158} // namespace Model
159} // namespace Support
160} // namespace Aws
Communication & WithCaseId(CaseIdT &&value)
const Aws::String & GetBody() const
const Aws::String & GetSubmittedBy() const
void SetTimeCreated(TimeCreatedT &&value)
void SetCaseId(CaseIdT &&value)
AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const
Communication & WithSubmittedBy(SubmittedByT &&value)
Communication & WithTimeCreated(TimeCreatedT &&value)
AWS_SUPPORT_API Communication()=default
Communication & AddAttachmentSet(AttachmentSetT &&value)
void SetSubmittedBy(SubmittedByT &&value)
Communication & WithAttachmentSet(AttachmentSetT &&value)
Communication & WithBody(BodyT &&value)
AWS_SUPPORT_API Communication(Aws::Utils::Json::JsonView jsonValue)
AWS_SUPPORT_API Communication & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTimeCreated() const
void SetAttachmentSet(AttachmentSetT &&value)
const Aws::Vector< AttachmentDetails > & GetAttachmentSet() const
const Aws::String & GetCaseId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue