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-ssm/source/model/DeleteDocumentRequest.cpp

66 lines
1.2 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ssm/model/DeleteDocumentRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::SSM::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeleteDocumentRequest::DeleteDocumentRequest() :
m_nameHasBeenSet(false),
m_documentVersionHasBeenSet(false),
m_versionNameHasBeenSet(false),
m_force(false),
m_forceHasBeenSet(false)
{
}
Aws::String DeleteDocumentRequest::SerializePayload() const
{
JsonValue payload;
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
if(m_documentVersionHasBeenSet)
{
payload.WithString("DocumentVersion", m_documentVersion);
}
if(m_versionNameHasBeenSet)
{
payload.WithString("VersionName", m_versionName);
}
if(m_forceHasBeenSet)
{
payload.WithBool("Force", m_force);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DeleteDocumentRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonSSM.DeleteDocument"));
return headers;
}