AWS SDK for C++

AWS SDK for C++ Version 1.11.784

Loading...
Searching...
No Matches
PutSchemaResult.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 PutSchemaResult() = 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 PutSchemaResult& WithPolicyStoreId(PolicyStoreIdT&& value) {
44 SetPolicyStoreId(std::forward<PolicyStoreIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::Vector<Aws::String>& GetNamespaces() const { return m_namespaces; }
54 template <typename NamespacesT = Aws::Vector<Aws::String>>
55 void SetNamespaces(NamespacesT&& value) {
56 m_namespacesHasBeenSet = true;
57 m_namespaces = std::forward<NamespacesT>(value);
58 }
59 template <typename NamespacesT = Aws::Vector<Aws::String>>
60 PutSchemaResult& WithNamespaces(NamespacesT&& value) {
61 SetNamespaces(std::forward<NamespacesT>(value));
62 return *this;
63 }
64 template <typename NamespacesT = Aws::String>
65 PutSchemaResult& AddNamespaces(NamespacesT&& value) {
66 m_namespacesHasBeenSet = true;
67 m_namespaces.emplace_back(std::forward<NamespacesT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
77 template <typename CreatedDateT = Aws::Utils::DateTime>
78 void SetCreatedDate(CreatedDateT&& value) {
79 m_createdDateHasBeenSet = true;
80 m_createdDate = std::forward<CreatedDateT>(value);
81 }
82 template <typename CreatedDateT = Aws::Utils::DateTime>
83 PutSchemaResult& WithCreatedDate(CreatedDateT&& value) {
84 SetCreatedDate(std::forward<CreatedDateT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
94 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
95 void SetLastUpdatedDate(LastUpdatedDateT&& value) {
96 m_lastUpdatedDateHasBeenSet = true;
97 m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value);
98 }
99 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
100 PutSchemaResult& WithLastUpdatedDate(LastUpdatedDateT&& value) {
101 SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value));
102 return *this;
103 }
105
107
108 inline const Aws::String& GetRequestId() const { return m_requestId; }
109 template <typename RequestIdT = Aws::String>
110 void SetRequestId(RequestIdT&& value) {
111 m_requestIdHasBeenSet = true;
112 m_requestId = std::forward<RequestIdT>(value);
113 }
114 template <typename RequestIdT = Aws::String>
115 PutSchemaResult& WithRequestId(RequestIdT&& value) {
116 SetRequestId(std::forward<RequestIdT>(value));
117 return *this;
118 }
120 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
121
122 private:
123 Aws::String m_policyStoreId;
124
125 Aws::Vector<Aws::String> m_namespaces;
126
127 Aws::Utils::DateTime m_createdDate{};
128
129 Aws::Utils::DateTime m_lastUpdatedDate{};
130
131 Aws::String m_requestId;
132 Aws::Http::HttpResponseCode m_HttpResponseCode;
133 bool m_policyStoreIdHasBeenSet = false;
134 bool m_namespacesHasBeenSet = false;
135 bool m_createdDateHasBeenSet = false;
136 bool m_lastUpdatedDateHasBeenSet = false;
137 bool m_requestIdHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace VerifiedPermissions
142} // namespace Aws
PutSchemaResult & AddNamespaces(NamespacesT &&value)
PutSchemaResult & WithRequestId(RequestIdT &&value)
PutSchemaResult & WithCreatedDate(CreatedDateT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Vector< Aws::String > & GetNamespaces() const
PutSchemaResult & WithLastUpdatedDate(LastUpdatedDateT &&value)
AWS_VERIFIEDPERMISSIONS_API PutSchemaResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetLastUpdatedDate() const
PutSchemaResult & WithPolicyStoreId(PolicyStoreIdT &&value)
AWS_VERIFIEDPERMISSIONS_API PutSchemaResult()=default
PutSchemaResult & WithNamespaces(NamespacesT &&value)
AWS_VERIFIEDPERMISSIONS_API PutSchemaResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetLastUpdatedDate(LastUpdatedDateT &&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