7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mpa/MPA_EXPORTS.h>
9#include <aws/mpa/model/PolicyType.h>
47 template <
typename ArnT = Aws::String>
49 m_arnHasBeenSet =
true;
50 m_arn = std::forward<ArnT>(value);
52 template <
typename ArnT = Aws::String>
54 SetArn(std::forward<ArnT>(value));
66 m_defaultVersionHasBeenSet =
true;
67 m_defaultVersion = value;
82 m_policyTypeHasBeenSet =
true;
97 template <
typename NameT = Aws::String>
99 m_nameHasBeenSet =
true;
100 m_name = std::forward<NameT>(value);
102 template <
typename NameT = Aws::String>
104 SetName(std::forward<NameT>(value));
111 int m_defaultVersion{0};
116 bool m_arnHasBeenSet =
false;
117 bool m_defaultVersionHasBeenSet =
false;
118 bool m_policyTypeHasBeenSet =
false;
119 bool m_nameHasBeenSet =
false;
Policy & WithName(NameT &&value)
Policy & WithArn(ArnT &&value)
AWS_MPA_API Policy(Aws::Utils::Json::JsonView jsonValue)
PolicyType GetPolicyType() const
void SetPolicyType(PolicyType value)
void SetArn(ArnT &&value)
Policy & WithPolicyType(PolicyType value)
bool DefaultVersionHasBeenSet() const
void SetName(NameT &&value)
AWS_MPA_API Policy()=default
bool NameHasBeenSet() const
const Aws::String & GetArn() const
Policy & WithDefaultVersion(int value)
AWS_MPA_API Aws::Utils::Json::JsonValue Jsonize() const
bool PolicyTypeHasBeenSet() const
void SetDefaultVersion(int value)
int GetDefaultVersion() const
bool ArnHasBeenSet() const
const Aws::String & GetName() const
AWS_MPA_API Policy & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue