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-ecs/source/model/StopTaskRequest.cpp

58 lines
1.1 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ecs/model/StopTaskRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ECS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
StopTaskRequest::StopTaskRequest() :
m_clusterHasBeenSet(false),
m_taskHasBeenSet(false),
m_reasonHasBeenSet(false)
{
}
Aws::String StopTaskRequest::SerializePayload() const
{
JsonValue payload;
if(m_clusterHasBeenSet)
{
payload.WithString("cluster", m_cluster);
}
if(m_taskHasBeenSet)
{
payload.WithString("task", m_task);
}
if(m_reasonHasBeenSet)
{
payload.WithString("reason", m_reason);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection StopTaskRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonEC2ContainerServiceV20141113.StopTask"));
return headers;
}