AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListChangedBlocksResult.h
1
6#pragma once
7#include <aws/ebs/EBS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ebs/model/ChangedBlock.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace EBS
27{
28namespace Model
29{
31 {
32 public:
36
37
39
42 inline const Aws::Vector<ChangedBlock>& GetChangedBlocks() const{ return m_changedBlocks; }
43 inline void SetChangedBlocks(const Aws::Vector<ChangedBlock>& value) { m_changedBlocks = value; }
44 inline void SetChangedBlocks(Aws::Vector<ChangedBlock>&& value) { m_changedBlocks = std::move(value); }
46 inline ListChangedBlocksResult& WithChangedBlocks(Aws::Vector<ChangedBlock>&& value) { SetChangedBlocks(std::move(value)); return *this;}
47 inline ListChangedBlocksResult& AddChangedBlocks(const ChangedBlock& value) { m_changedBlocks.push_back(value); return *this; }
48 inline ListChangedBlocksResult& AddChangedBlocks(ChangedBlock&& value) { m_changedBlocks.push_back(std::move(value)); return *this; }
50
52
55 inline const Aws::Utils::DateTime& GetExpiryTime() const{ return m_expiryTime; }
56 inline void SetExpiryTime(const Aws::Utils::DateTime& value) { m_expiryTime = value; }
57 inline void SetExpiryTime(Aws::Utils::DateTime&& value) { m_expiryTime = std::move(value); }
58 inline ListChangedBlocksResult& WithExpiryTime(const Aws::Utils::DateTime& value) { SetExpiryTime(value); return *this;}
59 inline ListChangedBlocksResult& WithExpiryTime(Aws::Utils::DateTime&& value) { SetExpiryTime(std::move(value)); return *this;}
61
63
66 inline long long GetVolumeSize() const{ return m_volumeSize; }
67 inline void SetVolumeSize(long long value) { m_volumeSize = value; }
68 inline ListChangedBlocksResult& WithVolumeSize(long long value) { SetVolumeSize(value); return *this;}
70
72
75 inline int GetBlockSize() const{ return m_blockSize; }
76 inline void SetBlockSize(int value) { m_blockSize = value; }
77 inline ListChangedBlocksResult& WithBlockSize(int value) { SetBlockSize(value); return *this;}
79
81
85 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
86 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
87 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
88 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
89 inline ListChangedBlocksResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
90 inline ListChangedBlocksResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
91 inline ListChangedBlocksResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
93
95
96 inline const Aws::String& GetRequestId() const{ return m_requestId; }
97 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
98 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
99 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
100 inline ListChangedBlocksResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
101 inline ListChangedBlocksResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
102 inline ListChangedBlocksResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
104 private:
105
106 Aws::Vector<ChangedBlock> m_changedBlocks;
107
108 Aws::Utils::DateTime m_expiryTime;
109
110 long long m_volumeSize;
111
112 int m_blockSize;
113
114 Aws::String m_nextToken;
115
116 Aws::String m_requestId;
117 };
118
119} // namespace Model
120} // namespace EBS
121} // namespace Aws
ListChangedBlocksResult & WithRequestId(const char *value)
const Aws::Utils::DateTime & GetExpiryTime() const
ListChangedBlocksResult & WithVolumeSize(long long value)
ListChangedBlocksResult & AddChangedBlocks(ChangedBlock &&value)
ListChangedBlocksResult & WithNextToken(Aws::String &&value)
ListChangedBlocksResult & WithRequestId(Aws::String &&value)
void SetChangedBlocks(const Aws::Vector< ChangedBlock > &value)
ListChangedBlocksResult & WithBlockSize(int value)
ListChangedBlocksResult & WithExpiryTime(const Aws::Utils::DateTime &value)
ListChangedBlocksResult & WithNextToken(const char *value)
ListChangedBlocksResult & WithChangedBlocks(Aws::Vector< ChangedBlock > &&value)
void SetChangedBlocks(Aws::Vector< ChangedBlock > &&value)
AWS_EBS_API ListChangedBlocksResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_EBS_API ListChangedBlocksResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListChangedBlocksResult & WithNextToken(const Aws::String &value)
ListChangedBlocksResult & WithChangedBlocks(const Aws::Vector< ChangedBlock > &value)
const Aws::Vector< ChangedBlock > & GetChangedBlocks() const
ListChangedBlocksResult & WithExpiryTime(Aws::Utils::DateTime &&value)
ListChangedBlocksResult & WithRequestId(const Aws::String &value)
void SetExpiryTime(const Aws::Utils::DateTime &value)
void SetExpiryTime(Aws::Utils::DateTime &&value)
ListChangedBlocksResult & AddChangedBlocks(const ChangedBlock &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue