/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include 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