AWS SDK for C++  1.9.123
AWS SDK for C++
DescribeOrganizationalUnitRequest.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 "DescribeOrganizationalUnit"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
46  inline const Aws::String& GetOrganizationalUnitId() const{ return m_organizationalUnitId; }
47 
57  inline bool OrganizationalUnitIdHasBeenSet() const { return m_organizationalUnitIdHasBeenSet; }
58 
68  inline void SetOrganizationalUnitId(const Aws::String& value) { m_organizationalUnitIdHasBeenSet = true; m_organizationalUnitId = value; }
69 
79  inline void SetOrganizationalUnitId(Aws::String&& value) { m_organizationalUnitIdHasBeenSet = true; m_organizationalUnitId = std::move(value); }
80 
90  inline void SetOrganizationalUnitId(const char* value) { m_organizationalUnitIdHasBeenSet = true; m_organizationalUnitId.assign(value); }
91 
101  inline DescribeOrganizationalUnitRequest& WithOrganizationalUnitId(const Aws::String& value) { SetOrganizationalUnitId(value); return *this;}
102 
112  inline DescribeOrganizationalUnitRequest& WithOrganizationalUnitId(Aws::String&& value) { SetOrganizationalUnitId(std::move(value)); return *this;}
113 
123  inline DescribeOrganizationalUnitRequest& WithOrganizationalUnitId(const char* value) { SetOrganizationalUnitId(value); return *this;}
124 
125  private:
126 
127  Aws::String m_organizationalUnitId;
128  bool m_organizationalUnitIdHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace Organizations
133 } // namespace Aws
Aws::Organizations::Model::DescribeOrganizationalUnitRequest::WithOrganizationalUnitId
DescribeOrganizationalUnitRequest & WithOrganizationalUnitId(const char *value)
Definition: DescribeOrganizationalUnitRequest.h:123
Aws::Organizations::Model::DescribeOrganizationalUnitRequest::WithOrganizationalUnitId
DescribeOrganizationalUnitRequest & WithOrganizationalUnitId(const Aws::String &value)
Definition: DescribeOrganizationalUnitRequest.h:101
Aws::Organizations::Model::DescribeOrganizationalUnitRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeOrganizationalUnitRequest.h:30
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Organizations::Model::DescribeOrganizationalUnitRequest::SetOrganizationalUnitId
void SetOrganizationalUnitId(const Aws::String &value)
Definition: DescribeOrganizationalUnitRequest.h:68
Aws::Organizations::Model::DescribeOrganizationalUnitRequest::WithOrganizationalUnitId
DescribeOrganizationalUnitRequest & WithOrganizationalUnitId(Aws::String &&value)
Definition: DescribeOrganizationalUnitRequest.h:112
Aws::Organizations::Model::DescribeOrganizationalUnitRequest
Definition: DescribeOrganizationalUnitRequest.h:22
Aws::Organizations::Model::DescribeOrganizationalUnitRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Organizations::Model::DescribeOrganizationalUnitRequest::DescribeOrganizationalUnitRequest
DescribeOrganizationalUnitRequest()
Aws::Organizations::Model::DescribeOrganizationalUnitRequest::SetOrganizationalUnitId
void SetOrganizationalUnitId(Aws::String &&value)
Definition: DescribeOrganizationalUnitRequest.h:79
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::OrganizationsRequest
Definition: OrganizationsRequest.h:17
AWSString.h
Aws::Organizations::Model::DescribeOrganizationalUnitRequest::GetOrganizationalUnitId
const Aws::String & GetOrganizationalUnitId() const
Definition: DescribeOrganizationalUnitRequest.h:46
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::DescribeOrganizationalUnitRequest::SetOrganizationalUnitId
void SetOrganizationalUnitId(const char *value)
Definition: DescribeOrganizationalUnitRequest.h:90
Aws::Organizations::Model::DescribeOrganizationalUnitRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::DescribeOrganizationalUnitRequest::OrganizationalUnitIdHasBeenSet
bool OrganizationalUnitIdHasBeenSet() const
Definition: DescribeOrganizationalUnitRequest.h:57
OrganizationsRequest.h