AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
53 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
54 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
55 inline PolicySummary& WithId(const Aws::String& value) { SetId(value); return *this;}
56 inline PolicySummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
57 inline PolicySummary& WithId(const char* value) { SetId(value); return *this;}
59
61
68 inline const Aws::String& GetArn() const{ return m_arn; }
69 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
70 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
71 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
72 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
73 inline PolicySummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
74 inline PolicySummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
75 inline PolicySummary& WithArn(const char* value) { SetArn(value); return *this;}
77
79
85 inline const Aws::String& GetName() const{ return m_name; }
86 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
87 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
88 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
89 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
90 inline PolicySummary& WithName(const Aws::String& value) { SetName(value); return *this;}
91 inline PolicySummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
92 inline PolicySummary& WithName(const char* value) { SetName(value); return *this;}
94
96
99 inline const Aws::String& GetDescription() const{ return m_description; }
100 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
101 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
102 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
103 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
104 inline PolicySummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
105 inline PolicySummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
106 inline PolicySummary& WithDescription(const char* value) { SetDescription(value); return *this;}
108
110
113 inline const PolicyType& GetType() const{ return m_type; }
114 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
115 inline void SetType(const PolicyType& value) { m_typeHasBeenSet = true; m_type = value; }
116 inline void SetType(PolicyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
117 inline PolicySummary& WithType(const PolicyType& value) { SetType(value); return *this;}
118 inline PolicySummary& WithType(PolicyType&& value) { SetType(std::move(value)); return *this;}
120
122
127 inline bool GetAwsManaged() const{ return m_awsManaged; }
128 inline bool AwsManagedHasBeenSet() const { return m_awsManagedHasBeenSet; }
129 inline void SetAwsManaged(bool value) { m_awsManagedHasBeenSet = true; m_awsManaged = value; }
130 inline PolicySummary& WithAwsManaged(bool value) { SetAwsManaged(value); return *this;}
132 private:
133
134 Aws::String m_id;
135 bool m_idHasBeenSet = false;
136
137 Aws::String m_arn;
138 bool m_arnHasBeenSet = false;
139
140 Aws::String m_name;
141 bool m_nameHasBeenSet = false;
142
143 Aws::String m_description;
144 bool m_descriptionHasBeenSet = false;
145
146 PolicyType m_type;
147 bool m_typeHasBeenSet = false;
148
149 bool m_awsManaged;
150 bool m_awsManagedHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace Organizations
155} // namespace Aws
void SetId(const Aws::String &value)
const Aws::String & GetName() const
PolicySummary & WithId(const Aws::String &value)
void SetDescription(const Aws::String &value)
PolicySummary & WithId(Aws::String &&value)
const Aws::String & GetArn() const
PolicySummary & WithId(const char *value)
void SetDescription(Aws::String &&value)
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
PolicySummary & WithDescription(const char *value)
AWS_ORGANIZATIONS_API PolicySummary(Aws::Utils::Json::JsonView jsonValue)
PolicySummary & WithName(const char *value)
PolicySummary & WithType(const PolicyType &value)
PolicySummary & WithArn(const char *value)
const Aws::String & GetId() const
AWS_ORGANIZATIONS_API PolicySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ORGANIZATIONS_API PolicySummary()
void SetName(const Aws::String &value)
PolicySummary & WithArn(const Aws::String &value)
const Aws::String & GetDescription() const
PolicySummary & WithType(PolicyType &&value)
PolicySummary & WithName(const Aws::String &value)
PolicySummary & WithArn(Aws::String &&value)
PolicySummary & WithName(Aws::String &&value)
PolicySummary & WithDescription(const Aws::String &value)
void SetType(const PolicyType &value)
PolicySummary & WithAwsManaged(bool value)
PolicySummary & WithDescription(Aws::String &&value)
void SetArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue