AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
GetEvidenceContentResult.h
1
6#pragma once
7#include <aws/assurance/Assurance_EXPORTS.h>
8#include <aws/core/http/HttpResponse.h>
9#include <aws/core/utils/Array.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/crt/cbor/Cbor.h>
12
13#include <utility>
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Cbor {
20class CborValue;
21} // namespace Cbor
22} // namespace Utils
23namespace Assurance {
24namespace Model {
32 public:
33 AWS_ASSURANCE_API GetEvidenceContentResult() = default;
36
38
41 inline const Aws::Utils::CryptoBuffer& GetContent() const { return m_content; }
42 template <typename ContentT = Aws::Utils::CryptoBuffer>
43 void SetContent(ContentT&& value) {
44 m_contentHasBeenSet = true;
45 m_content = std::forward<ContentT>(value);
46 }
47 template <typename ContentT = Aws::Utils::CryptoBuffer>
49 SetContent(std::forward<ContentT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetContentType() const { return m_contentType; }
59 template <typename ContentTypeT = Aws::String>
60 void SetContentType(ContentTypeT&& value) {
61 m_contentTypeHasBeenSet = true;
62 m_contentType = std::forward<ContentTypeT>(value);
63 }
64 template <typename ContentTypeT = Aws::String>
66 SetContentType(std::forward<ContentTypeT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetTitle() const { return m_title; }
76 template <typename TitleT = Aws::String>
77 void SetTitle(TitleT&& value) {
78 m_titleHasBeenSet = true;
79 m_title = std::forward<TitleT>(value);
80 }
81 template <typename TitleT = Aws::String>
83 SetTitle(std::forward<TitleT>(value));
84 return *this;
85 }
87
89
94 inline const Aws::String& GetChecksum() const { return m_checksum; }
95 template <typename ChecksumT = Aws::String>
96 void SetChecksum(ChecksumT&& value) {
97 m_checksumHasBeenSet = true;
98 m_checksum = std::forward<ChecksumT>(value);
99 }
100 template <typename ChecksumT = Aws::String>
102 SetChecksum(std::forward<ChecksumT>(value));
103 return *this;
104 }
106
108
111 inline int64_t GetVersion() const { return m_version; }
112 inline void SetVersion(int64_t value) {
113 m_versionHasBeenSet = true;
114 m_version = value;
115 }
116 inline GetEvidenceContentResult& WithVersion(int64_t value) {
117 SetVersion(value);
118 return *this;
119 }
121
123
124 inline const Aws::String& GetRequestId() const { return m_requestId; }
125 template <typename RequestIdT = Aws::String>
126 void SetRequestId(RequestIdT&& value) {
127 m_requestIdHasBeenSet = true;
128 m_requestId = std::forward<RequestIdT>(value);
129 }
130 template <typename RequestIdT = Aws::String>
132 SetRequestId(std::forward<RequestIdT>(value));
133 return *this;
134 }
136 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
137
138 private:
139 Aws::Utils::CryptoBuffer m_content{};
140
141 Aws::String m_contentType;
142
143 Aws::String m_title;
144
145 Aws::String m_checksum;
146
147 int64_t m_version{0};
148
149 Aws::String m_requestId;
150 Aws::Http::HttpResponseCode m_HttpResponseCode;
151 bool m_contentHasBeenSet = false;
152 bool m_contentTypeHasBeenSet = false;
153 bool m_titleHasBeenSet = false;
154 bool m_checksumHasBeenSet = false;
155 bool m_versionHasBeenSet = false;
156 bool m_requestIdHasBeenSet = false;
157};
158
159} // namespace Model
160} // namespace Assurance
161} // namespace Aws
AWS_ASSURANCE_API GetEvidenceContentResult()=default
GetEvidenceContentResult & WithContent(ContentT &&value)
GetEvidenceContentResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetEvidenceContentResult & WithChecksum(ChecksumT &&value)
const Aws::Utils::CryptoBuffer & GetContent() const
GetEvidenceContentResult & WithContentType(ContentTypeT &&value)
GetEvidenceContentResult & WithVersion(int64_t value)
AWS_ASSURANCE_API GetEvidenceContentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
AWS_ASSURANCE_API GetEvidenceContentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
GetEvidenceContentResult & WithTitle(TitleT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String