AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
27 //We have to define these because Microsoft doesn't auto generate them
30 //we delete these because Microsoft doesn't handle move generation correctly
31 //and we therefore don't trust them to get it right here either.
34
35
38
39
40
42
45 inline int GetDataLength() const{ return m_dataLength; }
46 inline void SetDataLength(int value) { m_dataLength = value; }
47 inline GetSnapshotBlockResult& WithDataLength(int value) { SetDataLength(value); return *this;}
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 inline void SetChecksum(const Aws::String& value) { m_checksum = value; }
65 inline void SetChecksum(Aws::String&& value) { m_checksum = std::move(value); }
66 inline void SetChecksum(const char* value) { m_checksum.assign(value); }
67 inline GetSnapshotBlockResult& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;}
68 inline GetSnapshotBlockResult& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;}
69 inline GetSnapshotBlockResult& WithChecksum(const char* value) { SetChecksum(value); return *this;}
71
73
77 inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
78 inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithm = value; }
79 inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithm = std::move(value); }
81 inline GetSnapshotBlockResult& WithChecksumAlgorithm(ChecksumAlgorithm&& value) { SetChecksumAlgorithm(std::move(value)); return *this;}
83
85
86 inline const Aws::String& GetRequestId() const{ return m_requestId; }
87 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
88 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
89 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
90 inline GetSnapshotBlockResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
91 inline GetSnapshotBlockResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
92 inline GetSnapshotBlockResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
94 private:
95
96 int m_dataLength;
97
99
100 Aws::String m_checksum;
101
102 ChecksumAlgorithm m_checksumAlgorithm;
103
104 Aws::String m_requestId;
105 };
106
107} // namespace Model
108} // namespace EBS
109} // namespace Aws
const ChecksumAlgorithm & GetChecksumAlgorithm() const
GetSnapshotBlockResult & WithChecksum(Aws::String &&value)
AWS_EBS_API GetSnapshotBlockResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetSnapshotBlockResult & WithChecksumAlgorithm(ChecksumAlgorithm &&value)
AWS_EBS_API GetSnapshotBlockResult & operator=(GetSnapshotBlockResult &&)
void SetChecksum(const Aws::String &value)
GetSnapshotBlockResult & operator=(const GetSnapshotBlockResult &)=delete
GetSnapshotBlockResult & WithChecksum(const char *value)
AWS_EBS_API GetSnapshotBlockResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetSnapshotBlockResult & WithChecksumAlgorithm(const ChecksumAlgorithm &value)
void SetChecksumAlgorithm(ChecksumAlgorithm &&value)
GetSnapshotBlockResult & WithDataLength(int value)
void SetChecksumAlgorithm(const ChecksumAlgorithm &value)
void SetRequestId(const Aws::String &value)
GetSnapshotBlockResult & WithChecksum(const Aws::String &value)
GetSnapshotBlockResult & WithRequestId(const Aws::String &value)
AWS_EBS_API GetSnapshotBlockResult(GetSnapshotBlockResult &&)
GetSnapshotBlockResult(const GetSnapshotBlockResult &)=delete
GetSnapshotBlockResult & WithRequestId(const char *value)
GetSnapshotBlockResult & WithRequestId(Aws::String &&value)
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