AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PolicyVersion.h
1
6#pragma once
7#include <aws/mpa/MPA_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mpa/model/PolicyType.h>
10#include <aws/mpa/model/PolicyStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace MPA
25{
26namespace Model
27{
28
41 {
42 public:
43 AWS_MPA_API PolicyVersion() = default;
47
48
50
53 inline const Aws::String& GetArn() const { return m_arn; }
54 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
55 template<typename ArnT = Aws::String>
56 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
57 template<typename ArnT = Aws::String>
58 PolicyVersion& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
60
62
65 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
66 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
67 template<typename PolicyArnT = Aws::String>
68 void SetPolicyArn(PolicyArnT&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::forward<PolicyArnT>(value); }
69 template<typename PolicyArnT = Aws::String>
70 PolicyVersion& WithPolicyArn(PolicyArnT&& value) { SetPolicyArn(std::forward<PolicyArnT>(value)); return *this;}
72
74
77 inline int GetVersionId() const { return m_versionId; }
78 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
79 inline void SetVersionId(int value) { m_versionIdHasBeenSet = true; m_versionId = value; }
80 inline PolicyVersion& WithVersionId(int value) { SetVersionId(value); return *this;}
82
84
87 inline PolicyType GetPolicyType() const { return m_policyType; }
88 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
89 inline void SetPolicyType(PolicyType value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
90 inline PolicyVersion& WithPolicyType(PolicyType value) { SetPolicyType(value); return *this;}
92
94
97 inline bool GetIsDefault() const { return m_isDefault; }
98 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
99 inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; }
100 inline PolicyVersion& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
102
104
107 inline const Aws::String& GetName() const { return m_name; }
108 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
109 template<typename NameT = Aws::String>
110 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
111 template<typename NameT = Aws::String>
112 PolicyVersion& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
114
116
122 inline PolicyStatus GetStatus() const { return m_status; }
123 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
124 inline void SetStatus(PolicyStatus value) { m_statusHasBeenSet = true; m_status = value; }
125 inline PolicyVersion& WithStatus(PolicyStatus value) { SetStatus(value); return *this;}
127
129
132 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
133 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
134 template<typename CreationTimeT = Aws::Utils::DateTime>
135 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
136 template<typename CreationTimeT = Aws::Utils::DateTime>
137 PolicyVersion& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
139
141
144 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
145 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
146 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
147 void SetLastUpdatedTime(LastUpdatedTimeT&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value); }
148 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
149 PolicyVersion& WithLastUpdatedTime(LastUpdatedTimeT&& value) { SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value)); return *this;}
151
153
156 inline const Aws::String& GetDocument() const { return m_document; }
157 inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
158 template<typename DocumentT = Aws::String>
159 void SetDocument(DocumentT&& value) { m_documentHasBeenSet = true; m_document = std::forward<DocumentT>(value); }
160 template<typename DocumentT = Aws::String>
161 PolicyVersion& WithDocument(DocumentT&& value) { SetDocument(std::forward<DocumentT>(value)); return *this;}
163 private:
164
165 Aws::String m_arn;
166 bool m_arnHasBeenSet = false;
167
168 Aws::String m_policyArn;
169 bool m_policyArnHasBeenSet = false;
170
171 int m_versionId{0};
172 bool m_versionIdHasBeenSet = false;
173
174 PolicyType m_policyType{PolicyType::NOT_SET};
175 bool m_policyTypeHasBeenSet = false;
176
177 bool m_isDefault{false};
178 bool m_isDefaultHasBeenSet = false;
179
180 Aws::String m_name;
181 bool m_nameHasBeenSet = false;
182
184 bool m_statusHasBeenSet = false;
185
186 Aws::Utils::DateTime m_creationTime{};
187 bool m_creationTimeHasBeenSet = false;
188
189 Aws::Utils::DateTime m_lastUpdatedTime{};
190 bool m_lastUpdatedTimeHasBeenSet = false;
191
192 Aws::String m_document;
193 bool m_documentHasBeenSet = false;
194 };
195
196} // namespace Model
197} // namespace MPA
198} // namespace Aws
PolicyStatus GetStatus() const
const Aws::String & GetDocument() const
PolicyVersion & WithVersionId(int value)
AWS_MPA_API Aws::Utils::Json::JsonValue Jsonize() const
PolicyVersion & WithIsDefault(bool value)
AWS_MPA_API PolicyVersion()=default
const Aws::Utils::DateTime & GetCreationTime() const
PolicyVersion & WithStatus(PolicyStatus value)
void SetStatus(PolicyStatus value)
PolicyType GetPolicyType() const
PolicyVersion & WithCreationTime(CreationTimeT &&value)
PolicyVersion & WithArn(ArnT &&value)
void SetDocument(DocumentT &&value)
const Aws::String & GetPolicyArn() const
PolicyVersion & WithLastUpdatedTime(LastUpdatedTimeT &&value)
PolicyVersion & WithPolicyType(PolicyType value)
void SetCreationTime(CreationTimeT &&value)
PolicyVersion & WithDocument(DocumentT &&value)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
AWS_MPA_API PolicyVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
PolicyVersion & WithPolicyArn(PolicyArnT &&value)
const Aws::String & GetName() const
AWS_MPA_API PolicyVersion(Aws::Utils::Json::JsonView jsonValue)
PolicyVersion & WithName(NameT &&value)
void SetPolicyType(PolicyType value)
const Aws::String & GetArn() const
void SetPolicyArn(PolicyArnT &&value)
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue