AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateOrganizationalUnitRequest.h
1
6#pragma once
7#include <aws/organizations/Organizations_EXPORTS.h>
8#include <aws/organizations/OrganizationsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/organizations/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Organizations
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_ORGANIZATIONS_API CreateOrganizationalUnitRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateOrganizationalUnit"; }
33
34 AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override;
35
36 AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
51 inline const Aws::String& GetParentId() const{ return m_parentId; }
52 inline bool ParentIdHasBeenSet() const { return m_parentIdHasBeenSet; }
53 inline void SetParentId(const Aws::String& value) { m_parentIdHasBeenSet = true; m_parentId = value; }
54 inline void SetParentId(Aws::String&& value) { m_parentIdHasBeenSet = true; m_parentId = std::move(value); }
55 inline void SetParentId(const char* value) { m_parentIdHasBeenSet = true; m_parentId.assign(value); }
56 inline CreateOrganizationalUnitRequest& WithParentId(const Aws::String& value) { SetParentId(value); return *this;}
57 inline CreateOrganizationalUnitRequest& WithParentId(Aws::String&& value) { SetParentId(std::move(value)); return *this;}
58 inline CreateOrganizationalUnitRequest& WithParentId(const char* value) { SetParentId(value); return *this;}
60
62
65 inline const Aws::String& GetName() const{ return m_name; }
66 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
67 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
68 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
69 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
70 inline CreateOrganizationalUnitRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
71 inline CreateOrganizationalUnitRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
72 inline CreateOrganizationalUnitRequest& WithName(const char* value) { SetName(value); return *this;}
74
76
86 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
87 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
88 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
89 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
90 inline CreateOrganizationalUnitRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
91 inline CreateOrganizationalUnitRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
92 inline CreateOrganizationalUnitRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
93 inline CreateOrganizationalUnitRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
95 private:
96
97 Aws::String m_parentId;
98 bool m_parentIdHasBeenSet = false;
99
100 Aws::String m_name;
101 bool m_nameHasBeenSet = false;
102
103 Aws::Vector<Tag> m_tags;
104 bool m_tagsHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace Organizations
109} // namespace Aws
CreateOrganizationalUnitRequest & AddTags(const Tag &value)
CreateOrganizationalUnitRequest & WithName(Aws::String &&value)
AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override
CreateOrganizationalUnitRequest & WithName(const char *value)
CreateOrganizationalUnitRequest & WithParentId(Aws::String &&value)
CreateOrganizationalUnitRequest & WithTags(Aws::Vector< Tag > &&value)
AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateOrganizationalUnitRequest & WithParentId(const Aws::String &value)
CreateOrganizationalUnitRequest & WithParentId(const char *value)
CreateOrganizationalUnitRequest & WithName(const Aws::String &value)
CreateOrganizationalUnitRequest & WithTags(const Aws::Vector< Tag > &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector