AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
GetPolicyVersionResult.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/iot/IoT_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 IoT {
24namespace Model {
31 public:
32 AWS_IOT_API GetPolicyVersionResult() = default;
35
37
40 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
41 template <typename PolicyArnT = Aws::String>
42 void SetPolicyArn(PolicyArnT&& value) {
43 m_policyArnHasBeenSet = true;
44 m_policyArn = std::forward<PolicyArnT>(value);
45 }
46 template <typename PolicyArnT = Aws::String>
48 SetPolicyArn(std::forward<PolicyArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetPolicyName() const { return m_policyName; }
58 template <typename PolicyNameT = Aws::String>
59 void SetPolicyName(PolicyNameT&& value) {
60 m_policyNameHasBeenSet = true;
61 m_policyName = std::forward<PolicyNameT>(value);
62 }
63 template <typename PolicyNameT = Aws::String>
64 GetPolicyVersionResult& WithPolicyName(PolicyNameT&& value) {
65 SetPolicyName(std::forward<PolicyNameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetPolicyDocument() const { return m_policyDocument; }
75 template <typename PolicyDocumentT = Aws::String>
76 void SetPolicyDocument(PolicyDocumentT&& value) {
77 m_policyDocumentHasBeenSet = true;
78 m_policyDocument = std::forward<PolicyDocumentT>(value);
79 }
80 template <typename PolicyDocumentT = Aws::String>
81 GetPolicyVersionResult& WithPolicyDocument(PolicyDocumentT&& value) {
82 SetPolicyDocument(std::forward<PolicyDocumentT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetPolicyVersionId() const { return m_policyVersionId; }
92 template <typename PolicyVersionIdT = Aws::String>
93 void SetPolicyVersionId(PolicyVersionIdT&& value) {
94 m_policyVersionIdHasBeenSet = true;
95 m_policyVersionId = std::forward<PolicyVersionIdT>(value);
96 }
97 template <typename PolicyVersionIdT = Aws::String>
98 GetPolicyVersionResult& WithPolicyVersionId(PolicyVersionIdT&& value) {
99 SetPolicyVersionId(std::forward<PolicyVersionIdT>(value));
100 return *this;
101 }
103
105
108 inline bool GetIsDefaultVersion() const { return m_isDefaultVersion; }
109 inline void SetIsDefaultVersion(bool value) {
110 m_isDefaultVersionHasBeenSet = true;
111 m_isDefaultVersion = value;
112 }
114 SetIsDefaultVersion(value);
115 return *this;
116 }
118
120
123 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
124 template <typename CreationDateT = Aws::Utils::DateTime>
125 void SetCreationDate(CreationDateT&& value) {
126 m_creationDateHasBeenSet = true;
127 m_creationDate = std::forward<CreationDateT>(value);
128 }
129 template <typename CreationDateT = Aws::Utils::DateTime>
130 GetPolicyVersionResult& WithCreationDate(CreationDateT&& value) {
131 SetCreationDate(std::forward<CreationDateT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
141 template <typename LastModifiedDateT = Aws::Utils::DateTime>
142 void SetLastModifiedDate(LastModifiedDateT&& value) {
143 m_lastModifiedDateHasBeenSet = true;
144 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
145 }
146 template <typename LastModifiedDateT = Aws::Utils::DateTime>
147 GetPolicyVersionResult& WithLastModifiedDate(LastModifiedDateT&& value) {
148 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::String& GetGenerationId() const { return m_generationId; }
158 template <typename GenerationIdT = Aws::String>
159 void SetGenerationId(GenerationIdT&& value) {
160 m_generationIdHasBeenSet = true;
161 m_generationId = std::forward<GenerationIdT>(value);
162 }
163 template <typename GenerationIdT = Aws::String>
164 GetPolicyVersionResult& WithGenerationId(GenerationIdT&& value) {
165 SetGenerationId(std::forward<GenerationIdT>(value));
166 return *this;
167 }
169
171
172 inline const Aws::String& GetRequestId() const { return m_requestId; }
173 template <typename RequestIdT = Aws::String>
174 void SetRequestId(RequestIdT&& value) {
175 m_requestIdHasBeenSet = true;
176 m_requestId = std::forward<RequestIdT>(value);
177 }
178 template <typename RequestIdT = Aws::String>
180 SetRequestId(std::forward<RequestIdT>(value));
181 return *this;
182 }
184 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
185
186 private:
187 Aws::String m_policyArn;
188
189 Aws::String m_policyName;
190
191 Aws::String m_policyDocument;
192
193 Aws::String m_policyVersionId;
194
195 bool m_isDefaultVersion{false};
196
197 Aws::Utils::DateTime m_creationDate{};
198
199 Aws::Utils::DateTime m_lastModifiedDate{};
200
201 Aws::String m_generationId;
202
203 Aws::String m_requestId;
204 Aws::Http::HttpResponseCode m_HttpResponseCode;
205 bool m_policyArnHasBeenSet = false;
206 bool m_policyNameHasBeenSet = false;
207 bool m_policyDocumentHasBeenSet = false;
208 bool m_policyVersionIdHasBeenSet = false;
209 bool m_isDefaultVersionHasBeenSet = false;
210 bool m_creationDateHasBeenSet = false;
211 bool m_lastModifiedDateHasBeenSet = false;
212 bool m_generationIdHasBeenSet = false;
213 bool m_requestIdHasBeenSet = false;
214};
215
216} // namespace Model
217} // namespace IoT
218} // namespace Aws
GetPolicyVersionResult & WithPolicyArn(PolicyArnT &&value)
void SetPolicyDocument(PolicyDocumentT &&value)
AWS_IOT_API GetPolicyVersionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetLastModifiedDate() const
GetPolicyVersionResult & WithPolicyVersionId(PolicyVersionIdT &&value)
GetPolicyVersionResult & WithIsDefaultVersion(bool value)
AWS_IOT_API GetPolicyVersionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPolicyVersionResult & WithPolicyName(PolicyNameT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
GetPolicyVersionResult & WithCreationDate(CreationDateT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetPolicyVersionId(PolicyVersionIdT &&value)
GetPolicyVersionResult & WithRequestId(RequestIdT &&value)
GetPolicyVersionResult & WithGenerationId(GenerationIdT &&value)
GetPolicyVersionResult & WithLastModifiedDate(LastModifiedDateT &&value)
void SetLastModifiedDate(LastModifiedDateT &&value)
AWS_IOT_API GetPolicyVersionResult()=default
GetPolicyVersionResult & WithPolicyDocument(PolicyDocumentT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue