AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetPolicyTemplateResult.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/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 GetPolicyTemplateResult() = 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 GetPolicyTemplateResult& WithPolicyStoreId(PolicyStoreIdT&& value) {
43 SetPolicyStoreId(std::forward<PolicyStoreIdT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetPolicyTemplateId() const { return m_policyTemplateId; }
53 template <typename PolicyTemplateIdT = Aws::String>
54 void SetPolicyTemplateId(PolicyTemplateIdT&& value) {
55 m_policyTemplateIdHasBeenSet = true;
56 m_policyTemplateId = std::forward<PolicyTemplateIdT>(value);
57 }
58 template <typename PolicyTemplateIdT = Aws::String>
59 GetPolicyTemplateResult& WithPolicyTemplateId(PolicyTemplateIdT&& value) {
60 SetPolicyTemplateId(std::forward<PolicyTemplateIdT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::String& GetDescription() const { return m_description; }
70 template <typename DescriptionT = Aws::String>
71 void SetDescription(DescriptionT&& value) {
72 m_descriptionHasBeenSet = true;
73 m_description = std::forward<DescriptionT>(value);
74 }
75 template <typename DescriptionT = Aws::String>
77 SetDescription(std::forward<DescriptionT>(value));
78 return *this;
79 }
81
83
87 inline const Aws::String& GetStatement() const { return m_statement; }
88 template <typename StatementT = Aws::String>
89 void SetStatement(StatementT&& value) {
90 m_statementHasBeenSet = true;
91 m_statement = std::forward<StatementT>(value);
92 }
93 template <typename StatementT = Aws::String>
95 SetStatement(std::forward<StatementT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
105 template <typename CreatedDateT = Aws::Utils::DateTime>
106 void SetCreatedDate(CreatedDateT&& value) {
107 m_createdDateHasBeenSet = true;
108 m_createdDate = std::forward<CreatedDateT>(value);
109 }
110 template <typename CreatedDateT = Aws::Utils::DateTime>
112 SetCreatedDate(std::forward<CreatedDateT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
122 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
123 void SetLastUpdatedDate(LastUpdatedDateT&& value) {
124 m_lastUpdatedDateHasBeenSet = true;
125 m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value);
126 }
127 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
128 GetPolicyTemplateResult& WithLastUpdatedDate(LastUpdatedDateT&& value) {
129 SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value));
130 return *this;
131 }
133
135
139 inline const Aws::String& GetName() const { return m_name; }
140 template <typename NameT = Aws::String>
141 void SetName(NameT&& value) {
142 m_nameHasBeenSet = true;
143 m_name = std::forward<NameT>(value);
144 }
145 template <typename NameT = Aws::String>
147 SetName(std::forward<NameT>(value));
148 return *this;
149 }
151
153
154 inline const Aws::String& GetRequestId() const { return m_requestId; }
155 template <typename RequestIdT = Aws::String>
156 void SetRequestId(RequestIdT&& value) {
157 m_requestIdHasBeenSet = true;
158 m_requestId = std::forward<RequestIdT>(value);
159 }
160 template <typename RequestIdT = Aws::String>
162 SetRequestId(std::forward<RequestIdT>(value));
163 return *this;
164 }
166 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
167
168 private:
169 Aws::String m_policyStoreId;
170
171 Aws::String m_policyTemplateId;
172
173 Aws::String m_description;
174
175 Aws::String m_statement;
176
177 Aws::Utils::DateTime m_createdDate{};
178
179 Aws::Utils::DateTime m_lastUpdatedDate{};
180
181 Aws::String m_name;
182
183 Aws::String m_requestId;
184 Aws::Http::HttpResponseCode m_HttpResponseCode;
185 bool m_policyStoreIdHasBeenSet = false;
186 bool m_policyTemplateIdHasBeenSet = false;
187 bool m_descriptionHasBeenSet = false;
188 bool m_statementHasBeenSet = false;
189 bool m_createdDateHasBeenSet = false;
190 bool m_lastUpdatedDateHasBeenSet = false;
191 bool m_nameHasBeenSet = false;
192 bool m_requestIdHasBeenSet = false;
193};
194
195} // namespace Model
196} // namespace VerifiedPermissions
197} // namespace Aws
GetPolicyTemplateResult & WithRequestId(RequestIdT &&value)
AWS_VERIFIEDPERMISSIONS_API GetPolicyTemplateResult()=default
AWS_VERIFIEDPERMISSIONS_API GetPolicyTemplateResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_VERIFIEDPERMISSIONS_API GetPolicyTemplateResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPolicyTemplateResult & WithDescription(DescriptionT &&value)
GetPolicyTemplateResult & WithLastUpdatedDate(LastUpdatedDateT &&value)
GetPolicyTemplateResult & WithPolicyTemplateId(PolicyTemplateIdT &&value)
GetPolicyTemplateResult & WithStatement(StatementT &&value)
GetPolicyTemplateResult & WithCreatedDate(CreatedDateT &&value)
GetPolicyTemplateResult & WithPolicyStoreId(PolicyStoreIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue