AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
RevokeTokenRequest.h
1
6#pragma once
7#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
8#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace CognitoIdentityProvider {
15namespace Model {
16
20 public:
21 AWS_COGNITOIDENTITYPROVIDER_API RevokeTokenRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "RevokeToken"; }
28
29 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
30
31 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
37 inline const Aws::String& GetToken() const { return m_token; }
38 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
39 template <typename TokenT = Aws::String>
40 void SetToken(TokenT&& value) {
41 m_tokenHasBeenSet = true;
42 m_token = std::forward<TokenT>(value);
43 }
44 template <typename TokenT = Aws::String>
45 RevokeTokenRequest& WithToken(TokenT&& value) {
46 SetToken(std::forward<TokenT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetClientId() const { return m_clientId; }
57 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
58 template <typename ClientIdT = Aws::String>
59 void SetClientId(ClientIdT&& value) {
60 m_clientIdHasBeenSet = true;
61 m_clientId = std::forward<ClientIdT>(value);
62 }
63 template <typename ClientIdT = Aws::String>
64 RevokeTokenRequest& WithClientId(ClientIdT&& value) {
65 SetClientId(std::forward<ClientIdT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::String& GetClientSecret() const { return m_clientSecret; }
76 inline bool ClientSecretHasBeenSet() const { return m_clientSecretHasBeenSet; }
77 template <typename ClientSecretT = Aws::String>
78 void SetClientSecret(ClientSecretT&& value) {
79 m_clientSecretHasBeenSet = true;
80 m_clientSecret = std::forward<ClientSecretT>(value);
81 }
82 template <typename ClientSecretT = Aws::String>
83 RevokeTokenRequest& WithClientSecret(ClientSecretT&& value) {
84 SetClientSecret(std::forward<ClientSecretT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_token;
90
91 Aws::String m_clientId;
92
93 Aws::String m_clientSecret;
94 bool m_tokenHasBeenSet = false;
95 bool m_clientIdHasBeenSet = false;
96 bool m_clientSecretHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace CognitoIdentityProvider
101} // 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