/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::ECS::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; DeleteTaskSetRequest::DeleteTaskSetRequest() : m_clusterHasBeenSet(false), m_serviceHasBeenSet(false), m_taskSetHasBeenSet(false), m_force(false), m_forceHasBeenSet(false) { } Aws::String DeleteTaskSetRequest::SerializePayload() const { JsonValue payload; if(m_clusterHasBeenSet) { payload.WithString("cluster", m_cluster); } if(m_serviceHasBeenSet) { payload.WithString("service", m_service); } if(m_taskSetHasBeenSet) { payload.WithString("taskSet", m_taskSet); } if(m_forceHasBeenSet) { payload.WithBool("force", m_force); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection DeleteTaskSetRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonEC2ContainerServiceV20141113.DeleteTaskSet")); return headers; }