75 lines
1.5 KiB
C++
75 lines
1.5 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/serverlessrepo/model/ApplicationDependencySummary.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
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
|