AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetSnapshotBlockResult.h
1
6#pragma once
7#include <aws/ebs/EBS_EXPORTS.h>
8#include <aws/core/utils/stream/ResponseStream.h>
9#include <aws/core/utils/Array.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ebs/model/ChecksumAlgorithm.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace EBS
20{
21namespace Model
22{
24 {
25 public:
26 AWS_EBS_API GetSnapshotBlockResult() = default;
29 //we delete these because Microsoft doesn't handle move generation correctly
30 //and we therefore don't trust them to get it right here either.
33
34
37
38
39
41
44 inline int GetDataLength() const { return m_dataLength; }
45 inline void SetDataLength(int value) { m_dataLengthHasBeenSet = true; m_dataLength = value; }
46 inline GetSnapshotBlockResult& WithDataLength(int value) { SetDataLength(value); return *this;}
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) { m_checksumHasBeenSet = true; m_checksum = std::forward<ChecksumT>(value); }
65 template<typename ChecksumT = Aws::String>
66 GetSnapshotBlockResult& WithChecksum(ChecksumT&& value) { SetChecksum(std::forward<ChecksumT>(value)); return *this;}
68
70
74 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
75 inline void SetChecksumAlgorithm(ChecksumAlgorithm value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
78
80
81 inline const Aws::String& GetRequestId() const { return m_requestId; }
82 template<typename RequestIdT = Aws::String>
83 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
84 template<typename RequestIdT = Aws::String>
85 GetSnapshotBlockResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
87 private:
88
89 int m_dataLength{0};
90 bool m_dataLengthHasBeenSet = false;
91
93 bool m_blockDataHasBeenSet = false;
94
95 Aws::String m_checksum;
96 bool m_checksumHasBeenSet = false;
97
99 bool m_checksumAlgorithmHasBeenSet = false;
100
101 Aws::String m_requestId;
102 bool m_requestIdHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace EBS
107} // 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