/** * 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 the SSL/TLS protocols that * CloudFront can use when establishing an HTTPS connection with your origin. *

See Also:

AWS * API Reference

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

A list that contains allowed SSL/TLS protocols for this distribution.

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

A list that contains allowed SSL/TLS protocols for this distribution.

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

A list that contains allowed SSL/TLS protocols for this distribution.

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

A list that contains allowed SSL/TLS protocols for this distribution.

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

A list that contains allowed SSL/TLS protocols for this distribution.

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

A list that contains allowed SSL/TLS protocols for this distribution.

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

A list that contains allowed SSL/TLS protocols for this distribution.

*/ inline AwsCloudFrontDistributionOriginSslProtocols& AddItems(const Aws::String& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; } /** *

A list that contains allowed SSL/TLS protocols for this distribution.

*/ inline AwsCloudFrontDistributionOriginSslProtocols& AddItems(Aws::String&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; } /** *

A list that contains allowed SSL/TLS protocols for this distribution.

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

The number of SSL/TLS protocols that you want to allow CloudFront to use when * establishing an HTTPS connection with this origin.

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

The number of SSL/TLS protocols that you want to allow CloudFront to use when * establishing an HTTPS connection with this origin.

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

The number of SSL/TLS protocols that you want to allow CloudFront to use when * establishing an HTTPS connection with this origin.

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

The number of SSL/TLS protocols that you want to allow CloudFront to use when * establishing an HTTPS connection with this origin.

*/ inline AwsCloudFrontDistributionOriginSslProtocols& 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