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-securityhub/source/model/AwsCodeBuildProjectEnvironment.cpp

105 lines
2.2 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/securityhub/model/AwsCodeBuildProjectEnvironment.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace SecurityHub
{
namespace Model
{
AwsCodeBuildProjectEnvironment::AwsCodeBuildProjectEnvironment() :
m_certificateHasBeenSet(false),
m_imagePullCredentialsTypeHasBeenSet(false),
m_registryCredentialHasBeenSet(false),
m_typeHasBeenSet(false)
{
}
AwsCodeBuildProjectEnvironment::AwsCodeBuildProjectEnvironment(JsonView jsonValue) :
m_certificateHasBeenSet(false),
m_imagePullCredentialsTypeHasBeenSet(false),
m_registryCredentialHasBeenSet(false),
m_typeHasBeenSet(false)
{
*this = jsonValue;
}
AwsCodeBuildProjectEnvironment& AwsCodeBuildProjectEnvironment::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Certificate"))
{
m_certificate = jsonValue.GetString("Certificate");
m_certificateHasBeenSet = true;
}
if(jsonValue.ValueExists("ImagePullCredentialsType"))
{
m_imagePullCredentialsType = jsonValue.GetString("ImagePullCredentialsType");
m_imagePullCredentialsTypeHasBeenSet = true;
}
if(jsonValue.ValueExists("RegistryCredential"))
{
m_registryCredential = jsonValue.GetObject("RegistryCredential");
m_registryCredentialHasBeenSet = true;
}
if(jsonValue.ValueExists("Type"))
{
m_type = jsonValue.GetString("Type");
m_typeHasBeenSet = true;
}
return *this;
}
JsonValue AwsCodeBuildProjectEnvironment::Jsonize() const
{
JsonValue payload;
if(m_certificateHasBeenSet)
{
payload.WithString("Certificate", m_certificate);
}
if(m_imagePullCredentialsTypeHasBeenSet)
{
payload.WithString("ImagePullCredentialsType", m_imagePullCredentialsType);
}
if(m_registryCredentialHasBeenSet)
{
payload.WithObject("RegistryCredential", m_registryCredential.Jsonize());
}
if(m_typeHasBeenSet)
{
payload.WithString("Type", m_type);
}
return payload;
}
} // namespace Model
} // namespace SecurityHub
} // namespace Aws