AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetPolicyVersionResult.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:
39
40
42
45 inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
46 inline void SetPolicyArn(const Aws::String& value) { m_policyArn = value; }
47 inline void SetPolicyArn(Aws::String&& value) { m_policyArn = std::move(value); }
48 inline void SetPolicyArn(const char* value) { m_policyArn.assign(value); }
49 inline GetPolicyVersionResult& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
50 inline GetPolicyVersionResult& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
51 inline GetPolicyVersionResult& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
53
55
58 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
59 inline void SetPolicyName(const Aws::String& value) { m_policyName = value; }
60 inline void SetPolicyName(Aws::String&& value) { m_policyName = std::move(value); }
61 inline void SetPolicyName(const char* value) { m_policyName.assign(value); }
62 inline GetPolicyVersionResult& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
63 inline GetPolicyVersionResult& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
64 inline GetPolicyVersionResult& WithPolicyName(const char* value) { SetPolicyName(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 GetPolicyVersionResult& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
76 inline GetPolicyVersionResult& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
77 inline GetPolicyVersionResult& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
79
81
84 inline const Aws::String& GetPolicyVersionId() const{ return m_policyVersionId; }
85 inline void SetPolicyVersionId(const Aws::String& value) { m_policyVersionId = value; }
86 inline void SetPolicyVersionId(Aws::String&& value) { m_policyVersionId = std::move(value); }
87 inline void SetPolicyVersionId(const char* value) { m_policyVersionId.assign(value); }
88 inline GetPolicyVersionResult& WithPolicyVersionId(const Aws::String& value) { SetPolicyVersionId(value); return *this;}
89 inline GetPolicyVersionResult& WithPolicyVersionId(Aws::String&& value) { SetPolicyVersionId(std::move(value)); return *this;}
90 inline GetPolicyVersionResult& WithPolicyVersionId(const char* value) { SetPolicyVersionId(value); return *this;}
92
94
97 inline bool GetIsDefaultVersion() const{ return m_isDefaultVersion; }
98 inline void SetIsDefaultVersion(bool value) { m_isDefaultVersion = value; }
99 inline GetPolicyVersionResult& WithIsDefaultVersion(bool value) { SetIsDefaultVersion(value); return *this;}
101
103
106 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
107 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDate = value; }
108 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDate = std::move(value); }
110 inline GetPolicyVersionResult& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
112
114
117 inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; }
118 inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDate = value; }
119 inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDate = std::move(value); }
121 inline GetPolicyVersionResult& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;}
123
125
128 inline const Aws::String& GetGenerationId() const{ return m_generationId; }
129 inline void SetGenerationId(const Aws::String& value) { m_generationId = value; }
130 inline void SetGenerationId(Aws::String&& value) { m_generationId = std::move(value); }
131 inline void SetGenerationId(const char* value) { m_generationId.assign(value); }
132 inline GetPolicyVersionResult& WithGenerationId(const Aws::String& value) { SetGenerationId(value); return *this;}
133 inline GetPolicyVersionResult& WithGenerationId(Aws::String&& value) { SetGenerationId(std::move(value)); return *this;}
134 inline GetPolicyVersionResult& WithGenerationId(const char* value) { SetGenerationId(value); return *this;}
136
138
139 inline const Aws::String& GetRequestId() const{ return m_requestId; }
140 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
141 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
142 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
143 inline GetPolicyVersionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
144 inline GetPolicyVersionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
145 inline GetPolicyVersionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
147 private:
148
149 Aws::String m_policyArn;
150
151 Aws::String m_policyName;
152
153 Aws::String m_policyDocument;
154
155 Aws::String m_policyVersionId;
156
157 bool m_isDefaultVersion;
158
159 Aws::Utils::DateTime m_creationDate;
160
161 Aws::Utils::DateTime m_lastModifiedDate;
162
163 Aws::String m_generationId;
164
165 Aws::String m_requestId;
166 };
167
168} // namespace Model
169} // namespace IoT
170} // namespace Aws
GetPolicyVersionResult & WithPolicyDocument(const char *value)
GetPolicyVersionResult & WithPolicyName(Aws::String &&value)
void SetGenerationId(const Aws::String &value)
void SetCreationDate(Aws::Utils::DateTime &&value)
GetPolicyVersionResult & WithRequestId(Aws::String &&value)
GetPolicyVersionResult & WithPolicyArn(const Aws::String &value)
AWS_IOT_API GetPolicyVersionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetLastModifiedDate() const
GetPolicyVersionResult & WithGenerationId(const Aws::String &value)
GetPolicyVersionResult & WithIsDefaultVersion(bool value)
GetPolicyVersionResult & WithLastModifiedDate(Aws::Utils::DateTime &&value)
GetPolicyVersionResult & WithCreationDate(const Aws::Utils::DateTime &value)
AWS_IOT_API GetPolicyVersionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetCreationDate(const Aws::Utils::DateTime &value)
GetPolicyVersionResult & WithCreationDate(Aws::Utils::DateTime &&value)
GetPolicyVersionResult & WithRequestId(const char *value)
GetPolicyVersionResult & WithRequestId(const Aws::String &value)
const Aws::Utils::DateTime & GetCreationDate() const
void SetPolicyName(const Aws::String &value)
GetPolicyVersionResult & WithPolicyName(const Aws::String &value)
void SetPolicyArn(const Aws::String &value)
GetPolicyVersionResult & WithPolicyDocument(Aws::String &&value)
GetPolicyVersionResult & WithPolicyName(const char *value)
void SetLastModifiedDate(const Aws::Utils::DateTime &value)
GetPolicyVersionResult & WithPolicyArn(const char *value)
void SetRequestId(const Aws::String &value)
GetPolicyVersionResult & WithGenerationId(Aws::String &&value)
GetPolicyVersionResult & WithPolicyVersionId(Aws::String &&value)
GetPolicyVersionResult & WithPolicyArn(Aws::String &&value)
GetPolicyVersionResult & WithPolicyVersionId(const char *value)
GetPolicyVersionResult & WithLastModifiedDate(const Aws::Utils::DateTime &value)
void SetPolicyVersionId(const Aws::String &value)
void SetPolicyDocument(const Aws::String &value)
GetPolicyVersionResult & WithPolicyVersionId(const Aws::String &value)
void SetLastModifiedDate(Aws::Utils::DateTime &&value)
GetPolicyVersionResult & WithGenerationId(const char *value)
GetPolicyVersionResult & WithPolicyDocument(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue