This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-iot/source/model/TestInvokeAuthorizerRequest.cpp

65 lines
1.2 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot/model/TestInvokeAuthorizerRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IoT::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
TestInvokeAuthorizerRequest::TestInvokeAuthorizerRequest() :
m_authorizerNameHasBeenSet(false),
m_tokenHasBeenSet(false),
m_tokenSignatureHasBeenSet(false),
m_httpContextHasBeenSet(false),
m_mqttContextHasBeenSet(false),
m_tlsContextHasBeenSet(false)
{
}
Aws::String TestInvokeAuthorizerRequest::SerializePayload() const
{
JsonValue payload;
if(m_tokenHasBeenSet)
{
payload.WithString("token", m_token);
}
if(m_tokenSignatureHasBeenSet)
{
payload.WithString("tokenSignature", m_tokenSignature);
}
if(m_httpContextHasBeenSet)
{
payload.WithObject("httpContext", m_httpContext.Jsonize());
}
if(m_mqttContextHasBeenSet)
{
payload.WithObject("mqttContext", m_mqttContext.Jsonize());
}
if(m_tlsContextHasBeenSet)
{
payload.WithObject("tlsContext", m_tlsContext.Jsonize());
}
return payload.View().WriteReadable();
}