/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace CognitoIdentityProvider { namespace Model { /** */ class RevokeTokenRequest : public CognitoIdentityProviderRequest { public: AWS_COGNITOIDENTITYPROVIDER_API RevokeTokenRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "RevokeToken"; } AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override; AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The refresh token that you want to revoke.

*/ inline const Aws::String& GetToken() const{ return m_token; } /** *

The refresh token that you want to revoke.

*/ inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; } /** *

The refresh token that you want to revoke.

*/ inline void SetToken(const Aws::String& value) { m_tokenHasBeenSet = true; m_token = value; } /** *

The refresh token that you want to revoke.

*/ inline void SetToken(Aws::String&& value) { m_tokenHasBeenSet = true; m_token = std::move(value); } /** *

The refresh token that you want to revoke.

*/ inline void SetToken(const char* value) { m_tokenHasBeenSet = true; m_token.assign(value); } /** *

The refresh token that you want to revoke.

*/ inline RevokeTokenRequest& WithToken(const Aws::String& value) { SetToken(value); return *this;} /** *

The refresh token that you want to revoke.

*/ inline RevokeTokenRequest& WithToken(Aws::String&& value) { SetToken(std::move(value)); return *this;} /** *

The refresh token that you want to revoke.

*/ inline RevokeTokenRequest& WithToken(const char* value) { SetToken(value); return *this;} /** *

The client ID for the token that you want to revoke.

*/ inline const Aws::String& GetClientId() const{ return m_clientId; } /** *

The client ID for the token that you want to revoke.

*/ inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; } /** *

The client ID for the token that you want to revoke.

*/ inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; } /** *

The client ID for the token that you want to revoke.

*/ inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = std::move(value); } /** *

The client ID for the token that you want to revoke.

*/ inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); } /** *

The client ID for the token that you want to revoke.

*/ inline RevokeTokenRequest& WithClientId(const Aws::String& value) { SetClientId(value); return *this;} /** *

The client ID for the token that you want to revoke.

*/ inline RevokeTokenRequest& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;} /** *

The client ID for the token that you want to revoke.

*/ inline RevokeTokenRequest& WithClientId(const char* value) { SetClientId(value); return *this;} /** *

The secret for the client ID. This is required only if the client ID has a * secret.

*/ inline const Aws::String& GetClientSecret() const{ return m_clientSecret; } /** *

The secret for the client ID. This is required only if the client ID has a * secret.

*/ inline bool ClientSecretHasBeenSet() const { return m_clientSecretHasBeenSet; } /** *

The secret for the client ID. This is required only if the client ID has a * secret.

*/ inline void SetClientSecret(const Aws::String& value) { m_clientSecretHasBeenSet = true; m_clientSecret = value; } /** *

The secret for the client ID. This is required only if the client ID has a * secret.

*/ inline void SetClientSecret(Aws::String&& value) { m_clientSecretHasBeenSet = true; m_clientSecret = std::move(value); } /** *

The secret for the client ID. This is required only if the client ID has a * secret.

*/ inline void SetClientSecret(const char* value) { m_clientSecretHasBeenSet = true; m_clientSecret.assign(value); } /** *

The secret for the client ID. This is required only if the client ID has a * secret.

*/ inline RevokeTokenRequest& WithClientSecret(const Aws::String& value) { SetClientSecret(value); return *this;} /** *

The secret for the client ID. This is required only if the client ID has a * secret.

*/ inline RevokeTokenRequest& WithClientSecret(Aws::String&& value) { SetClientSecret(std::move(value)); return *this;} /** *

The secret for the client ID. This is required only if the client ID has a * secret.

*/ inline RevokeTokenRequest& WithClientSecret(const char* value) { SetClientSecret(value); return *this;} private: Aws::String m_token; bool m_tokenHasBeenSet = false; Aws::String m_clientId; bool m_clientIdHasBeenSet = false; Aws::String m_clientSecret; bool m_clientSecretHasBeenSet = false; }; } // namespace Model } // namespace CognitoIdentityProvider } // namespace Aws