/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace Athena { namespace Model { SessionSummary::SessionSummary() : m_sessionIdHasBeenSet(false), m_descriptionHasBeenSet(false), m_engineVersionHasBeenSet(false), m_notebookVersionHasBeenSet(false), m_statusHasBeenSet(false) { } SessionSummary::SessionSummary(JsonView jsonValue) : m_sessionIdHasBeenSet(false), m_descriptionHasBeenSet(false), m_engineVersionHasBeenSet(false), m_notebookVersionHasBeenSet(false), m_statusHasBeenSet(false) { *this = jsonValue; } SessionSummary& SessionSummary::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("SessionId")) { m_sessionId = jsonValue.GetString("SessionId"); m_sessionIdHasBeenSet = true; } if(jsonValue.ValueExists("Description")) { m_description = jsonValue.GetString("Description"); m_descriptionHasBeenSet = true; } if(jsonValue.ValueExists("EngineVersion")) { m_engineVersion = jsonValue.GetObject("EngineVersion"); m_engineVersionHasBeenSet = true; } if(jsonValue.ValueExists("NotebookVersion")) { m_notebookVersion = jsonValue.GetString("NotebookVersion"); m_notebookVersionHasBeenSet = true; } if(jsonValue.ValueExists("Status")) { m_status = jsonValue.GetObject("Status"); m_statusHasBeenSet = true; } return *this; } JsonValue SessionSummary::Jsonize() const { JsonValue payload; if(m_sessionIdHasBeenSet) { payload.WithString("SessionId", m_sessionId); } if(m_descriptionHasBeenSet) { payload.WithString("Description", m_description); } if(m_engineVersionHasBeenSet) { payload.WithObject("EngineVersion", m_engineVersion.Jsonize()); } if(m_notebookVersionHasBeenSet) { payload.WithString("NotebookVersion", m_notebookVersion); } if(m_statusHasBeenSet) { payload.WithObject("Status", m_status.Jsonize()); } return payload; } } // namespace Model } // namespace Athena } // namespace Aws