AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
PutEvidenceRequest.h
1
6#pragma once
7#include <aws/assurance/AssuranceRequest.h>
8#include <aws/assurance/Assurance_EXPORTS.h>
9#include <aws/assurance/model/ControlReference.h>
10#include <aws/assurance/model/EvidencePurpose.h>
11#include <aws/assurance/model/LinkMode.h>
12#include <aws/core/utils/Array.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 Assurance {
20namespace Model {
21
28 public:
29 AWS_ASSURANCE_API PutEvidenceRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "PutEvidence"; }
36
37 AWS_ASSURANCE_API Aws::String SerializePayload() const override;
38
40
42
45 inline const Aws::String& GetEnvironmentArn() const { return m_environmentArn; }
46 inline bool EnvironmentArnHasBeenSet() const { return m_environmentArnHasBeenSet; }
47 template <typename EnvironmentArnT = Aws::String>
48 void SetEnvironmentArn(EnvironmentArnT&& value) {
49 m_environmentArnHasBeenSet = true;
50 m_environmentArn = std::forward<EnvironmentArnT>(value);
51 }
52 template <typename EnvironmentArnT = Aws::String>
53 PutEvidenceRequest& WithEnvironmentArn(EnvironmentArnT&& value) {
54 SetEnvironmentArn(std::forward<EnvironmentArnT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::Utils::CryptoBuffer& GetContent() const { return m_content; }
65 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
66 template <typename ContentT = Aws::Utils::CryptoBuffer>
67 void SetContent(ContentT&& value) {
68 m_contentHasBeenSet = true;
69 m_content = std::forward<ContentT>(value);
70 }
71 template <typename ContentT = Aws::Utils::CryptoBuffer>
72 PutEvidenceRequest& WithContent(ContentT&& value) {
73 SetContent(std::forward<ContentT>(value));
74 return *this;
75 }
77
79
86 inline const Aws::String& GetTitle() const { return m_title; }
87 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
88 template <typename TitleT = Aws::String>
89 void SetTitle(TitleT&& value) {
90 m_titleHasBeenSet = true;
91 m_title = std::forward<TitleT>(value);
92 }
93 template <typename TitleT = Aws::String>
94 PutEvidenceRequest& WithTitle(TitleT&& value) {
95 SetTitle(std::forward<TitleT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetDescription() const { return m_description; }
105 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
106 template <typename DescriptionT = Aws::String>
107 void SetDescription(DescriptionT&& value) {
108 m_descriptionHasBeenSet = true;
109 m_description = std::forward<DescriptionT>(value);
110 }
111 template <typename DescriptionT = Aws::String>
112 PutEvidenceRequest& WithDescription(DescriptionT&& value) {
113 SetDescription(std::forward<DescriptionT>(value));
114 return *this;
115 }
117
119
123 inline const Aws::String& GetEvidenceId() const { return m_evidenceId; }
124 inline bool EvidenceIdHasBeenSet() const { return m_evidenceIdHasBeenSet; }
125 template <typename EvidenceIdT = Aws::String>
126 void SetEvidenceId(EvidenceIdT&& value) {
127 m_evidenceIdHasBeenSet = true;
128 m_evidenceId = std::forward<EvidenceIdT>(value);
129 }
130 template <typename EvidenceIdT = Aws::String>
131 PutEvidenceRequest& WithEvidenceId(EvidenceIdT&& value) {
132 SetEvidenceId(std::forward<EvidenceIdT>(value));
133 return *this;
134 }
136
138
145 inline const Aws::String& GetContentMIMEType() const { return m_contentMIMEType; }
146 inline bool ContentMIMETypeHasBeenSet() const { return m_contentMIMETypeHasBeenSet; }
147 template <typename ContentMIMETypeT = Aws::String>
148 void SetContentMIMEType(ContentMIMETypeT&& value) {
149 m_contentMIMETypeHasBeenSet = true;
150 m_contentMIMEType = std::forward<ContentMIMETypeT>(value);
151 }
152 template <typename ContentMIMETypeT = Aws::String>
153 PutEvidenceRequest& WithContentMIMEType(ContentMIMETypeT&& value) {
154 SetContentMIMEType(std::forward<ContentMIMETypeT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::String& GetProject() const { return m_project; }
164 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
165 template <typename ProjectT = Aws::String>
166 void SetProject(ProjectT&& value) {
167 m_projectHasBeenSet = true;
168 m_project = std::forward<ProjectT>(value);
169 }
170 template <typename ProjectT = Aws::String>
171 PutEvidenceRequest& WithProject(ProjectT&& value) {
172 SetProject(std::forward<ProjectT>(value));
173 return *this;
174 }
176
178
187 inline const Aws::String& GetReference() const { return m_reference; }
188 inline bool ReferenceHasBeenSet() const { return m_referenceHasBeenSet; }
189 template <typename ReferenceT = Aws::String>
190 void SetReference(ReferenceT&& value) {
191 m_referenceHasBeenSet = true;
192 m_reference = std::forward<ReferenceT>(value);
193 }
194 template <typename ReferenceT = Aws::String>
195 PutEvidenceRequest& WithReference(ReferenceT&& value) {
196 SetReference(std::forward<ReferenceT>(value));
197 return *this;
198 }
200
202
210 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
211 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
212 template <typename ConnectionIdT = Aws::String>
213 void SetConnectionId(ConnectionIdT&& value) {
214 m_connectionIdHasBeenSet = true;
215 m_connectionId = std::forward<ConnectionIdT>(value);
216 }
217 template <typename ConnectionIdT = Aws::String>
218 PutEvidenceRequest& WithConnectionId(ConnectionIdT&& value) {
219 SetConnectionId(std::forward<ConnectionIdT>(value));
220 return *this;
221 }
223
225
229 inline const Aws::Vector<ControlReference>& GetControlReferences() const { return m_controlReferences; }
230 inline bool ControlReferencesHasBeenSet() const { return m_controlReferencesHasBeenSet; }
231 template <typename ControlReferencesT = Aws::Vector<ControlReference>>
232 void SetControlReferences(ControlReferencesT&& value) {
233 m_controlReferencesHasBeenSet = true;
234 m_controlReferences = std::forward<ControlReferencesT>(value);
235 }
236 template <typename ControlReferencesT = Aws::Vector<ControlReference>>
237 PutEvidenceRequest& WithControlReferences(ControlReferencesT&& value) {
238 SetControlReferences(std::forward<ControlReferencesT>(value));
239 return *this;
240 }
241 template <typename ControlReferencesT = ControlReference>
242 PutEvidenceRequest& AddControlReferences(ControlReferencesT&& value) {
243 m_controlReferencesHasBeenSet = true;
244 m_controlReferences.emplace_back(std::forward<ControlReferencesT>(value));
245 return *this;
246 }
248
250
265 inline LinkMode GetLinkMode() const { return m_linkMode; }
266 inline bool LinkModeHasBeenSet() const { return m_linkModeHasBeenSet; }
267 inline void SetLinkMode(LinkMode value) {
268 m_linkModeHasBeenSet = true;
269 m_linkMode = value;
270 }
272 SetLinkMode(value);
273 return *this;
274 }
276
278
288 inline EvidencePurpose GetPurpose() const { return m_purpose; }
289 inline bool PurposeHasBeenSet() const { return m_purposeHasBeenSet; }
290 inline void SetPurpose(EvidencePurpose value) {
291 m_purposeHasBeenSet = true;
292 m_purpose = value;
293 }
295 SetPurpose(value);
296 return *this;
297 }
299 private:
300 Aws::String m_environmentArn;
301
302 Aws::Utils::CryptoBuffer m_content{};
303
304 Aws::String m_title;
305
306 Aws::String m_description;
307
308 Aws::String m_evidenceId;
309
310 Aws::String m_contentMIMEType;
311
312 Aws::String m_project;
313
314 Aws::String m_reference;
315
316 Aws::String m_connectionId;
317
318 Aws::Vector<ControlReference> m_controlReferences;
319
320 LinkMode m_linkMode{LinkMode::NOT_SET};
321
323 bool m_environmentArnHasBeenSet = false;
324 bool m_contentHasBeenSet = false;
325 bool m_titleHasBeenSet = false;
326 bool m_descriptionHasBeenSet = false;
327 bool m_evidenceIdHasBeenSet = false;
328 bool m_contentMIMETypeHasBeenSet = false;
329 bool m_projectHasBeenSet = false;
330 bool m_referenceHasBeenSet = false;
331 bool m_connectionIdHasBeenSet = false;
332 bool m_controlReferencesHasBeenSet = false;
333 bool m_linkModeHasBeenSet = false;
334 bool m_purposeHasBeenSet = false;
335};
336
337} // namespace Model
338} // namespace Assurance
339} // namespace Aws
void SetEnvironmentArn(EnvironmentArnT &&value)
const Aws::String & GetEnvironmentArn() const
PutEvidenceRequest & AddControlReferences(ControlReferencesT &&value)
PutEvidenceRequest & WithEvidenceId(EvidenceIdT &&value)
PutEvidenceRequest & WithDescription(DescriptionT &&value)
void SetContentMIMEType(ContentMIMETypeT &&value)
PutEvidenceRequest & WithContentMIMEType(ContentMIMETypeT &&value)
PutEvidenceRequest & WithContent(ContentT &&value)
AWS_ASSURANCE_API Aws::String SerializePayload() const override
const Aws::Utils::CryptoBuffer & GetContent() const
const Aws::Vector< ControlReference > & GetControlReferences() const
PutEvidenceRequest & WithPurpose(EvidencePurpose value)
const Aws::String & GetContentMIMEType() const
PutEvidenceRequest & WithLinkMode(LinkMode value)
PutEvidenceRequest & WithTitle(TitleT &&value)
PutEvidenceRequest & WithProject(ProjectT &&value)
AWS_ASSURANCE_API PutEvidenceRequest()=default
virtual const char * GetServiceRequestName() const override
PutEvidenceRequest & WithReference(ReferenceT &&value)
AWS_ASSURANCE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutEvidenceRequest & WithConnectionId(ConnectionIdT &&value)
PutEvidenceRequest & WithControlReferences(ControlReferencesT &&value)
void SetControlReferences(ControlReferencesT &&value)
PutEvidenceRequest & WithEnvironmentArn(EnvironmentArnT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector