AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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:
36 AWS_IOT_API GetPolicyVersionResult() = default;
39
40
42
45 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
46 template<typename PolicyArnT = Aws::String>
47 void SetPolicyArn(PolicyArnT&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::forward<PolicyArnT>(value); }
48 template<typename PolicyArnT = Aws::String>
49 GetPolicyVersionResult& WithPolicyArn(PolicyArnT&& value) { SetPolicyArn(std::forward<PolicyArnT>(value)); return *this;}
51
53
56 inline const Aws::String& GetPolicyName() const { return m_policyName; }
57 template<typename PolicyNameT = Aws::String>
58 void SetPolicyName(PolicyNameT&& value) { m_policyNameHasBeenSet = true; m_policyName = std::forward<PolicyNameT>(value); }
59 template<typename PolicyNameT = Aws::String>
60 GetPolicyVersionResult& WithPolicyName(PolicyNameT&& value) { SetPolicyName(std::forward<PolicyNameT>(value)); return *this;}
62
64
67 inline const Aws::String& GetPolicyDocument() const { return m_policyDocument; }
68 template<typename PolicyDocumentT = Aws::String>
69 void SetPolicyDocument(PolicyDocumentT&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::forward<PolicyDocumentT>(value); }
70 template<typename PolicyDocumentT = Aws::String>
71 GetPolicyVersionResult& WithPolicyDocument(PolicyDocumentT&& value) { SetPolicyDocument(std::forward<PolicyDocumentT>(value)); return *this;}
73
75
78 inline const Aws::String& GetPolicyVersionId() const { return m_policyVersionId; }
79 template<typename PolicyVersionIdT = Aws::String>
80 void SetPolicyVersionId(PolicyVersionIdT&& value) { m_policyVersionIdHasBeenSet = true; m_policyVersionId = std::forward<PolicyVersionIdT>(value); }
81 template<typename PolicyVersionIdT = Aws::String>
82 GetPolicyVersionResult& WithPolicyVersionId(PolicyVersionIdT&& value) { SetPolicyVersionId(std::forward<PolicyVersionIdT>(value)); return *this;}
84
86
89 inline bool GetIsDefaultVersion() const { return m_isDefaultVersion; }
90 inline void SetIsDefaultVersion(bool value) { m_isDefaultVersionHasBeenSet = true; m_isDefaultVersion = value; }
91 inline GetPolicyVersionResult& WithIsDefaultVersion(bool value) { SetIsDefaultVersion(value); return *this;}
93
95
98 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
99 template<typename CreationDateT = Aws::Utils::DateTime>
100 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
101 template<typename CreationDateT = Aws::Utils::DateTime>
102 GetPolicyVersionResult& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
104
106
109 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
110 template<typename LastModifiedDateT = Aws::Utils::DateTime>
111 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
112 template<typename LastModifiedDateT = Aws::Utils::DateTime>
113 GetPolicyVersionResult& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
115
117
120 inline const Aws::String& GetGenerationId() const { return m_generationId; }
121 template<typename GenerationIdT = Aws::String>
122 void SetGenerationId(GenerationIdT&& value) { m_generationIdHasBeenSet = true; m_generationId = std::forward<GenerationIdT>(value); }
123 template<typename GenerationIdT = Aws::String>
124 GetPolicyVersionResult& WithGenerationId(GenerationIdT&& value) { SetGenerationId(std::forward<GenerationIdT>(value)); return *this;}
126
128
129 inline const Aws::String& GetRequestId() const { return m_requestId; }
130 template<typename RequestIdT = Aws::String>
131 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
132 template<typename RequestIdT = Aws::String>
133 GetPolicyVersionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
135 private:
136
137 Aws::String m_policyArn;
138 bool m_policyArnHasBeenSet = false;
139
140 Aws::String m_policyName;
141 bool m_policyNameHasBeenSet = false;
142
143 Aws::String m_policyDocument;
144 bool m_policyDocumentHasBeenSet = false;
145
146 Aws::String m_policyVersionId;
147 bool m_policyVersionIdHasBeenSet = false;
148
149 bool m_isDefaultVersion{false};
150 bool m_isDefaultVersionHasBeenSet = false;
151
152 Aws::Utils::DateTime m_creationDate{};
153 bool m_creationDateHasBeenSet = false;
154
155 Aws::Utils::DateTime m_lastModifiedDate{};
156 bool m_lastModifiedDateHasBeenSet = false;
157
158 Aws::String m_generationId;
159 bool m_generationIdHasBeenSet = false;
160
161 Aws::String m_requestId;
162 bool m_requestIdHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace IoT
167} // namespace Aws
GetPolicyVersionResult & WithPolicyArn(PolicyArnT &&value)
void SetPolicyDocument(PolicyDocumentT &&value)
AWS_IOT_API GetPolicyVersionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetLastModifiedDate() const
GetPolicyVersionResult & WithPolicyVersionId(PolicyVersionIdT &&value)
GetPolicyVersionResult & WithIsDefaultVersion(bool value)
AWS_IOT_API GetPolicyVersionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPolicyVersionResult & WithPolicyName(PolicyNameT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
GetPolicyVersionResult & WithCreationDate(CreationDateT &&value)
void SetPolicyVersionId(PolicyVersionIdT &&value)
GetPolicyVersionResult & WithRequestId(RequestIdT &&value)
GetPolicyVersionResult & WithGenerationId(GenerationIdT &&value)
GetPolicyVersionResult & WithLastModifiedDate(LastModifiedDateT &&value)
void SetLastModifiedDate(LastModifiedDateT &&value)
AWS_IOT_API GetPolicyVersionResult()=default
GetPolicyVersionResult & WithPolicyDocument(PolicyDocumentT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue