AWS SDK for C++  1.9.66
AWS SDK for C++
ListAccountsRequest.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 "ListAccounts"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
44  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
45 
53  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
54 
62  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
63 
71  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
72 
80  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
81 
89  inline ListAccountsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
90 
98  inline ListAccountsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
99 
107  inline ListAccountsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
108 
109 
121  inline int GetMaxResults() const{ return m_maxResults; }
122 
134  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
135 
147  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
148 
160  inline ListAccountsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
161 
162  private:
163 
164  Aws::String m_nextToken;
165  bool m_nextTokenHasBeenSet;
166 
167  int m_maxResults;
168  bool m_maxResultsHasBeenSet;
169  };
170 
171 } // namespace Model
172 } // namespace Organizations
173 } // namespace Aws
Aws::Organizations::Model::ListAccountsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListAccountsRequest.h:62
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Organizations::Model::ListAccountsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Organizations::Model::ListAccountsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListAccountsRequest.h:80
Aws::Organizations::Model::ListAccountsRequest::WithNextToken
ListAccountsRequest & WithNextToken(const Aws::String &value)
Definition: ListAccountsRequest.h:89
Aws::Organizations::Model::ListAccountsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListAccountsRequest.h:121
Aws::Organizations::Model::ListAccountsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListAccountsRequest.h:134
Aws::Organizations::Model::ListAccountsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListAccountsRequest.h:71
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::ListAccountsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListAccountsRequest.h:30
Aws::Organizations::OrganizationsRequest
Definition: OrganizationsRequest.h:17
Aws::Organizations::Model::ListAccountsRequest::ListAccountsRequest
ListAccountsRequest()
Aws::Organizations::Model::ListAccountsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListAccountsRequest.h:44
AWSString.h
Aws::Organizations::Model::ListAccountsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Organizations::Model::ListAccountsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListAccountsRequest.h:147
Aws::Organizations::Model::ListAccountsRequest::WithMaxResults
ListAccountsRequest & WithMaxResults(int value)
Definition: ListAccountsRequest.h:160
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::ListAccountsRequest
Definition: ListAccountsRequest.h:22
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::ListAccountsRequest::WithNextToken
ListAccountsRequest & WithNextToken(Aws::String &&value)
Definition: ListAccountsRequest.h:98
Aws::Organizations::Model::ListAccountsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListAccountsRequest.h:53
Aws::Organizations::Model::ListAccountsRequest::WithNextToken
ListAccountsRequest & WithNextToken(const char *value)
Definition: ListAccountsRequest.h:107
OrganizationsRequest.h