/** * 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 ForecastService { namespace Model { DatasetGroupSummary::DatasetGroupSummary() : m_datasetGroupArnHasBeenSet(false), m_datasetGroupNameHasBeenSet(false), m_creationTimeHasBeenSet(false), m_lastModificationTimeHasBeenSet(false) { } DatasetGroupSummary::DatasetGroupSummary(JsonView jsonValue) : m_datasetGroupArnHasBeenSet(false), m_datasetGroupNameHasBeenSet(false), m_creationTimeHasBeenSet(false), m_lastModificationTimeHasBeenSet(false) { *this = jsonValue; } DatasetGroupSummary& DatasetGroupSummary::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("DatasetGroupArn")) { m_datasetGroupArn = jsonValue.GetString("DatasetGroupArn"); m_datasetGroupArnHasBeenSet = true; } if(jsonValue.ValueExists("DatasetGroupName")) { m_datasetGroupName = jsonValue.GetString("DatasetGroupName"); m_datasetGroupNameHasBeenSet = true; } if(jsonValue.ValueExists("CreationTime")) { m_creationTime = jsonValue.GetDouble("CreationTime"); m_creationTimeHasBeenSet = true; } if(jsonValue.ValueExists("LastModificationTime")) { m_lastModificationTime = jsonValue.GetDouble("LastModificationTime"); m_lastModificationTimeHasBeenSet = true; } return *this; } JsonValue DatasetGroupSummary::Jsonize() const { JsonValue payload; if(m_datasetGroupArnHasBeenSet) { payload.WithString("DatasetGroupArn", m_datasetGroupArn); } if(m_datasetGroupNameHasBeenSet) { payload.WithString("DatasetGroupName", m_datasetGroupName); } if(m_creationTimeHasBeenSet) { payload.WithDouble("CreationTime", m_creationTime.SecondsWithMSPrecision()); } if(m_lastModificationTimeHasBeenSet) { payload.WithDouble("LastModificationTime", m_lastModificationTime.SecondsWithMSPrecision()); } return payload; } } // namespace Model } // namespace ForecastService } // namespace Aws