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

92 lines
1.7 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/securityhub/model/AwsIamPolicyVersion.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
{
AwsIamPolicyVersion::AwsIamPolicyVersion() :
m_versionIdHasBeenSet(false),
m_isDefaultVersion(false),
m_isDefaultVersionHasBeenSet(false),
m_createDateHasBeenSet(false)
{
}
AwsIamPolicyVersion::AwsIamPolicyVersion(JsonView jsonValue) :
m_versionIdHasBeenSet(false),
m_isDefaultVersion(false),
m_isDefaultVersionHasBeenSet(false),
m_createDateHasBeenSet(false)
{
*this = jsonValue;
}
AwsIamPolicyVersion& AwsIamPolicyVersion::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("VersionId"))
{
m_versionId = jsonValue.GetString("VersionId");
m_versionIdHasBeenSet = true;
}
if(jsonValue.ValueExists("IsDefaultVersion"))
{
m_isDefaultVersion = jsonValue.GetBool("IsDefaultVersion");
m_isDefaultVersionHasBeenSet = true;
}
if(jsonValue.ValueExists("CreateDate"))
{
m_createDate = jsonValue.GetString("CreateDate");
m_createDateHasBeenSet = true;
}
return *this;
}
JsonValue AwsIamPolicyVersion::Jsonize() const
{
JsonValue payload;
if(m_versionIdHasBeenSet)
{
payload.WithString("VersionId", m_versionId);
}
if(m_isDefaultVersionHasBeenSet)
{
payload.WithBool("IsDefaultVersion", m_isDefaultVersion);
}
if(m_createDateHasBeenSet)
{
payload.WithString("CreateDate", m_createDate);
}
return payload;
}
} // namespace Model
} // namespace SecurityHub
} // namespace Aws