AWS SDK for C++  1.9.159
AWS SDK for C++
GetSnapshotBlockResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ebs/EBS_EXPORTS.h>
9 #include <aws/core/utils/Array.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace EBS
20 {
21 namespace 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 
44  inline int GetDataLength() const{ return m_dataLength; }
45 
49  inline void SetDataLength(int value) { m_dataLength = value; }
50 
54  inline GetSnapshotBlockResult& WithDataLength(int value) { SetDataLength(value); return *this;}
55 
56 
60  inline Aws::IOStream& GetBlockData() { return m_blockData.GetUnderlyingStream(); }
61 
65  inline void ReplaceBody(Aws::IOStream* body) { m_blockData = Aws::Utils::Stream::ResponseStream(body); }
66 
67 
71  inline const Aws::String& GetChecksum() const{ return m_checksum; }
72 
76  inline void SetChecksum(const Aws::String& value) { m_checksum = value; }
77 
81  inline void SetChecksum(Aws::String&& value) { m_checksum = std::move(value); }
82 
86  inline void SetChecksum(const char* value) { m_checksum.assign(value); }
87 
91  inline GetSnapshotBlockResult& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;}
92 
96  inline GetSnapshotBlockResult& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;}
97 
101  inline GetSnapshotBlockResult& WithChecksum(const char* value) { SetChecksum(value); return *this;}
102 
103 
108  inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
109 
114  inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithm = value; }
115 
120  inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithm = std::move(value); }
121 
126  inline GetSnapshotBlockResult& WithChecksumAlgorithm(const ChecksumAlgorithm& value) { SetChecksumAlgorithm(value); return *this;}
127 
132  inline GetSnapshotBlockResult& WithChecksumAlgorithm(ChecksumAlgorithm&& value) { SetChecksumAlgorithm(std::move(value)); return *this;}
133 
134  private:
135 
136  int m_dataLength;
137 
139 
140  Aws::String m_checksum;
141 
142  ChecksumAlgorithm m_checksumAlgorithm;
143  };
144 
145 } // namespace Model
146 } // namespace EBS
147 } // namespace Aws
Aws::EBS::Model::ChecksumAlgorithm
ChecksumAlgorithm
Definition: ChecksumAlgorithm.h:17
Aws::IOStream
std::basic_iostream< char, std::char_traits< char > > IOStream
Definition: AWSStreamFwd.h:22
Aws::EBS::Model::GetSnapshotBlockResult::SetChecksumAlgorithm
void SetChecksumAlgorithm(ChecksumAlgorithm &&value)
Definition: GetSnapshotBlockResult.h:120
Aws::EBS::Model::GetSnapshotBlockResult::GetSnapshotBlockResult
GetSnapshotBlockResult(const GetSnapshotBlockResult &)=delete
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Utils::Stream::ResponseStream
Definition: ResponseStream.h:22
Aws::EBS::Model::GetSnapshotBlockResult::GetBlockData
Aws::IOStream & GetBlockData()
Definition: GetSnapshotBlockResult.h:60
EBS_EXPORTS.h
Aws::EBS::Model::GetSnapshotBlockResult::WithChecksum
GetSnapshotBlockResult & WithChecksum(const char *value)
Definition: GetSnapshotBlockResult.h:101
Aws::EBS::Model::GetSnapshotBlockResult::SetChecksum
void SetChecksum(Aws::String &&value)
Definition: GetSnapshotBlockResult.h:81
Aws::EBS::Model::GetSnapshotBlockResult::GetSnapshotBlockResult
GetSnapshotBlockResult(GetSnapshotBlockResult &&)
Aws::EBS::Model::GetSnapshotBlockResult::operator=
GetSnapshotBlockResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
Aws::EBS::Model::GetSnapshotBlockResult::GetSnapshotBlockResult
GetSnapshotBlockResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
Aws::EBS::Model::GetSnapshotBlockResult::operator=
GetSnapshotBlockResult & operator=(GetSnapshotBlockResult &&)
Aws::EBS::Model::GetSnapshotBlockResult::GetChecksum
const Aws::String & GetChecksum() const
Definition: GetSnapshotBlockResult.h:71
AWS_EBS_API
#define AWS_EBS_API
Definition: EBS_EXPORTS.h:28
Aws::EBS::Model::GetSnapshotBlockResult
Definition: GetSnapshotBlockResult.h:24
Aws::EBS::Model::GetSnapshotBlockResult::WithChecksum
GetSnapshotBlockResult & WithChecksum(Aws::String &&value)
Definition: GetSnapshotBlockResult.h:96
ChecksumAlgorithm.h
Aws::EBS::Model::GetSnapshotBlockResult::SetChecksumAlgorithm
void SetChecksumAlgorithm(const ChecksumAlgorithm &value)
Definition: GetSnapshotBlockResult.h:114
Aws::EBS::Model::GetSnapshotBlockResult::GetDataLength
int GetDataLength() const
Definition: GetSnapshotBlockResult.h:44
Aws::EBS::Model::GetSnapshotBlockResult::WithChecksumAlgorithm
GetSnapshotBlockResult & WithChecksumAlgorithm(const ChecksumAlgorithm &value)
Definition: GetSnapshotBlockResult.h:126
Aws::EBS::Model::GetSnapshotBlockResult::SetChecksum
void SetChecksum(const char *value)
Definition: GetSnapshotBlockResult.h:86
AWSString.h
Aws::EBS::Model::GetSnapshotBlockResult::GetChecksumAlgorithm
const ChecksumAlgorithm & GetChecksumAlgorithm() const
Definition: GetSnapshotBlockResult.h:108
Aws::EBS::Model::GetSnapshotBlockResult::GetSnapshotBlockResult
GetSnapshotBlockResult()
Aws::EBS::Model::GetSnapshotBlockResult::SetChecksum
void SetChecksum(const Aws::String &value)
Definition: GetSnapshotBlockResult.h:76
Aws::EBS::Model::GetSnapshotBlockResult::WithChecksum
GetSnapshotBlockResult & WithChecksum(const Aws::String &value)
Definition: GetSnapshotBlockResult.h:91
Aws::EBS::Model::GetSnapshotBlockResult::WithChecksumAlgorithm
GetSnapshotBlockResult & WithChecksumAlgorithm(ChecksumAlgorithm &&value)
Definition: GetSnapshotBlockResult.h:132
Aws
Definition: AccessManagementClient.h:15
Array.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EBS::Model::GetSnapshotBlockResult::ReplaceBody
void ReplaceBody(Aws::IOStream *body)
Definition: GetSnapshotBlockResult.h:65
Aws::EBS::Model::GetSnapshotBlockResult::operator=
GetSnapshotBlockResult & operator=(const GetSnapshotBlockResult &)=delete
Aws::EBS::Model::GetSnapshotBlockResult::WithDataLength
GetSnapshotBlockResult & WithDataLength(int value)
Definition: GetSnapshotBlockResult.h:54
ResponseStream.h
Aws::EBS::Model::GetSnapshotBlockResult::SetDataLength
void SetDataLength(int value)
Definition: GetSnapshotBlockResult.h:49