AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetNamespaceResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/s3tables/S3Tables_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace S3Tables {
25namespace Model {
27 public:
28 AWS_S3TABLES_API GetNamespaceResult() = default;
31
33
36 inline const Aws::Vector<Aws::String>& GetNamespace() const { return m_namespace; }
37 template <typename NamespaceT = Aws::Vector<Aws::String>>
38 void SetNamespace(NamespaceT&& value) {
39 m_namespaceHasBeenSet = true;
40 m_namespace = std::forward<NamespaceT>(value);
41 }
42 template <typename NamespaceT = Aws::Vector<Aws::String>>
43 GetNamespaceResult& WithNamespace(NamespaceT&& value) {
44 SetNamespace(std::forward<NamespaceT>(value));
45 return *this;
46 }
47 template <typename NamespaceT = Aws::String>
48 GetNamespaceResult& AddNamespace(NamespaceT&& value) {
49 m_namespaceHasBeenSet = true;
50 m_namespace.emplace_back(std::forward<NamespaceT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
60 template <typename CreatedAtT = Aws::Utils::DateTime>
61 void SetCreatedAt(CreatedAtT&& value) {
62 m_createdAtHasBeenSet = true;
63 m_createdAt = std::forward<CreatedAtT>(value);
64 }
65 template <typename CreatedAtT = Aws::Utils::DateTime>
66 GetNamespaceResult& WithCreatedAt(CreatedAtT&& value) {
67 SetCreatedAt(std::forward<CreatedAtT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
77 template <typename CreatedByT = Aws::String>
78 void SetCreatedBy(CreatedByT&& value) {
79 m_createdByHasBeenSet = true;
80 m_createdBy = std::forward<CreatedByT>(value);
81 }
82 template <typename CreatedByT = Aws::String>
83 GetNamespaceResult& WithCreatedBy(CreatedByT&& value) {
84 SetCreatedBy(std::forward<CreatedByT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
94 template <typename OwnerAccountIdT = Aws::String>
95 void SetOwnerAccountId(OwnerAccountIdT&& value) {
96 m_ownerAccountIdHasBeenSet = true;
97 m_ownerAccountId = std::forward<OwnerAccountIdT>(value);
98 }
99 template <typename OwnerAccountIdT = Aws::String>
100 GetNamespaceResult& WithOwnerAccountId(OwnerAccountIdT&& value) {
101 SetOwnerAccountId(std::forward<OwnerAccountIdT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetNamespaceId() const { return m_namespaceId; }
111 template <typename NamespaceIdT = Aws::String>
112 void SetNamespaceId(NamespaceIdT&& value) {
113 m_namespaceIdHasBeenSet = true;
114 m_namespaceId = std::forward<NamespaceIdT>(value);
115 }
116 template <typename NamespaceIdT = Aws::String>
117 GetNamespaceResult& WithNamespaceId(NamespaceIdT&& value) {
118 SetNamespaceId(std::forward<NamespaceIdT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetTableBucketId() const { return m_tableBucketId; }
128 template <typename TableBucketIdT = Aws::String>
129 void SetTableBucketId(TableBucketIdT&& value) {
130 m_tableBucketIdHasBeenSet = true;
131 m_tableBucketId = std::forward<TableBucketIdT>(value);
132 }
133 template <typename TableBucketIdT = Aws::String>
134 GetNamespaceResult& WithTableBucketId(TableBucketIdT&& value) {
135 SetTableBucketId(std::forward<TableBucketIdT>(value));
136 return *this;
137 }
139
141
142 inline const Aws::String& GetRequestId() const { return m_requestId; }
143 template <typename RequestIdT = Aws::String>
144 void SetRequestId(RequestIdT&& value) {
145 m_requestIdHasBeenSet = true;
146 m_requestId = std::forward<RequestIdT>(value);
147 }
148 template <typename RequestIdT = Aws::String>
149 GetNamespaceResult& WithRequestId(RequestIdT&& value) {
150 SetRequestId(std::forward<RequestIdT>(value));
151 return *this;
152 }
154 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
155
156 private:
157 Aws::Vector<Aws::String> m_namespace;
158
159 Aws::Utils::DateTime m_createdAt{};
160
161 Aws::String m_createdBy;
162
163 Aws::String m_ownerAccountId;
164
165 Aws::String m_namespaceId;
166
167 Aws::String m_tableBucketId;
168
169 Aws::String m_requestId;
170 Aws::Http::HttpResponseCode m_HttpResponseCode;
171 bool m_namespaceHasBeenSet = false;
172 bool m_createdAtHasBeenSet = false;
173 bool m_createdByHasBeenSet = false;
174 bool m_ownerAccountIdHasBeenSet = false;
175 bool m_namespaceIdHasBeenSet = false;
176 bool m_tableBucketIdHasBeenSet = false;
177 bool m_requestIdHasBeenSet = false;
178};
179
180} // namespace Model
181} // namespace S3Tables
182} // namespace Aws
GetNamespaceResult & AddNamespace(NamespaceT &&value)
void SetOwnerAccountId(OwnerAccountIdT &&value)
AWS_S3TABLES_API GetNamespaceResult()=default
void SetTableBucketId(TableBucketIdT &&value)
const Aws::String & GetTableBucketId() const
const Aws::Utils::DateTime & GetCreatedAt() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Vector< Aws::String > & GetNamespace() const
const Aws::String & GetOwnerAccountId() const
GetNamespaceResult & WithOwnerAccountId(OwnerAccountIdT &&value)
GetNamespaceResult & WithNamespaceId(NamespaceIdT &&value)
AWS_S3TABLES_API GetNamespaceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetNamespaceResult & WithTableBucketId(TableBucketIdT &&value)
GetNamespaceResult & WithCreatedAt(CreatedAtT &&value)
GetNamespaceResult & WithCreatedBy(CreatedByT &&value)
GetNamespaceResult & WithNamespace(NamespaceT &&value)
AWS_S3TABLES_API GetNamespaceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetNamespaceResult & WithRequestId(RequestIdT &&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