AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetPolicyResult.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace IoT
25{
26namespace Model
27{
34 {
35 public:
36 AWS_IOT_API GetPolicyResult();
39
40
42
45 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
46 inline void SetPolicyName(const Aws::String& value) { m_policyName = value; }
47 inline void SetPolicyName(Aws::String&& value) { m_policyName = std::move(value); }
48 inline void SetPolicyName(const char* value) { m_policyName.assign(value); }
49 inline GetPolicyResult& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
50 inline GetPolicyResult& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
51 inline GetPolicyResult& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
53
55
58 inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
59 inline void SetPolicyArn(const Aws::String& value) { m_policyArn = value; }
60 inline void SetPolicyArn(Aws::String&& value) { m_policyArn = std::move(value); }
61 inline void SetPolicyArn(const char* value) { m_policyArn.assign(value); }
62 inline GetPolicyResult& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
63 inline GetPolicyResult& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
64 inline GetPolicyResult& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
66
68
71 inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
72 inline void SetPolicyDocument(const Aws::String& value) { m_policyDocument = value; }
73 inline void SetPolicyDocument(Aws::String&& value) { m_policyDocument = std::move(value); }
74 inline void SetPolicyDocument(const char* value) { m_policyDocument.assign(value); }
75 inline GetPolicyResult& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
76 inline GetPolicyResult& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
77 inline GetPolicyResult& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
79
81
84 inline const Aws::String& GetDefaultVersionId() const{ return m_defaultVersionId; }
85 inline void SetDefaultVersionId(const Aws::String& value) { m_defaultVersionId = value; }
86 inline void SetDefaultVersionId(Aws::String&& value) { m_defaultVersionId = std::move(value); }
87 inline void SetDefaultVersionId(const char* value) { m_defaultVersionId.assign(value); }
88 inline GetPolicyResult& WithDefaultVersionId(const Aws::String& value) { SetDefaultVersionId(value); return *this;}
89 inline GetPolicyResult& WithDefaultVersionId(Aws::String&& value) { SetDefaultVersionId(std::move(value)); return *this;}
90 inline GetPolicyResult& WithDefaultVersionId(const char* value) { SetDefaultVersionId(value); return *this;}
92
94
97 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
98 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDate = value; }
99 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDate = std::move(value); }
100 inline GetPolicyResult& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
101 inline GetPolicyResult& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
103
105
108 inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; }
109 inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDate = value; }
110 inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDate = std::move(value); }
112 inline GetPolicyResult& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;}
114
116
119 inline const Aws::String& GetGenerationId() const{ return m_generationId; }
120 inline void SetGenerationId(const Aws::String& value) { m_generationId = value; }
121 inline void SetGenerationId(Aws::String&& value) { m_generationId = std::move(value); }
122 inline void SetGenerationId(const char* value) { m_generationId.assign(value); }
123 inline GetPolicyResult& WithGenerationId(const Aws::String& value) { SetGenerationId(value); return *this;}
124 inline GetPolicyResult& WithGenerationId(Aws::String&& value) { SetGenerationId(std::move(value)); return *this;}
125 inline GetPolicyResult& WithGenerationId(const char* value) { SetGenerationId(value); return *this;}
127
129
130 inline const Aws::String& GetRequestId() const{ return m_requestId; }
131 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
132 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
133 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
134 inline GetPolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
135 inline GetPolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
136 inline GetPolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
138 private:
139
140 Aws::String m_policyName;
141
142 Aws::String m_policyArn;
143
144 Aws::String m_policyDocument;
145
146 Aws::String m_defaultVersionId;
147
148 Aws::Utils::DateTime m_creationDate;
149
150 Aws::Utils::DateTime m_lastModifiedDate;
151
152 Aws::String m_generationId;
153
154 Aws::String m_requestId;
155 };
156
157} // namespace Model
158} // namespace IoT
159} // namespace Aws
const Aws::String & GetDefaultVersionId() const
void SetGenerationId(Aws::String &&value)
GetPolicyResult & WithRequestId(const char *value)
GetPolicyResult & WithGenerationId(const Aws::String &value)
void SetPolicyArn(Aws::String &&value)
GetPolicyResult & WithGenerationId(Aws::String &&value)
const Aws::Utils::DateTime & GetCreationDate() const
GetPolicyResult & WithLastModifiedDate(Aws::Utils::DateTime &&value)
GetPolicyResult & WithPolicyDocument(const Aws::String &value)
GetPolicyResult & WithPolicyDocument(const char *value)
const Aws::String & GetRequestId() const
void SetPolicyDocument(const char *value)
void SetPolicyName(const char *value)
const Aws::String & GetPolicyName() const
GetPolicyResult & WithPolicyArn(const char *value)
void SetPolicyArn(const char *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(const char *value)
void SetCreationDate(const Aws::Utils::DateTime &value)
void SetPolicyName(const Aws::String &value)
void SetDefaultVersionId(const Aws::String &value)
GetPolicyResult & WithRequestId(const Aws::String &value)
GetPolicyResult & WithGenerationId(const char *value)
void SetLastModifiedDate(const Aws::Utils::DateTime &value)
GetPolicyResult & WithPolicyName(const Aws::String &value)
void SetGenerationId(const char *value)
GetPolicyResult & WithDefaultVersionId(const Aws::String &value)
GetPolicyResult & WithRequestId(Aws::String &&value)
GetPolicyResult & WithCreationDate(Aws::Utils::DateTime &&value)
void SetGenerationId(const Aws::String &value)
void SetRequestId(const Aws::String &value)
void SetLastModifiedDate(Aws::Utils::DateTime &&value)
void SetPolicyArn(const Aws::String &value)
void SetCreationDate(Aws::Utils::DateTime &&value)
void SetRequestId(Aws::String &&value)
void SetPolicyName(Aws::String &&value)
GetPolicyResult & WithDefaultVersionId(const char *value)
GetPolicyResult & WithDefaultVersionId(Aws::String &&value)
GetPolicyResult & WithPolicyArn(const Aws::String &value)
GetPolicyResult & WithPolicyDocument(Aws::String &&value)
GetPolicyResult & WithLastModifiedDate(const Aws::Utils::DateTime &value)
const Aws::String & GetPolicyArn() const
GetPolicyResult & WithCreationDate(const Aws::Utils::DateTime &value)
const Aws::String & GetPolicyDocument() const
GetPolicyResult & WithPolicyName(Aws::String &&value)
GetPolicyResult & WithPolicyArn(Aws::String &&value)
void SetDefaultVersionId(const char *value)
void SetDefaultVersionId(Aws::String &&value)
void SetRequestId(const char *value)
const Aws::Utils::DateTime & GetLastModifiedDate() const
void SetPolicyDocument(Aws::String &&value)
void SetPolicyDocument(const Aws::String &value)
const Aws::String & GetGenerationId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue