AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
GetPolicyResult.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 GetPolicyResult() = default;
35
37
40 inline const Aws::String& GetPolicyName() const { return m_policyName; }
41 template <typename PolicyNameT = Aws::String>
42 void SetPolicyName(PolicyNameT&& value) {
43 m_policyNameHasBeenSet = true;
44 m_policyName = std::forward<PolicyNameT>(value);
45 }
46 template <typename PolicyNameT = Aws::String>
47 GetPolicyResult& WithPolicyName(PolicyNameT&& value) {
48 SetPolicyName(std::forward<PolicyNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
58 template <typename PolicyArnT = Aws::String>
59 void SetPolicyArn(PolicyArnT&& value) {
60 m_policyArnHasBeenSet = true;
61 m_policyArn = std::forward<PolicyArnT>(value);
62 }
63 template <typename PolicyArnT = Aws::String>
64 GetPolicyResult& WithPolicyArn(PolicyArnT&& value) {
65 SetPolicyArn(std::forward<PolicyArnT>(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 GetPolicyResult& WithPolicyDocument(PolicyDocumentT&& value) {
82 SetPolicyDocument(std::forward<PolicyDocumentT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetDefaultVersionId() const { return m_defaultVersionId; }
92 template <typename DefaultVersionIdT = Aws::String>
93 void SetDefaultVersionId(DefaultVersionIdT&& value) {
94 m_defaultVersionIdHasBeenSet = true;
95 m_defaultVersionId = std::forward<DefaultVersionIdT>(value);
96 }
97 template <typename DefaultVersionIdT = Aws::String>
98 GetPolicyResult& WithDefaultVersionId(DefaultVersionIdT&& value) {
99 SetDefaultVersionId(std::forward<DefaultVersionIdT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
109 template <typename CreationDateT = Aws::Utils::DateTime>
110 void SetCreationDate(CreationDateT&& value) {
111 m_creationDateHasBeenSet = true;
112 m_creationDate = std::forward<CreationDateT>(value);
113 }
114 template <typename CreationDateT = Aws::Utils::DateTime>
115 GetPolicyResult& WithCreationDate(CreationDateT&& value) {
116 SetCreationDate(std::forward<CreationDateT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
126 template <typename LastModifiedDateT = Aws::Utils::DateTime>
127 void SetLastModifiedDate(LastModifiedDateT&& value) {
128 m_lastModifiedDateHasBeenSet = true;
129 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
130 }
131 template <typename LastModifiedDateT = Aws::Utils::DateTime>
132 GetPolicyResult& WithLastModifiedDate(LastModifiedDateT&& value) {
133 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::String& GetGenerationId() const { return m_generationId; }
143 template <typename GenerationIdT = Aws::String>
144 void SetGenerationId(GenerationIdT&& value) {
145 m_generationIdHasBeenSet = true;
146 m_generationId = std::forward<GenerationIdT>(value);
147 }
148 template <typename GenerationIdT = Aws::String>
149 GetPolicyResult& WithGenerationId(GenerationIdT&& value) {
150 SetGenerationId(std::forward<GenerationIdT>(value));
151 return *this;
152 }
154
156
157 inline const Aws::String& GetRequestId() const { return m_requestId; }
158 template <typename RequestIdT = Aws::String>
159 void SetRequestId(RequestIdT&& value) {
160 m_requestIdHasBeenSet = true;
161 m_requestId = std::forward<RequestIdT>(value);
162 }
163 template <typename RequestIdT = Aws::String>
164 GetPolicyResult& WithRequestId(RequestIdT&& value) {
165 SetRequestId(std::forward<RequestIdT>(value));
166 return *this;
167 }
169 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
170
171 private:
172 Aws::String m_policyName;
173
174 Aws::String m_policyArn;
175
176 Aws::String m_policyDocument;
177
178 Aws::String m_defaultVersionId;
179
180 Aws::Utils::DateTime m_creationDate{};
181
182 Aws::Utils::DateTime m_lastModifiedDate{};
183
184 Aws::String m_generationId;
185
186 Aws::String m_requestId;
187 Aws::Http::HttpResponseCode m_HttpResponseCode;
188 bool m_policyNameHasBeenSet = false;
189 bool m_policyArnHasBeenSet = false;
190 bool m_policyDocumentHasBeenSet = false;
191 bool m_defaultVersionIdHasBeenSet = false;
192 bool m_creationDateHasBeenSet = false;
193 bool m_lastModifiedDateHasBeenSet = false;
194 bool m_generationIdHasBeenSet = false;
195 bool m_requestIdHasBeenSet = false;
196};
197
198} // namespace Model
199} // namespace IoT
200} // namespace Aws
const Aws::String & GetDefaultVersionId() const
GetPolicyResult & WithCreationDate(CreationDateT &&value)
GetPolicyResult & WithPolicyDocument(PolicyDocumentT &&value)
void SetCreationDate(CreationDateT &&value)
void SetPolicyDocument(PolicyDocumentT &&value)
GetPolicyResult & WithLastModifiedDate(LastModifiedDateT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
void SetRequestId(RequestIdT &&value)
const Aws::String & GetRequestId() const
const Aws::String & GetPolicyName() const
void SetLastModifiedDate(LastModifiedDateT &&value)
AWS_IOT_API GetPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_IOT_API GetPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPolicyResult & WithPolicyName(PolicyNameT &&value)
GetPolicyResult & WithRequestId(RequestIdT &&value)
void SetDefaultVersionId(DefaultVersionIdT &&value)
void SetPolicyArn(PolicyArnT &&value)
GetPolicyResult & WithDefaultVersionId(DefaultVersionIdT &&value)
GetPolicyResult & WithPolicyArn(PolicyArnT &&value)
void SetGenerationId(GenerationIdT &&value)
const Aws::String & GetPolicyArn() const
void SetPolicyName(PolicyNameT &&value)
const Aws::String & GetPolicyDocument() const
const Aws::Utils::DateTime & GetLastModifiedDate() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_IOT_API GetPolicyResult()=default
const Aws::String & GetGenerationId() const
GetPolicyResult & WithGenerationId(GenerationIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue