/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Athena::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; ImportNotebookRequest::ImportNotebookRequest() : m_workGroupHasBeenSet(false), m_nameHasBeenSet(false), m_payloadHasBeenSet(false), m_type(NotebookType::NOT_SET), m_typeHasBeenSet(false), m_clientRequestTokenHasBeenSet(false) { } Aws::String ImportNotebookRequest::SerializePayload() const { JsonValue payload; if(m_workGroupHasBeenSet) { payload.WithString("WorkGroup", m_workGroup); } if(m_nameHasBeenSet) { payload.WithString("Name", m_name); } if(m_payloadHasBeenSet) { payload.WithString("Payload", m_payload); } if(m_typeHasBeenSet) { payload.WithString("Type", NotebookTypeMapper::GetNameForNotebookType(m_type)); } if(m_clientRequestTokenHasBeenSet) { payload.WithString("ClientRequestToken", m_clientRequestToken); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection ImportNotebookRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonAthena.ImportNotebook")); return headers; }