AWS SDK for C++  1.9.108
AWS SDK for C++
OrganizationalUnit.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Organizations
22 {
23 namespace Model
24 {
25 
35  {
36  public:
41 
42 
50  inline const Aws::String& GetId() const{ return m_id; }
51 
59  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
60 
68  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
69 
77  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
78 
86  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
87 
95  inline OrganizationalUnit& WithId(const Aws::String& value) { SetId(value); return *this;}
96 
104  inline OrganizationalUnit& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
105 
113  inline OrganizationalUnit& WithId(const char* value) { SetId(value); return *this;}
114 
115 
123  inline const Aws::String& GetArn() const{ return m_arn; }
124 
132  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
133 
141  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
142 
150  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
151 
159  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
160 
168  inline OrganizationalUnit& WithArn(const Aws::String& value) { SetArn(value); return *this;}
169 
177  inline OrganizationalUnit& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
178 
186  inline OrganizationalUnit& WithArn(const char* value) { SetArn(value); return *this;}
187 
188 
195  inline const Aws::String& GetName() const{ return m_name; }
196 
203  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
204 
211  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
212 
219  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
220 
227  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
228 
235  inline OrganizationalUnit& WithName(const Aws::String& value) { SetName(value); return *this;}
236 
243  inline OrganizationalUnit& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
244 
251  inline OrganizationalUnit& WithName(const char* value) { SetName(value); return *this;}
252 
253  private:
254 
255  Aws::String m_id;
256  bool m_idHasBeenSet;
257 
258  Aws::String m_arn;
259  bool m_arnHasBeenSet;
260 
261  Aws::String m_name;
262  bool m_nameHasBeenSet;
263  };
264 
265 } // namespace Model
266 } // namespace Organizations
267 } // namespace Aws
Aws::Organizations::Model::OrganizationalUnit::OrganizationalUnit
OrganizationalUnit(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::OrganizationalUnit::WithId
OrganizationalUnit & WithId(const Aws::String &value)
Definition: OrganizationalUnit.h:95
Aws::Organizations::Model::OrganizationalUnit::SetId
void SetId(const Aws::String &value)
Definition: OrganizationalUnit.h:68
Aws::Organizations::Model::OrganizationalUnit::SetName
void SetName(const char *value)
Definition: OrganizationalUnit.h:227
Aws::Organizations::Model::OrganizationalUnit::WithArn
OrganizationalUnit & WithArn(Aws::String &&value)
Definition: OrganizationalUnit.h:177
Aws::Organizations::Model::OrganizationalUnit::WithArn
OrganizationalUnit & WithArn(const char *value)
Definition: OrganizationalUnit.h:186
Aws::Organizations::Model::OrganizationalUnit::SetArn
void SetArn(const Aws::String &value)
Definition: OrganizationalUnit.h:141
Aws::Organizations::Model::OrganizationalUnit::NameHasBeenSet
bool NameHasBeenSet() const
Definition: OrganizationalUnit.h:203
Aws::Organizations::Model::OrganizationalUnit::GetId
const Aws::String & GetId() const
Definition: OrganizationalUnit.h:50
Aws::Organizations::Model::OrganizationalUnit::SetId
void SetId(const char *value)
Definition: OrganizationalUnit.h:86
Aws::Organizations::Model::OrganizationalUnit::SetArn
void SetArn(const char *value)
Definition: OrganizationalUnit.h:159
Aws::Organizations::Model::OrganizationalUnit::OrganizationalUnit
OrganizationalUnit()
Aws::Organizations::Model::OrganizationalUnit::GetArn
const Aws::String & GetArn() const
Definition: OrganizationalUnit.h:123
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::OrganizationalUnit::GetName
const Aws::String & GetName() const
Definition: OrganizationalUnit.h:195
Aws::Organizations::Model::OrganizationalUnit::IdHasBeenSet
bool IdHasBeenSet() const
Definition: OrganizationalUnit.h:59
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Organizations::Model::OrganizationalUnit::SetName
void SetName(const Aws::String &value)
Definition: OrganizationalUnit.h:211
Aws::Organizations::Model::OrganizationalUnit::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: OrganizationalUnit.h:132
Aws::Organizations::Model::OrganizationalUnit::WithName
OrganizationalUnit & WithName(const Aws::String &value)
Definition: OrganizationalUnit.h:235
Aws::Organizations::Model::OrganizationalUnit::WithArn
OrganizationalUnit & WithArn(const Aws::String &value)
Definition: OrganizationalUnit.h:168
Aws::Organizations::Model::OrganizationalUnit::WithName
OrganizationalUnit & WithName(const char *value)
Definition: OrganizationalUnit.h:251
Aws::Organizations::Model::OrganizationalUnit::operator=
OrganizationalUnit & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::OrganizationalUnit::WithId
OrganizationalUnit & WithId(const char *value)
Definition: OrganizationalUnit.h:113
Aws::Organizations::Model::OrganizationalUnit
Definition: OrganizationalUnit.h:35
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::OrganizationalUnit::SetId
void SetId(Aws::String &&value)
Definition: OrganizationalUnit.h:77
Aws::Organizations::Model::OrganizationalUnit::WithId
OrganizationalUnit & WithId(Aws::String &&value)
Definition: OrganizationalUnit.h:104
Aws::Organizations::Model::OrganizationalUnit::SetArn
void SetArn(Aws::String &&value)
Definition: OrganizationalUnit.h:150
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::OrganizationalUnit::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Organizations::Model::OrganizationalUnit::SetName
void SetName(Aws::String &&value)
Definition: OrganizationalUnit.h:219
Aws::Organizations::Model::OrganizationalUnit::WithName
OrganizationalUnit & WithName(Aws::String &&value)
Definition: OrganizationalUnit.h:243