AWS SDK for C++  1.9.104
AWS SDK for C++
CreateOrganizationalUnitRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Organizations
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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::String SerializePayload() const override;
35 
37 
38 
50  inline const Aws::String& GetParentId() const{ return m_parentId; }
51 
63  inline bool ParentIdHasBeenSet() const { return m_parentIdHasBeenSet; }
64 
76  inline void SetParentId(const Aws::String& value) { m_parentIdHasBeenSet = true; m_parentId = value; }
77 
89  inline void SetParentId(Aws::String&& value) { m_parentIdHasBeenSet = true; m_parentId = std::move(value); }
90 
102  inline void SetParentId(const char* value) { m_parentIdHasBeenSet = true; m_parentId.assign(value); }
103 
115  inline CreateOrganizationalUnitRequest& WithParentId(const Aws::String& value) { SetParentId(value); return *this;}
116 
128  inline CreateOrganizationalUnitRequest& WithParentId(Aws::String&& value) { SetParentId(std::move(value)); return *this;}
129 
141  inline CreateOrganizationalUnitRequest& WithParentId(const char* value) { SetParentId(value); return *this;}
142 
143 
147  inline const Aws::String& GetName() const{ return m_name; }
148 
152  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
153 
157  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
158 
162  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
163 
167  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
168 
172  inline CreateOrganizationalUnitRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
173 
177  inline CreateOrganizationalUnitRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
178 
182  inline CreateOrganizationalUnitRequest& WithName(const char* value) { SetName(value); return *this;}
183 
184 
195  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
196 
207  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
208 
219  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
220 
231  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
232 
243  inline CreateOrganizationalUnitRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
244 
255  inline CreateOrganizationalUnitRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
256 
267  inline CreateOrganizationalUnitRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
268 
279  inline CreateOrganizationalUnitRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
280 
281  private:
282 
283  Aws::String m_parentId;
284  bool m_parentIdHasBeenSet;
285 
286  Aws::String m_name;
287  bool m_nameHasBeenSet;
288 
289  Aws::Vector<Tag> m_tags;
290  bool m_tagsHasBeenSet;
291  };
292 
293 } // namespace Model
294 } // namespace Organizations
295 } // namespace Aws
Aws::Organizations::Model::CreateOrganizationalUnitRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateOrganizationalUnitRequest.h:231
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Organizations::Model::CreateOrganizationalUnitRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateOrganizationalUnitRequest.h:32
Aws::Organizations::Model::CreateOrganizationalUnitRequest::SetName
void SetName(const char *value)
Definition: CreateOrganizationalUnitRequest.h:167
Aws::Organizations::Model::CreateOrganizationalUnitRequest::CreateOrganizationalUnitRequest
CreateOrganizationalUnitRequest()
Aws::Organizations::Model::CreateOrganizationalUnitRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateOrganizationalUnitRequest.h:219
Aws::Organizations::Model::CreateOrganizationalUnitRequest::WithName
CreateOrganizationalUnitRequest & WithName(Aws::String &&value)
Definition: CreateOrganizationalUnitRequest.h:177
Aws::Organizations::Model::CreateOrganizationalUnitRequest::SetParentId
void SetParentId(const char *value)
Definition: CreateOrganizationalUnitRequest.h:102
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Organizations::Model::CreateOrganizationalUnitRequest::SetParentId
void SetParentId(Aws::String &&value)
Definition: CreateOrganizationalUnitRequest.h:89
Aws::Organizations::Model::CreateOrganizationalUnitRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateOrganizationalUnitRequest.h:195
Aws::Organizations::Model::CreateOrganizationalUnitRequest::WithTags
CreateOrganizationalUnitRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateOrganizationalUnitRequest.h:255
Aws::Organizations::Model::CreateOrganizationalUnitRequest::WithName
CreateOrganizationalUnitRequest & WithName(const Aws::String &value)
Definition: CreateOrganizationalUnitRequest.h:172
AWSVector.h
Aws::Organizations::Model::CreateOrganizationalUnitRequest::WithName
CreateOrganizationalUnitRequest & WithName(const char *value)
Definition: CreateOrganizationalUnitRequest.h:182
Aws::Organizations::Model::CreateOrganizationalUnitRequest::AddTags
CreateOrganizationalUnitRequest & AddTags(Tag &&value)
Definition: CreateOrganizationalUnitRequest.h:279
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::CreateOrganizationalUnitRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateOrganizationalUnitRequest.h:157
Aws::Organizations::OrganizationsRequest
Definition: OrganizationsRequest.h:17
AWSString.h
Aws::Organizations::Model::CreateOrganizationalUnitRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateOrganizationalUnitRequest.h:152
Aws::Organizations::Model::CreateOrganizationalUnitRequest::WithParentId
CreateOrganizationalUnitRequest & WithParentId(const Aws::String &value)
Definition: CreateOrganizationalUnitRequest.h:115
Aws::Organizations::Model::CreateOrganizationalUnitRequest::WithParentId
CreateOrganizationalUnitRequest & WithParentId(Aws::String &&value)
Definition: CreateOrganizationalUnitRequest.h:128
Aws::Organizations::Model::CreateOrganizationalUnitRequest::AddTags
CreateOrganizationalUnitRequest & AddTags(const Tag &value)
Definition: CreateOrganizationalUnitRequest.h:267
Aws::Organizations::Model::CreateOrganizationalUnitRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateOrganizationalUnitRequest.h:162
Aws::Organizations::Model::CreateOrganizationalUnitRequest
Definition: CreateOrganizationalUnitRequest.h:24
Tag.h
Aws::Organizations::Model::Tag
Definition: Tag.h:36
Aws::Organizations::Model::CreateOrganizationalUnitRequest::GetParentId
const Aws::String & GetParentId() const
Definition: CreateOrganizationalUnitRequest.h:50
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::CreateOrganizationalUnitRequest::SetParentId
void SetParentId(const Aws::String &value)
Definition: CreateOrganizationalUnitRequest.h:76
Aws::Organizations::Model::CreateOrganizationalUnitRequest::WithParentId
CreateOrganizationalUnitRequest & WithParentId(const char *value)
Definition: CreateOrganizationalUnitRequest.h:141
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::CreateOrganizationalUnitRequest::ParentIdHasBeenSet
bool ParentIdHasBeenSet() const
Definition: CreateOrganizationalUnitRequest.h:63
Aws::Organizations::Model::CreateOrganizationalUnitRequest::WithTags
CreateOrganizationalUnitRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateOrganizationalUnitRequest.h:243
Aws::Organizations::Model::CreateOrganizationalUnitRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateOrganizationalUnitRequest.h:207
Aws::Organizations::Model::CreateOrganizationalUnitRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Organizations::Model::CreateOrganizationalUnitRequest::GetName
const Aws::String & GetName() const
Definition: CreateOrganizationalUnitRequest.h:147
Aws::Organizations::Model::CreateOrganizationalUnitRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
OrganizationsRequest.h