Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.cloudfront.model
Class Distribution

java.lang.Object
  extended by com.amazonaws.services.cloudfront.model.Distribution
All Implemented Interfaces:
Serializable

public class Distribution
extends Object
implements Serializable

A distribution.

See Also:
Serialized Form

Constructor Summary
Distribution()
          Default constructor for a new Distribution object.
Distribution(String id, String status, String domainName)
          Constructs a new Distribution object.
 
Method Summary
 boolean equals(Object obj)
           
 ActiveTrustedSigners getActiveTrustedSigners()
          CloudFront automatically adds this element to the response only if you've set up the distribution to serve private content with signed URLs.
 DistributionConfig getDistributionConfig()
          The current configuration information for the distribution.
 String getDomainName()
          The domain name corresponding to the distribution.
 String getId()
          The identifier for the distribution.
 Integer getInProgressInvalidationBatches()
          The number of invalidation batches currently in progress.
 Date getLastModifiedTime()
          The date and time the distribution was last modified.
 String getStatus()
          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 setId(String id)
          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 setStatus(String status)
          This response element indicates the current status of the distribution.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Distribution 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.
 Distribution withDistributionConfig(DistributionConfig distributionConfig)
          The current configuration information for the distribution.
 Distribution withDomainName(String domainName)
          The domain name corresponding to the distribution.
 Distribution withId(String id)
          The identifier for the distribution.
 Distribution withInProgressInvalidationBatches(Integer inProgressInvalidationBatches)
          The number of invalidation batches currently in progress.
 Distribution withLastModifiedTime(Date lastModifiedTime)
          The date and time the distribution was last modified.
 Distribution withStatus(String status)
          This response element indicates the current status of the distribution.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Distribution

public Distribution()
Default constructor for a new Distribution object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


Distribution

public Distribution(String id,
                    String status,
                    String domainName)
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 Detail

getId

public String getId()
The identifier for the distribution. For example: EDFDVBD632BHDS5.

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

setId

public void setId(String id)
The identifier for the distribution. For example: EDFDVBD632BHDS5.

Parameters:
id - The identifier for the distribution. For example: EDFDVBD632BHDS5.

withId

public Distribution withId(String id)
The identifier for the distribution. For example: EDFDVBD632BHDS5.

Returns a reference to this object so that method calls can be chained together.

Parameters:
id - The identifier for the distribution. For example: EDFDVBD632BHDS5.
Returns:
A reference to this updated object so that method calls can be chained together.

getStatus

public String 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.

setStatus

public void setStatus(String 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.

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.

withStatus

public Distribution withStatus(String 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 a reference to this object so that method calls can be chained together.

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:
A reference to this updated object so that method calls can be chained together.

getLastModifiedTime

public Date getLastModifiedTime()
The date and time the distribution was last modified.

Returns:
The date and time the distribution was last modified.

setLastModifiedTime

public void setLastModifiedTime(Date lastModifiedTime)
The date and time the distribution was last modified.

Parameters:
lastModifiedTime - The date and time the distribution was last modified.

withLastModifiedTime

public Distribution withLastModifiedTime(Date lastModifiedTime)
The date and time the distribution was last modified.

Returns a reference to this object so that method calls can be chained together.

Parameters:
lastModifiedTime - The date and time the distribution was last modified.
Returns:
A reference to this updated object so that method calls can be chained together.

getInProgressInvalidationBatches

public Integer getInProgressInvalidationBatches()
The number of invalidation batches currently in progress.

Returns:
The number of invalidation batches currently in progress.

setInProgressInvalidationBatches

public void setInProgressInvalidationBatches(Integer inProgressInvalidationBatches)
The number of invalidation batches currently in progress.

Parameters:
inProgressInvalidationBatches - The number of invalidation batches currently in progress.

withInProgressInvalidationBatches

public Distribution withInProgressInvalidationBatches(Integer inProgressInvalidationBatches)
The number of invalidation batches currently in progress.

Returns a reference to this object so that method calls can be chained together.

Parameters:
inProgressInvalidationBatches - The number of invalidation batches currently in progress.
Returns:
A reference to this updated object so that method calls can be chained together.

getDomainName

public String 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.

setDomainName

public void setDomainName(String domainName)
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.

withDomainName

public Distribution withDomainName(String domainName)
The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net.

Returns a reference to this object so that method calls can be chained together.

Parameters:
domainName - The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net.
Returns:
A reference to this updated object so that method calls can be chained together.

getActiveTrustedSigners

public ActiveTrustedSigners 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.

setActiveTrustedSigners

public 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. 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.

withActiveTrustedSigners

public Distribution 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. 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 a reference to this object so that method calls can be chained together.

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:
A reference to this updated object so that method calls can be chained together.

getDistributionConfig

public DistributionConfig getDistributionConfig()
The current configuration information for the distribution.

Returns:
The current configuration information for the distribution.

setDistributionConfig

public void setDistributionConfig(DistributionConfig distributionConfig)
The current configuration information for the distribution.

Parameters:
distributionConfig - The current configuration information for the distribution.

withDistributionConfig

public Distribution withDistributionConfig(DistributionConfig distributionConfig)
The current configuration information for the distribution.

Returns a reference to this object so that method calls can be chained together.

Parameters:
distributionConfig - The current configuration information for the distribution.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.