/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace CloudFront { namespace Model { /** *

A list of key groups whose public keys CloudFront can use to verify the * signatures of signed URLs and signed cookies.

See Also:

AWS * API Reference

*/ class TrustedKeyGroups { public: AWS_CLOUDFRONT_API TrustedKeyGroups(); AWS_CLOUDFRONT_API TrustedKeyGroups(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDFRONT_API TrustedKeyGroups& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

This field is true if any of the key groups in the list have * public keys that CloudFront can use to verify the signatures of signed URLs and * signed cookies. If not, this field is false.

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

This field is true if any of the key groups in the list have * public keys that CloudFront can use to verify the signatures of signed URLs and * signed cookies. If not, this field is false.

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

This field is true if any of the key groups in the list have * public keys that CloudFront can use to verify the signatures of signed URLs and * signed cookies. If not, this field is false.

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

This field is true if any of the key groups in the list have * public keys that CloudFront can use to verify the signatures of signed URLs and * signed cookies. If not, this field is false.

*/ inline TrustedKeyGroups& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *

The number of key groups in the list.

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

The number of key groups in the list.

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

The number of key groups in the list.

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

The number of key groups in the list.

*/ inline TrustedKeyGroups& WithQuantity(int value) { SetQuantity(value); return *this;} /** *

A list of key groups identifiers.

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

A list of key groups identifiers.

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

A list of key groups identifiers.

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

A list of key groups identifiers.

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

A list of key groups identifiers.

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

A list of key groups identifiers.

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

A list of key groups identifiers.

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

A list of key groups identifiers.

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

A list of key groups identifiers.

*/ inline TrustedKeyGroups& AddItems(const char* value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; } private: bool m_enabled; bool m_enabledHasBeenSet = false; int m_quantity; bool m_quantityHasBeenSet = false; Aws::Vector m_items; bool m_itemsHasBeenSet = false; }; } // namespace Model } // namespace CloudFront } // namespace Aws