/** * 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 SSO { namespace Model { /** */ class LogoutRequest : public SSORequest { public: AWS_SSO_API LogoutRequest(); // 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 "Logout"; } AWS_SSO_API Aws::String SerializePayload() const override; AWS_SSO_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The token issued by the CreateToken API call. For more * information, see CreateToken * in the IAM Identity Center OIDC API Reference Guide.

*/ inline const Aws::String& GetAccessToken() const{ return m_accessToken; } /** *

The token issued by the CreateToken API call. For more * information, see CreateToken * in the IAM Identity Center OIDC API Reference Guide.

*/ inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; } /** *

The token issued by the CreateToken API call. For more * information, see CreateToken * in the IAM Identity Center OIDC API Reference Guide.

*/ inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; } /** *

The token issued by the CreateToken API call. For more * information, see CreateToken * in the IAM Identity Center OIDC API Reference Guide.

*/ inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::move(value); } /** *

The token issued by the CreateToken API call. For more * information, see CreateToken * in the IAM Identity Center OIDC API Reference Guide.

*/ inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); } /** *

The token issued by the CreateToken API call. For more * information, see CreateToken * in the IAM Identity Center OIDC API Reference Guide.

*/ inline LogoutRequest& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;} /** *

The token issued by the CreateToken API call. For more * information, see CreateToken * in the IAM Identity Center OIDC API Reference Guide.

*/ inline LogoutRequest& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;} /** *

The token issued by the CreateToken API call. For more * information, see CreateToken * in the IAM Identity Center OIDC API Reference Guide.

*/ inline LogoutRequest& WithAccessToken(const char* value) { SetAccessToken(value); return *this;} private: Aws::String m_accessToken; bool m_accessTokenHasBeenSet = false; }; } // namespace Model } // namespace SSO } // namespace Aws