AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
PolicySummary.h
1
6#pragma once
7#include <aws/organizations/Organizations_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/organizations/model/PolicyType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Organizations
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_ORGANIZATIONS_API PolicySummary() = default;
38 AWS_ORGANIZATIONS_API PolicySummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ORGANIZATIONS_API PolicySummary& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
50 inline const Aws::String& GetId() const { return m_id; }
51 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 template<typename IdT = Aws::String>
53 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
54 template<typename IdT = Aws::String>
55 PolicySummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
57
59
66 inline const Aws::String& GetArn() const { return m_arn; }
67 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
68 template<typename ArnT = Aws::String>
69 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
70 template<typename ArnT = Aws::String>
71 PolicySummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
73
75
81 inline const Aws::String& GetName() const { return m_name; }
82 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 template<typename NameT = Aws::String>
84 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
85 template<typename NameT = Aws::String>
86 PolicySummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
88
90
93 inline const Aws::String& GetDescription() const { return m_description; }
94 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
95 template<typename DescriptionT = Aws::String>
96 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
97 template<typename DescriptionT = Aws::String>
98 PolicySummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
100
102
105 inline PolicyType GetType() const { return m_type; }
106 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
107 inline void SetType(PolicyType value) { m_typeHasBeenSet = true; m_type = value; }
108 inline PolicySummary& WithType(PolicyType value) { SetType(value); return *this;}
110
112
117 inline bool GetAwsManaged() const { return m_awsManaged; }
118 inline bool AwsManagedHasBeenSet() const { return m_awsManagedHasBeenSet; }
119 inline void SetAwsManaged(bool value) { m_awsManagedHasBeenSet = true; m_awsManaged = value; }
120 inline PolicySummary& WithAwsManaged(bool value) { SetAwsManaged(value); return *this;}
122 private:
123
124 Aws::String m_id;
125 bool m_idHasBeenSet = false;
126
127 Aws::String m_arn;
128 bool m_arnHasBeenSet = false;
129
130 Aws::String m_name;
131 bool m_nameHasBeenSet = false;
132
133 Aws::String m_description;
134 bool m_descriptionHasBeenSet = false;
135
137 bool m_typeHasBeenSet = false;
138
139 bool m_awsManaged{false};
140 bool m_awsManagedHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace Organizations
145} // namespace Aws
const Aws::String & GetName() const
AWS_ORGANIZATIONS_API PolicySummary()=default
const Aws::String & GetArn() const
PolicySummary & WithArn(ArnT &&value)
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ORGANIZATIONS_API PolicySummary(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(DescriptionT &&value)
PolicySummary & WithName(NameT &&value)
PolicySummary & WithDescription(DescriptionT &&value)
const Aws::String & GetId() const
AWS_ORGANIZATIONS_API PolicySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
PolicySummary & WithType(PolicyType value)
PolicySummary & WithId(IdT &&value)
PolicySummary & WithAwsManaged(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue