AWS SDK for C++  1.9.161
AWS SDK for C++
ListAccountsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sso/SSO_EXPORTS.h>
8 #include <aws/sso/SSORequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace SSO
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "ListAccounts"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
41 
42 
47  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
48 
53  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
54 
59  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
60 
65  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
66 
71  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
72 
77  inline ListAccountsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
78 
83  inline ListAccountsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
84 
89  inline ListAccountsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
90 
91 
95  inline int GetMaxResults() const{ return m_maxResults; }
96 
100  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
101 
105  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
106 
110  inline ListAccountsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
111 
112 
119  inline const Aws::String& GetAccessToken() const{ return m_accessToken; }
120 
127  inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
128 
135  inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; }
136 
143  inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::move(value); }
144 
151  inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); }
152 
159  inline ListAccountsRequest& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;}
160 
167  inline ListAccountsRequest& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;}
168 
175  inline ListAccountsRequest& WithAccessToken(const char* value) { SetAccessToken(value); return *this;}
176 
177  private:
178 
179  Aws::String m_nextToken;
180  bool m_nextTokenHasBeenSet;
181 
182  int m_maxResults;
183  bool m_maxResultsHasBeenSet;
184 
185  Aws::String m_accessToken;
186  bool m_accessTokenHasBeenSet;
187  };
188 
189 } // namespace Model
190 } // namespace SSO
191 } // namespace Aws
Aws::IoTSiteWise::Model::AuthMode::NOT_SET
@ NOT_SET
Aws::Http::URI
Definition: URI.h:32
Aws::SSO::Model::ListAccountsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SSO::Model::ListAccountsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListAccountsRequest.h:53
Aws::SSO::Model::ListAccountsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListAccountsRequest.h:71
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SSO::Model::ListAccountsRequest::WithMaxResults
ListAccountsRequest & WithMaxResults(int value)
Definition: ListAccountsRequest.h:110
SSO_EXPORTS.h
Aws::SSO::Model::ListAccountsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListAccountsRequest.h:59
Aws::SSO::Model::ListAccountsRequest::SetAccessToken
void SetAccessToken(const char *value)
Definition: ListAccountsRequest.h:151
Aws::SSO::Model::ListAccountsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SSO_API
#define AWS_SSO_API
Definition: SSO_EXPORTS.h:28
Aws::SSO::Model::ListAccountsRequest::SetAccessToken
void SetAccessToken(const Aws::String &value)
Definition: ListAccountsRequest.h:135
Aws::SSO::Model::ListAccountsRequest::WithNextToken
ListAccountsRequest & WithNextToken(const Aws::String &value)
Definition: ListAccountsRequest.h:77
Aws::SSO::Model::ListAccountsRequest::WithNextToken
ListAccountsRequest & WithNextToken(const char *value)
Definition: ListAccountsRequest.h:89
Aws::SSO::Model::ListAccountsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListAccountsRequest.h:47
Aws::SSO::Model::ListAccountsRequest::SetAccessToken
void SetAccessToken(Aws::String &&value)
Definition: ListAccountsRequest.h:143
Aws::SSO::Model::ListAccountsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListAccountsRequest.h:100
Aws::SSO::Model::ListAccountsRequest::ListAccountsRequest
ListAccountsRequest()
Aws::SSO::Model::ListAccountsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListAccountsRequest.h:95
AWSString.h
Aws::SSO::Model::ListAccountsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListAccountsRequest.h:65
Aws::SSO::Model::ListAccountsRequest::WithAccessToken
ListAccountsRequest & WithAccessToken(Aws::String &&value)
Definition: ListAccountsRequest.h:167
Aws::SSO::Model::ListAccountsRequest::WithAccessToken
ListAccountsRequest & WithAccessToken(const Aws::String &value)
Definition: ListAccountsRequest.h:159
Aws
Definition: AccessManagementClient.h:15
Aws::SSO::SSORequest
Definition: SSORequest.h:17
Aws::SSO::Model::ListAccountsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListAccountsRequest.h:34
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSO::Model::ListAccountsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
SSORequest.h
Aws::SSO::Model::ListAccountsRequest::WithAccessToken
ListAccountsRequest & WithAccessToken(const char *value)
Definition: ListAccountsRequest.h:175
Aws::SSO::Model::ListAccountsRequest::GetAccessToken
const Aws::String & GetAccessToken() const
Definition: ListAccountsRequest.h:119
Aws::SSO::Model::ListAccountsRequest::WithNextToken
ListAccountsRequest & WithNextToken(Aws::String &&value)
Definition: ListAccountsRequest.h:83
Aws::SSO::Model::ListAccountsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListAccountsRequest.h:105
Aws::SSO::Model::ListAccountsRequest
Definition: ListAccountsRequest.h:26
Aws::SSO::Model::ListAccountsRequest::AccessTokenHasBeenSet
bool AccessTokenHasBeenSet() const
Definition: ListAccountsRequest.h:127