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

109 lines
2.0 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/securityhub/model/AwsCloudFrontDistributionLogging.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
{
AwsCloudFrontDistributionLogging::AwsCloudFrontDistributionLogging() :
m_bucketHasBeenSet(false),
m_enabled(false),
m_enabledHasBeenSet(false),
m_includeCookies(false),
m_includeCookiesHasBeenSet(false),
m_prefixHasBeenSet(false)
{
}
AwsCloudFrontDistributionLogging::AwsCloudFrontDistributionLogging(JsonView jsonValue) :
m_bucketHasBeenSet(false),
m_enabled(false),
m_enabledHasBeenSet(false),
m_includeCookies(false),
m_includeCookiesHasBeenSet(false),
m_prefixHasBeenSet(false)
{
*this = jsonValue;
}
AwsCloudFrontDistributionLogging& AwsCloudFrontDistributionLogging::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Bucket"))
{
m_bucket = jsonValue.GetString("Bucket");
m_bucketHasBeenSet = true;
}
if(jsonValue.ValueExists("Enabled"))
{
m_enabled = jsonValue.GetBool("Enabled");
m_enabledHasBeenSet = true;
}
if(jsonValue.ValueExists("IncludeCookies"))
{
m_includeCookies = jsonValue.GetBool("IncludeCookies");
m_includeCookiesHasBeenSet = true;
}
if(jsonValue.ValueExists("Prefix"))
{
m_prefix = jsonValue.GetString("Prefix");
m_prefixHasBeenSet = true;
}
return *this;
}
JsonValue AwsCloudFrontDistributionLogging::Jsonize() const
{
JsonValue payload;
if(m_bucketHasBeenSet)
{
payload.WithString("Bucket", m_bucket);
}
if(m_enabledHasBeenSet)
{
payload.WithBool("Enabled", m_enabled);
}
if(m_includeCookiesHasBeenSet)
{
payload.WithBool("IncludeCookies", m_includeCookies);
}
if(m_prefixHasBeenSet)
{
payload.WithString("Prefix", m_prefix);
}
return payload;
}
} // namespace Model
} // namespace SecurityHub
} // namespace Aws