AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
DescribeVaultResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glacier/Glacier_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace Glacier {
23namespace Model {
31 public:
32 AWS_GLACIER_API DescribeVaultResult() = default;
35
37
40 inline const Aws::String& GetVaultARN() const { return m_vaultARN; }
41 template <typename VaultARNT = Aws::String>
42 void SetVaultARN(VaultARNT&& value) {
43 m_vaultARNHasBeenSet = true;
44 m_vaultARN = std::forward<VaultARNT>(value);
45 }
46 template <typename VaultARNT = Aws::String>
47 DescribeVaultResult& WithVaultARN(VaultARNT&& value) {
48 SetVaultARN(std::forward<VaultARNT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetVaultName() const { return m_vaultName; }
58 template <typename VaultNameT = Aws::String>
59 void SetVaultName(VaultNameT&& value) {
60 m_vaultNameHasBeenSet = true;
61 m_vaultName = std::forward<VaultNameT>(value);
62 }
63 template <typename VaultNameT = Aws::String>
64 DescribeVaultResult& WithVaultName(VaultNameT&& value) {
65 SetVaultName(std::forward<VaultNameT>(value));
66 return *this;
67 }
69
71
76 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
77 template <typename CreationDateT = Aws::String>
78 void SetCreationDate(CreationDateT&& value) {
79 m_creationDateHasBeenSet = true;
80 m_creationDate = std::forward<CreationDateT>(value);
81 }
82 template <typename CreationDateT = Aws::String>
83 DescribeVaultResult& WithCreationDate(CreationDateT&& value) {
84 SetCreationDate(std::forward<CreationDateT>(value));
85 return *this;
86 }
88
90
95 inline const Aws::String& GetLastInventoryDate() const { return m_lastInventoryDate; }
96 template <typename LastInventoryDateT = Aws::String>
97 void SetLastInventoryDate(LastInventoryDateT&& value) {
98 m_lastInventoryDateHasBeenSet = true;
99 m_lastInventoryDate = std::forward<LastInventoryDateT>(value);
100 }
101 template <typename LastInventoryDateT = Aws::String>
102 DescribeVaultResult& WithLastInventoryDate(LastInventoryDateT&& value) {
103 SetLastInventoryDate(std::forward<LastInventoryDateT>(value));
104 return *this;
105 }
107
109
114 inline long long GetNumberOfArchives() const { return m_numberOfArchives; }
115 inline void SetNumberOfArchives(long long value) {
116 m_numberOfArchivesHasBeenSet = true;
117 m_numberOfArchives = value;
118 }
119 inline DescribeVaultResult& WithNumberOfArchives(long long value) {
120 SetNumberOfArchives(value);
121 return *this;
122 }
124
126
131 inline long long GetSizeInBytes() const { return m_sizeInBytes; }
132 inline void SetSizeInBytes(long long value) {
133 m_sizeInBytesHasBeenSet = true;
134 m_sizeInBytes = value;
135 }
136 inline DescribeVaultResult& WithSizeInBytes(long long value) {
137 SetSizeInBytes(value);
138 return *this;
139 }
141
143
144 inline const Aws::String& GetRequestId() const { return m_requestId; }
145 template <typename RequestIdT = Aws::String>
146 void SetRequestId(RequestIdT&& value) {
147 m_requestIdHasBeenSet = true;
148 m_requestId = std::forward<RequestIdT>(value);
149 }
150 template <typename RequestIdT = Aws::String>
151 DescribeVaultResult& WithRequestId(RequestIdT&& value) {
152 SetRequestId(std::forward<RequestIdT>(value));
153 return *this;
154 }
156 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
157
158 private:
159 Aws::String m_vaultARN;
160
161 Aws::String m_vaultName;
162
163 Aws::String m_creationDate;
164
165 Aws::String m_lastInventoryDate;
166
167 long long m_numberOfArchives{0};
168
169 long long m_sizeInBytes{0};
170
171 Aws::String m_requestId;
172 Aws::Http::HttpResponseCode m_HttpResponseCode;
173 bool m_vaultARNHasBeenSet = false;
174 bool m_vaultNameHasBeenSet = false;
175 bool m_creationDateHasBeenSet = false;
176 bool m_lastInventoryDateHasBeenSet = false;
177 bool m_numberOfArchivesHasBeenSet = false;
178 bool m_sizeInBytesHasBeenSet = false;
179 bool m_requestIdHasBeenSet = false;
180};
181
182} // namespace Model
183} // namespace Glacier
184} // namespace Aws
AWS_GLACIER_API DescribeVaultResult()=default
AWS_GLACIER_API DescribeVaultResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeVaultResult & WithCreationDate(CreationDateT &&value)
DescribeVaultResult & WithRequestId(RequestIdT &&value)
AWS_GLACIER_API DescribeVaultResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetCreationDate() const
DescribeVaultResult & WithNumberOfArchives(long long value)
void SetLastInventoryDate(LastInventoryDateT &&value)
void SetCreationDate(CreationDateT &&value)
const Aws::String & GetLastInventoryDate() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DescribeVaultResult & WithVaultName(VaultNameT &&value)
DescribeVaultResult & WithVaultARN(VaultARNT &&value)
DescribeVaultResult & WithLastInventoryDate(LastInventoryDateT &&value)
DescribeVaultResult & WithSizeInBytes(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue