@Generated(value="software.amazon.awssdk:codegen") public final class DistributionSummary extends Object implements ToCopyableBuilder<DistributionSummary.Builder,DistributionSummary>
A summary of the information about a CloudFront distribution.
Modifier and Type | Class and Description |
---|---|
static interface |
DistributionSummary.Builder |
Modifier and Type | Method and Description |
---|---|
Aliases |
aliases()
A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.
|
String |
arn()
The ARN (Amazon Resource Name) for the distribution.
|
static DistributionSummary.Builder |
builder() |
CacheBehaviors |
cacheBehaviors()
A complex type that contains zero or more
CacheBehavior elements. |
String |
comment()
The comment originally specified when this distribution was created.
|
CustomErrorResponses |
customErrorResponses()
A complex type that contains zero or more
CustomErrorResponses elements. |
DefaultCacheBehavior |
defaultCacheBehavior()
A complex type that describes the default cache behavior if you don't specify a
CacheBehavior
element or if files don't match any of the values of PathPattern in CacheBehavior
elements. |
String |
domainName()
The domain name that corresponds to the distribution, for example,
d111111abcdef8.cloudfront.net . |
Boolean |
enabled()
Whether the distribution is enabled to accept user requests for content.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
HttpVersion |
httpVersion()
Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront.
|
String |
httpVersionAsString()
Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront.
|
String |
id()
The identifier for the distribution.
|
Boolean |
isIPV6Enabled()
Whether CloudFront responds to IPv6 DNS requests with an IPv6 address for your distribution.
|
Instant |
lastModifiedTime()
The date and time the distribution was last modified.
|
Origins |
origins()
A complex type that contains information about origins for this distribution.
|
PriceClass |
priceClass()
Returns the value of the PriceClass property for this object.
|
String |
priceClassAsString()
Returns the value of the PriceClass property for this object.
|
Restrictions |
restrictions()
Returns the value of the Restrictions property for this object.
|
static Class<? extends DistributionSummary.Builder> |
serializableBuilderClass() |
String |
status()
The current status of the distribution.
|
DistributionSummary.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
ViewerCertificate |
viewerCertificate()
Returns the value of the ViewerCertificate property for this object.
|
String |
webACLId()
The Web ACL Id (if any) associated with the distribution.
|
copy
public String id()
The identifier for the distribution. For example: EDFDVBD632BHDS5
.
EDFDVBD632BHDS5
.public 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:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5
, where
123456789012
is your AWS account ID.public String status()
The current status of the distribution. When the status is Deployed
, the distribution's information
is propagated to all CloudFront edge locations.
Deployed
, the distribution's
information is propagated to all CloudFront edge locations.public Instant lastModifiedTime()
The date and time the distribution was last modified.
public String domainName()
The domain name that corresponds to the distribution, for example, d111111abcdef8.cloudfront.net
.
d111111abcdef8.cloudfront.net
.public Aliases aliases()
A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.
public Origins origins()
A complex type that contains information about origins for this distribution.
public DefaultCacheBehavior defaultCacheBehavior()
A complex type that describes the default cache behavior if you don't specify a CacheBehavior
element or if files don't match any of the values of PathPattern
in CacheBehavior
elements. You must create exactly one default cache behavior.
CacheBehavior
element or if files don't match any of the values of PathPattern
in CacheBehavior
elements. You must create exactly one default cache behavior.public CacheBehaviors cacheBehaviors()
A complex type that contains zero or more CacheBehavior
elements.
CacheBehavior
elements.public CustomErrorResponses customErrorResponses()
A complex type that contains zero or more CustomErrorResponses
elements.
CustomErrorResponses
elements.public String comment()
The comment originally specified when this distribution was created.
public PriceClass priceClass()
If the service returns an enum value that is not available in the current SDK version, priceClass
will
return PriceClass.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
priceClassAsString()
.
PriceClass
public String priceClassAsString()
If the service returns an enum value that is not available in the current SDK version, priceClass
will
return PriceClass.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
priceClassAsString()
.
PriceClass
public Boolean enabled()
Whether the distribution is enabled to accept user requests for content.
public ViewerCertificate viewerCertificate()
public Restrictions restrictions()
public String webACLId()
The Web ACL Id (if any) associated with the distribution.
public HttpVersion httpVersion()
Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront. The default value
for new web distributions is http2
. Viewers that don't support HTTP/2
will
automatically use an earlier version.
If the service returns an enum value that is not available in the current SDK version, httpVersion
will
return HttpVersion.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
httpVersionAsString()
.
http2
. Viewers that don't support HTTP/2
will automatically use an earlier version.HttpVersion
public String httpVersionAsString()
Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront. The default value
for new web distributions is http2
. Viewers that don't support HTTP/2
will
automatically use an earlier version.
If the service returns an enum value that is not available in the current SDK version, httpVersion
will
return HttpVersion.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
httpVersionAsString()
.
http2
. Viewers that don't support HTTP/2
will automatically use an earlier version.HttpVersion
public Boolean isIPV6Enabled()
Whether CloudFront responds to IPv6 DNS requests with an IPv6 address for your distribution.
public DistributionSummary.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<DistributionSummary.Builder,DistributionSummary>
public static DistributionSummary.Builder builder()
public static Class<? extends DistributionSummary.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.