AWS SDK for C++  1.9.108
AWS SDK for C++
ListCreateAccountStatusRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Organizations
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "ListCreateAccountStatus"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
43  inline const Aws::Vector<CreateAccountState>& GetStates() const{ return m_states; }
44 
49  inline bool StatesHasBeenSet() const { return m_statesHasBeenSet; }
50 
55  inline void SetStates(const Aws::Vector<CreateAccountState>& value) { m_statesHasBeenSet = true; m_states = value; }
56 
61  inline void SetStates(Aws::Vector<CreateAccountState>&& value) { m_statesHasBeenSet = true; m_states = std::move(value); }
62 
67  inline ListCreateAccountStatusRequest& WithStates(const Aws::Vector<CreateAccountState>& value) { SetStates(value); return *this;}
68 
73  inline ListCreateAccountStatusRequest& WithStates(Aws::Vector<CreateAccountState>&& value) { SetStates(std::move(value)); return *this;}
74 
79  inline ListCreateAccountStatusRequest& AddStates(const CreateAccountState& value) { m_statesHasBeenSet = true; m_states.push_back(value); return *this; }
80 
85  inline ListCreateAccountStatusRequest& AddStates(CreateAccountState&& value) { m_statesHasBeenSet = true; m_states.push_back(std::move(value)); return *this; }
86 
87 
95  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
96 
104  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
105 
113  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
114 
122  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
123 
131  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
132 
140  inline ListCreateAccountStatusRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
141 
149  inline ListCreateAccountStatusRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
150 
158  inline ListCreateAccountStatusRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
159 
160 
172  inline int GetMaxResults() const{ return m_maxResults; }
173 
185  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
186 
198  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
199 
211  inline ListCreateAccountStatusRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
212 
213  private:
214 
216  bool m_statesHasBeenSet;
217 
218  Aws::String m_nextToken;
219  bool m_nextTokenHasBeenSet;
220 
221  int m_maxResults;
222  bool m_maxResultsHasBeenSet;
223  };
224 
225 } // namespace Model
226 } // namespace Organizations
227 } // namespace Aws
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Organizations::Model::ListCreateAccountStatusRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListCreateAccountStatusRequest.h:185
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Organizations::Model::ListCreateAccountStatusRequest::AddStates
ListCreateAccountStatusRequest & AddStates(CreateAccountState &&value)
Definition: ListCreateAccountStatusRequest.h:85
Aws::Organizations::Model::ListCreateAccountStatusRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListCreateAccountStatusRequest.h:122
Aws::Organizations::Model::ListCreateAccountStatusRequest::WithMaxResults
ListCreateAccountStatusRequest & WithMaxResults(int value)
Definition: ListCreateAccountStatusRequest.h:211
AWSVector.h
Aws::Organizations::Model::ListCreateAccountStatusRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListCreateAccountStatusRequest.h:113
Aws::Organizations::Model::ListCreateAccountStatusRequest::AddStates
ListCreateAccountStatusRequest & AddStates(const CreateAccountState &value)
Definition: ListCreateAccountStatusRequest.h:79
Aws::Organizations::Model::ListCreateAccountStatusRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListCreateAccountStatusRequest.h:198
Aws::Organizations::Model::ListCreateAccountStatusRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListCreateAccountStatusRequest.h:131
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::ListCreateAccountStatusRequest::WithNextToken
ListCreateAccountStatusRequest & WithNextToken(const char *value)
Definition: ListCreateAccountStatusRequest.h:158
Aws::Organizations::Model::ListCreateAccountStatusRequest::StatesHasBeenSet
bool StatesHasBeenSet() const
Definition: ListCreateAccountStatusRequest.h:49
Aws::Organizations::Model::ListCreateAccountStatusRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Organizations::OrganizationsRequest
Definition: OrganizationsRequest.h:17
Aws::Organizations::Model::ListCreateAccountStatusRequest::WithStates
ListCreateAccountStatusRequest & WithStates(const Aws::Vector< CreateAccountState > &value)
Definition: ListCreateAccountStatusRequest.h:67
Aws::Organizations::Model::ListCreateAccountStatusRequest::SetStates
void SetStates(const Aws::Vector< CreateAccountState > &value)
Definition: ListCreateAccountStatusRequest.h:55
AWSString.h
Aws::Organizations::Model::ListCreateAccountStatusRequest
Definition: ListCreateAccountStatusRequest.h:24
Aws::Organizations::Model::ListCreateAccountStatusRequest::WithNextToken
ListCreateAccountStatusRequest & WithNextToken(const Aws::String &value)
Definition: ListCreateAccountStatusRequest.h:140
Aws::Organizations::Model::ListCreateAccountStatusRequest::SetStates
void SetStates(Aws::Vector< CreateAccountState > &&value)
Definition: ListCreateAccountStatusRequest.h:61
Aws::Organizations::Model::CreateAccountState
CreateAccountState
Definition: CreateAccountState.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::ListCreateAccountStatusRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListCreateAccountStatusRequest.h:104
Aws::Organizations::Model::ListCreateAccountStatusRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListCreateAccountStatusRequest.h:95
Aws::Organizations::Model::ListCreateAccountStatusRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListCreateAccountStatusRequest.h:32
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Organizations::Model::ListCreateAccountStatusRequest::ListCreateAccountStatusRequest
ListCreateAccountStatusRequest()
Aws::Organizations::Model::ListCreateAccountStatusRequest::GetStates
const Aws::Vector< CreateAccountState > & GetStates() const
Definition: ListCreateAccountStatusRequest.h:43
Organizations_EXPORTS.h
Aws::Organizations::Model::ListCreateAccountStatusRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Organizations::Model::ListCreateAccountStatusRequest::WithStates
ListCreateAccountStatusRequest & WithStates(Aws::Vector< CreateAccountState > &&value)
Definition: ListCreateAccountStatusRequest.h:73
Aws::Organizations::Model::ListCreateAccountStatusRequest::GetMaxResults
int GetMaxResults() const
Definition: ListCreateAccountStatusRequest.h:172
CreateAccountState.h
Aws::Organizations::Model::ListCreateAccountStatusRequest::WithNextToken
ListCreateAccountStatusRequest & WithNextToken(Aws::String &&value)
Definition: ListCreateAccountStatusRequest.h:149
OrganizationsRequest.h