/** * 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 IoTSiteWise { namespace Model { FileFormat::FileFormat() : m_csvHasBeenSet(false) { } FileFormat::FileFormat(JsonView jsonValue) : m_csvHasBeenSet(false) { *this = jsonValue; } FileFormat& FileFormat::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("csv")) { m_csv = jsonValue.GetObject("csv"); m_csvHasBeenSet = true; } return *this; } JsonValue FileFormat::Jsonize() const { JsonValue payload; if(m_csvHasBeenSet) { payload.WithObject("csv", m_csv.Jsonize()); } return payload; } } // namespace Model } // namespace IoTSiteWise } // namespace Aws