AWS SDK for C++  1.9.124
AWS SDK for C++
GetPolicyResult.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& GetPolicyName() const{ return m_policyName; }
45 
49  inline void SetPolicyName(const Aws::String& value) { m_policyName = value; }
50 
54  inline void SetPolicyName(Aws::String&& value) { m_policyName = std::move(value); }
55 
59  inline void SetPolicyName(const char* value) { m_policyName.assign(value); }
60 
64  inline GetPolicyResult& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
65 
69  inline GetPolicyResult& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
70 
74  inline GetPolicyResult& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
75 
76 
80  inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
81 
85  inline void SetPolicyArn(const Aws::String& value) { m_policyArn = value; }
86 
90  inline void SetPolicyArn(Aws::String&& value) { m_policyArn = std::move(value); }
91 
95  inline void SetPolicyArn(const char* value) { m_policyArn.assign(value); }
96 
100  inline GetPolicyResult& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
101 
105  inline GetPolicyResult& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
106 
110  inline GetPolicyResult& WithPolicyArn(const char* value) { SetPolicyArn(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 GetPolicyResult& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
137 
141  inline GetPolicyResult& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
142 
146  inline GetPolicyResult& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
147 
148 
152  inline const Aws::String& GetDefaultVersionId() const{ return m_defaultVersionId; }
153 
157  inline void SetDefaultVersionId(const Aws::String& value) { m_defaultVersionId = value; }
158 
162  inline void SetDefaultVersionId(Aws::String&& value) { m_defaultVersionId = std::move(value); }
163 
167  inline void SetDefaultVersionId(const char* value) { m_defaultVersionId.assign(value); }
168 
172  inline GetPolicyResult& WithDefaultVersionId(const Aws::String& value) { SetDefaultVersionId(value); return *this;}
173 
177  inline GetPolicyResult& WithDefaultVersionId(Aws::String&& value) { SetDefaultVersionId(std::move(value)); return *this;}
178 
182  inline GetPolicyResult& WithDefaultVersionId(const char* value) { SetDefaultVersionId(value); return *this;}
183 
184 
188  inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
189 
193  inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDate = value; }
194 
198  inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDate = std::move(value); }
199 
203  inline GetPolicyResult& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
204 
208  inline GetPolicyResult& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
209 
210 
214  inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; }
215 
219  inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDate = value; }
220 
224  inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDate = std::move(value); }
225 
229  inline GetPolicyResult& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;}
230 
234  inline GetPolicyResult& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;}
235 
236 
240  inline const Aws::String& GetGenerationId() const{ return m_generationId; }
241 
245  inline void SetGenerationId(const Aws::String& value) { m_generationId = value; }
246 
250  inline void SetGenerationId(Aws::String&& value) { m_generationId = std::move(value); }
251 
255  inline void SetGenerationId(const char* value) { m_generationId.assign(value); }
256 
260  inline GetPolicyResult& WithGenerationId(const Aws::String& value) { SetGenerationId(value); return *this;}
261 
265  inline GetPolicyResult& WithGenerationId(Aws::String&& value) { SetGenerationId(std::move(value)); return *this;}
266 
270  inline GetPolicyResult& WithGenerationId(const char* value) { SetGenerationId(value); return *this;}
271 
272  private:
273 
274  Aws::String m_policyName;
275 
276  Aws::String m_policyArn;
277 
278  Aws::String m_policyDocument;
279 
280  Aws::String m_defaultVersionId;
281 
282  Aws::Utils::DateTime m_creationDate;
283 
284  Aws::Utils::DateTime m_lastModifiedDate;
285 
286  Aws::String m_generationId;
287  };
288 
289 } // namespace Model
290 } // namespace IoT
291 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::IoT::Model::GetPolicyResult::SetPolicyDocument
void SetPolicyDocument(Aws::String &&value)
Definition: GetPolicyResult.h:126
Aws::IoT::Model::GetPolicyResult::SetGenerationId
void SetGenerationId(const Aws::String &value)
Definition: GetPolicyResult.h:245
Aws::IoT::Model::GetPolicyResult::WithPolicyDocument
GetPolicyResult & WithPolicyDocument(const char *value)
Definition: GetPolicyResult.h:146
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::IoT::Model::GetPolicyResult
Definition: GetPolicyResult.h:34
Aws::IoT::Model::GetPolicyResult::WithDefaultVersionId
GetPolicyResult & WithDefaultVersionId(Aws::String &&value)
Definition: GetPolicyResult.h:177
Aws::IoT::Model::GetPolicyResult::SetDefaultVersionId
void SetDefaultVersionId(const char *value)
Definition: GetPolicyResult.h:167
Aws::IoT::Model::GetPolicyResult::SetPolicyArn
void SetPolicyArn(const char *value)
Definition: GetPolicyResult.h:95
Aws::IoT::Model::GetPolicyResult::WithGenerationId
GetPolicyResult & WithGenerationId(const char *value)
Definition: GetPolicyResult.h:270
DateTime.h
Aws::IoT::Model::GetPolicyResult::WithDefaultVersionId
GetPolicyResult & WithDefaultVersionId(const char *value)
Definition: GetPolicyResult.h:182
Aws::IoT::Model::GetPolicyResult::WithPolicyName
GetPolicyResult & WithPolicyName(Aws::String &&value)
Definition: GetPolicyResult.h:69
Aws::IoT::Model::GetPolicyResult::SetDefaultVersionId
void SetDefaultVersionId(Aws::String &&value)
Definition: GetPolicyResult.h:162
Aws::IoT::Model::GetPolicyResult::WithPolicyDocument
GetPolicyResult & WithPolicyDocument(Aws::String &&value)
Definition: GetPolicyResult.h:141
Aws::IoT::Model::GetPolicyResult::SetGenerationId
void SetGenerationId(Aws::String &&value)
Definition: GetPolicyResult.h:250
Aws::IoT::Model::GetPolicyResult::WithPolicyArn
GetPolicyResult & WithPolicyArn(const char *value)
Definition: GetPolicyResult.h:110
Aws::IoT::Model::GetPolicyResult::WithCreationDate
GetPolicyResult & WithCreationDate(Aws::Utils::DateTime &&value)
Definition: GetPolicyResult.h:208
Aws::IoT::Model::GetPolicyResult::WithPolicyName
GetPolicyResult & WithPolicyName(const char *value)
Definition: GetPolicyResult.h:74
Aws::IoT::Model::GetPolicyResult::operator=
GetPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::IoT::Model::GetPolicyResult::GetGenerationId
const Aws::String & GetGenerationId() const
Definition: GetPolicyResult.h:240
Aws::IoT::Model::GetPolicyResult::GetPolicyDocument
const Aws::String & GetPolicyDocument() const
Definition: GetPolicyResult.h:116
Aws::IoT::Model::GetPolicyResult::SetLastModifiedDate
void SetLastModifiedDate(Aws::Utils::DateTime &&value)
Definition: GetPolicyResult.h:224
Aws::IoT::Model::GetPolicyResult::WithLastModifiedDate
GetPolicyResult & WithLastModifiedDate(const Aws::Utils::DateTime &value)
Definition: GetPolicyResult.h:229
Aws::IoT::Model::GetPolicyResult::GetPolicyResult
GetPolicyResult()
Aws::IoT::Model::GetPolicyResult::GetCreationDate
const Aws::Utils::DateTime & GetCreationDate() const
Definition: GetPolicyResult.h:188
Aws::IoT::Model::GetPolicyResult::SetGenerationId
void SetGenerationId(const char *value)
Definition: GetPolicyResult.h:255
Aws::IoT::Model::GetPolicyResult::WithPolicyArn
GetPolicyResult & WithPolicyArn(const Aws::String &value)
Definition: GetPolicyResult.h:100
Aws::IoT::Model::GetPolicyResult::WithLastModifiedDate
GetPolicyResult & WithLastModifiedDate(Aws::Utils::DateTime &&value)
Definition: GetPolicyResult.h:234
Aws::IoT::Model::GetPolicyResult::SetPolicyName
void SetPolicyName(const char *value)
Definition: GetPolicyResult.h:59
Aws::IoT::Model::GetPolicyResult::GetPolicyResult
GetPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSString.h
Aws::IoT::Model::GetPolicyResult::WithCreationDate
GetPolicyResult & WithCreationDate(const Aws::Utils::DateTime &value)
Definition: GetPolicyResult.h:203
Aws::IoT::Model::GetPolicyResult::SetPolicyName
void SetPolicyName(const Aws::String &value)
Definition: GetPolicyResult.h:49
Aws::IoT::Model::GetPolicyResult::WithDefaultVersionId
GetPolicyResult & WithDefaultVersionId(const Aws::String &value)
Definition: GetPolicyResult.h:172
Aws::IoT::Model::GetPolicyResult::WithPolicyArn
GetPolicyResult & WithPolicyArn(Aws::String &&value)
Definition: GetPolicyResult.h:105
Aws::IoT::Model::GetPolicyResult::SetDefaultVersionId
void SetDefaultVersionId(const Aws::String &value)
Definition: GetPolicyResult.h:157
Aws::IoT::Model::GetPolicyResult::SetLastModifiedDate
void SetLastModifiedDate(const Aws::Utils::DateTime &value)
Definition: GetPolicyResult.h:219
Aws::IoT::Model::GetPolicyResult::SetPolicyArn
void SetPolicyArn(const Aws::String &value)
Definition: GetPolicyResult.h:85
Aws::IoT::Model::GetPolicyResult::GetDefaultVersionId
const Aws::String & GetDefaultVersionId() const
Definition: GetPolicyResult.h:152
Aws::IoT::Model::GetPolicyResult::SetCreationDate
void SetCreationDate(const Aws::Utils::DateTime &value)
Definition: GetPolicyResult.h:193
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::GetPolicyResult::SetPolicyDocument
void SetPolicyDocument(const char *value)
Definition: GetPolicyResult.h:131
Aws::IoT::Model::GetPolicyResult::WithPolicyName
GetPolicyResult & WithPolicyName(const Aws::String &value)
Definition: GetPolicyResult.h:64
Aws::IoT::Model::GetPolicyResult::SetPolicyDocument
void SetPolicyDocument(const Aws::String &value)
Definition: GetPolicyResult.h:121
Aws::IoT::Model::GetPolicyResult::WithPolicyDocument
GetPolicyResult & WithPolicyDocument(const Aws::String &value)
Definition: GetPolicyResult.h:136
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::GetPolicyResult::WithGenerationId
GetPolicyResult & WithGenerationId(const Aws::String &value)
Definition: GetPolicyResult.h:260
Aws::IoT::Model::GetPolicyResult::GetPolicyArn
const Aws::String & GetPolicyArn() const
Definition: GetPolicyResult.h:80
Aws::IoT::Model::GetPolicyResult::GetLastModifiedDate
const Aws::Utils::DateTime & GetLastModifiedDate() const
Definition: GetPolicyResult.h:214
Aws::IoT::Model::GetPolicyResult::WithGenerationId
GetPolicyResult & WithGenerationId(Aws::String &&value)
Definition: GetPolicyResult.h:265
Aws::IoT::Model::GetPolicyResult::SetCreationDate
void SetCreationDate(Aws::Utils::DateTime &&value)
Definition: GetPolicyResult.h:198
Aws::IoT::Model::GetPolicyResult::SetPolicyName
void SetPolicyName(Aws::String &&value)
Definition: GetPolicyResult.h:54
Aws::IoT::Model::GetPolicyResult::SetPolicyArn
void SetPolicyArn(Aws::String &&value)
Definition: GetPolicyResult.h:90
Aws::IoT::Model::GetPolicyResult::GetPolicyName
const Aws::String & GetPolicyName() const
Definition: GetPolicyResult.h:44
IoT_EXPORTS.h