AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetSnapshotBlockResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/stream/ResponseStream.h>
11#include <aws/ebs/EBS_EXPORTS.h>
12#include <aws/ebs/model/ChecksumAlgorithm.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace EBS {
21namespace Model {
23 public:
24 AWS_EBS_API GetSnapshotBlockResult() = default;
27 // we delete these because Microsoft doesn't handle move generation correctly
28 // and we therefore don't trust them to get it right here either.
31
34
36
39 inline int GetDataLength() const { return m_dataLength; }
40 inline void SetDataLength(int value) {
41 m_dataLengthHasBeenSet = true;
42 m_dataLength = value;
43 }
45 SetDataLength(value);
46 return *this;
47 }
49
51
54 inline Aws::IOStream& GetBlockData() const { return m_blockData.GetUnderlyingStream(); }
55 inline void ReplaceBody(Aws::IOStream* body) { m_blockData = Aws::Utils::Stream::ResponseStream(body); }
56
58
60
63 inline const Aws::String& GetChecksum() const { return m_checksum; }
64 template <typename ChecksumT = Aws::String>
65 void SetChecksum(ChecksumT&& value) {
66 m_checksumHasBeenSet = true;
67 m_checksum = std::forward<ChecksumT>(value);
68 }
69 template <typename ChecksumT = Aws::String>
71 SetChecksum(std::forward<ChecksumT>(value));
72 return *this;
73 }
75
77
81 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
83 m_checksumAlgorithmHasBeenSet = true;
84 m_checksumAlgorithm = value;
85 }
88 return *this;
89 }
91
93
94 inline const Aws::String& GetRequestId() const { return m_requestId; }
95 template <typename RequestIdT = Aws::String>
96 void SetRequestId(RequestIdT&& value) {
97 m_requestIdHasBeenSet = true;
98 m_requestId = std::forward<RequestIdT>(value);
99 }
100 template <typename RequestIdT = Aws::String>
102 SetRequestId(std::forward<RequestIdT>(value));
103 return *this;
104 }
106 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
107
108 private:
109 int m_dataLength{0};
110
112
113 Aws::String m_checksum;
114
116
117 Aws::String m_requestId;
118 Aws::Http::HttpResponseCode m_HttpResponseCode;
119 bool m_dataLengthHasBeenSet = false;
120 bool m_blockDataHasBeenSet = false;
121 bool m_checksumHasBeenSet = false;
122 bool m_checksumAlgorithmHasBeenSet = false;
123 bool m_requestIdHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace EBS
128} // namespace Aws
AWS_EBS_API GetSnapshotBlockResult()=default
GetSnapshotBlockResult & WithChecksum(ChecksumT &&value)
AWS_EBS_API GetSnapshotBlockResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetSnapshotBlockResult & WithRequestId(RequestIdT &&value)
GetSnapshotBlockResult & operator=(const GetSnapshotBlockResult &)=delete
AWS_EBS_API GetSnapshotBlockResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetSnapshotBlockResult & WithChecksumAlgorithm(ChecksumAlgorithm value)
GetSnapshotBlockResult & WithDataLength(int value)
AWS_EBS_API GetSnapshotBlockResult & operator=(GetSnapshotBlockResult &&)=default
GetSnapshotBlockResult(const GetSnapshotBlockResult &)=delete
void SetChecksumAlgorithm(ChecksumAlgorithm value)
AWS_EBS_API GetSnapshotBlockResult(GetSnapshotBlockResult &&)=default
Aws::IOStream & GetUnderlyingStream() const
std::basic_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String