Class DistributionSummary
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<DistributionSummary.Builder,
DistributionSummary>
A summary of the information about a CloudFront distribution.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal Aliases
aliases()
A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.final List
<AliasICPRecordal> Amazon Web Services 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.final String
arn()
The ARN (Amazon Resource Name) for the distribution.static DistributionSummary.Builder
builder()
final CacheBehaviors
A complex type that contains zero or moreCacheBehavior
elements.final String
comment()
The comment originally specified when this distribution was created.final CustomErrorResponses
A complex type that contains zero or moreCustomErrorResponses
elements.final DefaultCacheBehavior
A complex type that describes the default cache behavior if you don't specify aCacheBehavior
element or if files don't match any of the values ofPathPattern
inCacheBehavior
elements.final String
The domain name that corresponds to the distribution, for example,d111111abcdef8.cloudfront.net
.final Boolean
enabled()
Whether the distribution is enabled to accept user requests for content.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final boolean
For responses, this returns true if the service returned a value for the AliasICPRecordals property.final int
hashCode()
final HttpVersion
Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront.final String
Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront.final String
id()
The identifier for the distribution.final Boolean
Whether CloudFront responds to IPv6 DNS requests with an IPv6 address for your distribution.final Instant
The date and time the distribution was last modified.final OriginGroups
A complex type that contains information about origin groups for this distribution.final Origins
origins()
A complex type that contains information about origins for this distribution.final PriceClass
A complex type that contains information about price class for this streaming distribution.final String
A complex type that contains information about price class for this streaming distribution.final Restrictions
A complex type that identifies ways in which you want to restrict distribution of your content.static Class
<? extends DistributionSummary.Builder> final Boolean
staging()
Whether the primary distribution has a staging distribution enabled.final String
status()
The current status of the distribution.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final ViewerCertificate
A complex type that determines the distribution's SSL/TLS configuration for communicating with viewers.final String
webACLId()
The Web ACL Id (if any) associated with the distribution.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
id
The identifier for the distribution. For example:
EDFDVBD632BHDS5
.- Returns:
- The identifier for the distribution. For example:
EDFDVBD632BHDS5
.
-
arn
The ARN (Amazon Resource Name) for the distribution. For example:
arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5
, where123456789012
is your Amazon Web Services account ID.- Returns:
- The ARN (Amazon Resource Name) for the distribution. For example:
arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5
, where123456789012
is your Amazon Web Services account ID.
-
status
The current status of the distribution. When the status is
Deployed
, the distribution's information is propagated to all CloudFront edge locations.- Returns:
- The current status of the distribution. When the status is
Deployed
, the distribution's information is propagated to all CloudFront edge locations.
-
lastModifiedTime
The date and time the distribution was last modified.
- Returns:
- The date and time the distribution was last modified.
-
domainName
The domain name that corresponds to the distribution, for example,
d111111abcdef8.cloudfront.net
.- Returns:
- The domain name that corresponds to the distribution, for example,
d111111abcdef8.cloudfront.net
.
-
aliases
A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.
- Returns:
- A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.
-
origins
A complex type that contains information about origins for this distribution.
- Returns:
- A complex type that contains information about origins for this distribution.
-
originGroups
A complex type that contains information about origin groups for this distribution.
- Returns:
- A complex type that contains information about origin groups for this distribution.
-
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 ofPathPattern
inCacheBehavior
elements. You must create exactly one default cache behavior.- Returns:
- 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 ofPathPattern
inCacheBehavior
elements. You must create exactly one default cache behavior.
-
cacheBehaviors
A complex type that contains zero or more
CacheBehavior
elements.- Returns:
- A complex type that contains zero or more
CacheBehavior
elements.
-
customErrorResponses
A complex type that contains zero or more
CustomErrorResponses
elements.- Returns:
- A complex type that contains zero or more
CustomErrorResponses
elements.
-
comment
The comment originally specified when this distribution was created.
- Returns:
- The comment originally specified when this distribution was created.
-
priceClass
A complex type that contains information about price class for this streaming distribution.
If the service returns an enum value that is not available in the current SDK version,
priceClass
will returnPriceClass.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frompriceClassAsString()
.- Returns:
- A complex type that contains information about price class for this streaming distribution.
- See Also:
-
priceClassAsString
A complex type that contains information about price class for this streaming distribution.
If the service returns an enum value that is not available in the current SDK version,
priceClass
will returnPriceClass.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frompriceClassAsString()
.- Returns:
- A complex type that contains information about price class for this streaming distribution.
- See Also:
-
enabled
Whether the distribution is enabled to accept user requests for content.
- Returns:
- Whether the distribution is enabled to accept user requests for content.
-
viewerCertificate
A complex type that determines the distribution's SSL/TLS configuration for communicating with viewers.
- Returns:
- A complex type that determines the distribution's SSL/TLS configuration for communicating with viewers.
-
restrictions
A complex type that identifies ways in which you want to restrict distribution of your content.
- Returns:
- A complex type that identifies ways in which you want to restrict distribution of your content.
-
webACLId
The Web ACL Id (if any) associated with the distribution.
- Returns:
- The Web ACL Id (if any) associated with the distribution.
-
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 supportHTTP/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 returnHttpVersion.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromhttpVersionAsString()
.- Returns:
- 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 supportHTTP/2
will automatically use an earlier version. - See Also:
-
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 supportHTTP/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 returnHttpVersion.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromhttpVersionAsString()
.- Returns:
- 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 supportHTTP/2
will automatically use an earlier version. - See Also:
-
isIPV6Enabled
Whether CloudFront responds to IPv6 DNS requests with an IPv6 address for your distribution.
- Returns:
- Whether CloudFront responds to IPv6 DNS requests with an IPv6 address for your distribution.
-
hasAliasICPRecordals
public final boolean hasAliasICPRecordals()For responses, this returns true if the service returned a value for the AliasICPRecordals property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
aliasICPRecordals
Amazon Web Services 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 Amazon Web Services services in China.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasAliasICPRecordals()
method.- Returns:
- Amazon Web Services 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 Amazon Web Services services in China.
-
staging
Whether the primary distribution has a staging distribution enabled.
- Returns:
- Whether the primary distribution has a staging distribution enabled.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<DistributionSummary.Builder,
DistributionSummary> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-