This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-codeguru-reviewer/source/model/ThirdPartySourceRepository.cpp

90 lines
1.6 KiB
C++

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