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

A distribution tells CloudFront where you want content to be delivered from, * and the details about how to track and manage content delivery.

See * Also:

AWS * API Reference

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

The distribution's identifier. For example: E1U5RQF7T870K0.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The distribution's identifier. For example: E1U5RQF7T870K0.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The distribution's identifier. For example: E1U5RQF7T870K0.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The distribution's identifier. For example: E1U5RQF7T870K0.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The distribution's identifier. For example: E1U5RQF7T870K0.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The distribution's identifier. For example: E1U5RQF7T870K0.

*/ inline Distribution& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The distribution's identifier. For example: E1U5RQF7T870K0.

*/ inline Distribution& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The distribution's identifier. For example: E1U5RQF7T870K0.

*/ inline Distribution& WithId(const char* value) { SetId(value); return *this;} /** *

The distribution's Amazon Resource Name (ARN).

*/ inline const Aws::String& GetARN() const{ return m_aRN; } /** *

The distribution's Amazon Resource Name (ARN).

*/ inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; } /** *

The distribution's Amazon Resource Name (ARN).

*/ inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; } /** *

The distribution's Amazon Resource Name (ARN).

*/ inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); } /** *

The distribution's Amazon Resource Name (ARN).

*/ inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); } /** *

The distribution's Amazon Resource Name (ARN).

*/ inline Distribution& WithARN(const Aws::String& value) { SetARN(value); return *this;} /** *

The distribution's Amazon Resource Name (ARN).

*/ inline Distribution& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;} /** *

The distribution's Amazon Resource Name (ARN).

*/ inline Distribution& WithARN(const char* value) { SetARN(value); return *this;} /** *

The distribution's status. When the status is Deployed, the * distribution's information is fully propagated to all CloudFront edge * locations.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The distribution's status. When the status is Deployed, the * distribution's information is fully propagated to all CloudFront edge * locations.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The distribution's status. When the status is Deployed, the * distribution's information is fully propagated to all CloudFront edge * locations.

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The distribution's status. When the status is Deployed, the * distribution's information is fully propagated to all CloudFront edge * locations.

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The distribution's status. When the status is Deployed, the * distribution's information is fully propagated to all CloudFront edge * locations.

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The distribution's status. When the status is Deployed, the * distribution's information is fully propagated to all CloudFront edge * locations.

*/ inline Distribution& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The distribution's status. When the status is Deployed, the * distribution's information is fully propagated to all CloudFront edge * locations.

*/ inline Distribution& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The distribution's status. When the status is Deployed, the * distribution's information is fully propagated to all CloudFront edge * locations.

*/ inline Distribution& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

The date and time when the distribution was last modified.

*/ inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } /** *

The date and time when the distribution was last modified.

*/ inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; } /** *

The date and time when the distribution was last modified.

*/ inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; } /** *

The date and time when the distribution was last modified.

*/ inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); } /** *

The date and time when the distribution was last modified.

*/ inline Distribution& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} /** *

The date and time when the distribution was last modified.

*/ inline Distribution& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} /** *

The number of invalidation batches currently in progress.

*/ inline int GetInProgressInvalidationBatches() const{ return m_inProgressInvalidationBatches; } /** *

The number of invalidation batches currently in progress.

*/ inline bool InProgressInvalidationBatchesHasBeenSet() const { return m_inProgressInvalidationBatchesHasBeenSet; } /** *

The number of invalidation batches currently in progress.

*/ inline void SetInProgressInvalidationBatches(int value) { m_inProgressInvalidationBatchesHasBeenSet = true; m_inProgressInvalidationBatches = value; } /** *

The number of invalidation batches currently in progress.

*/ inline Distribution& WithInProgressInvalidationBatches(int value) { SetInProgressInvalidationBatches(value); return *this;} /** *

The distribution's CloudFront domain name. For example: * d111111abcdef8.cloudfront.net.

*/ inline const Aws::String& GetDomainName() const{ return m_domainName; } /** *

The distribution's CloudFront domain name. For example: * d111111abcdef8.cloudfront.net.

*/ inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; } /** *

The distribution's CloudFront domain name. For example: * d111111abcdef8.cloudfront.net.

*/ inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; } /** *

The distribution's CloudFront domain name. For example: * d111111abcdef8.cloudfront.net.

*/ inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); } /** *

The distribution's CloudFront domain name. For example: * d111111abcdef8.cloudfront.net.

*/ inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); } /** *

The distribution's CloudFront domain name. For example: * d111111abcdef8.cloudfront.net.

*/ inline Distribution& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;} /** *

The distribution's CloudFront domain name. For example: * d111111abcdef8.cloudfront.net.

*/ inline Distribution& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;} /** *

The distribution's CloudFront domain name. For example: * d111111abcdef8.cloudfront.net.

*/ inline Distribution& WithDomainName(const char* value) { SetDomainName(value); return *this;} /** *

We recommend using TrustedKeyGroups instead of * TrustedSigners.

This field contains a list of * Amazon Web Services account IDs and the active CloudFront key pairs in each * account that CloudFront can use to verify the signatures of signed URLs or * signed cookies.

*/ inline const ActiveTrustedSigners& GetActiveTrustedSigners() const{ return m_activeTrustedSigners; } /** *

We recommend using TrustedKeyGroups instead of * TrustedSigners.

This field contains a list of * Amazon Web Services account IDs and the active CloudFront key pairs in each * account that CloudFront can use to verify the signatures of signed URLs or * signed cookies.

*/ inline bool ActiveTrustedSignersHasBeenSet() const { return m_activeTrustedSignersHasBeenSet; } /** *

We recommend using TrustedKeyGroups instead of * TrustedSigners.

This field contains a list of * Amazon Web Services account IDs and the active CloudFront key pairs in each * account that CloudFront can use to verify the signatures of signed URLs or * signed cookies.

*/ inline void SetActiveTrustedSigners(const ActiveTrustedSigners& value) { m_activeTrustedSignersHasBeenSet = true; m_activeTrustedSigners = value; } /** *

We recommend using TrustedKeyGroups instead of * TrustedSigners.

This field contains a list of * Amazon Web Services account IDs and the active CloudFront key pairs in each * account that CloudFront can use to verify the signatures of signed URLs or * signed cookies.

*/ inline void SetActiveTrustedSigners(ActiveTrustedSigners&& value) { m_activeTrustedSignersHasBeenSet = true; m_activeTrustedSigners = std::move(value); } /** *

We recommend using TrustedKeyGroups instead of * TrustedSigners.

This field contains a list of * Amazon Web Services account IDs and the active CloudFront key pairs in each * account that CloudFront can use to verify the signatures of signed URLs or * signed cookies.

*/ inline Distribution& WithActiveTrustedSigners(const ActiveTrustedSigners& value) { SetActiveTrustedSigners(value); return *this;} /** *

We recommend using TrustedKeyGroups instead of * TrustedSigners.

This field contains a list of * Amazon Web Services account IDs and the active CloudFront key pairs in each * account that CloudFront can use to verify the signatures of signed URLs or * signed cookies.

*/ inline Distribution& WithActiveTrustedSigners(ActiveTrustedSigners&& value) { SetActiveTrustedSigners(std::move(value)); return *this;} /** *

This field contains a list of key groups and the public keys in each key * group that CloudFront can use to verify the signatures of signed URLs or signed * cookies.

*/ inline const ActiveTrustedKeyGroups& GetActiveTrustedKeyGroups() const{ return m_activeTrustedKeyGroups; } /** *

This field contains a list of key groups and the public keys in each key * group that CloudFront can use to verify the signatures of signed URLs or signed * cookies.

*/ inline bool ActiveTrustedKeyGroupsHasBeenSet() const { return m_activeTrustedKeyGroupsHasBeenSet; } /** *

This field contains a list of key groups and the public keys in each key * group that CloudFront can use to verify the signatures of signed URLs or signed * cookies.

*/ inline void SetActiveTrustedKeyGroups(const ActiveTrustedKeyGroups& value) { m_activeTrustedKeyGroupsHasBeenSet = true; m_activeTrustedKeyGroups = value; } /** *

This field contains a list of key groups and the public keys in each key * group that CloudFront can use to verify the signatures of signed URLs or signed * cookies.

*/ inline void SetActiveTrustedKeyGroups(ActiveTrustedKeyGroups&& value) { m_activeTrustedKeyGroupsHasBeenSet = true; m_activeTrustedKeyGroups = std::move(value); } /** *

This field contains a list of key groups and the public keys in each key * group that CloudFront can use to verify the signatures of signed URLs or signed * cookies.

*/ inline Distribution& WithActiveTrustedKeyGroups(const ActiveTrustedKeyGroups& value) { SetActiveTrustedKeyGroups(value); return *this;} /** *

This field contains a list of key groups and the public keys in each key * group that CloudFront can use to verify the signatures of signed URLs or signed * cookies.

*/ inline Distribution& WithActiveTrustedKeyGroups(ActiveTrustedKeyGroups&& value) { SetActiveTrustedKeyGroups(std::move(value)); return *this;} /** *

The distribution's configuration.

*/ inline const DistributionConfig& GetDistributionConfig() const{ return m_distributionConfig; } /** *

The distribution's configuration.

*/ inline bool DistributionConfigHasBeenSet() const { return m_distributionConfigHasBeenSet; } /** *

The distribution's configuration.

*/ inline void SetDistributionConfig(const DistributionConfig& value) { m_distributionConfigHasBeenSet = true; m_distributionConfig = value; } /** *

The distribution's configuration.

*/ inline void SetDistributionConfig(DistributionConfig&& value) { m_distributionConfigHasBeenSet = true; m_distributionConfig = std::move(value); } /** *

The distribution's configuration.

*/ inline Distribution& WithDistributionConfig(const DistributionConfig& value) { SetDistributionConfig(value); return *this;} /** *

The distribution's configuration.

*/ inline Distribution& WithDistributionConfig(DistributionConfig&& value) { SetDistributionConfig(std::move(value)); return *this;} /** *

Amazon Web Services services in China customers must file for an Internet * Content Provider (ICP) recordal if they want to serve content publicly on an * alternate domain name, also known as a CNAME, that they've added to CloudFront. * AliasICPRecordal provides the ICP recordal status for CNAMEs associated with * distributions.

For more information about ICP recordals, see * Signup, Accounts, and Credentials in Getting Started with Amazon Web * Services services in China.

*/ inline const Aws::Vector& GetAliasICPRecordals() const{ return m_aliasICPRecordals; } /** *

Amazon Web Services services in China customers must file for an Internet * Content Provider (ICP) recordal if they want to serve content publicly on an * alternate domain name, also known as a CNAME, that they've added to CloudFront. * AliasICPRecordal provides the ICP recordal status for CNAMEs associated with * distributions.

For more information about ICP recordals, see * Signup, Accounts, and Credentials in Getting Started with Amazon Web * Services services in China.

*/ inline bool AliasICPRecordalsHasBeenSet() const { return m_aliasICPRecordalsHasBeenSet; } /** *

Amazon Web Services services in China customers must file for an Internet * Content Provider (ICP) recordal if they want to serve content publicly on an * alternate domain name, also known as a CNAME, that they've added to CloudFront. * AliasICPRecordal provides the ICP recordal status for CNAMEs associated with * distributions.

For more information about ICP recordals, see * Signup, Accounts, and Credentials in Getting Started with Amazon Web * Services services in China.

*/ inline void SetAliasICPRecordals(const Aws::Vector& value) { m_aliasICPRecordalsHasBeenSet = true; m_aliasICPRecordals = value; } /** *

Amazon Web Services services in China customers must file for an Internet * Content Provider (ICP) recordal if they want to serve content publicly on an * alternate domain name, also known as a CNAME, that they've added to CloudFront. * AliasICPRecordal provides the ICP recordal status for CNAMEs associated with * distributions.

For more information about ICP recordals, see * Signup, Accounts, and Credentials in Getting Started with Amazon Web * Services services in China.

*/ inline void SetAliasICPRecordals(Aws::Vector&& value) { m_aliasICPRecordalsHasBeenSet = true; m_aliasICPRecordals = std::move(value); } /** *

Amazon Web Services services in China customers must file for an Internet * Content Provider (ICP) recordal if they want to serve content publicly on an * alternate domain name, also known as a CNAME, that they've added to CloudFront. * AliasICPRecordal provides the ICP recordal status for CNAMEs associated with * distributions.

For more information about ICP recordals, see * Signup, Accounts, and Credentials in Getting Started with Amazon Web * Services services in China.

*/ inline Distribution& WithAliasICPRecordals(const Aws::Vector& value) { SetAliasICPRecordals(value); return *this;} /** *

Amazon Web Services services in China customers must file for an Internet * Content Provider (ICP) recordal if they want to serve content publicly on an * alternate domain name, also known as a CNAME, that they've added to CloudFront. * AliasICPRecordal provides the ICP recordal status for CNAMEs associated with * distributions.

For more information about ICP recordals, see * Signup, Accounts, and Credentials in Getting Started with Amazon Web * Services services in China.

*/ inline Distribution& WithAliasICPRecordals(Aws::Vector&& value) { SetAliasICPRecordals(std::move(value)); return *this;} /** *

Amazon Web Services services in China customers must file for an Internet * Content Provider (ICP) recordal if they want to serve content publicly on an * alternate domain name, also known as a CNAME, that they've added to CloudFront. * AliasICPRecordal provides the ICP recordal status for CNAMEs associated with * distributions.

For more information about ICP recordals, see * Signup, Accounts, and Credentials in Getting Started with Amazon Web * Services services in China.

*/ inline Distribution& AddAliasICPRecordals(const AliasICPRecordal& value) { m_aliasICPRecordalsHasBeenSet = true; m_aliasICPRecordals.push_back(value); return *this; } /** *

Amazon Web Services services in China customers must file for an Internet * Content Provider (ICP) recordal if they want to serve content publicly on an * alternate domain name, also known as a CNAME, that they've added to CloudFront. * AliasICPRecordal provides the ICP recordal status for CNAMEs associated with * distributions.

For more information about ICP recordals, see * Signup, Accounts, and Credentials in Getting Started with Amazon Web * Services services in China.

*/ inline Distribution& AddAliasICPRecordals(AliasICPRecordal&& value) { m_aliasICPRecordalsHasBeenSet = true; m_aliasICPRecordals.push_back(std::move(value)); return *this; } private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_aRN; bool m_aRNHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_lastModifiedTime; bool m_lastModifiedTimeHasBeenSet = false; int m_inProgressInvalidationBatches; bool m_inProgressInvalidationBatchesHasBeenSet = false; Aws::String m_domainName; bool m_domainNameHasBeenSet = false; ActiveTrustedSigners m_activeTrustedSigners; bool m_activeTrustedSignersHasBeenSet = false; ActiveTrustedKeyGroups m_activeTrustedKeyGroups; bool m_activeTrustedKeyGroupsHasBeenSet = false; DistributionConfig m_distributionConfig; bool m_distributionConfigHasBeenSet = false; Aws::Vector m_aliasICPRecordals; bool m_aliasICPRecordalsHasBeenSet = false; }; } // namespace Model } // namespace CloudFront } // namespace Aws