/** * 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 CodeArtifact { namespace Model { LicenseInfo::LicenseInfo() : m_nameHasBeenSet(false), m_urlHasBeenSet(false) { } LicenseInfo::LicenseInfo(JsonView jsonValue) : m_nameHasBeenSet(false), m_urlHasBeenSet(false) { *this = jsonValue; } LicenseInfo& LicenseInfo::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("name")) { m_name = jsonValue.GetString("name"); m_nameHasBeenSet = true; } if(jsonValue.ValueExists("url")) { m_url = jsonValue.GetString("url"); m_urlHasBeenSet = true; } return *this; } JsonValue LicenseInfo::Jsonize() const { JsonValue payload; if(m_nameHasBeenSet) { payload.WithString("name", m_name); } if(m_urlHasBeenSet) { payload.WithString("url", m_url); } return payload; } } // namespace Model } // namespace CodeArtifact } // namespace Aws