/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/codepipeline/model/InputArtifact.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace CodePipeline { namespace Model { InputArtifact::InputArtifact() : m_nameHasBeenSet(false) { } InputArtifact::InputArtifact(JsonView jsonValue) : m_nameHasBeenSet(false) { *this = jsonValue; } InputArtifact& InputArtifact::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("name")) { m_name = jsonValue.GetString("name"); m_nameHasBeenSet = true; } return *this; } JsonValue InputArtifact::Jsonize() const { JsonValue payload; if(m_nameHasBeenSet) { payload.WithString("name", m_name); } return payload; } } // namespace Model } // namespace CodePipeline } // namespace Aws