/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::CognitoIdentityProvider::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; RevokeTokenRequest::RevokeTokenRequest() : m_tokenHasBeenSet(false), m_clientIdHasBeenSet(false), m_clientSecretHasBeenSet(false) { } Aws::String RevokeTokenRequest::SerializePayload() const { JsonValue payload; if(m_tokenHasBeenSet) { payload.WithString("Token", m_token); } if(m_clientIdHasBeenSet) { payload.WithString("ClientId", m_clientId); } if(m_clientSecretHasBeenSet) { payload.WithString("ClientSecret", m_clientSecret); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection RevokeTokenRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSCognitoIdentityProviderService.RevokeToken")); return headers; }