/** * 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 SageMakerGeospatial { namespace Model { InputConfigInput::InputConfigInput() : m_previousEarthObservationJobArnHasBeenSet(false), m_rasterDataCollectionQueryHasBeenSet(false) { } InputConfigInput::InputConfigInput(JsonView jsonValue) : m_previousEarthObservationJobArnHasBeenSet(false), m_rasterDataCollectionQueryHasBeenSet(false) { *this = jsonValue; } InputConfigInput& InputConfigInput::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("PreviousEarthObservationJobArn")) { m_previousEarthObservationJobArn = jsonValue.GetString("PreviousEarthObservationJobArn"); m_previousEarthObservationJobArnHasBeenSet = true; } if(jsonValue.ValueExists("RasterDataCollectionQuery")) { m_rasterDataCollectionQuery = jsonValue.GetObject("RasterDataCollectionQuery"); m_rasterDataCollectionQueryHasBeenSet = true; } return *this; } JsonValue InputConfigInput::Jsonize() const { JsonValue payload; if(m_previousEarthObservationJobArnHasBeenSet) { payload.WithString("PreviousEarthObservationJobArn", m_previousEarthObservationJobArn); } if(m_rasterDataCollectionQueryHasBeenSet) { payload.WithObject("RasterDataCollectionQuery", m_rasterDataCollectionQuery.Jsonize()); } return payload; } } // namespace Model } // namespace SageMakerGeospatial } // namespace Aws