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

The status codes that cause an origin group to fail over.

See * Also:

AWS * API Reference

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

The list of status code values that can cause a failover to the next * origin.

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

The list of status code values that can cause a failover to the next * origin.

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

The list of status code values that can cause a failover to the next * origin.

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

The list of status code values that can cause a failover to the next * origin.

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

The list of status code values that can cause a failover to the next * origin.

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

The list of status code values that can cause a failover to the next * origin.

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

The list of status code values that can cause a failover to the next * origin.

*/ inline AwsCloudFrontDistributionOriginGroupFailoverStatusCodes& AddItems(int value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; } /** *

The number of status codes that can cause a failover.

*/ inline int GetQuantity() const{ return m_quantity; } /** *

The number of status codes that can cause a failover.

*/ inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; } /** *

The number of status codes that can cause a failover.

*/ inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; } /** *

The number of status codes that can cause a failover.

*/ inline AwsCloudFrontDistributionOriginGroupFailoverStatusCodes& WithQuantity(int value) { SetQuantity(value); return *this;} private: Aws::Vector m_items; bool m_itemsHasBeenSet = false; int m_quantity; bool m_quantityHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws