/** * 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 SageMaker { namespace Model { ActionSource::ActionSource() : m_sourceUriHasBeenSet(false), m_sourceTypeHasBeenSet(false), m_sourceIdHasBeenSet(false) { } ActionSource::ActionSource(JsonView jsonValue) : m_sourceUriHasBeenSet(false), m_sourceTypeHasBeenSet(false), m_sourceIdHasBeenSet(false) { *this = jsonValue; } ActionSource& ActionSource::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("SourceUri")) { m_sourceUri = jsonValue.GetString("SourceUri"); m_sourceUriHasBeenSet = true; } if(jsonValue.ValueExists("SourceType")) { m_sourceType = jsonValue.GetString("SourceType"); m_sourceTypeHasBeenSet = true; } if(jsonValue.ValueExists("SourceId")) { m_sourceId = jsonValue.GetString("SourceId"); m_sourceIdHasBeenSet = true; } return *this; } JsonValue ActionSource::Jsonize() const { JsonValue payload; if(m_sourceUriHasBeenSet) { payload.WithString("SourceUri", m_sourceUri); } if(m_sourceTypeHasBeenSet) { payload.WithString("SourceType", m_sourceType); } if(m_sourceIdHasBeenSet) { payload.WithString("SourceId", m_sourceId); } return payload; } } // namespace Model } // namespace SageMaker } // namespace Aws