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

60 lines
1.0 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/securityhub/model/AwsIamUserPolicy.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
{
AwsIamUserPolicy::AwsIamUserPolicy() :
m_policyNameHasBeenSet(false)
{
}
AwsIamUserPolicy::AwsIamUserPolicy(JsonView jsonValue) :
m_policyNameHasBeenSet(false)
{
*this = jsonValue;
}
AwsIamUserPolicy& AwsIamUserPolicy::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("PolicyName"))
{
m_policyName = jsonValue.GetString("PolicyName");
m_policyNameHasBeenSet = true;
}
return *this;
}
JsonValue AwsIamUserPolicy::Jsonize() const
{
JsonValue payload;
if(m_policyNameHasBeenSet)
{
payload.WithString("PolicyName", m_policyName);
}
return payload;
}
} // namespace Model
} // namespace SecurityHub
} // namespace Aws