/** * 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 RDSDataService { namespace Model { ResultSetOptions::ResultSetOptions() : m_decimalReturnType(DecimalReturnType::NOT_SET), m_decimalReturnTypeHasBeenSet(false), m_longReturnType(LongReturnType::NOT_SET), m_longReturnTypeHasBeenSet(false) { } ResultSetOptions::ResultSetOptions(JsonView jsonValue) : m_decimalReturnType(DecimalReturnType::NOT_SET), m_decimalReturnTypeHasBeenSet(false), m_longReturnType(LongReturnType::NOT_SET), m_longReturnTypeHasBeenSet(false) { *this = jsonValue; } ResultSetOptions& ResultSetOptions::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("decimalReturnType")) { m_decimalReturnType = DecimalReturnTypeMapper::GetDecimalReturnTypeForName(jsonValue.GetString("decimalReturnType")); m_decimalReturnTypeHasBeenSet = true; } if(jsonValue.ValueExists("longReturnType")) { m_longReturnType = LongReturnTypeMapper::GetLongReturnTypeForName(jsonValue.GetString("longReturnType")); m_longReturnTypeHasBeenSet = true; } return *this; } JsonValue ResultSetOptions::Jsonize() const { JsonValue payload; if(m_decimalReturnTypeHasBeenSet) { payload.WithString("decimalReturnType", DecimalReturnTypeMapper::GetNameForDecimalReturnType(m_decimalReturnType)); } if(m_longReturnTypeHasBeenSet) { payload.WithString("longReturnType", LongReturnTypeMapper::GetNameForLongReturnType(m_longReturnType)); } return payload; } } // namespace Model } // namespace RDSDataService } // namespace Aws