AWS SDK for C++  1.9.123
AWS SDK for C++
GetPolicyVersionResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace IoT
25 {
26 namespace Model
27 {
34  {
35  public:
39 
40 
44  inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
45 
49  inline void SetPolicyArn(const Aws::String& value) { m_policyArn = value; }
50 
54  inline void SetPolicyArn(Aws::String&& value) { m_policyArn = std::move(value); }
55 
59  inline void SetPolicyArn(const char* value) { m_policyArn.assign(value); }
60 
64  inline GetPolicyVersionResult& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
65 
69  inline GetPolicyVersionResult& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
70 
74  inline GetPolicyVersionResult& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
75 
76 
80  inline const Aws::String& GetPolicyName() const{ return m_policyName; }
81 
85  inline void SetPolicyName(const Aws::String& value) { m_policyName = value; }
86 
90  inline void SetPolicyName(Aws::String&& value) { m_policyName = std::move(value); }
91 
95  inline void SetPolicyName(const char* value) { m_policyName.assign(value); }
96 
100  inline GetPolicyVersionResult& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
101 
105  inline GetPolicyVersionResult& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
106 
110  inline GetPolicyVersionResult& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
111 
112 
116  inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
117 
121  inline void SetPolicyDocument(const Aws::String& value) { m_policyDocument = value; }
122 
126  inline void SetPolicyDocument(Aws::String&& value) { m_policyDocument = std::move(value); }
127 
131  inline void SetPolicyDocument(const char* value) { m_policyDocument.assign(value); }
132 
136  inline GetPolicyVersionResult& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
137 
141  inline GetPolicyVersionResult& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
142 
146  inline GetPolicyVersionResult& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
147 
148 
152  inline const Aws::String& GetPolicyVersionId() const{ return m_policyVersionId; }
153 
157  inline void SetPolicyVersionId(const Aws::String& value) { m_policyVersionId = value; }
158 
162  inline void SetPolicyVersionId(Aws::String&& value) { m_policyVersionId = std::move(value); }
163 
167  inline void SetPolicyVersionId(const char* value) { m_policyVersionId.assign(value); }
168 
172  inline GetPolicyVersionResult& WithPolicyVersionId(const Aws::String& value) { SetPolicyVersionId(value); return *this;}
173 
177  inline GetPolicyVersionResult& WithPolicyVersionId(Aws::String&& value) { SetPolicyVersionId(std::move(value)); return *this;}
178 
182  inline GetPolicyVersionResult& WithPolicyVersionId(const char* value) { SetPolicyVersionId(value); return *this;}
183 
184 
188  inline bool GetIsDefaultVersion() const{ return m_isDefaultVersion; }
189 
193  inline void SetIsDefaultVersion(bool value) { m_isDefaultVersion = value; }
194 
198  inline GetPolicyVersionResult& WithIsDefaultVersion(bool value) { SetIsDefaultVersion(value); return *this;}
199 
200 
204  inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
205 
209  inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDate = value; }
210 
214  inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDate = std::move(value); }
215 
219  inline GetPolicyVersionResult& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
220 
224  inline GetPolicyVersionResult& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
225 
226 
230  inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; }
231 
235  inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDate = value; }
236 
240  inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDate = std::move(value); }
241 
245  inline GetPolicyVersionResult& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;}
246 
250  inline GetPolicyVersionResult& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;}
251 
252 
256  inline const Aws::String& GetGenerationId() const{ return m_generationId; }
257 
261  inline void SetGenerationId(const Aws::String& value) { m_generationId = value; }
262 
266  inline void SetGenerationId(Aws::String&& value) { m_generationId = std::move(value); }
267 
271  inline void SetGenerationId(const char* value) { m_generationId.assign(value); }
272 
276  inline GetPolicyVersionResult& WithGenerationId(const Aws::String& value) { SetGenerationId(value); return *this;}
277 
281  inline GetPolicyVersionResult& WithGenerationId(Aws::String&& value) { SetGenerationId(std::move(value)); return *this;}
282 
286  inline GetPolicyVersionResult& WithGenerationId(const char* value) { SetGenerationId(value); return *this;}
287 
288  private:
289 
290  Aws::String m_policyArn;
291 
292  Aws::String m_policyName;
293 
294  Aws::String m_policyDocument;
295 
296  Aws::String m_policyVersionId;
297 
298  bool m_isDefaultVersion;
299 
300  Aws::Utils::DateTime m_creationDate;
301 
302  Aws::Utils::DateTime m_lastModifiedDate;
303 
304  Aws::String m_generationId;
305  };
306 
307 } // namespace Model
308 } // namespace IoT
309 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::IoT::Model::GetPolicyVersionResult::SetPolicyDocument
void SetPolicyDocument(const Aws::String &value)
Definition: GetPolicyVersionResult.h:121
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::IoT::Model::GetPolicyVersionResult::SetPolicyVersionId
void SetPolicyVersionId(const Aws::String &value)
Definition: GetPolicyVersionResult.h:157
Aws::IoT::Model::GetPolicyVersionResult::WithPolicyName
GetPolicyVersionResult & WithPolicyName(Aws::String &&value)
Definition: GetPolicyVersionResult.h:105
Aws::IoT::Model::GetPolicyVersionResult::WithLastModifiedDate
GetPolicyVersionResult & WithLastModifiedDate(const Aws::Utils::DateTime &value)
Definition: GetPolicyVersionResult.h:245
Aws::IoT::Model::GetPolicyVersionResult::SetPolicyDocument
void SetPolicyDocument(const char *value)
Definition: GetPolicyVersionResult.h:131
Aws::IoT::Model::GetPolicyVersionResult::GetPolicyVersionResult
GetPolicyVersionResult()
Aws::IoT::Model::GetPolicyVersionResult::SetGenerationId
void SetGenerationId(Aws::String &&value)
Definition: GetPolicyVersionResult.h:266
Aws::IoT::Model::GetPolicyVersionResult::SetCreationDate
void SetCreationDate(const Aws::Utils::DateTime &value)
Definition: GetPolicyVersionResult.h:209
DateTime.h
Aws::IoT::Model::GetPolicyVersionResult::WithPolicyArn
GetPolicyVersionResult & WithPolicyArn(const char *value)
Definition: GetPolicyVersionResult.h:74
Aws::IoT::Model::GetPolicyVersionResult::SetPolicyArn
void SetPolicyArn(const char *value)
Definition: GetPolicyVersionResult.h:59
Aws::IoT::Model::GetPolicyVersionResult::WithCreationDate
GetPolicyVersionResult & WithCreationDate(const Aws::Utils::DateTime &value)
Definition: GetPolicyVersionResult.h:219
Aws::IoT::Model::GetPolicyVersionResult::SetPolicyVersionId
void SetPolicyVersionId(Aws::String &&value)
Definition: GetPolicyVersionResult.h:162
Aws::IoT::Model::GetPolicyVersionResult::WithPolicyDocument
GetPolicyVersionResult & WithPolicyDocument(Aws::String &&value)
Definition: GetPolicyVersionResult.h:141
Aws::IoT::Model::GetPolicyVersionResult::WithIsDefaultVersion
GetPolicyVersionResult & WithIsDefaultVersion(bool value)
Definition: GetPolicyVersionResult.h:198
Aws::IoT::Model::GetPolicyVersionResult::WithGenerationId
GetPolicyVersionResult & WithGenerationId(const char *value)
Definition: GetPolicyVersionResult.h:286
Aws::IoT::Model::GetPolicyVersionResult::SetPolicyDocument
void SetPolicyDocument(Aws::String &&value)
Definition: GetPolicyVersionResult.h:126
Aws::IoT::Model::GetPolicyVersionResult::WithPolicyName
GetPolicyVersionResult & WithPolicyName(const Aws::String &value)
Definition: GetPolicyVersionResult.h:100
Aws::IoT::Model::GetPolicyVersionResult::GetPolicyVersionResult
GetPolicyVersionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::IoT::Model::GetPolicyVersionResult::SetPolicyArn
void SetPolicyArn(Aws::String &&value)
Definition: GetPolicyVersionResult.h:54
Aws::IoT::Model::GetPolicyVersionResult::WithPolicyArn
GetPolicyVersionResult & WithPolicyArn(const Aws::String &value)
Definition: GetPolicyVersionResult.h:64
Aws::IoT::Model::GetPolicyVersionResult::GetPolicyArn
const Aws::String & GetPolicyArn() const
Definition: GetPolicyVersionResult.h:44
Aws::IoT::Model::GetPolicyVersionResult::SetPolicyVersionId
void SetPolicyVersionId(const char *value)
Definition: GetPolicyVersionResult.h:167
Aws::IoT::Model::GetPolicyVersionResult::SetPolicyArn
void SetPolicyArn(const Aws::String &value)
Definition: GetPolicyVersionResult.h:49
Aws::IoT::Model::GetPolicyVersionResult::GetPolicyVersionId
const Aws::String & GetPolicyVersionId() const
Definition: GetPolicyVersionResult.h:152
Aws::IoT::Model::GetPolicyVersionResult::SetPolicyName
void SetPolicyName(const Aws::String &value)
Definition: GetPolicyVersionResult.h:85
Aws::IoT::Model::GetPolicyVersionResult::SetLastModifiedDate
void SetLastModifiedDate(Aws::Utils::DateTime &&value)
Definition: GetPolicyVersionResult.h:240
Aws::IoT::Model::GetPolicyVersionResult::WithPolicyDocument
GetPolicyVersionResult & WithPolicyDocument(const char *value)
Definition: GetPolicyVersionResult.h:146
AWSString.h
Aws::IoT::Model::GetPolicyVersionResult::SetCreationDate
void SetCreationDate(Aws::Utils::DateTime &&value)
Definition: GetPolicyVersionResult.h:214
Aws::IoT::Model::GetPolicyVersionResult::GetGenerationId
const Aws::String & GetGenerationId() const
Definition: GetPolicyVersionResult.h:256
Aws::IoT::Model::GetPolicyVersionResult::WithPolicyVersionId
GetPolicyVersionResult & WithPolicyVersionId(const Aws::String &value)
Definition: GetPolicyVersionResult.h:172
Aws::IoT::Model::GetPolicyVersionResult::SetPolicyName
void SetPolicyName(Aws::String &&value)
Definition: GetPolicyVersionResult.h:90
Aws::IoT::Model::GetPolicyVersionResult::WithPolicyDocument
GetPolicyVersionResult & WithPolicyDocument(const Aws::String &value)
Definition: GetPolicyVersionResult.h:136
Aws::IoT::Model::GetPolicyVersionResult::WithPolicyVersionId
GetPolicyVersionResult & WithPolicyVersionId(const char *value)
Definition: GetPolicyVersionResult.h:182
Aws::IoT::Model::GetPolicyVersionResult::GetPolicyName
const Aws::String & GetPolicyName() const
Definition: GetPolicyVersionResult.h:80
Aws::IoT::Model::GetPolicyVersionResult::WithGenerationId
GetPolicyVersionResult & WithGenerationId(Aws::String &&value)
Definition: GetPolicyVersionResult.h:281
Aws::IoT::Model::GetPolicyVersionResult::GetCreationDate
const Aws::Utils::DateTime & GetCreationDate() const
Definition: GetPolicyVersionResult.h:204
Aws::IoT::Model::GetPolicyVersionResult::SetLastModifiedDate
void SetLastModifiedDate(const Aws::Utils::DateTime &value)
Definition: GetPolicyVersionResult.h:235
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::GetPolicyVersionResult::SetGenerationId
void SetGenerationId(const char *value)
Definition: GetPolicyVersionResult.h:271
Aws::IoT::Model::GetPolicyVersionResult::WithGenerationId
GetPolicyVersionResult & WithGenerationId(const Aws::String &value)
Definition: GetPolicyVersionResult.h:276
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::GetPolicyVersionResult::GetPolicyDocument
const Aws::String & GetPolicyDocument() const
Definition: GetPolicyVersionResult.h:116
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::GetPolicyVersionResult::operator=
GetPolicyVersionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::IoT::Model::GetPolicyVersionResult::WithCreationDate
GetPolicyVersionResult & WithCreationDate(Aws::Utils::DateTime &&value)
Definition: GetPolicyVersionResult.h:224
Aws::IoT::Model::GetPolicyVersionResult::GetLastModifiedDate
const Aws::Utils::DateTime & GetLastModifiedDate() const
Definition: GetPolicyVersionResult.h:230
Aws::IoT::Model::GetPolicyVersionResult::WithPolicyVersionId
GetPolicyVersionResult & WithPolicyVersionId(Aws::String &&value)
Definition: GetPolicyVersionResult.h:177
Aws::IoT::Model::GetPolicyVersionResult::SetIsDefaultVersion
void SetIsDefaultVersion(bool value)
Definition: GetPolicyVersionResult.h:193
Aws::IoT::Model::GetPolicyVersionResult::SetPolicyName
void SetPolicyName(const char *value)
Definition: GetPolicyVersionResult.h:95
Aws::IoT::Model::GetPolicyVersionResult::WithPolicyArn
GetPolicyVersionResult & WithPolicyArn(Aws::String &&value)
Definition: GetPolicyVersionResult.h:69
Aws::IoT::Model::GetPolicyVersionResult
Definition: GetPolicyVersionResult.h:34
Aws::IoT::Model::GetPolicyVersionResult::SetGenerationId
void SetGenerationId(const Aws::String &value)
Definition: GetPolicyVersionResult.h:261
IoT_EXPORTS.h
Aws::IoT::Model::GetPolicyVersionResult::WithLastModifiedDate
GetPolicyVersionResult & WithLastModifiedDate(Aws::Utils::DateTime &&value)
Definition: GetPolicyVersionResult.h:250
Aws::IoT::Model::GetPolicyVersionResult::GetIsDefaultVersion
bool GetIsDefaultVersion() const
Definition: GetPolicyVersionResult.h:188
Aws::IoT::Model::GetPolicyVersionResult::WithPolicyName
GetPolicyVersionResult & WithPolicyName(const char *value)
Definition: GetPolicyVersionResult.h:110