/** * 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 complex type that lists the AWS accounts, if any, that you included in the * TrustedSigners complex type for this distribution. These are the * accounts that you want to allow to create signed URLs for private content.

*

The Signer complex type lists the AWS account number of the * trusted signer or self if the signer is the AWS account that * created the distribution. The Signer element also includes the IDs * of any active CloudFront key pairs that are associated with the trusted signer's * AWS account. If no KeyPairId element appears for a * Signer, that signer can't create signed URLs.

For more * information, see Serving * Private Content through CloudFront in the Amazon CloudFront Developer * Guide.

See Also:

AWS * API Reference

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

Enabled is true if any of the AWS accounts listed in the * TrustedSigners complex type for this distribution have active * CloudFront key pairs. If not, Enabled is false.

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

Enabled is true if any of the AWS accounts listed in the * TrustedSigners complex type for this distribution have active * CloudFront key pairs. If not, Enabled is false.

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

Enabled is true if any of the AWS accounts listed in the * TrustedSigners complex type for this distribution have active * CloudFront key pairs. If not, Enabled is false.

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

Enabled is true if any of the AWS accounts listed in the * TrustedSigners complex type for this distribution have active * CloudFront key pairs. If not, Enabled is false.

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

The number of trusted signers specified in the TrustedSigners * complex type.

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

The number of trusted signers specified in the TrustedSigners * complex type.

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

The number of trusted signers specified in the TrustedSigners * complex type.

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

The number of trusted signers specified in the TrustedSigners * complex type.

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

A complex type that contains one Signer complex type for each * trusted signer that is specified in the TrustedSigners complex * type.

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

A complex type that contains one Signer complex type for each * trusted signer that is specified in the TrustedSigners complex * type.

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

A complex type that contains one Signer complex type for each * trusted signer that is specified in the TrustedSigners complex * type.

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

A complex type that contains one Signer complex type for each * trusted signer that is specified in the TrustedSigners complex * type.

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

A complex type that contains one Signer complex type for each * trusted signer that is specified in the TrustedSigners complex * type.

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

A complex type that contains one Signer complex type for each * trusted signer that is specified in the TrustedSigners complex * type.

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

A complex type that contains one Signer complex type for each * trusted signer that is specified in the TrustedSigners complex * type.

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

A complex type that contains one Signer complex type for each * trusted signer that is specified in the TrustedSigners complex * type.

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