/** * 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 { /** *

A complex type that contains information about origins and origin groups for * this CloudFront distribution.

See Also:

AWS * API Reference

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

A complex type that contains origins or origin groups for this * distribution.

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

A complex type that contains origins or origin groups for this * distribution.

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

A complex type that contains origins or origin groups for this * distribution.

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

A complex type that contains origins or origin groups for this * distribution.

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

A complex type that contains origins or origin groups for this * distribution.

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

A complex type that contains origins or origin groups for this * distribution.

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

A complex type that contains origins or origin groups for this * distribution.

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

A complex type that contains origins or origin groups for this * distribution.

*/ inline AwsCloudFrontDistributionOrigins& AddItems(AwsCloudFrontDistributionOriginItem&& 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