/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::SageMaker::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; DeleteHubContentRequest::DeleteHubContentRequest() : m_hubNameHasBeenSet(false), m_hubContentType(HubContentType::NOT_SET), m_hubContentTypeHasBeenSet(false), m_hubContentNameHasBeenSet(false), m_hubContentVersionHasBeenSet(false) { } Aws::String DeleteHubContentRequest::SerializePayload() const { JsonValue payload; if(m_hubNameHasBeenSet) { payload.WithString("HubName", m_hubName); } if(m_hubContentTypeHasBeenSet) { payload.WithString("HubContentType", HubContentTypeMapper::GetNameForHubContentType(m_hubContentType)); } if(m_hubContentNameHasBeenSet) { payload.WithString("HubContentName", m_hubContentName); } if(m_hubContentVersionHasBeenSet) { payload.WithString("HubContentVersion", m_hubContentVersion); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection DeleteHubContentRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "SageMaker.DeleteHubContent")); return headers; }