AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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:
33 AWS_EBS_API ListSnapshotBlocksResult() = default;
36
37
39
42 inline const Aws::Vector<Block>& GetBlocks() const { return m_blocks; }
43 template<typename BlocksT = Aws::Vector<Block>>
44 void SetBlocks(BlocksT&& value) { m_blocksHasBeenSet = true; m_blocks = std::forward<BlocksT>(value); }
45 template<typename BlocksT = Aws::Vector<Block>>
46 ListSnapshotBlocksResult& WithBlocks(BlocksT&& value) { SetBlocks(std::forward<BlocksT>(value)); return *this;}
47 template<typename BlocksT = Block>
48 ListSnapshotBlocksResult& AddBlocks(BlocksT&& value) { m_blocksHasBeenSet = true; m_blocks.emplace_back(std::forward<BlocksT>(value)); return *this; }
50
52
55 inline const Aws::Utils::DateTime& GetExpiryTime() const { return m_expiryTime; }
56 template<typename ExpiryTimeT = Aws::Utils::DateTime>
57 void SetExpiryTime(ExpiryTimeT&& value) { m_expiryTimeHasBeenSet = true; m_expiryTime = std::forward<ExpiryTimeT>(value); }
58 template<typename ExpiryTimeT = Aws::Utils::DateTime>
59 ListSnapshotBlocksResult& WithExpiryTime(ExpiryTimeT&& value) { SetExpiryTime(std::forward<ExpiryTimeT>(value)); return *this;}
61
63
66 inline long long GetVolumeSize() const { return m_volumeSize; }
67 inline void SetVolumeSize(long long value) { m_volumeSizeHasBeenSet = true; 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_blockSizeHasBeenSet = true; 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 template<typename NextTokenT = Aws::String>
87 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
88 template<typename NextTokenT = Aws::String>
89 ListSnapshotBlocksResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
91
93
94 inline const Aws::String& GetRequestId() const { return m_requestId; }
95 template<typename RequestIdT = Aws::String>
96 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
97 template<typename RequestIdT = Aws::String>
98 ListSnapshotBlocksResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
100 private:
101
102 Aws::Vector<Block> m_blocks;
103 bool m_blocksHasBeenSet = false;
104
105 Aws::Utils::DateTime m_expiryTime{};
106 bool m_expiryTimeHasBeenSet = false;
107
108 long long m_volumeSize{0};
109 bool m_volumeSizeHasBeenSet = false;
110
111 int m_blockSize{0};
112 bool m_blockSizeHasBeenSet = false;
113
114 Aws::String m_nextToken;
115 bool m_nextTokenHasBeenSet = false;
116
117 Aws::String m_requestId;
118 bool m_requestIdHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace EBS
123} // namespace Aws
ListSnapshotBlocksResult & AddBlocks(BlocksT &&value)
ListSnapshotBlocksResult & WithVolumeSize(long long value)
AWS_EBS_API ListSnapshotBlocksResult()=default
ListSnapshotBlocksResult & WithRequestId(RequestIdT &&value)
ListSnapshotBlocksResult & WithBlocks(BlocksT &&value)
ListSnapshotBlocksResult & WithExpiryTime(ExpiryTimeT &&value)
const Aws::Utils::DateTime & GetExpiryTime() const
AWS_EBS_API ListSnapshotBlocksResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListSnapshotBlocksResult & WithBlockSize(int value)
ListSnapshotBlocksResult & WithNextToken(NextTokenT &&value)
AWS_EBS_API ListSnapshotBlocksResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Block > & GetBlocks() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue