AWS SDK for C++  1.9.160
AWS SDK for C++
ListChangedBlocksResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ebs/EBS_EXPORTS.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<ChangedBlock>& GetChangedBlocks() const{ return m_changedBlocks; }
42 
46  inline void SetChangedBlocks(const Aws::Vector<ChangedBlock>& value) { m_changedBlocks = value; }
47 
51  inline void SetChangedBlocks(Aws::Vector<ChangedBlock>&& value) { m_changedBlocks = std::move(value); }
52 
56  inline ListChangedBlocksResult& WithChangedBlocks(const Aws::Vector<ChangedBlock>& value) { SetChangedBlocks(value); return *this;}
57 
61  inline ListChangedBlocksResult& WithChangedBlocks(Aws::Vector<ChangedBlock>&& value) { SetChangedBlocks(std::move(value)); return *this;}
62 
66  inline ListChangedBlocksResult& AddChangedBlocks(const ChangedBlock& value) { m_changedBlocks.push_back(value); return *this; }
67 
71  inline ListChangedBlocksResult& AddChangedBlocks(ChangedBlock&& value) { m_changedBlocks.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 ListChangedBlocksResult& WithExpiryTime(const Aws::Utils::DateTime& value) { SetExpiryTime(value); return *this;}
93 
97  inline ListChangedBlocksResult& 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 ListChangedBlocksResult& 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 ListChangedBlocksResult& 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 ListChangedBlocksResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
161 
166  inline ListChangedBlocksResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
167 
172  inline ListChangedBlocksResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
173 
174  private:
175 
176  Aws::Vector<ChangedBlock> m_changedBlocks;
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::EBS::Model::ListChangedBlocksResult::SetChangedBlocks
void SetChangedBlocks(const Aws::Vector< ChangedBlock > &value)
Definition: ListChangedBlocksResult.h:46
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EBS::Model::ListChangedBlocksResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListChangedBlocksResult.h:142
ChangedBlock.h
Aws::EBS::Model::ListChangedBlocksResult::WithExpiryTime
ListChangedBlocksResult & WithExpiryTime(const Aws::Utils::DateTime &value)
Definition: ListChangedBlocksResult.h:92
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EBS::Model::ListChangedBlocksResult::SetExpiryTime
void SetExpiryTime(Aws::Utils::DateTime &&value)
Definition: ListChangedBlocksResult.h:87
Aws::EBS::Model::ListChangedBlocksResult::SetVolumeSize
void SetVolumeSize(long long value)
Definition: ListChangedBlocksResult.h:108
Aws::EBS::Model::ListChangedBlocksResult::GetBlockSize
int GetBlockSize() const
Definition: ListChangedBlocksResult.h:119
Aws::EBS::Model::ListChangedBlocksResult::GetVolumeSize
long long GetVolumeSize() const
Definition: ListChangedBlocksResult.h:103
Aws::EBS::Model::ListChangedBlocksResult::SetChangedBlocks
void SetChangedBlocks(Aws::Vector< ChangedBlock > &&value)
Definition: ListChangedBlocksResult.h:51
Aws::EBS::Model::ListChangedBlocksResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListChangedBlocksResult.h:148
Aws::EBS::Model::ListChangedBlocksResult::WithExpiryTime
ListChangedBlocksResult & WithExpiryTime(Aws::Utils::DateTime &&value)
Definition: ListChangedBlocksResult.h:97
DateTime.h
EBS_EXPORTS.h
Aws::EBS::Model::ListChangedBlocksResult::WithNextToken
ListChangedBlocksResult & WithNextToken(Aws::String &&value)
Definition: ListChangedBlocksResult.h:166
Aws::EBS::Model::ListChangedBlocksResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListChangedBlocksResult.h:136
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EBS::Model::ListChangedBlocksResult::WithVolumeSize
ListChangedBlocksResult & WithVolumeSize(long long value)
Definition: ListChangedBlocksResult.h:113
Aws::EBS::Model::ListChangedBlocksResult::SetBlockSize
void SetBlockSize(int value)
Definition: ListChangedBlocksResult.h:124
Aws::EBS::Model::ListChangedBlocksResult::operator=
ListChangedBlocksResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::EBS::Model::ListChangedBlocksResult::SetExpiryTime
void SetExpiryTime(const Aws::Utils::DateTime &value)
Definition: ListChangedBlocksResult.h:82
AWSVector.h
Aws::EBS::Model::ListChangedBlocksResult::AddChangedBlocks
ListChangedBlocksResult & AddChangedBlocks(ChangedBlock &&value)
Definition: ListChangedBlocksResult.h:71
Aws::EBS::Model::ListChangedBlocksResult::AddChangedBlocks
ListChangedBlocksResult & AddChangedBlocks(const ChangedBlock &value)
Definition: ListChangedBlocksResult.h:66
AWS_EBS_API
#define AWS_EBS_API
Definition: EBS_EXPORTS.h:28
Aws::EBS::Model::ListChangedBlocksResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListChangedBlocksResult.h:154
Aws::EBS::Model::ListChangedBlocksResult::WithChangedBlocks
ListChangedBlocksResult & WithChangedBlocks(const Aws::Vector< ChangedBlock > &value)
Definition: ListChangedBlocksResult.h:56
Aws::EBS::Model::ListChangedBlocksResult::WithBlockSize
ListChangedBlocksResult & WithBlockSize(int value)
Definition: ListChangedBlocksResult.h:129
Aws::EBS::Model::ListChangedBlocksResult
Definition: ListChangedBlocksResult.h:31
Aws::EBS::Model::ChangedBlock
Definition: ChangedBlock.h:34
AWSString.h
Aws::EBS::Model::ListChangedBlocksResult::WithNextToken
ListChangedBlocksResult & WithNextToken(const Aws::String &value)
Definition: ListChangedBlocksResult.h:160
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::EBS::Model::ListChangedBlocksResult::WithNextToken
ListChangedBlocksResult & WithNextToken(const char *value)
Definition: ListChangedBlocksResult.h:172
Aws::EBS::Model::ListChangedBlocksResult::GetChangedBlocks
const Aws::Vector< ChangedBlock > & GetChangedBlocks() const
Definition: ListChangedBlocksResult.h:41
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EBS::Model::ListChangedBlocksResult::GetExpiryTime
const Aws::Utils::DateTime & GetExpiryTime() const
Definition: ListChangedBlocksResult.h:77
Aws::EBS::Model::ListChangedBlocksResult::ListChangedBlocksResult
ListChangedBlocksResult()
Aws::EBS::Model::ListChangedBlocksResult::WithChangedBlocks
ListChangedBlocksResult & WithChangedBlocks(Aws::Vector< ChangedBlock > &&value)
Definition: ListChangedBlocksResult.h:61
Aws::EBS::Model::ListChangedBlocksResult::ListChangedBlocksResult
ListChangedBlocksResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)