7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mpa/MPA_EXPORTS.h>
10#include <aws/mpa/model/PolicyStatus.h>
11#include <aws/mpa/model/PolicyType.h>
49 template <
typename ArnT = Aws::String>
51 m_arnHasBeenSet =
true;
52 m_arn = std::forward<ArnT>(value);
54 template <
typename ArnT = Aws::String>
56 SetArn(std::forward<ArnT>(value));
67 template <
typename PolicyArnT = Aws::String>
69 m_policyArnHasBeenSet =
true;
70 m_policyArn = std::forward<PolicyArnT>(value);
72 template <
typename PolicyArnT = Aws::String>
86 m_versionIdHasBeenSet =
true;
102 m_policyTypeHasBeenSet =
true;
103 m_policyType = value;
118 m_isDefaultHasBeenSet =
true;
133 template <
typename NameT = Aws::String>
135 m_nameHasBeenSet =
true;
136 m_name = std::forward<NameT>(value);
138 template <
typename NameT = Aws::String>
140 SetName(std::forward<NameT>(value));
155 m_statusHasBeenSet =
true;
170 template <
typename CreationTimeT = Aws::Utils::DateTime>
172 m_creationTimeHasBeenSet =
true;
173 m_creationTime = std::forward<CreationTimeT>(value);
175 template <
typename CreationTimeT = Aws::Utils::DateTime>
188 template <
typename LastUpdatedTimeT = Aws::Utils::DateTime>
190 m_lastUpdatedTimeHasBeenSet =
true;
191 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
193 template <
typename LastUpdatedTimeT = Aws::Utils::DateTime>
206 template <
typename DocumentT = Aws::String>
208 m_documentHasBeenSet =
true;
209 m_document = std::forward<DocumentT>(value);
211 template <
typename DocumentT = Aws::String>
226 bool m_isDefault{
false};
237 bool m_arnHasBeenSet =
false;
238 bool m_policyArnHasBeenSet =
false;
239 bool m_versionIdHasBeenSet =
false;
240 bool m_policyTypeHasBeenSet =
false;
241 bool m_isDefaultHasBeenSet =
false;
242 bool m_nameHasBeenSet =
false;
243 bool m_statusHasBeenSet =
false;
244 bool m_creationTimeHasBeenSet =
false;
245 bool m_lastUpdatedTimeHasBeenSet =
false;
246 bool m_documentHasBeenSet =
false;
bool StatusHasBeenSet() const
PolicyStatus GetStatus() const
const Aws::String & GetDocument() const
bool PolicyArnHasBeenSet() 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
bool ArnHasBeenSet() const
PolicyVersion & WithStatus(PolicyStatus value)
void SetStatus(PolicyStatus value)
PolicyType GetPolicyType() const
void SetArn(ArnT &&value)
PolicyVersion & WithCreationTime(CreationTimeT &&value)
PolicyVersion & WithArn(ArnT &&value)
void SetIsDefault(bool value)
void SetDocument(DocumentT &&value)
void SetVersionId(int value)
const Aws::String & GetPolicyArn() const
PolicyVersion & WithLastUpdatedTime(LastUpdatedTimeT &&value)
PolicyVersion & WithPolicyType(PolicyType value)
void SetName(NameT &&value)
bool CreationTimeHasBeenSet() const
void SetCreationTime(CreationTimeT &&value)
bool VersionIdHasBeenSet() const
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
bool DocumentHasBeenSet() const
AWS_MPA_API PolicyVersion(Aws::Utils::Json::JsonView jsonValue)
PolicyVersion & WithName(NameT &&value)
bool LastUpdatedTimeHasBeenSet() const
void SetPolicyType(PolicyType value)
bool PolicyTypeHasBeenSet() const
bool NameHasBeenSet() const
bool IsDefaultHasBeenSet() const
const Aws::String & GetArn() const
void SetPolicyArn(PolicyArnT &&value)
bool GetIsDefault() const
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue