Class Distribution
java.lang.Object
com.amazonaws.services.cloudfront.model.Distribution
- All Implemented Interfaces:
Serializable
,Cloneable
A distribution.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for Distribution object.Distribution
(String id, String status, String domainName) Constructs a new Distribution object. -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
CloudFront automatically adds this element to the response only if you've set up the distribution to serve private content with signed URLs.The current configuration information for the distribution.The domain name corresponding to the distribution.getId()
The identifier for the distribution.The number of invalidation batches currently in progress.The date and time the distribution was last modified.This response element indicates the current status of the distribution.int
hashCode()
void
setActiveTrustedSigners
(ActiveTrustedSigners activeTrustedSigners) CloudFront automatically adds this element to the response only if you've set up the distribution to serve private content with signed URLs.void
setDistributionConfig
(DistributionConfig distributionConfig) The current configuration information for the distribution.void
setDomainName
(String domainName) The domain name corresponding to the distribution.void
The identifier for the distribution.void
setInProgressInvalidationBatches
(Integer inProgressInvalidationBatches) The number of invalidation batches currently in progress.void
setLastModifiedTime
(Date lastModifiedTime) The date and time the distribution was last modified.void
This response element indicates the current status of the distribution.toString()
Returns a string representation of this object; useful for testing and debugging.withActiveTrustedSigners
(ActiveTrustedSigners activeTrustedSigners) CloudFront automatically adds this element to the response only if you've set up the distribution to serve private content with signed URLs.withDistributionConfig
(DistributionConfig distributionConfig) The current configuration information for the distribution.withDomainName
(String domainName) The domain name corresponding to the distribution.The identifier for the distribution.withInProgressInvalidationBatches
(Integer inProgressInvalidationBatches) The number of invalidation batches currently in progress.withLastModifiedTime
(Date lastModifiedTime) The date and time the distribution was last modified.withStatus
(String status) This response element indicates the current status of the distribution.
-
Constructor Details
-
Distribution
public Distribution()Default constructor for Distribution object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
Distribution
Constructs a new Distribution object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
id
- The identifier for the distribution. For example: EDFDVBD632BHDS5.status
- This response element indicates the current status of the distribution. When the status is Deployed, the distribution's information is fully propagated throughout the Amazon CloudFront system.domainName
- The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net.
-
-
Method Details
-
setId
The identifier for the distribution. For example: EDFDVBD632BHDS5.- Parameters:
id
- The identifier for the distribution. For example: EDFDVBD632BHDS5.
-
getId
The identifier for the distribution. For example: EDFDVBD632BHDS5.- Returns:
- The identifier for the distribution. For example: EDFDVBD632BHDS5.
-
withId
The identifier for the distribution. For example: EDFDVBD632BHDS5.- Parameters:
id
- The identifier for the distribution. For example: EDFDVBD632BHDS5.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
This response element indicates the current status of the distribution. When the status is Deployed, the distribution's information is fully propagated throughout the Amazon CloudFront system.- Parameters:
status
- This response element indicates the current status of the distribution. When the status is Deployed, the distribution's information is fully propagated throughout the Amazon CloudFront system.
-
getStatus
This response element indicates the current status of the distribution. When the status is Deployed, the distribution's information is fully propagated throughout the Amazon CloudFront system.- Returns:
- This response element indicates the current status of the distribution. When the status is Deployed, the distribution's information is fully propagated throughout the Amazon CloudFront system.
-
withStatus
This response element indicates the current status of the distribution. When the status is Deployed, the distribution's information is fully propagated throughout the Amazon CloudFront system.- Parameters:
status
- This response element indicates the current status of the distribution. When the status is Deployed, the distribution's information is fully propagated throughout the Amazon CloudFront system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLastModifiedTime
The date and time the distribution was last modified.- Parameters:
lastModifiedTime
- The date and time the distribution was last modified.
-
getLastModifiedTime
The date and time the distribution was last modified.- Returns:
- The date and time the distribution was last modified.
-
withLastModifiedTime
The date and time the distribution was last modified.- Parameters:
lastModifiedTime
- The date and time the distribution was last modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInProgressInvalidationBatches
The number of invalidation batches currently in progress.- Parameters:
inProgressInvalidationBatches
- The number of invalidation batches currently in progress.
-
getInProgressInvalidationBatches
The number of invalidation batches currently in progress.- Returns:
- The number of invalidation batches currently in progress.
-
withInProgressInvalidationBatches
The number of invalidation batches currently in progress.- Parameters:
inProgressInvalidationBatches
- The number of invalidation batches currently in progress.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDomainName
The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net.- Parameters:
domainName
- The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net.
-
getDomainName
The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net.- Returns:
- The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net.
-
withDomainName
The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net.- Parameters:
domainName
- The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setActiveTrustedSigners
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.- Parameters:
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.
-
getActiveTrustedSigners
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.- Returns:
- 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.
-
withActiveTrustedSigners
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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDistributionConfig
The current configuration information for the distribution.- Parameters:
distributionConfig
- The current configuration information for the distribution.
-
getDistributionConfig
The current configuration information for the distribution.- Returns:
- The current configuration information for the distribution.
-
withDistributionConfig
The current configuration information for the distribution.- Parameters:
distributionConfig
- The current configuration information for the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-