/** * 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 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 AWS_CLOUDFRONT_API Distribution { public: Distribution(); Distribution(const Aws::Utils::Xml::XmlNode& xmlNode); Distribution& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

The identifier for the distribution. For example: * EDFDVBD632BHDS5.

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

The identifier for the distribution. For example: * EDFDVBD632BHDS5.

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

The identifier for the distribution. For example: * EDFDVBD632BHDS5.

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

The identifier for the distribution. For example: * EDFDVBD632BHDS5.

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

The identifier for the distribution. For example: * EDFDVBD632BHDS5.

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

The identifier for the distribution. For example: * EDFDVBD632BHDS5.

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

The identifier for the distribution. For example: * EDFDVBD632BHDS5.

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

The identifier for the distribution. For example: * EDFDVBD632BHDS5.

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

The ARN (Amazon Resource Name) for the distribution. For example: * arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, * where 123456789012 is your AWS account ID.

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

The ARN (Amazon Resource Name) for the distribution. For example: * arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, * where 123456789012 is your AWS account ID.

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

The ARN (Amazon Resource Name) for the distribution. For example: * arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, * where 123456789012 is your AWS account ID.

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

The ARN (Amazon Resource Name) for the distribution. For example: * arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, * where 123456789012 is your AWS account ID.

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

The ARN (Amazon Resource Name) for the distribution. For example: * arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, * where 123456789012 is your AWS account ID.

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

The ARN (Amazon Resource Name) for the distribution. For example: * arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, * where 123456789012 is your AWS account ID.

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

The ARN (Amazon Resource Name) for the distribution. For example: * arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, * where 123456789012 is your AWS account ID.

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

The ARN (Amazon Resource Name) for the distribution. For example: * arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, * where 123456789012 is your AWS account ID.

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

This response element indicates the current status of the distribution. 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; } /** *

This response element indicates the current status of the distribution. When * the status is Deployed, the distribution's information is fully * propagated to all CloudFront edge locations.

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

This response element indicates the current status of the distribution. 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; } /** *

This response element indicates the current status of the distribution. 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); } /** *

This response element indicates the current status of the distribution. 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); } /** *

This response element indicates the current status of the distribution. 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;} /** *

This response element indicates the current status of the distribution. 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;} /** *

This response element indicates the current status of the distribution. 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 the distribution was last modified.

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

The date and time the distribution was last modified.

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

The date and time the distribution was last modified.

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

The date and time the distribution was last modified.

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

The date and time the distribution was last modified.

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

The date and time 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 domain name corresponding to the distribution, for example, * d111111abcdef8.cloudfront.net.

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

The domain name corresponding to the distribution, for example, * d111111abcdef8.cloudfront.net.

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

The domain name corresponding to the distribution, for example, * d111111abcdef8.cloudfront.net.

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

The domain name corresponding to the distribution, for example, * d111111abcdef8.cloudfront.net.

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

The domain name corresponding to the distribution, for example, * d111111abcdef8.cloudfront.net.

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

The domain name corresponding to the distribution, for example, * d111111abcdef8.cloudfront.net.

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

The domain name corresponding to the distribution, for example, * d111111abcdef8.cloudfront.net.

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

The domain name corresponding to the distribution, for example, * d111111abcdef8.cloudfront.net.

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

CloudFront automatically adds this element to the response only if you've set * up the distribution to serve private content with signed URLs. The element lists * the key pair IDs that CloudFront is aware of for each trusted signer. The * Signer child element lists the AWS account number of the trusted * signer (or an empty Self element if the signer is you). The * Signer element also includes the IDs of any active key pairs * associated with the trusted signer's AWS account. If no KeyPairId * element appears for a Signer, that signer can't create working * signed URLs.

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

CloudFront automatically adds this element to the response only if you've set * up the distribution to serve private content with signed URLs. The element lists * the key pair IDs that CloudFront is aware of for each trusted signer. The * Signer child element lists the AWS account number of the trusted * signer (or an empty Self element if the signer is you). The * Signer element also includes the IDs of any active key pairs * associated with the trusted signer's AWS account. If no KeyPairId * element appears for a Signer, that signer can't create working * signed URLs.

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

CloudFront automatically adds this element to the response only if you've set * up the distribution to serve private content with signed URLs. The element lists * the key pair IDs that CloudFront is aware of for each trusted signer. The * Signer child element lists the AWS account number of the trusted * signer (or an empty Self element if the signer is you). The * Signer element also includes the IDs of any active key pairs * associated with the trusted signer's AWS account. If no KeyPairId * element appears for a Signer, that signer can't create working * signed URLs.

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

CloudFront automatically adds this element to the response only if you've set * up the distribution to serve private content with signed URLs. The element lists * the key pair IDs that CloudFront is aware of for each trusted signer. The * Signer child element lists the AWS account number of the trusted * signer (or an empty Self element if the signer is you). The * Signer element also includes the IDs of any active key pairs * associated with the trusted signer's AWS account. If no KeyPairId * element appears for a Signer, that signer can't create working * signed URLs.

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

CloudFront automatically adds this element to the response only if you've set * up the distribution to serve private content with signed URLs. The element lists * the key pair IDs that CloudFront is aware of for each trusted signer. The * Signer child element lists the AWS account number of the trusted * signer (or an empty Self element if the signer is you). The * Signer element also includes the IDs of any active key pairs * associated with the trusted signer's AWS account. If no KeyPairId * element appears for a Signer, that signer can't create working * signed URLs.

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

CloudFront automatically adds this element to the response only if you've set * up the distribution to serve private content with signed URLs. The element lists * the key pair IDs that CloudFront is aware of for each trusted signer. The * Signer child element lists the AWS account number of the trusted * signer (or an empty Self element if the signer is you). The * Signer element also includes the IDs of any active key pairs * associated with the trusted signer's AWS account. If no KeyPairId * element appears for a Signer, that signer can't create working * signed URLs.

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

The current configuration information for the distribution. Send a * GET request to the /CloudFront API * version/distribution ID/config resource.

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

The current configuration information for the distribution. Send a * GET request to the /CloudFront API * version/distribution ID/config resource.

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

The current configuration information for the distribution. Send a * GET request to the /CloudFront API * version/distribution ID/config resource.

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

The current configuration information for the distribution. Send a * GET request to the /CloudFront API * version/distribution ID/config resource.

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

The current configuration information for the distribution. Send a * GET request to the /CloudFront API * version/distribution ID/config resource.

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

The current configuration information for the distribution. Send a * GET request to the /CloudFront API * version/distribution ID/config resource.

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

AWS 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 AWS services in * China.

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

AWS 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 AWS services in * China.

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

AWS 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 AWS services in * China.

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

AWS 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 AWS services in * China.

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

AWS 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 AWS services in * China.

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

AWS 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 AWS services in * China.

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

AWS 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 AWS services in * China.

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

AWS 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 AWS 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; Aws::String m_aRN; bool m_aRNHasBeenSet; Aws::String m_status; bool m_statusHasBeenSet; Aws::Utils::DateTime m_lastModifiedTime; bool m_lastModifiedTimeHasBeenSet; int m_inProgressInvalidationBatches; bool m_inProgressInvalidationBatchesHasBeenSet; Aws::String m_domainName; bool m_domainNameHasBeenSet; ActiveTrustedSigners m_activeTrustedSigners; bool m_activeTrustedSignersHasBeenSet; DistributionConfig m_distributionConfig; bool m_distributionConfigHasBeenSet; Aws::Vector m_aliasICPRecordals; bool m_aliasICPRecordalsHasBeenSet; }; } // namespace Model } // namespace CloudFront } // namespace Aws