AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
GetSnapshotBlockResult.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/stream/ResponseStream.h>
10#include <aws/ebs/EBS_EXPORTS.h>
11#include <aws/ebs/model/ChecksumAlgorithm.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace EBS {
20namespace Model {
22 public:
23 AWS_EBS_API GetSnapshotBlockResult() = default;
26 // we delete these because Microsoft doesn't handle move generation correctly
27 // and we therefore don't trust them to get it right here either.
30
33
35
38 inline int GetDataLength() const { return m_dataLength; }
39 inline void SetDataLength(int value) {
40 m_dataLengthHasBeenSet = true;
41 m_dataLength = value;
42 }
44 SetDataLength(value);
45 return *this;
46 }
48
50
53 inline Aws::IOStream& GetBlockData() const { return m_blockData.GetUnderlyingStream(); }
54 inline void ReplaceBody(Aws::IOStream* body) { m_blockData = Aws::Utils::Stream::ResponseStream(body); }
55
57
59
62 inline const Aws::String& GetChecksum() const { return m_checksum; }
63 template <typename ChecksumT = Aws::String>
64 void SetChecksum(ChecksumT&& value) {
65 m_checksumHasBeenSet = true;
66 m_checksum = std::forward<ChecksumT>(value);
67 }
68 template <typename ChecksumT = Aws::String>
70 SetChecksum(std::forward<ChecksumT>(value));
71 return *this;
72 }
74
76
80 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
82 m_checksumAlgorithmHasBeenSet = true;
83 m_checksumAlgorithm = value;
84 }
87 return *this;
88 }
90
92
93 inline const Aws::String& GetRequestId() const { return m_requestId; }
94 template <typename RequestIdT = Aws::String>
95 void SetRequestId(RequestIdT&& value) {
96 m_requestIdHasBeenSet = true;
97 m_requestId = std::forward<RequestIdT>(value);
98 }
99 template <typename RequestIdT = Aws::String>
101 SetRequestId(std::forward<RequestIdT>(value));
102 return *this;
103 }
105 private:
106 int m_dataLength{0};
107
109
110 Aws::String m_checksum;
111
113
114 Aws::String m_requestId;
115 bool m_dataLengthHasBeenSet = false;
116 bool m_blockDataHasBeenSet = false;
117 bool m_checksumHasBeenSet = false;
118 bool m_checksumAlgorithmHasBeenSet = false;
119 bool m_requestIdHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace EBS
124} // namespace Aws
AWS_EBS_API GetSnapshotBlockResult()=default
GetSnapshotBlockResult & WithChecksum(ChecksumT &&value)
AWS_EBS_API GetSnapshotBlockResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
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