AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
PutSchemaResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace VerifiedPermissions {
24namespace Model {
26 public:
27 AWS_VERIFIEDPERMISSIONS_API PutSchemaResult() = default;
30
32
35 inline const Aws::String& GetPolicyStoreId() const { return m_policyStoreId; }
36 template <typename PolicyStoreIdT = Aws::String>
37 void SetPolicyStoreId(PolicyStoreIdT&& value) {
38 m_policyStoreIdHasBeenSet = true;
39 m_policyStoreId = std::forward<PolicyStoreIdT>(value);
40 }
41 template <typename PolicyStoreIdT = Aws::String>
42 PutSchemaResult& WithPolicyStoreId(PolicyStoreIdT&& value) {
43 SetPolicyStoreId(std::forward<PolicyStoreIdT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::Vector<Aws::String>& GetNamespaces() const { return m_namespaces; }
53 template <typename NamespacesT = Aws::Vector<Aws::String>>
54 void SetNamespaces(NamespacesT&& value) {
55 m_namespacesHasBeenSet = true;
56 m_namespaces = std::forward<NamespacesT>(value);
57 }
58 template <typename NamespacesT = Aws::Vector<Aws::String>>
59 PutSchemaResult& WithNamespaces(NamespacesT&& value) {
60 SetNamespaces(std::forward<NamespacesT>(value));
61 return *this;
62 }
63 template <typename NamespacesT = Aws::String>
64 PutSchemaResult& AddNamespaces(NamespacesT&& value) {
65 m_namespacesHasBeenSet = true;
66 m_namespaces.emplace_back(std::forward<NamespacesT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
76 template <typename CreatedDateT = Aws::Utils::DateTime>
77 void SetCreatedDate(CreatedDateT&& value) {
78 m_createdDateHasBeenSet = true;
79 m_createdDate = std::forward<CreatedDateT>(value);
80 }
81 template <typename CreatedDateT = Aws::Utils::DateTime>
82 PutSchemaResult& WithCreatedDate(CreatedDateT&& value) {
83 SetCreatedDate(std::forward<CreatedDateT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
93 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
94 void SetLastUpdatedDate(LastUpdatedDateT&& value) {
95 m_lastUpdatedDateHasBeenSet = true;
96 m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value);
97 }
98 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
99 PutSchemaResult& WithLastUpdatedDate(LastUpdatedDateT&& value) {
100 SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value));
101 return *this;
102 }
104
106
107 inline const Aws::String& GetRequestId() const { return m_requestId; }
108 template <typename RequestIdT = Aws::String>
109 void SetRequestId(RequestIdT&& value) {
110 m_requestIdHasBeenSet = true;
111 m_requestId = std::forward<RequestIdT>(value);
112 }
113 template <typename RequestIdT = Aws::String>
114 PutSchemaResult& WithRequestId(RequestIdT&& value) {
115 SetRequestId(std::forward<RequestIdT>(value));
116 return *this;
117 }
119 private:
120 Aws::String m_policyStoreId;
121
122 Aws::Vector<Aws::String> m_namespaces;
123
124 Aws::Utils::DateTime m_createdDate{};
125
126 Aws::Utils::DateTime m_lastUpdatedDate{};
127
128 Aws::String m_requestId;
129 bool m_policyStoreIdHasBeenSet = false;
130 bool m_namespacesHasBeenSet = false;
131 bool m_createdDateHasBeenSet = false;
132 bool m_lastUpdatedDateHasBeenSet = false;
133 bool m_requestIdHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace VerifiedPermissions
138} // namespace Aws
PutSchemaResult & AddNamespaces(NamespacesT &&value)
PutSchemaResult & WithRequestId(RequestIdT &&value)
PutSchemaResult & WithCreatedDate(CreatedDateT &&value)
const Aws::Utils::DateTime & GetCreatedDate() 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