/** * 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 ServerlessApplicationRepository { namespace Model { ApplicationDependencySummary::ApplicationDependencySummary() : m_applicationIdHasBeenSet(false), m_semanticVersionHasBeenSet(false) { } ApplicationDependencySummary::ApplicationDependencySummary(JsonView jsonValue) : m_applicationIdHasBeenSet(false), m_semanticVersionHasBeenSet(false) { *this = jsonValue; } ApplicationDependencySummary& ApplicationDependencySummary::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("applicationId")) { m_applicationId = jsonValue.GetString("applicationId"); m_applicationIdHasBeenSet = true; } if(jsonValue.ValueExists("semanticVersion")) { m_semanticVersion = jsonValue.GetString("semanticVersion"); m_semanticVersionHasBeenSet = true; } return *this; } JsonValue ApplicationDependencySummary::Jsonize() const { JsonValue payload; if(m_applicationIdHasBeenSet) { payload.WithString("applicationId", m_applicationId); } if(m_semanticVersionHasBeenSet) { payload.WithString("semanticVersion", m_semanticVersion); } return payload; } } // namespace Model } // namespace ServerlessApplicationRepository } // namespace Aws