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>
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>
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>
79 inline void SetVersionId(
int value) { m_versionIdHasBeenSet =
true; m_versionId = value; }
99 inline void SetIsDefault(
bool value) { m_isDefaultHasBeenSet =
true; m_isDefault = value; }
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>
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>
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>
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>
166 bool m_arnHasBeenSet =
false;
169 bool m_policyArnHasBeenSet =
false;
172 bool m_versionIdHasBeenSet =
false;
175 bool m_policyTypeHasBeenSet =
false;
177 bool m_isDefault{
false};
178 bool m_isDefaultHasBeenSet =
false;
181 bool m_nameHasBeenSet =
false;
184 bool m_statusHasBeenSet =
false;
187 bool m_creationTimeHasBeenSet =
false;
190 bool m_lastUpdatedTimeHasBeenSet =
false;
193 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