AWS SDK for C++  1.9.129
AWS SDK for C++
ListAccountRolesRequest.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 "ListAccountRoles"; }
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 ListAccountRolesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
78 
83  inline ListAccountRolesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
84 
89  inline ListAccountRolesRequest& 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 ListAccountRolesRequest& 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 ListAccountRolesRequest& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;}
160 
167  inline ListAccountRolesRequest& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;}
168 
175  inline ListAccountRolesRequest& WithAccessToken(const char* value) { SetAccessToken(value); return *this;}
176 
177 
181  inline const Aws::String& GetAccountId() const{ return m_accountId; }
182 
186  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
187 
191  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
192 
196  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
197 
201  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
202 
206  inline ListAccountRolesRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
207 
211  inline ListAccountRolesRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
212 
216  inline ListAccountRolesRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
217 
218  private:
219 
220  Aws::String m_nextToken;
221  bool m_nextTokenHasBeenSet;
222 
223  int m_maxResults;
224  bool m_maxResultsHasBeenSet;
225 
226  Aws::String m_accessToken;
227  bool m_accessTokenHasBeenSet;
228 
229  Aws::String m_accountId;
230  bool m_accountIdHasBeenSet;
231  };
232 
233 } // namespace Model
234 } // namespace SSO
235 } // namespace Aws
Aws::SSO::Model::ListAccountRolesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListAccountRolesRequest.h:100
Aws::IoTSiteWise::Model::AuthMode::NOT_SET
@ NOT_SET
Aws::Http::URI
Definition: URI.h:32
Aws::SSO::Model::ListAccountRolesRequest::AccessTokenHasBeenSet
bool AccessTokenHasBeenSet() const
Definition: ListAccountRolesRequest.h:127
Aws::SSO::Model::ListAccountRolesRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: ListAccountRolesRequest.h:191
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SSO::Model::ListAccountRolesRequest::WithNextToken
ListAccountRolesRequest & WithNextToken(const Aws::String &value)
Definition: ListAccountRolesRequest.h:77
Aws::SSO::Model::ListAccountRolesRequest::ListAccountRolesRequest
ListAccountRolesRequest()
SSO_EXPORTS.h
Aws::SSO::Model::ListAccountRolesRequest::WithNextToken
ListAccountRolesRequest & WithNextToken(const char *value)
Definition: ListAccountRolesRequest.h:89
AWS_SSO_API
#define AWS_SSO_API
Definition: SSO_EXPORTS.h:28
Aws::SSO::Model::ListAccountRolesRequest::WithAccountId
ListAccountRolesRequest & WithAccountId(const char *value)
Definition: ListAccountRolesRequest.h:216
Aws::SSO::Model::ListAccountRolesRequest::WithAccessToken
ListAccountRolesRequest & WithAccessToken(const Aws::String &value)
Definition: ListAccountRolesRequest.h:159
Aws::SSO::Model::ListAccountRolesRequest::WithNextToken
ListAccountRolesRequest & WithNextToken(Aws::String &&value)
Definition: ListAccountRolesRequest.h:83
Aws::SSO::Model::ListAccountRolesRequest::WithAccessToken
ListAccountRolesRequest & WithAccessToken(Aws::String &&value)
Definition: ListAccountRolesRequest.h:167
Aws::SSO::Model::ListAccountRolesRequest::SetAccountId
void SetAccountId(const char *value)
Definition: ListAccountRolesRequest.h:201
Aws::SSO::Model::ListAccountRolesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListAccountRolesRequest.h:65
Aws::SSO::Model::ListAccountRolesRequest::WithAccountId
ListAccountRolesRequest & WithAccountId(const Aws::String &value)
Definition: ListAccountRolesRequest.h:206
Aws::SSO::Model::ListAccountRolesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListAccountRolesRequest.h:59
Aws::SSO::Model::ListAccountRolesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListAccountRolesRequest.h:53
Aws::SSO::Model::ListAccountRolesRequest::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: ListAccountRolesRequest.h:186
Aws::SSO::Model::ListAccountRolesRequest::GetAccessToken
const Aws::String & GetAccessToken() const
Definition: ListAccountRolesRequest.h:119
Aws::SSO::Model::ListAccountRolesRequest::SetAccessToken
void SetAccessToken(const char *value)
Definition: ListAccountRolesRequest.h:151
Aws::SSO::Model::ListAccountRolesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListAccountRolesRequest.h:34
Aws::SSO::Model::ListAccountRolesRequest::GetMaxResults
int GetMaxResults() const
Definition: ListAccountRolesRequest.h:95
Aws::SSO::Model::ListAccountRolesRequest::WithMaxResults
ListAccountRolesRequest & WithMaxResults(int value)
Definition: ListAccountRolesRequest.h:110
Aws::SSO::Model::ListAccountRolesRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::SSO::Model::ListAccountRolesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SSO::Model::ListAccountRolesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListAccountRolesRequest.h:71
AWSString.h
Aws::SSO::Model::ListAccountRolesRequest::SetAccessToken
void SetAccessToken(const Aws::String &value)
Definition: ListAccountRolesRequest.h:135
Aws::SSO::Model::ListAccountRolesRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: ListAccountRolesRequest.h:196
Aws::SSO::Model::ListAccountRolesRequest::SetAccessToken
void SetAccessToken(Aws::String &&value)
Definition: ListAccountRolesRequest.h:143
Aws
Definition: AccessManagementClient.h:15
Aws::SSO::SSORequest
Definition: SSORequest.h:17
Aws::SSO::Model::ListAccountRolesRequest::WithAccessToken
ListAccountRolesRequest & WithAccessToken(const char *value)
Definition: ListAccountRolesRequest.h:175
Aws::SSO::Model::ListAccountRolesRequest::GetAccountId
const Aws::String & GetAccountId() const
Definition: ListAccountRolesRequest.h:181
Aws::SSO::Model::ListAccountRolesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SSO::Model::ListAccountRolesRequest::WithAccountId
ListAccountRolesRequest & WithAccountId(Aws::String &&value)
Definition: ListAccountRolesRequest.h:211
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSO::Model::ListAccountRolesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListAccountRolesRequest.h:105
Aws::SSO::Model::ListAccountRolesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListAccountRolesRequest.h:47
SSORequest.h
Aws::SSO::Model::ListAccountRolesRequest
Definition: ListAccountRolesRequest.h:26