1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
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 <utility>
11 
12 namespace Aws
13 {
14 namespace Organizations
15 {
16 namespace Model
17 {
18 
19   /**
20    */
21   class AWS_ORGANIZATIONS_API DescribeAccountRequest : public OrganizationsRequest
22   {
23   public:
24     DescribeAccountRequest();
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.
GetServiceRequestName()30     inline virtual const char* GetServiceRequestName() const override { return "DescribeAccount"; }
31 
32     Aws::String SerializePayload() const override;
33 
34     Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35 
36 
37     /**
38      * <p>The unique identifier (ID) of the AWS account that you want information
39      * about. You can get the ID from the <a>ListAccounts</a> or
40      * <a>ListAccountsForParent</a> operations.</p> <p>The <a
41      * href="http://wikipedia.org/wiki/regex">regex pattern</a> for an account ID
42      * string requires exactly 12 digits.</p>
43      */
GetAccountId()44     inline const Aws::String& GetAccountId() const{ return m_accountId; }
45 
46     /**
47      * <p>The unique identifier (ID) of the AWS account that you want information
48      * about. You can get the ID from the <a>ListAccounts</a> or
49      * <a>ListAccountsForParent</a> operations.</p> <p>The <a
50      * href="http://wikipedia.org/wiki/regex">regex pattern</a> for an account ID
51      * string requires exactly 12 digits.</p>
52      */
AccountIdHasBeenSet()53     inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
54 
55     /**
56      * <p>The unique identifier (ID) of the AWS account that you want information
57      * about. You can get the ID from the <a>ListAccounts</a> or
58      * <a>ListAccountsForParent</a> operations.</p> <p>The <a
59      * href="http://wikipedia.org/wiki/regex">regex pattern</a> for an account ID
60      * string requires exactly 12 digits.</p>
61      */
SetAccountId(const Aws::String & value)62     inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
63 
64     /**
65      * <p>The unique identifier (ID) of the AWS account that you want information
66      * about. You can get the ID from the <a>ListAccounts</a> or
67      * <a>ListAccountsForParent</a> operations.</p> <p>The <a
68      * href="http://wikipedia.org/wiki/regex">regex pattern</a> for an account ID
69      * string requires exactly 12 digits.</p>
70      */
SetAccountId(Aws::String && value)71     inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
72 
73     /**
74      * <p>The unique identifier (ID) of the AWS account that you want information
75      * about. You can get the ID from the <a>ListAccounts</a> or
76      * <a>ListAccountsForParent</a> operations.</p> <p>The <a
77      * href="http://wikipedia.org/wiki/regex">regex pattern</a> for an account ID
78      * string requires exactly 12 digits.</p>
79      */
SetAccountId(const char * value)80     inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
81 
82     /**
83      * <p>The unique identifier (ID) of the AWS account that you want information
84      * about. You can get the ID from the <a>ListAccounts</a> or
85      * <a>ListAccountsForParent</a> operations.</p> <p>The <a
86      * href="http://wikipedia.org/wiki/regex">regex pattern</a> for an account ID
87      * string requires exactly 12 digits.</p>
88      */
WithAccountId(const Aws::String & value)89     inline DescribeAccountRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
90 
91     /**
92      * <p>The unique identifier (ID) of the AWS account that you want information
93      * about. You can get the ID from the <a>ListAccounts</a> or
94      * <a>ListAccountsForParent</a> operations.</p> <p>The <a
95      * href="http://wikipedia.org/wiki/regex">regex pattern</a> for an account ID
96      * string requires exactly 12 digits.</p>
97      */
WithAccountId(Aws::String && value)98     inline DescribeAccountRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
99 
100     /**
101      * <p>The unique identifier (ID) of the AWS account that you want information
102      * about. You can get the ID from the <a>ListAccounts</a> or
103      * <a>ListAccountsForParent</a> operations.</p> <p>The <a
104      * href="http://wikipedia.org/wiki/regex">regex pattern</a> for an account ID
105      * string requires exactly 12 digits.</p>
106      */
WithAccountId(const char * value)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
118