/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

Provides information about caching for the CloudFront * distribution.

See Also:

AWS * API Reference

*/ class AwsCloudFrontDistributionCacheBehaviors { public: AWS_SECURITYHUB_API AwsCloudFrontDistributionCacheBehaviors(); AWS_SECURITYHUB_API AwsCloudFrontDistributionCacheBehaviors(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsCloudFrontDistributionCacheBehaviors& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The cache behaviors for the distribution.

*/ inline const Aws::Vector& GetItems() const{ return m_items; } /** *

The cache behaviors for the distribution.

*/ inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; } /** *

The cache behaviors for the distribution.

*/ inline void SetItems(const Aws::Vector& value) { m_itemsHasBeenSet = true; m_items = value; } /** *

The cache behaviors for the distribution.

*/ inline void SetItems(Aws::Vector&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); } /** *

The cache behaviors for the distribution.

*/ inline AwsCloudFrontDistributionCacheBehaviors& WithItems(const Aws::Vector& value) { SetItems(value); return *this;} /** *

The cache behaviors for the distribution.

*/ inline AwsCloudFrontDistributionCacheBehaviors& WithItems(Aws::Vector&& value) { SetItems(std::move(value)); return *this;} /** *

The cache behaviors for the distribution.

*/ inline AwsCloudFrontDistributionCacheBehaviors& AddItems(const AwsCloudFrontDistributionCacheBehavior& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; } /** *

The cache behaviors for the distribution.

*/ inline AwsCloudFrontDistributionCacheBehaviors& AddItems(AwsCloudFrontDistributionCacheBehavior&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; } private: Aws::Vector m_items; bool m_itemsHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws