/** * 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 { PreparedStatementSummary::PreparedStatementSummary() : m_statementNameHasBeenSet(false), m_lastModifiedTimeHasBeenSet(false) { } PreparedStatementSummary::PreparedStatementSummary(JsonView jsonValue) : m_statementNameHasBeenSet(false), m_lastModifiedTimeHasBeenSet(false) { *this = jsonValue; } PreparedStatementSummary& PreparedStatementSummary::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("StatementName")) { m_statementName = jsonValue.GetString("StatementName"); m_statementNameHasBeenSet = true; } if(jsonValue.ValueExists("LastModifiedTime")) { m_lastModifiedTime = jsonValue.GetDouble("LastModifiedTime"); m_lastModifiedTimeHasBeenSet = true; } return *this; } JsonValue PreparedStatementSummary::Jsonize() const { JsonValue payload; if(m_statementNameHasBeenSet) { payload.WithString("StatementName", m_statementName); } if(m_lastModifiedTimeHasBeenSet) { payload.WithDouble("LastModifiedTime", m_lastModifiedTime.SecondsWithMSPrecision()); } return payload; } } // namespace Model } // namespace Athena } // namespace Aws