AWS SDK for C++  1.9.161
AWS SDK for C++
UpdateOrganizationalUnitRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Organizations
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "UpdateOrganizationalUnit"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
45  inline const Aws::String& GetOrganizationalUnitId() const{ return m_organizationalUnitId; }
46 
55  inline bool OrganizationalUnitIdHasBeenSet() const { return m_organizationalUnitIdHasBeenSet; }
56 
65  inline void SetOrganizationalUnitId(const Aws::String& value) { m_organizationalUnitIdHasBeenSet = true; m_organizationalUnitId = value; }
66 
75  inline void SetOrganizationalUnitId(Aws::String&& value) { m_organizationalUnitIdHasBeenSet = true; m_organizationalUnitId = std::move(value); }
76 
85  inline void SetOrganizationalUnitId(const char* value) { m_organizationalUnitIdHasBeenSet = true; m_organizationalUnitId.assign(value); }
86 
95  inline UpdateOrganizationalUnitRequest& WithOrganizationalUnitId(const Aws::String& value) { SetOrganizationalUnitId(value); return *this;}
96 
105  inline UpdateOrganizationalUnitRequest& WithOrganizationalUnitId(Aws::String&& value) { SetOrganizationalUnitId(std::move(value)); return *this;}
106 
115  inline UpdateOrganizationalUnitRequest& WithOrganizationalUnitId(const char* value) { SetOrganizationalUnitId(value); return *this;}
116 
117 
124  inline const Aws::String& GetName() const{ return m_name; }
125 
132  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
133 
140  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
141 
148  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
149 
156  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
157 
164  inline UpdateOrganizationalUnitRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
165 
172  inline UpdateOrganizationalUnitRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
173 
180  inline UpdateOrganizationalUnitRequest& WithName(const char* value) { SetName(value); return *this;}
181 
182  private:
183 
184  Aws::String m_organizationalUnitId;
185  bool m_organizationalUnitIdHasBeenSet;
186 
187  Aws::String m_name;
188  bool m_nameHasBeenSet;
189  };
190 
191 } // namespace Model
192 } // namespace Organizations
193 } // namespace Aws
Aws::Organizations::Model::UpdateOrganizationalUnitRequest
Definition: UpdateOrganizationalUnitRequest.h:22
Aws::Organizations::Model::UpdateOrganizationalUnitRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Organizations::Model::UpdateOrganizationalUnitRequest::UpdateOrganizationalUnitRequest
UpdateOrganizationalUnitRequest()
Aws::Organizations::Model::UpdateOrganizationalUnitRequest::SetName
void SetName(const Aws::String &value)
Definition: UpdateOrganizationalUnitRequest.h:140
Aws::Organizations::Model::UpdateOrganizationalUnitRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Organizations::Model::UpdateOrganizationalUnitRequest::SetOrganizationalUnitId
void SetOrganizationalUnitId(const Aws::String &value)
Definition: UpdateOrganizationalUnitRequest.h:65
Aws::Organizations::Model::UpdateOrganizationalUnitRequest::WithName
UpdateOrganizationalUnitRequest & WithName(Aws::String &&value)
Definition: UpdateOrganizationalUnitRequest.h:172
Aws::Organizations::Model::UpdateOrganizationalUnitRequest::GetName
const Aws::String & GetName() const
Definition: UpdateOrganizationalUnitRequest.h:124
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::UpdateOrganizationalUnitRequest::WithName
UpdateOrganizationalUnitRequest & WithName(const Aws::String &value)
Definition: UpdateOrganizationalUnitRequest.h:164
Aws::Organizations::OrganizationsRequest
Definition: OrganizationsRequest.h:17
Aws::Organizations::Model::UpdateOrganizationalUnitRequest::SetOrganizationalUnitId
void SetOrganizationalUnitId(Aws::String &&value)
Definition: UpdateOrganizationalUnitRequest.h:75
AWSString.h
Aws::Organizations::Model::UpdateOrganizationalUnitRequest::GetOrganizationalUnitId
const Aws::String & GetOrganizationalUnitId() const
Definition: UpdateOrganizationalUnitRequest.h:45
Aws::Organizations::Model::UpdateOrganizationalUnitRequest::WithOrganizationalUnitId
UpdateOrganizationalUnitRequest & WithOrganizationalUnitId(Aws::String &&value)
Definition: UpdateOrganizationalUnitRequest.h:105
Aws::Organizations::Model::UpdateOrganizationalUnitRequest::OrganizationalUnitIdHasBeenSet
bool OrganizationalUnitIdHasBeenSet() const
Definition: UpdateOrganizationalUnitRequest.h:55
Aws::Organizations::Model::UpdateOrganizationalUnitRequest::SetName
void SetName(const char *value)
Definition: UpdateOrganizationalUnitRequest.h:156
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::UpdateOrganizationalUnitRequest::SetOrganizationalUnitId
void SetOrganizationalUnitId(const char *value)
Definition: UpdateOrganizationalUnitRequest.h:85
Aws::Organizations::Model::UpdateOrganizationalUnitRequest::WithOrganizationalUnitId
UpdateOrganizationalUnitRequest & WithOrganizationalUnitId(const Aws::String &value)
Definition: UpdateOrganizationalUnitRequest.h:95
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::UpdateOrganizationalUnitRequest::WithName
UpdateOrganizationalUnitRequest & WithName(const char *value)
Definition: UpdateOrganizationalUnitRequest.h:180
Aws::Organizations::Model::UpdateOrganizationalUnitRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateOrganizationalUnitRequest.h:30
Aws::Organizations::Model::UpdateOrganizationalUnitRequest::SetName
void SetName(Aws::String &&value)
Definition: UpdateOrganizationalUnitRequest.h:148
Aws::Organizations::Model::UpdateOrganizationalUnitRequest::WithOrganizationalUnitId
UpdateOrganizationalUnitRequest & WithOrganizationalUnitId(const char *value)
Definition: UpdateOrganizationalUnitRequest.h:115
Aws::Organizations::Model::UpdateOrganizationalUnitRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: UpdateOrganizationalUnitRequest.h:132
OrganizationsRequest.h