AWS SDK for C++  1.9.104
AWS SDK for C++
DescribeAccountRequest.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 "DescribeAccount"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
44  inline const Aws::String& GetAccountId() const{ return m_accountId; }
45 
53  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
54 
62  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
63 
71  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
72 
80  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
81 
89  inline DescribeAccountRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
90 
98  inline DescribeAccountRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
99 
107  inline DescribeAccountRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
108 
109  private:
110 
111  Aws::String m_accountId;
112  bool m_accountIdHasBeenSet;
113  };
114 
115 } // namespace Model
116 } // namespace Organizations
117 } // namespace Aws
Aws::Organizations::Model::DescribeAccountRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: DescribeAccountRequest.h:71
Aws::Organizations::Model::DescribeAccountRequest::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: DescribeAccountRequest.h:53
Aws::Organizations::Model::DescribeAccountRequest
Definition: DescribeAccountRequest.h:22
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Organizations::Model::DescribeAccountRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: DescribeAccountRequest.h:62
Aws::Organizations::Model::DescribeAccountRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeAccountRequest.h:30
Aws::Organizations::Model::DescribeAccountRequest::WithAccountId
DescribeAccountRequest & WithAccountId(const Aws::String &value)
Definition: DescribeAccountRequest.h:89
Aws::Organizations::Model::DescribeAccountRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::DescribeAccountRequest::GetAccountId
const Aws::String & GetAccountId() const
Definition: DescribeAccountRequest.h:44
Aws::Organizations::OrganizationsRequest
Definition: OrganizationsRequest.h:17
AWSString.h
Aws::Organizations::Model::DescribeAccountRequest::WithAccountId
DescribeAccountRequest & WithAccountId(Aws::String &&value)
Definition: DescribeAccountRequest.h:98
Aws::Organizations::Model::DescribeAccountRequest::SetAccountId
void SetAccountId(const char *value)
Definition: DescribeAccountRequest.h:80
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Organizations::Model::DescribeAccountRequest::DescribeAccountRequest
DescribeAccountRequest()
Organizations_EXPORTS.h
Aws::Organizations::Model::DescribeAccountRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Organizations::Model::DescribeAccountRequest::WithAccountId
DescribeAccountRequest & WithAccountId(const char *value)
Definition: DescribeAccountRequest.h:107
OrganizationsRequest.h