@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Distribution extends Object implements Serializable, Cloneable
A distribution tells CloudFront where you want content to be delivered from, and the details about how to track and manage content delivery.
Constructor and Description |
---|
Distribution()
Default constructor for Distribution object.
|
Distribution(String id,
String status,
String domainName)
Constructs a new Distribution object.
|
Modifier and Type | Method and Description |
---|---|
Distribution |
clone() |
boolean |
equals(Object obj) |
ActiveTrustedKeyGroups |
getActiveTrustedKeyGroups()
CloudFront automatically adds this field to the response if you’ve configured a cache behavior in this
distribution to serve private content using key groups.
|
ActiveTrustedSigners |
getActiveTrustedSigners()
|
List<AliasICPRecordal> |
getAliasICPRecordals()
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.
|
String |
getARN()
The ARN (Amazon Resource Name) for the distribution.
|
DistributionConfig |
getDistributionConfig()
The current configuration information for the distribution.
|
String |
getDomainName()
The domain name corresponding to the distribution, for example,
d111111abcdef8.cloudfront.net . |
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 |
setActiveTrustedKeyGroups(ActiveTrustedKeyGroups activeTrustedKeyGroups)
CloudFront automatically adds this field to the response if you’ve configured a cache behavior in this
distribution to serve private content using key groups.
|
void |
setActiveTrustedSigners(ActiveTrustedSigners activeTrustedSigners)
|
void |
setAliasICPRecordals(Collection<AliasICPRecordal> 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.
|
void |
setARN(String aRN)
The ARN (Amazon Resource Name) for the distribution.
|
void |
setDistributionConfig(DistributionConfig distributionConfig)
The current configuration information for the distribution.
|
void |
setDomainName(String domainName)
The domain name corresponding to the distribution, for example,
d111111abcdef8.cloudfront.net . |
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.
|
Distribution |
withActiveTrustedKeyGroups(ActiveTrustedKeyGroups activeTrustedKeyGroups)
CloudFront automatically adds this field to the response if you’ve configured a cache behavior in this
distribution to serve private content using key groups.
|
Distribution |
withActiveTrustedSigners(ActiveTrustedSigners activeTrustedSigners)
|
Distribution |
withAliasICPRecordals(AliasICPRecordal... 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.
|
Distribution |
withAliasICPRecordals(Collection<AliasICPRecordal> 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.
|
Distribution |
withARN(String aRN)
The ARN (Amazon Resource Name) for the distribution.
|
Distribution |
withDistributionConfig(DistributionConfig distributionConfig)
The current configuration information for the distribution.
|
Distribution |
withDomainName(String domainName)
The domain name corresponding to the distribution, for example,
d111111abcdef8.cloudfront.net . |
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.
|
public Distribution()
public Distribution(String id, String status, String domainName)
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 to all CloudFront edge
locations.domainName
- The domain name corresponding to the distribution, for example, d111111abcdef8.cloudfront.net
.public void setId(String id)
The identifier for the distribution. For example: EDFDVBD632BHDS5
.
id
- The identifier for the distribution. For example: EDFDVBD632BHDS5
.public String getId()
The identifier for the distribution. For example: EDFDVBD632BHDS5
.
EDFDVBD632BHDS5
.public Distribution withId(String id)
The identifier for the distribution. For example: EDFDVBD632BHDS5
.
id
- The identifier for the distribution. For example: EDFDVBD632BHDS5
.public void setARN(String aRN)
The ARN (Amazon Resource Name) for the distribution. For example:
arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5
, where 123456789012
is
your AWS account ID.
aRN
- The ARN (Amazon Resource Name) for the distribution. For example:
arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5
, where
123456789012
is your AWS account ID.public String getARN()
The ARN (Amazon Resource Name) for the distribution. For example:
arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5
, where 123456789012
is
your AWS account ID.
arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5
, where
123456789012
is your AWS account ID.public Distribution withARN(String aRN)
The ARN (Amazon Resource Name) for the distribution. For example:
arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5
, where 123456789012
is
your AWS account ID.
aRN
- The ARN (Amazon Resource Name) for the distribution. For example:
arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5
, where
123456789012
is your AWS account ID.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 to all CloudFront edge locations.
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.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 to all CloudFront edge locations.
Deployed
, the distribution's information is fully propagated to all CloudFront edge
locations.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 to all CloudFront edge locations.
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.public void setLastModifiedTime(Date lastModifiedTime)
The date and time the distribution was last modified.
lastModifiedTime
- The date and time the distribution was last modified.public Date getLastModifiedTime()
The date and time the distribution was last modified.
public Distribution withLastModifiedTime(Date lastModifiedTime)
The date and time the distribution was last modified.
lastModifiedTime
- The date and time the distribution was last modified.public void setInProgressInvalidationBatches(Integer inProgressInvalidationBatches)
The number of invalidation batches currently in progress.
inProgressInvalidationBatches
- The number of invalidation batches currently in progress.public Integer getInProgressInvalidationBatches()
The number of invalidation batches currently in progress.
public Distribution withInProgressInvalidationBatches(Integer inProgressInvalidationBatches)
The number of invalidation batches currently in progress.
inProgressInvalidationBatches
- The number of invalidation batches currently in progress.public void setDomainName(String domainName)
The domain name corresponding to the distribution, for example, d111111abcdef8.cloudfront.net
.
domainName
- The domain name corresponding to the distribution, for example, d111111abcdef8.cloudfront.net
.public String getDomainName()
The domain name corresponding to the distribution, for example, d111111abcdef8.cloudfront.net
.
d111111abcdef8.cloudfront.net
.public Distribution withDomainName(String domainName)
The domain name corresponding to the distribution, for example, d111111abcdef8.cloudfront.net
.
domainName
- The domain name corresponding to the distribution, for example, d111111abcdef8.cloudfront.net
.public void setActiveTrustedSigners(ActiveTrustedSigners activeTrustedSigners)
We recommend using TrustedKeyGroups
instead of TrustedSigners
.
CloudFront automatically adds this field to the response if you’ve configured a cache behavior in this distribution to serve private content using trusted signers. This field contains a list of AWS 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.
activeTrustedSigners
-
We recommend using TrustedKeyGroups
instead of TrustedSigners
.
CloudFront automatically adds this field to the response if you’ve configured a cache behavior in this distribution to serve private content using trusted signers. This field contains a list of AWS 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.
public ActiveTrustedSigners getActiveTrustedSigners()
We recommend using TrustedKeyGroups
instead of TrustedSigners
.
CloudFront automatically adds this field to the response if you’ve configured a cache behavior in this distribution to serve private content using trusted signers. This field contains a list of AWS 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.
We recommend using TrustedKeyGroups
instead of TrustedSigners
.
CloudFront automatically adds this field to the response if you’ve configured a cache behavior in this distribution to serve private content using trusted signers. This field contains a list of AWS 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.
public Distribution withActiveTrustedSigners(ActiveTrustedSigners activeTrustedSigners)
We recommend using TrustedKeyGroups
instead of TrustedSigners
.
CloudFront automatically adds this field to the response if you’ve configured a cache behavior in this distribution to serve private content using trusted signers. This field contains a list of AWS 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.
activeTrustedSigners
-
We recommend using TrustedKeyGroups
instead of TrustedSigners
.
CloudFront automatically adds this field to the response if you’ve configured a cache behavior in this distribution to serve private content using trusted signers. This field contains a list of AWS 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.
public void setActiveTrustedKeyGroups(ActiveTrustedKeyGroups activeTrustedKeyGroups)
CloudFront automatically adds this field to the response if you’ve configured a cache behavior in this distribution to serve private content using key groups. 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.
activeTrustedKeyGroups
- CloudFront automatically adds this field to the response if you’ve configured a cache behavior in this
distribution to serve private content using key groups. 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.public ActiveTrustedKeyGroups getActiveTrustedKeyGroups()
CloudFront automatically adds this field to the response if you’ve configured a cache behavior in this distribution to serve private content using key groups. 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.
public Distribution withActiveTrustedKeyGroups(ActiveTrustedKeyGroups activeTrustedKeyGroups)
CloudFront automatically adds this field to the response if you’ve configured a cache behavior in this distribution to serve private content using key groups. 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.
activeTrustedKeyGroups
- CloudFront automatically adds this field to the response if you’ve configured a cache behavior in this
distribution to serve private content using key groups. 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.public void setDistributionConfig(DistributionConfig distributionConfig)
The current configuration information for the distribution. Send a GET
request to the
/CloudFront API version/distribution ID/config
resource.
distributionConfig
- The current configuration information for the distribution. Send a GET
request to the
/CloudFront API version/distribution ID/config
resource.public DistributionConfig getDistributionConfig()
The current configuration information for the distribution. Send a GET
request to the
/CloudFront API version/distribution ID/config
resource.
GET
request to the
/CloudFront API version/distribution ID/config
resource.public Distribution withDistributionConfig(DistributionConfig distributionConfig)
The current configuration information for the distribution. Send a GET
request to the
/CloudFront API version/distribution ID/config
resource.
distributionConfig
- The current configuration information for the distribution. Send a GET
request to the
/CloudFront API version/distribution ID/config
resource.public List<AliasICPRecordal> getAliasICPRecordals()
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.
For more information about ICP recordals, see Signup, Accounts, and Credentials in Getting Started with AWS services in China.
public void setAliasICPRecordals(Collection<AliasICPRecordal> 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.
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.
public Distribution withAliasICPRecordals(AliasICPRecordal... 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.
NOTE: This method appends the values to the existing list (if any). Use
setAliasICPRecordals(java.util.Collection)
or withAliasICPRecordals(java.util.Collection)
if
you want to override the existing values.
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.
public Distribution withAliasICPRecordals(Collection<AliasICPRecordal> 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.
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.
public String toString()
toString
in class Object
Object.toString()
public Distribution clone()