AWS SDK for C++  1.9.106
AWS SDK for C++
PolicySummary.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Organizations
23 {
24 namespace Model
25 {
26 
35  {
36  public:
41 
42 
49  inline const Aws::String& GetId() const{ return m_id; }
50 
57  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
58 
65  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
66 
73  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
74 
81  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
82 
89  inline PolicySummary& WithId(const Aws::String& value) { SetId(value); return *this;}
90 
97  inline PolicySummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
98 
105  inline PolicySummary& WithId(const char* value) { SetId(value); return *this;}
106 
107 
115  inline const Aws::String& GetArn() const{ return m_arn; }
116 
124  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
125 
133  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
134 
142  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
143 
151  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
152 
160  inline PolicySummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
161 
169  inline PolicySummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
170 
178  inline PolicySummary& WithArn(const char* value) { SetArn(value); return *this;}
179 
180 
187  inline const Aws::String& GetName() const{ return m_name; }
188 
195  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
196 
203  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
204 
211  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
212 
219  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
220 
227  inline PolicySummary& WithName(const Aws::String& value) { SetName(value); return *this;}
228 
235  inline PolicySummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
236 
243  inline PolicySummary& WithName(const char* value) { SetName(value); return *this;}
244 
245 
249  inline const Aws::String& GetDescription() const{ return m_description; }
250 
254  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
255 
259  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
260 
264  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
265 
269  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
270 
274  inline PolicySummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
275 
279  inline PolicySummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
280 
284  inline PolicySummary& WithDescription(const char* value) { SetDescription(value); return *this;}
285 
286 
290  inline const PolicyType& GetType() const{ return m_type; }
291 
295  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
296 
300  inline void SetType(const PolicyType& value) { m_typeHasBeenSet = true; m_type = value; }
301 
305  inline void SetType(PolicyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
306 
310  inline PolicySummary& WithType(const PolicyType& value) { SetType(value); return *this;}
311 
315  inline PolicySummary& WithType(PolicyType&& value) { SetType(std::move(value)); return *this;}
316 
317 
323  inline bool GetAwsManaged() const{ return m_awsManaged; }
324 
330  inline bool AwsManagedHasBeenSet() const { return m_awsManagedHasBeenSet; }
331 
337  inline void SetAwsManaged(bool value) { m_awsManagedHasBeenSet = true; m_awsManaged = value; }
338 
344  inline PolicySummary& WithAwsManaged(bool value) { SetAwsManaged(value); return *this;}
345 
346  private:
347 
348  Aws::String m_id;
349  bool m_idHasBeenSet;
350 
351  Aws::String m_arn;
352  bool m_arnHasBeenSet;
353 
354  Aws::String m_name;
355  bool m_nameHasBeenSet;
356 
357  Aws::String m_description;
358  bool m_descriptionHasBeenSet;
359 
360  PolicyType m_type;
361  bool m_typeHasBeenSet;
362 
363  bool m_awsManaged;
364  bool m_awsManagedHasBeenSet;
365  };
366 
367 } // namespace Model
368 } // namespace Organizations
369 } // namespace Aws
Aws::Organizations::Model::PolicySummary::WithName
PolicySummary & WithName(const char *value)
Definition: PolicySummary.h:243
Aws::Organizations::Model::PolicySummary::SetType
void SetType(const PolicyType &value)
Definition: PolicySummary.h:300
Aws::Organizations::Model::PolicySummary::operator=
PolicySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::PolicySummary::SetName
void SetName(Aws::String &&value)
Definition: PolicySummary.h:211
Aws::Organizations::Model::PolicySummary::GetDescription
const Aws::String & GetDescription() const
Definition: PolicySummary.h:249
Aws::Organizations::Model::PolicySummary::IdHasBeenSet
bool IdHasBeenSet() const
Definition: PolicySummary.h:57
Aws::Organizations::Model::PolicySummary::WithDescription
PolicySummary & WithDescription(const char *value)
Definition: PolicySummary.h:284
Aws::Organizations::Model::PolicySummary::SetType
void SetType(PolicyType &&value)
Definition: PolicySummary.h:305
Aws::Organizations::Model::PolicySummary::GetId
const Aws::String & GetId() const
Definition: PolicySummary.h:49
Aws::Organizations::Model::PolicySummary::WithDescription
PolicySummary & WithDescription(Aws::String &&value)
Definition: PolicySummary.h:279
Aws::Organizations::Model::PolicySummary::SetDescription
void SetDescription(const Aws::String &value)
Definition: PolicySummary.h:259
PolicyType.h
Aws::Organizations::Model::PolicySummary::GetArn
const Aws::String & GetArn() const
Definition: PolicySummary.h:115
Aws::Organizations::Model::PolicySummary::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: PolicySummary.h:254
Aws::Organizations::Model::PolicySummary::SetArn
void SetArn(const char *value)
Definition: PolicySummary.h:151
Aws::Organizations::Model::PolicySummary::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Organizations::Model::PolicySummary::WithType
PolicySummary & WithType(const PolicyType &value)
Definition: PolicySummary.h:310
Aws::Organizations::Model::PolicySummary::PolicySummary
PolicySummary()
Aws::Organizations::Model::PolicySummary::WithName
PolicySummary & WithName(const Aws::String &value)
Definition: PolicySummary.h:227
Aws::Organizations::Model::PolicySummary::WithDescription
PolicySummary & WithDescription(const Aws::String &value)
Definition: PolicySummary.h:274
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::PolicySummary::WithName
PolicySummary & WithName(Aws::String &&value)
Definition: PolicySummary.h:235
Aws::Organizations::Model::PolicyType
PolicyType
Definition: PolicyType.h:17
Aws::Organizations::Model::PolicySummary::WithId
PolicySummary & WithId(const Aws::String &value)
Definition: PolicySummary.h:89
Aws::Organizations::Model::PolicySummary::SetName
void SetName(const Aws::String &value)
Definition: PolicySummary.h:203
Aws::Organizations::Model::PolicySummary::GetAwsManaged
bool GetAwsManaged() const
Definition: PolicySummary.h:323
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Organizations::Model::PolicySummary::SetDescription
void SetDescription(const char *value)
Definition: PolicySummary.h:269
AWSString.h
Aws::Organizations::Model::PolicySummary::SetId
void SetId(Aws::String &&value)
Definition: PolicySummary.h:73
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Organizations::Model::PolicySummary::PolicySummary
PolicySummary(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::PolicySummary
Definition: PolicySummary.h:35
Aws::Organizations::Model::PolicySummary::WithArn
PolicySummary & WithArn(Aws::String &&value)
Definition: PolicySummary.h:169
Aws::Organizations::Model::PolicySummary::GetType
const PolicyType & GetType() const
Definition: PolicySummary.h:290
Aws::Organizations::Model::PolicySummary::SetName
void SetName(const char *value)
Definition: PolicySummary.h:219
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::PolicySummary::SetId
void SetId(const char *value)
Definition: PolicySummary.h:81
Aws::Organizations::Model::PolicySummary::SetAwsManaged
void SetAwsManaged(bool value)
Definition: PolicySummary.h:337
Aws::Organizations::Model::PolicySummary::WithArn
PolicySummary & WithArn(const char *value)
Definition: PolicySummary.h:178
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Organizations::Model::PolicySummary::AwsManagedHasBeenSet
bool AwsManagedHasBeenSet() const
Definition: PolicySummary.h:330
Aws::Organizations::Model::PolicySummary::WithArn
PolicySummary & WithArn(const Aws::String &value)
Definition: PolicySummary.h:160
Organizations_EXPORTS.h
Aws::Organizations::Model::PolicySummary::SetArn
void SetArn(const Aws::String &value)
Definition: PolicySummary.h:133
Aws::Organizations::Model::PolicySummary::GetName
const Aws::String & GetName() const
Definition: PolicySummary.h:187
Aws::Organizations::Model::PolicySummary::WithId
PolicySummary & WithId(const char *value)
Definition: PolicySummary.h:105
Aws::Organizations::Model::PolicySummary::WithId
PolicySummary & WithId(Aws::String &&value)
Definition: PolicySummary.h:97
Aws::Organizations::Model::PolicySummary::SetDescription
void SetDescription(Aws::String &&value)
Definition: PolicySummary.h:264
Aws::Organizations::Model::PolicySummary::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: PolicySummary.h:124
Aws::Organizations::Model::PolicySummary::SetId
void SetId(const Aws::String &value)
Definition: PolicySummary.h:65
Aws::Organizations::Model::PolicySummary::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: PolicySummary.h:295
Aws::Organizations::Model::PolicySummary::WithType
PolicySummary & WithType(PolicyType &&value)
Definition: PolicySummary.h:315
Aws::Organizations::Model::PolicySummary::WithAwsManaged
PolicySummary & WithAwsManaged(bool value)
Definition: PolicySummary.h:344
Aws::Organizations::Model::PolicySummary::SetArn
void SetArn(Aws::String &&value)
Definition: PolicySummary.h:142
Aws::Organizations::Model::PolicySummary::NameHasBeenSet
bool NameHasBeenSet() const
Definition: PolicySummary.h:195