AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RevokeTokenRequest.h
1
6#pragma once
7#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
8#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace CognitoIdentityProvider
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_COGNITOIDENTITYPROVIDER_API RevokeTokenRequest() = default;
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 "RevokeToken"; }
31
32 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
33
34 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
41 inline const Aws::String& GetToken() const { return m_token; }
42 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
43 template<typename TokenT = Aws::String>
44 void SetToken(TokenT&& value) { m_tokenHasBeenSet = true; m_token = std::forward<TokenT>(value); }
45 template<typename TokenT = Aws::String>
46 RevokeTokenRequest& WithToken(TokenT&& value) { SetToken(std::forward<TokenT>(value)); return *this;}
48
50
54 inline const Aws::String& GetClientId() const { return m_clientId; }
55 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
56 template<typename ClientIdT = Aws::String>
57 void SetClientId(ClientIdT&& value) { m_clientIdHasBeenSet = true; m_clientId = std::forward<ClientIdT>(value); }
58 template<typename ClientIdT = Aws::String>
59 RevokeTokenRequest& WithClientId(ClientIdT&& value) { SetClientId(std::forward<ClientIdT>(value)); return *this;}
61
63
67 inline const Aws::String& GetClientSecret() const { return m_clientSecret; }
68 inline bool ClientSecretHasBeenSet() const { return m_clientSecretHasBeenSet; }
69 template<typename ClientSecretT = Aws::String>
70 void SetClientSecret(ClientSecretT&& value) { m_clientSecretHasBeenSet = true; m_clientSecret = std::forward<ClientSecretT>(value); }
71 template<typename ClientSecretT = Aws::String>
72 RevokeTokenRequest& WithClientSecret(ClientSecretT&& value) { SetClientSecret(std::forward<ClientSecretT>(value)); return *this;}
74 private:
75
76 Aws::String m_token;
77 bool m_tokenHasBeenSet = false;
78
79 Aws::String m_clientId;
80 bool m_clientIdHasBeenSet = false;
81
82 Aws::String m_clientSecret;
83 bool m_clientSecretHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace CognitoIdentityProvider
88} // namespace Aws
RevokeTokenRequest & WithClientSecret(ClientSecretT &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
AWS_COGNITOIDENTITYPROVIDER_API RevokeTokenRequest()=default
virtual const char * GetServiceRequestName() const override
RevokeTokenRequest & WithClientId(ClientIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String