AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListSnapshotBlocksResult.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/Block.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<Block>& GetBlocks() const{ return m_blocks; }
43 inline void SetBlocks(const Aws::Vector<Block>& value) { m_blocks = value; }
44 inline void SetBlocks(Aws::Vector<Block>&& value) { m_blocks = std::move(value); }
45 inline ListSnapshotBlocksResult& WithBlocks(const Aws::Vector<Block>& value) { SetBlocks(value); return *this;}
46 inline ListSnapshotBlocksResult& WithBlocks(Aws::Vector<Block>&& value) { SetBlocks(std::move(value)); return *this;}
47 inline ListSnapshotBlocksResult& AddBlocks(const Block& value) { m_blocks.push_back(value); return *this; }
48 inline ListSnapshotBlocksResult& AddBlocks(Block&& value) { m_blocks.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 ListSnapshotBlocksResult& WithExpiryTime(const Aws::Utils::DateTime& value) { SetExpiryTime(value); return *this;}
59 inline ListSnapshotBlocksResult& 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 ListSnapshotBlocksResult& 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 ListSnapshotBlocksResult& 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 ListSnapshotBlocksResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
90 inline ListSnapshotBlocksResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
91 inline ListSnapshotBlocksResult& 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 ListSnapshotBlocksResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
101 inline ListSnapshotBlocksResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
102 inline ListSnapshotBlocksResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
104 private:
105
106 Aws::Vector<Block> m_blocks;
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
void SetExpiryTime(const Aws::Utils::DateTime &value)
ListSnapshotBlocksResult & WithNextToken(Aws::String &&value)
ListSnapshotBlocksResult & WithVolumeSize(long long value)
void SetBlocks(Aws::Vector< Block > &&value)
const Aws::Utils::DateTime & GetExpiryTime() const
ListSnapshotBlocksResult & WithNextToken(const char *value)
ListSnapshotBlocksResult & WithRequestId(const Aws::String &value)
AWS_EBS_API ListSnapshotBlocksResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListSnapshotBlocksResult & WithRequestId(Aws::String &&value)
ListSnapshotBlocksResult & WithBlocks(const Aws::Vector< Block > &value)
ListSnapshotBlocksResult & AddBlocks(const Block &value)
ListSnapshotBlocksResult & WithBlockSize(int value)
void SetBlocks(const Aws::Vector< Block > &value)
ListSnapshotBlocksResult & WithExpiryTime(const Aws::Utils::DateTime &value)
void SetExpiryTime(Aws::Utils::DateTime &&value)
ListSnapshotBlocksResult & WithNextToken(const Aws::String &value)
ListSnapshotBlocksResult & WithBlocks(Aws::Vector< Block > &&value)
AWS_EBS_API ListSnapshotBlocksResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Block > & GetBlocks() const
ListSnapshotBlocksResult & WithExpiryTime(Aws::Utils::DateTime &&value)
ListSnapshotBlocksResult & AddBlocks(Block &&value)
ListSnapshotBlocksResult & WithRequestId(const char *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