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/ContainerDetails.cpp

105 lines
1.8 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/securityhub/model/ContainerDetails.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
{
ContainerDetails::ContainerDetails() :
m_nameHasBeenSet(false),
m_imageIdHasBeenSet(false),
m_imageNameHasBeenSet(false),
m_launchedAtHasBeenSet(false)
{
}
ContainerDetails::ContainerDetails(JsonView jsonValue) :
m_nameHasBeenSet(false),
m_imageIdHasBeenSet(false),
m_imageNameHasBeenSet(false),
m_launchedAtHasBeenSet(false)
{
*this = jsonValue;
}
ContainerDetails& ContainerDetails::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Name"))
{
m_name = jsonValue.GetString("Name");
m_nameHasBeenSet = true;
}
if(jsonValue.ValueExists("ImageId"))
{
m_imageId = jsonValue.GetString("ImageId");
m_imageIdHasBeenSet = true;
}
if(jsonValue.ValueExists("ImageName"))
{
m_imageName = jsonValue.GetString("ImageName");
m_imageNameHasBeenSet = true;
}
if(jsonValue.ValueExists("LaunchedAt"))
{
m_launchedAt = jsonValue.GetString("LaunchedAt");
m_launchedAtHasBeenSet = true;
}
return *this;
}
JsonValue ContainerDetails::Jsonize() const
{
JsonValue payload;
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
if(m_imageIdHasBeenSet)
{
payload.WithString("ImageId", m_imageId);
}
if(m_imageNameHasBeenSet)
{
payload.WithString("ImageName", m_imageName);
}
if(m_launchedAtHasBeenSet)
{
payload.WithString("LaunchedAt", m_launchedAt);
}
return payload;
}
} // namespace Model
} // namespace SecurityHub
} // namespace Aws