/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include 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; }