/** * 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; StartSessionRequest::StartSessionRequest() : m_descriptionHasBeenSet(false), m_workGroupHasBeenSet(false), m_engineConfigurationHasBeenSet(false), m_notebookVersionHasBeenSet(false), m_sessionIdleTimeoutInMinutes(0), m_sessionIdleTimeoutInMinutesHasBeenSet(false), m_clientRequestTokenHasBeenSet(false) { } Aws::String StartSessionRequest::SerializePayload() const { JsonValue payload; if(m_descriptionHasBeenSet) { payload.WithString("Description", m_description); } if(m_workGroupHasBeenSet) { payload.WithString("WorkGroup", m_workGroup); } if(m_engineConfigurationHasBeenSet) { payload.WithObject("EngineConfiguration", m_engineConfiguration.Jsonize()); } if(m_notebookVersionHasBeenSet) { payload.WithString("NotebookVersion", m_notebookVersion); } if(m_sessionIdleTimeoutInMinutesHasBeenSet) { payload.WithInteger("SessionIdleTimeoutInMinutes", m_sessionIdleTimeoutInMinutes); } if(m_clientRequestTokenHasBeenSet) { payload.WithString("ClientRequestToken", m_clientRequestToken); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection StartSessionRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonAthena.StartSession")); return headers; }