AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OrganizationalUnit.h
1
6#pragma once
7#include <aws/organizations/Organizations_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Organizations
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_ORGANIZATIONS_API OrganizationalUnit();
38 AWS_ORGANIZATIONS_API OrganizationalUnit(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ORGANIZATIONS_API OrganizationalUnit& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
52 inline const Aws::String& GetId() const{ return m_id; }
53 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
54 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
55 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
56 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
57 inline OrganizationalUnit& WithId(const Aws::String& value) { SetId(value); return *this;}
58 inline OrganizationalUnit& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
59 inline OrganizationalUnit& WithId(const char* value) { SetId(value); return *this;}
61
63
70 inline const Aws::String& GetArn() const{ return m_arn; }
71 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
72 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
73 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
74 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
75 inline OrganizationalUnit& WithArn(const Aws::String& value) { SetArn(value); return *this;}
76 inline OrganizationalUnit& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
77 inline OrganizationalUnit& WithArn(const char* value) { SetArn(value); return *this;}
79
81
87 inline const Aws::String& GetName() const{ return m_name; }
88 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
89 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
90 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
91 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
92 inline OrganizationalUnit& WithName(const Aws::String& value) { SetName(value); return *this;}
93 inline OrganizationalUnit& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
94 inline OrganizationalUnit& WithName(const char* value) { SetName(value); return *this;}
96 private:
97
98 Aws::String m_id;
99 bool m_idHasBeenSet = false;
100
101 Aws::String m_arn;
102 bool m_arnHasBeenSet = false;
103
104 Aws::String m_name;
105 bool m_nameHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace Organizations
110} // namespace Aws
OrganizationalUnit & WithName(Aws::String &&value)
OrganizationalUnit & WithId(Aws::String &&value)
OrganizationalUnit & WithId(const char *value)
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
OrganizationalUnit & WithId(const Aws::String &value)
OrganizationalUnit & WithArn(const Aws::String &value)
AWS_ORGANIZATIONS_API OrganizationalUnit(Aws::Utils::Json::JsonView jsonValue)
AWS_ORGANIZATIONS_API OrganizationalUnit & operator=(Aws::Utils::Json::JsonView jsonValue)
OrganizationalUnit & WithArn(Aws::String &&value)
OrganizationalUnit & WithName(const Aws::String &value)
OrganizationalUnit & WithArn(const char *value)
OrganizationalUnit & WithName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue