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

Complex data type for field-level encryption profiles that includes all of * the encryption entities.

See Also:

AWS * API Reference

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

Number of field pattern items in a field-level encryption content * type-profile mapping.

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

Number of field pattern items in a field-level encryption content * type-profile mapping.

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

Number of field pattern items in a field-level encryption content * type-profile mapping.

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

Number of field pattern items in a field-level encryption content * type-profile mapping.

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

An array of field patterns in a field-level encryption content type-profile * mapping.

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

An array of field patterns in a field-level encryption content type-profile * mapping.

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

An array of field patterns in a field-level encryption content type-profile * mapping.

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

An array of field patterns in a field-level encryption content type-profile * mapping.

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

An array of field patterns in a field-level encryption content type-profile * mapping.

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

An array of field patterns in a field-level encryption content type-profile * mapping.

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

An array of field patterns in a field-level encryption content type-profile * mapping.

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

An array of field patterns in a field-level encryption content type-profile * mapping.

*/ inline EncryptionEntities& AddItems(EncryptionEntity&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; } private: int m_quantity; bool m_quantityHasBeenSet = false; Aws::Vector m_items; bool m_itemsHasBeenSet = false; }; } // namespace Model } // namespace CloudFront } // namespace Aws