/** * 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 LookoutMetrics { namespace Model { DetectedMetricSource::DetectedMetricSource() : m_s3SourceConfigHasBeenSet(false) { } DetectedMetricSource::DetectedMetricSource(JsonView jsonValue) : m_s3SourceConfigHasBeenSet(false) { *this = jsonValue; } DetectedMetricSource& DetectedMetricSource::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("S3SourceConfig")) { m_s3SourceConfig = jsonValue.GetObject("S3SourceConfig"); m_s3SourceConfigHasBeenSet = true; } return *this; } JsonValue DetectedMetricSource::Jsonize() const { JsonValue payload; if(m_s3SourceConfigHasBeenSet) { payload.WithObject("S3SourceConfig", m_s3SourceConfig.Jsonize()); } return payload; } } // namespace Model } // namespace LookoutMetrics } // namespace Aws