AWS SDK for C++

AWS SDK for C++ Version 1.11.934

Loading...
Searching...
No Matches
BatchUpdateCaseRequest.h
1
6#pragma once
7#include <aws/connectcases/ConnectCasesRequest.h>
8#include <aws/connectcases/ConnectCases_EXPORTS.h>
9#include <aws/connectcases/model/BatchUpdateCaseIdentifier.h>
10#include <aws/connectcases/model/FieldValueInput.h>
11#include <aws/connectcases/model/UserUnion.h>
12#include <aws/core/utils/UUID.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace ConnectCases {
20namespace Model {
21
25 public:
26 AWS_CONNECTCASES_API BatchUpdateCaseRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "BatchUpdateCase"; }
33
34 AWS_CONNECTCASES_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetDomainId() const { return m_domainId; }
41 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
42 template <typename DomainIdT = Aws::String>
43 void SetDomainId(DomainIdT&& value) {
44 m_domainIdHasBeenSet = true;
45 m_domainId = std::forward<DomainIdT>(value);
46 }
47 template <typename DomainIdT = Aws::String>
49 SetDomainId(std::forward<DomainIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<BatchUpdateCaseIdentifier>& GetCases() const { return m_cases; }
59 inline bool CasesHasBeenSet() const { return m_casesHasBeenSet; }
60 template <typename CasesT = Aws::Vector<BatchUpdateCaseIdentifier>>
61 void SetCases(CasesT&& value) {
62 m_casesHasBeenSet = true;
63 m_cases = std::forward<CasesT>(value);
64 }
65 template <typename CasesT = Aws::Vector<BatchUpdateCaseIdentifier>>
67 SetCases(std::forward<CasesT>(value));
68 return *this;
69 }
70 template <typename CasesT = BatchUpdateCaseIdentifier>
72 m_casesHasBeenSet = true;
73 m_cases.emplace_back(std::forward<CasesT>(value));
74 return *this;
75 }
77
79
91 inline const Aws::Vector<FieldValueInput>& GetFields() const { return m_fields; }
92 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
93 template <typename FieldsT = Aws::Vector<FieldValueInput>>
94 void SetFields(FieldsT&& value) {
95 m_fieldsHasBeenSet = true;
96 m_fields = std::forward<FieldsT>(value);
97 }
98 template <typename FieldsT = Aws::Vector<FieldValueInput>>
100 SetFields(std::forward<FieldsT>(value));
101 return *this;
102 }
103 template <typename FieldsT = FieldValueInput>
105 m_fieldsHasBeenSet = true;
106 m_fields.emplace_back(std::forward<FieldsT>(value));
107 return *this;
108 }
110
112
115 inline const UserUnion& GetPerformedBy() const { return m_performedBy; }
116 inline bool PerformedByHasBeenSet() const { return m_performedByHasBeenSet; }
117 template <typename PerformedByT = UserUnion>
118 void SetPerformedBy(PerformedByT&& value) {
119 m_performedByHasBeenSet = true;
120 m_performedBy = std::forward<PerformedByT>(value);
121 }
122 template <typename PerformedByT = UserUnion>
124 SetPerformedBy(std::forward<PerformedByT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetTitle() const { return m_title; }
134 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
135 template <typename TitleT = Aws::String>
136 void SetTitle(TitleT&& value) {
137 m_titleHasBeenSet = true;
138 m_title = std::forward<TitleT>(value);
139 }
140 template <typename TitleT = Aws::String>
142 SetTitle(std::forward<TitleT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::String& GetStatus() const { return m_status; }
152 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
153 template <typename StatusT = Aws::String>
154 void SetStatus(StatusT&& value) {
155 m_statusHasBeenSet = true;
156 m_status = std::forward<StatusT>(value);
157 }
158 template <typename StatusT = Aws::String>
160 SetStatus(std::forward<StatusT>(value));
161 return *this;
162 }
164
166
170 inline const Aws::String& GetCustomerId() const { return m_customerId; }
171 inline bool CustomerIdHasBeenSet() const { return m_customerIdHasBeenSet; }
172 template <typename CustomerIdT = Aws::String>
173 void SetCustomerId(CustomerIdT&& value) {
174 m_customerIdHasBeenSet = true;
175 m_customerId = std::forward<CustomerIdT>(value);
176 }
177 template <typename CustomerIdT = Aws::String>
179 SetCustomerId(std::forward<CustomerIdT>(value));
180 return *this;
181 }
183
185
195 inline const Aws::String& GetClientToken() const { return m_clientToken; }
196 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
197 template <typename ClientTokenT = Aws::String>
198 void SetClientToken(ClientTokenT&& value) {
199 m_clientTokenHasBeenSet = true;
200 m_clientToken = std::forward<ClientTokenT>(value);
201 }
202 template <typename ClientTokenT = Aws::String>
204 SetClientToken(std::forward<ClientTokenT>(value));
205 return *this;
206 }
208 private:
209 Aws::String m_domainId;
210
212
214
215 UserUnion m_performedBy;
216
217 Aws::String m_title;
218
219 Aws::String m_status;
220
221 Aws::String m_customerId;
222
224 bool m_domainIdHasBeenSet = false;
225 bool m_casesHasBeenSet = false;
226 bool m_fieldsHasBeenSet = false;
227 bool m_performedByHasBeenSet = false;
228 bool m_titleHasBeenSet = false;
229 bool m_statusHasBeenSet = false;
230 bool m_customerIdHasBeenSet = false;
231 bool m_clientTokenHasBeenSet = true;
232};
233
234} // namespace Model
235} // namespace ConnectCases
236} // namespace Aws
BatchUpdateCaseRequest & WithPerformedBy(PerformedByT &&value)
BatchUpdateCaseRequest & AddFields(FieldsT &&value)
AWS_CONNECTCASES_API Aws::String SerializePayload() const override
const Aws::Vector< FieldValueInput > & GetFields() const
BatchUpdateCaseRequest & WithStatus(StatusT &&value)
BatchUpdateCaseRequest & WithTitle(TitleT &&value)
BatchUpdateCaseRequest & WithCases(CasesT &&value)
BatchUpdateCaseRequest & AddCases(CasesT &&value)
BatchUpdateCaseRequest & WithDomainId(DomainIdT &&value)
const Aws::Vector< BatchUpdateCaseIdentifier > & GetCases() const
BatchUpdateCaseRequest & WithFields(FieldsT &&value)
virtual const char * GetServiceRequestName() const override
BatchUpdateCaseRequest & WithCustomerId(CustomerIdT &&value)
AWS_CONNECTCASES_API BatchUpdateCaseRequest()=default
BatchUpdateCaseRequest & WithClientToken(ClientTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector