AWS SDK for C++  1.9.159
AWS SDK for C++
ListSnapshotBlocksResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ebs/EBS_EXPORTS.h>
11 #include <aws/ebs/model/Block.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24 } // namespace Json
25 } // namespace Utils
26 namespace EBS
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
41  inline const Aws::Vector<Block>& GetBlocks() const{ return m_blocks; }
42 
46  inline void SetBlocks(const Aws::Vector<Block>& value) { m_blocks = value; }
47 
51  inline void SetBlocks(Aws::Vector<Block>&& value) { m_blocks = std::move(value); }
52 
56  inline ListSnapshotBlocksResult& WithBlocks(const Aws::Vector<Block>& value) { SetBlocks(value); return *this;}
57 
61  inline ListSnapshotBlocksResult& WithBlocks(Aws::Vector<Block>&& value) { SetBlocks(std::move(value)); return *this;}
62 
66  inline ListSnapshotBlocksResult& AddBlocks(const Block& value) { m_blocks.push_back(value); return *this; }
67 
71  inline ListSnapshotBlocksResult& AddBlocks(Block&& value) { m_blocks.push_back(std::move(value)); return *this; }
72 
73 
77  inline const Aws::Utils::DateTime& GetExpiryTime() const{ return m_expiryTime; }
78 
82  inline void SetExpiryTime(const Aws::Utils::DateTime& value) { m_expiryTime = value; }
83 
87  inline void SetExpiryTime(Aws::Utils::DateTime&& value) { m_expiryTime = std::move(value); }
88 
92  inline ListSnapshotBlocksResult& WithExpiryTime(const Aws::Utils::DateTime& value) { SetExpiryTime(value); return *this;}
93 
97  inline ListSnapshotBlocksResult& WithExpiryTime(Aws::Utils::DateTime&& value) { SetExpiryTime(std::move(value)); return *this;}
98 
99 
103  inline long long GetVolumeSize() const{ return m_volumeSize; }
104 
108  inline void SetVolumeSize(long long value) { m_volumeSize = value; }
109 
113  inline ListSnapshotBlocksResult& WithVolumeSize(long long value) { SetVolumeSize(value); return *this;}
114 
115 
119  inline int GetBlockSize() const{ return m_blockSize; }
120 
124  inline void SetBlockSize(int value) { m_blockSize = value; }
125 
129  inline ListSnapshotBlocksResult& WithBlockSize(int value) { SetBlockSize(value); return *this;}
130 
131 
136  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
137 
142  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
143 
148  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
149 
154  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
155 
160  inline ListSnapshotBlocksResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
161 
166  inline ListSnapshotBlocksResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
167 
172  inline ListSnapshotBlocksResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
173 
174  private:
175 
176  Aws::Vector<Block> m_blocks;
177 
178  Aws::Utils::DateTime m_expiryTime;
179 
180  long long m_volumeSize;
181 
182  int m_blockSize;
183 
184  Aws::String m_nextToken;
185  };
186 
187 } // namespace Model
188 } // namespace EBS
189 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EBS::Model::ListSnapshotBlocksResult::ListSnapshotBlocksResult
ListSnapshotBlocksResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EBS::Model::ListSnapshotBlocksResult::GetVolumeSize
long long GetVolumeSize() const
Definition: ListSnapshotBlocksResult.h:103
Aws::EBS::Model::ListSnapshotBlocksResult::GetBlocks
const Aws::Vector< Block > & GetBlocks() const
Definition: ListSnapshotBlocksResult.h:41
Aws::EBS::Model::ListSnapshotBlocksResult::WithBlocks
ListSnapshotBlocksResult & WithBlocks(Aws::Vector< Block > &&value)
Definition: ListSnapshotBlocksResult.h:61
Aws::EBS::Model::ListSnapshotBlocksResult::SetBlocks
void SetBlocks(Aws::Vector< Block > &&value)
Definition: ListSnapshotBlocksResult.h:51
Aws::EBS::Model::ListSnapshotBlocksResult::WithBlocks
ListSnapshotBlocksResult & WithBlocks(const Aws::Vector< Block > &value)
Definition: ListSnapshotBlocksResult.h:56
Aws::EBS::Model::ListSnapshotBlocksResult::SetBlocks
void SetBlocks(const Aws::Vector< Block > &value)
Definition: ListSnapshotBlocksResult.h:46
DateTime.h
EBS_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EBS::Model::ListSnapshotBlocksResult::AddBlocks
ListSnapshotBlocksResult & AddBlocks(const Block &value)
Definition: ListSnapshotBlocksResult.h:66
AWSVector.h
Aws::EBS::Model::ListSnapshotBlocksResult::WithVolumeSize
ListSnapshotBlocksResult & WithVolumeSize(long long value)
Definition: ListSnapshotBlocksResult.h:113
Aws::EBS::Model::ListSnapshotBlocksResult::WithNextToken
ListSnapshotBlocksResult & WithNextToken(const char *value)
Definition: ListSnapshotBlocksResult.h:172
Aws::EBS::Model::ListSnapshotBlocksResult::SetExpiryTime
void SetExpiryTime(Aws::Utils::DateTime &&value)
Definition: ListSnapshotBlocksResult.h:87
AWS_EBS_API
#define AWS_EBS_API
Definition: EBS_EXPORTS.h:28
Aws::EBS::Model::ListSnapshotBlocksResult::operator=
ListSnapshotBlocksResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::EBS::Model::ListSnapshotBlocksResult::SetBlockSize
void SetBlockSize(int value)
Definition: ListSnapshotBlocksResult.h:124
Aws::EBS::Model::ListSnapshotBlocksResult::WithNextToken
ListSnapshotBlocksResult & WithNextToken(Aws::String &&value)
Definition: ListSnapshotBlocksResult.h:166
Aws::EBS::Model::ListSnapshotBlocksResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListSnapshotBlocksResult.h:142
Aws::EBS::Model::ListSnapshotBlocksResult::GetBlockSize
int GetBlockSize() const
Definition: ListSnapshotBlocksResult.h:119
Aws::EBS::Model::ListSnapshotBlocksResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListSnapshotBlocksResult.h:154
Aws::EBS::Model::ListSnapshotBlocksResult::WithNextToken
ListSnapshotBlocksResult & WithNextToken(const Aws::String &value)
Definition: ListSnapshotBlocksResult.h:160
Aws::EBS::Model::ListSnapshotBlocksResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListSnapshotBlocksResult.h:148
Aws::EBS::Model::ListSnapshotBlocksResult::SetExpiryTime
void SetExpiryTime(const Aws::Utils::DateTime &value)
Definition: ListSnapshotBlocksResult.h:82
AWSString.h
Aws::EBS::Model::ListSnapshotBlocksResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListSnapshotBlocksResult.h:136
Aws::EBS::Model::ListSnapshotBlocksResult::WithExpiryTime
ListSnapshotBlocksResult & WithExpiryTime(const Aws::Utils::DateTime &value)
Definition: ListSnapshotBlocksResult.h:92
Aws::EBS::Model::ListSnapshotBlocksResult::SetVolumeSize
void SetVolumeSize(long long value)
Definition: ListSnapshotBlocksResult.h:108
Aws::EBS::Model::ListSnapshotBlocksResult::WithExpiryTime
ListSnapshotBlocksResult & WithExpiryTime(Aws::Utils::DateTime &&value)
Definition: ListSnapshotBlocksResult.h:97
Aws::EBS::Model::ListSnapshotBlocksResult::ListSnapshotBlocksResult
ListSnapshotBlocksResult()
Block.h
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::EBS::Model::ListSnapshotBlocksResult::WithBlockSize
ListSnapshotBlocksResult & WithBlockSize(int value)
Definition: ListSnapshotBlocksResult.h:129
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EBS::Model::Block
Definition: Block.h:33
Aws::EBS::Model::ListSnapshotBlocksResult::GetExpiryTime
const Aws::Utils::DateTime & GetExpiryTime() const
Definition: ListSnapshotBlocksResult.h:77
Aws::EBS::Model::ListSnapshotBlocksResult
Definition: ListSnapshotBlocksResult.h:31
Aws::EBS::Model::ListSnapshotBlocksResult::AddBlocks
ListSnapshotBlocksResult & AddBlocks(Block &&value)
Definition: ListSnapshotBlocksResult.h:71