AWS SDK for C++  1.9.68
AWS SDK for C++
CreateTokenRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace SSOOIDC
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "CreateToken"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
40  inline const Aws::String& GetClientId() const{ return m_clientId; }
41 
46  inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
47 
52  inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
53 
58  inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = std::move(value); }
59 
64  inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); }
65 
70  inline CreateTokenRequest& WithClientId(const Aws::String& value) { SetClientId(value); return *this;}
71 
76  inline CreateTokenRequest& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;}
77 
82  inline CreateTokenRequest& WithClientId(const char* value) { SetClientId(value); return *this;}
83 
84 
89  inline const Aws::String& GetClientSecret() const{ return m_clientSecret; }
90 
95  inline bool ClientSecretHasBeenSet() const { return m_clientSecretHasBeenSet; }
96 
101  inline void SetClientSecret(const Aws::String& value) { m_clientSecretHasBeenSet = true; m_clientSecret = value; }
102 
107  inline void SetClientSecret(Aws::String&& value) { m_clientSecretHasBeenSet = true; m_clientSecret = std::move(value); }
108 
113  inline void SetClientSecret(const char* value) { m_clientSecretHasBeenSet = true; m_clientSecret.assign(value); }
114 
119  inline CreateTokenRequest& WithClientSecret(const Aws::String& value) { SetClientSecret(value); return *this;}
120 
125  inline CreateTokenRequest& WithClientSecret(Aws::String&& value) { SetClientSecret(std::move(value)); return *this;}
126 
131  inline CreateTokenRequest& WithClientSecret(const char* value) { SetClientSecret(value); return *this;}
132 
133 
138  inline const Aws::String& GetGrantType() const{ return m_grantType; }
139 
144  inline bool GrantTypeHasBeenSet() const { return m_grantTypeHasBeenSet; }
145 
150  inline void SetGrantType(const Aws::String& value) { m_grantTypeHasBeenSet = true; m_grantType = value; }
151 
156  inline void SetGrantType(Aws::String&& value) { m_grantTypeHasBeenSet = true; m_grantType = std::move(value); }
157 
162  inline void SetGrantType(const char* value) { m_grantTypeHasBeenSet = true; m_grantType.assign(value); }
163 
168  inline CreateTokenRequest& WithGrantType(const Aws::String& value) { SetGrantType(value); return *this;}
169 
174  inline CreateTokenRequest& WithGrantType(Aws::String&& value) { SetGrantType(std::move(value)); return *this;}
175 
180  inline CreateTokenRequest& WithGrantType(const char* value) { SetGrantType(value); return *this;}
181 
182 
189  inline const Aws::String& GetDeviceCode() const{ return m_deviceCode; }
190 
197  inline bool DeviceCodeHasBeenSet() const { return m_deviceCodeHasBeenSet; }
198 
205  inline void SetDeviceCode(const Aws::String& value) { m_deviceCodeHasBeenSet = true; m_deviceCode = value; }
206 
213  inline void SetDeviceCode(Aws::String&& value) { m_deviceCodeHasBeenSet = true; m_deviceCode = std::move(value); }
214 
221  inline void SetDeviceCode(const char* value) { m_deviceCodeHasBeenSet = true; m_deviceCode.assign(value); }
222 
229  inline CreateTokenRequest& WithDeviceCode(const Aws::String& value) { SetDeviceCode(value); return *this;}
230 
237  inline CreateTokenRequest& WithDeviceCode(Aws::String&& value) { SetDeviceCode(std::move(value)); return *this;}
238 
245  inline CreateTokenRequest& WithDeviceCode(const char* value) { SetDeviceCode(value); return *this;}
246 
247 
253  inline const Aws::String& GetCode() const{ return m_code; }
254 
260  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
261 
267  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
268 
274  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
275 
281  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
282 
288  inline CreateTokenRequest& WithCode(const Aws::String& value) { SetCode(value); return *this;}
289 
295  inline CreateTokenRequest& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
296 
302  inline CreateTokenRequest& WithCode(const char* value) { SetCode(value); return *this;}
303 
304 
309  inline const Aws::String& GetRefreshToken() const{ return m_refreshToken; }
310 
315  inline bool RefreshTokenHasBeenSet() const { return m_refreshTokenHasBeenSet; }
316 
321  inline void SetRefreshToken(const Aws::String& value) { m_refreshTokenHasBeenSet = true; m_refreshToken = value; }
322 
327  inline void SetRefreshToken(Aws::String&& value) { m_refreshTokenHasBeenSet = true; m_refreshToken = std::move(value); }
328 
333  inline void SetRefreshToken(const char* value) { m_refreshTokenHasBeenSet = true; m_refreshToken.assign(value); }
334 
339  inline CreateTokenRequest& WithRefreshToken(const Aws::String& value) { SetRefreshToken(value); return *this;}
340 
345  inline CreateTokenRequest& WithRefreshToken(Aws::String&& value) { SetRefreshToken(std::move(value)); return *this;}
346 
351  inline CreateTokenRequest& WithRefreshToken(const char* value) { SetRefreshToken(value); return *this;}
352 
353 
358  inline const Aws::Vector<Aws::String>& GetScope() const{ return m_scope; }
359 
364  inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
365 
370  inline void SetScope(const Aws::Vector<Aws::String>& value) { m_scopeHasBeenSet = true; m_scope = value; }
371 
376  inline void SetScope(Aws::Vector<Aws::String>&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
377 
382  inline CreateTokenRequest& WithScope(const Aws::Vector<Aws::String>& value) { SetScope(value); return *this;}
383 
388  inline CreateTokenRequest& WithScope(Aws::Vector<Aws::String>&& value) { SetScope(std::move(value)); return *this;}
389 
394  inline CreateTokenRequest& AddScope(const Aws::String& value) { m_scopeHasBeenSet = true; m_scope.push_back(value); return *this; }
395 
400  inline CreateTokenRequest& AddScope(Aws::String&& value) { m_scopeHasBeenSet = true; m_scope.push_back(std::move(value)); return *this; }
401 
406  inline CreateTokenRequest& AddScope(const char* value) { m_scopeHasBeenSet = true; m_scope.push_back(value); return *this; }
407 
408 
413  inline const Aws::String& GetRedirectUri() const{ return m_redirectUri; }
414 
419  inline bool RedirectUriHasBeenSet() const { return m_redirectUriHasBeenSet; }
420 
425  inline void SetRedirectUri(const Aws::String& value) { m_redirectUriHasBeenSet = true; m_redirectUri = value; }
426 
431  inline void SetRedirectUri(Aws::String&& value) { m_redirectUriHasBeenSet = true; m_redirectUri = std::move(value); }
432 
437  inline void SetRedirectUri(const char* value) { m_redirectUriHasBeenSet = true; m_redirectUri.assign(value); }
438 
443  inline CreateTokenRequest& WithRedirectUri(const Aws::String& value) { SetRedirectUri(value); return *this;}
444 
449  inline CreateTokenRequest& WithRedirectUri(Aws::String&& value) { SetRedirectUri(std::move(value)); return *this;}
450 
455  inline CreateTokenRequest& WithRedirectUri(const char* value) { SetRedirectUri(value); return *this;}
456 
457  private:
458 
459  Aws::String m_clientId;
460  bool m_clientIdHasBeenSet;
461 
462  Aws::String m_clientSecret;
463  bool m_clientSecretHasBeenSet;
464 
465  Aws::String m_grantType;
466  bool m_grantTypeHasBeenSet;
467 
468  Aws::String m_deviceCode;
469  bool m_deviceCodeHasBeenSet;
470 
471  Aws::String m_code;
472  bool m_codeHasBeenSet;
473 
474  Aws::String m_refreshToken;
475  bool m_refreshTokenHasBeenSet;
476 
477  Aws::Vector<Aws::String> m_scope;
478  bool m_scopeHasBeenSet;
479 
480  Aws::String m_redirectUri;
481  bool m_redirectUriHasBeenSet;
482  };
483 
484 } // namespace Model
485 } // namespace SSOOIDC
486 } // namespace Aws
AWS_SSOOIDC_API
#define AWS_SSOOIDC_API
Definition: SSOOIDC_EXPORTS.h:28
Aws::SSOOIDC::Model::CreateTokenRequest::WithRedirectUri
CreateTokenRequest & WithRedirectUri(const Aws::String &value)
Definition: CreateTokenRequest.h:443
Aws::SSOOIDC::Model::CreateTokenRequest::WithClientId
CreateTokenRequest & WithClientId(Aws::String &&value)
Definition: CreateTokenRequest.h:76
Aws::SSOOIDC::Model::CreateTokenRequest::SetScope
void SetScope(Aws::Vector< Aws::String > &&value)
Definition: CreateTokenRequest.h:376
Aws::SSOOIDC::Model::CreateTokenRequest::WithClientId
CreateTokenRequest & WithClientId(const char *value)
Definition: CreateTokenRequest.h:82
Aws::SSOOIDC::Model::CreateTokenRequest::SetDeviceCode
void SetDeviceCode(const Aws::String &value)
Definition: CreateTokenRequest.h:205
Aws::SSOOIDC::Model::CreateTokenRequest::WithGrantType
CreateTokenRequest & WithGrantType(const char *value)
Definition: CreateTokenRequest.h:180
Aws::SSOOIDC::Model::CreateTokenRequest::AddScope
CreateTokenRequest & AddScope(const Aws::String &value)
Definition: CreateTokenRequest.h:394
Aws::SSOOIDC::Model::CreateTokenRequest::GetDeviceCode
const Aws::String & GetDeviceCode() const
Definition: CreateTokenRequest.h:189
SSOOIDC_EXPORTS.h
Aws::SSOOIDC::Model::CreateTokenRequest::SetRedirectUri
void SetRedirectUri(const Aws::String &value)
Definition: CreateTokenRequest.h:425
Aws::SSOOIDC::Model::CreateTokenRequest::AddScope
CreateTokenRequest & AddScope(const char *value)
Definition: CreateTokenRequest.h:406
Aws::SSOOIDC::Model::CreateTokenRequest::WithDeviceCode
CreateTokenRequest & WithDeviceCode(const Aws::String &value)
Definition: CreateTokenRequest.h:229
Aws::SSOOIDC::Model::CreateTokenRequest::WithCode
CreateTokenRequest & WithCode(const Aws::String &value)
Definition: CreateTokenRequest.h:288
Aws::SSOOIDC::Model::CreateTokenRequest::WithGrantType
CreateTokenRequest & WithGrantType(const Aws::String &value)
Definition: CreateTokenRequest.h:168
Aws::SSOOIDC::Model::CreateTokenRequest::WithClientSecret
CreateTokenRequest & WithClientSecret(Aws::String &&value)
Definition: CreateTokenRequest.h:125
Aws::SSOOIDC::Model::CreateTokenRequest::SetClientId
void SetClientId(Aws::String &&value)
Definition: CreateTokenRequest.h:58
Aws::SSOOIDC::SSOOIDCRequest
Definition: SSOOIDCRequest.h:17
Aws::SSOOIDC::Model::CreateTokenRequest::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: CreateTokenRequest.h:260
Aws::SSOOIDC::Model::CreateTokenRequest::SetCode
void SetCode(Aws::String &&value)
Definition: CreateTokenRequest.h:274
Aws::SSOOIDC::Model::CreateTokenRequest::GrantTypeHasBeenSet
bool GrantTypeHasBeenSet() const
Definition: CreateTokenRequest.h:144
Aws::SSOOIDC::Model::CreateTokenRequest::WithCode
CreateTokenRequest & WithCode(const char *value)
Definition: CreateTokenRequest.h:302
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SSOOIDC::Model::CreateTokenRequest::WithGrantType
CreateTokenRequest & WithGrantType(Aws::String &&value)
Definition: CreateTokenRequest.h:174
Aws::SSOOIDC::Model::CreateTokenRequest::WithScope
CreateTokenRequest & WithScope(Aws::Vector< Aws::String > &&value)
Definition: CreateTokenRequest.h:388
Aws::SSOOIDC::Model::CreateTokenRequest::WithRefreshToken
CreateTokenRequest & WithRefreshToken(const Aws::String &value)
Definition: CreateTokenRequest.h:339
Aws::SSOOIDC::Model::CreateTokenRequest::GetGrantType
const Aws::String & GetGrantType() const
Definition: CreateTokenRequest.h:138
AWSVector.h
Aws::SSOOIDC::Model::CreateTokenRequest::GetCode
const Aws::String & GetCode() const
Definition: CreateTokenRequest.h:253
Aws::SSOOIDC::Model::CreateTokenRequest::GetScope
const Aws::Vector< Aws::String > & GetScope() const
Definition: CreateTokenRequest.h:358
Aws::SSOOIDC::Model::CreateTokenRequest::SetGrantType
void SetGrantType(const char *value)
Definition: CreateTokenRequest.h:162
SSOOIDCRequest.h
Aws::SSOOIDC::Model::CreateTokenRequest::SetCode
void SetCode(const char *value)
Definition: CreateTokenRequest.h:281
Aws::SSOOIDC::Model::CreateTokenRequest::WithDeviceCode
CreateTokenRequest & WithDeviceCode(const char *value)
Definition: CreateTokenRequest.h:245
Aws::SSOOIDC::Model::CreateTokenRequest::SetCode
void SetCode(const Aws::String &value)
Definition: CreateTokenRequest.h:267
Aws::SSOOIDC::Model::CreateTokenRequest::GetRedirectUri
const Aws::String & GetRedirectUri() const
Definition: CreateTokenRequest.h:413
Aws::SSOOIDC::Model::CreateTokenRequest::ClientSecretHasBeenSet
bool ClientSecretHasBeenSet() const
Definition: CreateTokenRequest.h:95
Aws::SSOOIDC::Model::CreateTokenRequest::WithRefreshToken
CreateTokenRequest & WithRefreshToken(const char *value)
Definition: CreateTokenRequest.h:351
Aws::SSOOIDC::Model::CreateTokenRequest::SetGrantType
void SetGrantType(Aws::String &&value)
Definition: CreateTokenRequest.h:156
Aws::SSOOIDC::Model::CreateTokenRequest::AddScope
CreateTokenRequest & AddScope(Aws::String &&value)
Definition: CreateTokenRequest.h:400
Aws::SSOOIDC::Model::CreateTokenRequest::CreateTokenRequest
CreateTokenRequest()
Aws::SSOOIDC::Model::CreateTokenRequest::WithScope
CreateTokenRequest & WithScope(const Aws::Vector< Aws::String > &value)
Definition: CreateTokenRequest.h:382
Aws::SSOOIDC::Model::CreateTokenRequest::WithRedirectUri
CreateTokenRequest & WithRedirectUri(Aws::String &&value)
Definition: CreateTokenRequest.h:449
Aws::SSOOIDC::Model::CreateTokenRequest::SetRefreshToken
void SetRefreshToken(Aws::String &&value)
Definition: CreateTokenRequest.h:327
Aws::SSOOIDC::Model::CreateTokenRequest::SetClientId
void SetClientId(const Aws::String &value)
Definition: CreateTokenRequest.h:52
AWSString.h
Aws::SSOOIDC::Model::CreateTokenRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SSOOIDC::Model::CreateTokenRequest::SetClientSecret
void SetClientSecret(const Aws::String &value)
Definition: CreateTokenRequest.h:101
Aws::SSOOIDC::Model::CreateTokenRequest::RefreshTokenHasBeenSet
bool RefreshTokenHasBeenSet() const
Definition: CreateTokenRequest.h:315
Aws::SSOOIDC::Model::CreateTokenRequest
Definition: CreateTokenRequest.h:23
Aws::SSOOIDC::Model::CreateTokenRequest::SetDeviceCode
void SetDeviceCode(Aws::String &&value)
Definition: CreateTokenRequest.h:213
Aws::SSOOIDC::Model::CreateTokenRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateTokenRequest.h:31
Aws::SSOOIDC::Model::CreateTokenRequest::WithCode
CreateTokenRequest & WithCode(Aws::String &&value)
Definition: CreateTokenRequest.h:295
Aws::SSOOIDC::Model::CreateTokenRequest::SetDeviceCode
void SetDeviceCode(const char *value)
Definition: CreateTokenRequest.h:221
Aws::SSOOIDC::Model::CreateTokenRequest::SetRedirectUri
void SetRedirectUri(Aws::String &&value)
Definition: CreateTokenRequest.h:431
Aws::SSOOIDC::Model::CreateTokenRequest::WithClientSecret
CreateTokenRequest & WithClientSecret(const char *value)
Definition: CreateTokenRequest.h:131
Aws::SSOOIDC::Model::CreateTokenRequest::SetRefreshToken
void SetRefreshToken(const char *value)
Definition: CreateTokenRequest.h:333
Aws::SSOOIDC::Model::CreateTokenRequest::ClientIdHasBeenSet
bool ClientIdHasBeenSet() const
Definition: CreateTokenRequest.h:46
Aws::SSOOIDC::Model::CreateTokenRequest::WithClientId
CreateTokenRequest & WithClientId(const Aws::String &value)
Definition: CreateTokenRequest.h:70
Aws
Definition: AccessManagementClient.h:15
Aws::SSOOIDC::Model::CreateTokenRequest::GetClientSecret
const Aws::String & GetClientSecret() const
Definition: CreateTokenRequest.h:89
Aws::SSOOIDC::Model::CreateTokenRequest::ScopeHasBeenSet
bool ScopeHasBeenSet() const
Definition: CreateTokenRequest.h:364
Aws::SSOOIDC::Model::CreateTokenRequest::WithDeviceCode
CreateTokenRequest & WithDeviceCode(Aws::String &&value)
Definition: CreateTokenRequest.h:237
Aws::SSOOIDC::Model::CreateTokenRequest::SetClientId
void SetClientId(const char *value)
Definition: CreateTokenRequest.h:64
Aws::SSOOIDC::Model::CreateTokenRequest::SetScope
void SetScope(const Aws::Vector< Aws::String > &value)
Definition: CreateTokenRequest.h:370
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSOOIDC::Model::CreateTokenRequest::GetRefreshToken
const Aws::String & GetRefreshToken() const
Definition: CreateTokenRequest.h:309
Aws::SSOOIDC::Model::CreateTokenRequest::SetGrantType
void SetGrantType(const Aws::String &value)
Definition: CreateTokenRequest.h:150
Aws::SSOOIDC::Model::CreateTokenRequest::SetClientSecret
void SetClientSecret(Aws::String &&value)
Definition: CreateTokenRequest.h:107
Aws::SSOOIDC::Model::CreateTokenRequest::GetClientId
const Aws::String & GetClientId() const
Definition: CreateTokenRequest.h:40
Aws::SSOOIDC::Model::CreateTokenRequest::RedirectUriHasBeenSet
bool RedirectUriHasBeenSet() const
Definition: CreateTokenRequest.h:419
Aws::SSOOIDC::Model::CreateTokenRequest::SetRedirectUri
void SetRedirectUri(const char *value)
Definition: CreateTokenRequest.h:437
Aws::SSOOIDC::Model::CreateTokenRequest::WithRedirectUri
CreateTokenRequest & WithRedirectUri(const char *value)
Definition: CreateTokenRequest.h:455
Aws::SSOOIDC::Model::CreateTokenRequest::SetRefreshToken
void SetRefreshToken(const Aws::String &value)
Definition: CreateTokenRequest.h:321
Aws::SSOOIDC::Model::CreateTokenRequest::DeviceCodeHasBeenSet
bool DeviceCodeHasBeenSet() const
Definition: CreateTokenRequest.h:197
Aws::SSOOIDC::Model::CreateTokenRequest::WithClientSecret
CreateTokenRequest & WithClientSecret(const Aws::String &value)
Definition: CreateTokenRequest.h:119
Aws::SSOOIDC::Model::CreateTokenRequest::WithRefreshToken
CreateTokenRequest & WithRefreshToken(Aws::String &&value)
Definition: CreateTokenRequest.h:345
Aws::SSOOIDC::Model::CreateTokenRequest::SetClientSecret
void SetClientSecret(const char *value)
Definition: CreateTokenRequest.h:113