AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
GetSchemaResult.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/verifiedpermissions/VerifiedPermissions_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 VerifiedPermissions {
25namespace Model {
27 public:
28 AWS_VERIFIEDPERMISSIONS_API GetSchemaResult() = default;
31
33
36 inline const Aws::String& GetPolicyStoreId() const { return m_policyStoreId; }
37 template <typename PolicyStoreIdT = Aws::String>
38 void SetPolicyStoreId(PolicyStoreIdT&& value) {
39 m_policyStoreIdHasBeenSet = true;
40 m_policyStoreId = std::forward<PolicyStoreIdT>(value);
41 }
42 template <typename PolicyStoreIdT = Aws::String>
43 GetSchemaResult& WithPolicyStoreId(PolicyStoreIdT&& value) {
44 SetPolicyStoreId(std::forward<PolicyStoreIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetSchema() const { return m_schema; }
54 template <typename SchemaT = Aws::String>
55 void SetSchema(SchemaT&& value) {
56 m_schemaHasBeenSet = true;
57 m_schema = std::forward<SchemaT>(value);
58 }
59 template <typename SchemaT = Aws::String>
60 GetSchemaResult& WithSchema(SchemaT&& value) {
61 SetSchema(std::forward<SchemaT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
71 template <typename CreatedDateT = Aws::Utils::DateTime>
72 void SetCreatedDate(CreatedDateT&& value) {
73 m_createdDateHasBeenSet = true;
74 m_createdDate = std::forward<CreatedDateT>(value);
75 }
76 template <typename CreatedDateT = Aws::Utils::DateTime>
77 GetSchemaResult& WithCreatedDate(CreatedDateT&& value) {
78 SetCreatedDate(std::forward<CreatedDateT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
88 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
89 void SetLastUpdatedDate(LastUpdatedDateT&& value) {
90 m_lastUpdatedDateHasBeenSet = true;
91 m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value);
92 }
93 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
94 GetSchemaResult& WithLastUpdatedDate(LastUpdatedDateT&& value) {
95 SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::Vector<Aws::String>& GetNamespaces() const { return m_namespaces; }
105 template <typename NamespacesT = Aws::Vector<Aws::String>>
106 void SetNamespaces(NamespacesT&& value) {
107 m_namespacesHasBeenSet = true;
108 m_namespaces = std::forward<NamespacesT>(value);
109 }
110 template <typename NamespacesT = Aws::Vector<Aws::String>>
111 GetSchemaResult& WithNamespaces(NamespacesT&& value) {
112 SetNamespaces(std::forward<NamespacesT>(value));
113 return *this;
114 }
115 template <typename NamespacesT = Aws::String>
116 GetSchemaResult& AddNamespaces(NamespacesT&& value) {
117 m_namespacesHasBeenSet = true;
118 m_namespaces.emplace_back(std::forward<NamespacesT>(value));
119 return *this;
120 }
122
124
125 inline const Aws::String& GetRequestId() const { return m_requestId; }
126 template <typename RequestIdT = Aws::String>
127 void SetRequestId(RequestIdT&& value) {
128 m_requestIdHasBeenSet = true;
129 m_requestId = std::forward<RequestIdT>(value);
130 }
131 template <typename RequestIdT = Aws::String>
132 GetSchemaResult& WithRequestId(RequestIdT&& value) {
133 SetRequestId(std::forward<RequestIdT>(value));
134 return *this;
135 }
137 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
138
139 private:
140 Aws::String m_policyStoreId;
141
142 Aws::String m_schema;
143
144 Aws::Utils::DateTime m_createdDate{};
145
146 Aws::Utils::DateTime m_lastUpdatedDate{};
147
148 Aws::Vector<Aws::String> m_namespaces;
149
150 Aws::String m_requestId;
151 Aws::Http::HttpResponseCode m_HttpResponseCode;
152 bool m_policyStoreIdHasBeenSet = false;
153 bool m_schemaHasBeenSet = false;
154 bool m_createdDateHasBeenSet = false;
155 bool m_lastUpdatedDateHasBeenSet = false;
156 bool m_namespacesHasBeenSet = false;
157 bool m_requestIdHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace VerifiedPermissions
162} // namespace Aws
AWS_VERIFIEDPERMISSIONS_API GetSchemaResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSchemaResult & AddNamespaces(NamespacesT &&value)
void SetLastUpdatedDate(LastUpdatedDateT &&value)
GetSchemaResult & WithLastUpdatedDate(LastUpdatedDateT &&value)
GetSchemaResult & WithSchema(SchemaT &&value)
GetSchemaResult & WithCreatedDate(CreatedDateT &&value)
AWS_VERIFIEDPERMISSIONS_API GetSchemaResult()=default
const Aws::Utils::DateTime & GetLastUpdatedDate() const
GetSchemaResult & WithPolicyStoreId(PolicyStoreIdT &&value)
AWS_VERIFIEDPERMISSIONS_API GetSchemaResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSchemaResult & WithNamespaces(NamespacesT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Vector< Aws::String > & GetNamespaces() const
const Aws::Utils::DateTime & GetCreatedDate() const
GetSchemaResult & 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