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>
45 template <
typename ArnT = Aws::String>
47 m_arnHasBeenSet =
true;
48 m_arn = std::forward<ArnT>(value);
50 template <
typename ArnT = Aws::String>
52 SetArn(std::forward<ArnT>(value));
63 template <
typename PolicyArnT = Aws::String>
65 m_policyArnHasBeenSet =
true;
66 m_policyArn = std::forward<PolicyArnT>(value);
68 template <
typename PolicyArnT = Aws::String>
82 m_versionIdHasBeenSet =
true;
98 m_policyTypeHasBeenSet =
true;
114 m_isDefaultHasBeenSet =
true;
129 template <
typename NameT = Aws::String>
131 m_nameHasBeenSet =
true;
132 m_name = std::forward<NameT>(value);
134 template <
typename NameT = Aws::String>
136 SetName(std::forward<NameT>(value));
151 m_statusHasBeenSet =
true;
166 template <
typename CreationTimeT = Aws::Utils::DateTime>
168 m_creationTimeHasBeenSet =
true;
169 m_creationTime = std::forward<CreationTimeT>(value);
171 template <
typename CreationTimeT = Aws::Utils::DateTime>
184 template <
typename LastUpdatedTimeT = Aws::Utils::DateTime>
186 m_lastUpdatedTimeHasBeenSet =
true;
187 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
189 template <
typename LastUpdatedTimeT = Aws::Utils::DateTime>
202 template <
typename DocumentT = Aws::String>
204 m_documentHasBeenSet =
true;
205 m_document = std::forward<DocumentT>(value);
207 template <
typename DocumentT = Aws::String>
222 bool m_isDefault{
false};
233 bool m_arnHasBeenSet =
false;
234 bool m_policyArnHasBeenSet =
false;
235 bool m_versionIdHasBeenSet =
false;
236 bool m_policyTypeHasBeenSet =
false;
237 bool m_isDefaultHasBeenSet =
false;
238 bool m_nameHasBeenSet =
false;
239 bool m_statusHasBeenSet =
false;
240 bool m_creationTimeHasBeenSet =
false;
241 bool m_lastUpdatedTimeHasBeenSet =
false;
242 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