44 lines
947 B
C++
44 lines
947 B
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/cognito-identity/model/DescribeIdentityRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::CognitoIdentity::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
DescribeIdentityRequest::DescribeIdentityRequest() :
|
|
m_identityIdHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String DescribeIdentityRequest::SerializePayload() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_identityIdHasBeenSet)
|
|
{
|
|
payload.WithString("IdentityId", m_identityId);
|
|
|
|
}
|
|
|
|
return payload.View().WriteReadable();
|
|
}
|
|
|
|
Aws::Http::HeaderValueCollection DescribeIdentityRequest::GetRequestSpecificHeaders() const
|
|
{
|
|
Aws::Http::HeaderValueCollection headers;
|
|
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSCognitoIdentityService.DescribeIdentity"));
|
|
return headers;
|
|
|
|
}
|
|
|
|
|
|
|
|
|