AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetToken(const Aws::String& value) { m_tokenHasBeenSet = true; m_token = value; }
44 inline void SetToken(Aws::String&& value) { m_tokenHasBeenSet = true; m_token = std::move(value); }
45 inline void SetToken(const char* value) { m_tokenHasBeenSet = true; m_token.assign(value); }
46 inline RevokeTokenRequest& WithToken(const Aws::String& value) { SetToken(value); return *this;}
47 inline RevokeTokenRequest& WithToken(Aws::String&& value) { SetToken(std::move(value)); return *this;}
48 inline RevokeTokenRequest& WithToken(const char* value) { SetToken(value); return *this;}
50
52
55 inline const Aws::String& GetClientId() const{ return m_clientId; }
56 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
57 inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
58 inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = std::move(value); }
59 inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); }
60 inline RevokeTokenRequest& WithClientId(const Aws::String& value) { SetClientId(value); return *this;}
61 inline RevokeTokenRequest& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;}
62 inline RevokeTokenRequest& WithClientId(const char* value) { SetClientId(value); return *this;}
64
66
70 inline const Aws::String& GetClientSecret() const{ return m_clientSecret; }
71 inline bool ClientSecretHasBeenSet() const { return m_clientSecretHasBeenSet; }
72 inline void SetClientSecret(const Aws::String& value) { m_clientSecretHasBeenSet = true; m_clientSecret = value; }
73 inline void SetClientSecret(Aws::String&& value) { m_clientSecretHasBeenSet = true; m_clientSecret = std::move(value); }
74 inline void SetClientSecret(const char* value) { m_clientSecretHasBeenSet = true; m_clientSecret.assign(value); }
75 inline RevokeTokenRequest& WithClientSecret(const Aws::String& value) { SetClientSecret(value); return *this;}
76 inline RevokeTokenRequest& WithClientSecret(Aws::String&& value) { SetClientSecret(std::move(value)); return *this;}
77 inline RevokeTokenRequest& WithClientSecret(const char* value) { SetClientSecret(value); return *this;}
79 private:
80
81 Aws::String m_token;
82 bool m_tokenHasBeenSet = false;
83
84 Aws::String m_clientId;
85 bool m_clientIdHasBeenSet = false;
86
87 Aws::String m_clientSecret;
88 bool m_clientSecretHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace CognitoIdentityProvider
93} // namespace Aws
RevokeTokenRequest & WithClientId(Aws::String &&value)
RevokeTokenRequest & WithClientId(const char *value)
RevokeTokenRequest & WithClientSecret(Aws::String &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
RevokeTokenRequest & WithToken(const Aws::String &value)
AWS_COGNITOIDENTITYPROVIDER_API RevokeTokenRequest()
RevokeTokenRequest & WithToken(const char *value)
virtual const char * GetServiceRequestName() const override
RevokeTokenRequest & WithClientSecret(const char *value)
RevokeTokenRequest & WithClientId(const Aws::String &value)
RevokeTokenRequest & WithToken(Aws::String &&value)
RevokeTokenRequest & WithClientSecret(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String