Interface AwsCloudFrontDistributionDetails.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AwsCloudFrontDistributionDetails.Builder,,AwsCloudFrontDistributionDetails> SdkBuilder<AwsCloudFrontDistributionDetails.Builder,,AwsCloudFrontDistributionDetails> SdkPojo
- Enclosing class:
AwsCloudFrontDistributionDetails
-
Method Summary
Modifier and TypeMethodDescriptioncacheBehaviors(Consumer<AwsCloudFrontDistributionCacheBehaviors.Builder> cacheBehaviors) Provides information about the cache configuration for the distribution.cacheBehaviors(AwsCloudFrontDistributionCacheBehaviors cacheBehaviors) Provides information about the cache configuration for the distribution.defaultCacheBehavior(Consumer<AwsCloudFrontDistributionDefaultCacheBehavior.Builder> defaultCacheBehavior) The default cache behavior for the configuration.defaultCacheBehavior(AwsCloudFrontDistributionDefaultCacheBehavior defaultCacheBehavior) The default cache behavior for the configuration.defaultRootObject(String defaultRootObject) The object that CloudFront sends in response to requests from the origin (for example, index.html) when a viewer requests the root URL for the distribution (http://www.example.com) instead of an object in your distribution (http://www.example.com/product-description.html).domainName(String domainName) The domain name corresponding to the distribution.The entity tag is a hash of the object.lastModifiedTime(String lastModifiedTime) Indicates when that the distribution was last modified.A complex type that controls whether access logs are written for the distribution.logging(AwsCloudFrontDistributionLogging logging) A complex type that controls whether access logs are written for the distribution.originGroups(Consumer<AwsCloudFrontDistributionOriginGroups.Builder> originGroups) Provides information about the origin groups in the distribution.originGroups(AwsCloudFrontDistributionOriginGroups originGroups) Provides information about the origin groups in the distribution.A complex type that contains information about origins for this distribution.origins(AwsCloudFrontDistributionOrigins origins) A complex type that contains information about origins for this distribution.Indicates the current status of the distribution.viewerCertificate(Consumer<AwsCloudFrontDistributionViewerCertificate.Builder> viewerCertificate) Provides information about the TLS/SSL configuration that the distribution uses to communicate with viewers.viewerCertificate(AwsCloudFrontDistributionViewerCertificate viewerCertificate) Provides information about the TLS/SSL configuration that the distribution uses to communicate with viewers.A unique identifier that specifies the WAF web ACL, if any, to associate with this distribution.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
cacheBehaviors
AwsCloudFrontDistributionDetails.Builder cacheBehaviors(AwsCloudFrontDistributionCacheBehaviors cacheBehaviors) Provides information about the cache configuration for the distribution.
- Parameters:
cacheBehaviors- Provides information about the cache configuration for the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cacheBehaviors
default AwsCloudFrontDistributionDetails.Builder cacheBehaviors(Consumer<AwsCloudFrontDistributionCacheBehaviors.Builder> cacheBehaviors) Provides information about the cache configuration for the distribution.
This is a convenience method that creates an instance of theAwsCloudFrontDistributionCacheBehaviors.Builderavoiding the need to create one manually viaAwsCloudFrontDistributionCacheBehaviors.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocacheBehaviors(AwsCloudFrontDistributionCacheBehaviors).- Parameters:
cacheBehaviors- a consumer that will call methods onAwsCloudFrontDistributionCacheBehaviors.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
defaultCacheBehavior
AwsCloudFrontDistributionDetails.Builder defaultCacheBehavior(AwsCloudFrontDistributionDefaultCacheBehavior defaultCacheBehavior) The default cache behavior for the configuration.
- Parameters:
defaultCacheBehavior- The default cache behavior for the configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultCacheBehavior
default AwsCloudFrontDistributionDetails.Builder defaultCacheBehavior(Consumer<AwsCloudFrontDistributionDefaultCacheBehavior.Builder> defaultCacheBehavior) The default cache behavior for the configuration.
This is a convenience method that creates an instance of theAwsCloudFrontDistributionDefaultCacheBehavior.Builderavoiding the need to create one manually viaAwsCloudFrontDistributionDefaultCacheBehavior.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todefaultCacheBehavior(AwsCloudFrontDistributionDefaultCacheBehavior).- Parameters:
defaultCacheBehavior- a consumer that will call methods onAwsCloudFrontDistributionDefaultCacheBehavior.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
defaultRootObject
The object that CloudFront sends in response to requests from the origin (for example, index.html) when a viewer requests the root URL for the distribution (http://www.example.com) instead of an object in your distribution (http://www.example.com/product-description.html).
- Parameters:
defaultRootObject- The object that CloudFront sends in response to requests from the origin (for example, index.html) when a viewer requests the root URL for the distribution (http://www.example.com) instead of an object in your distribution (http://www.example.com/product-description.html).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
domainName
The domain name corresponding to the distribution.
- Parameters:
domainName- The domain name corresponding to the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eTag
The entity tag is a hash of the object.
- Parameters:
eTag- The entity tag is a hash of the object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastModifiedTime
Indicates when that the distribution was last modified.
For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
- Parameters:
lastModifiedTime- Indicates when that the distribution was last modified.For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logging
A complex type that controls whether access logs are written for the distribution.
- Parameters:
logging- A complex type that controls whether access logs are written for the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logging
default AwsCloudFrontDistributionDetails.Builder logging(Consumer<AwsCloudFrontDistributionLogging.Builder> logging) A complex type that controls whether access logs are written for the distribution.
This is a convenience method that creates an instance of theAwsCloudFrontDistributionLogging.Builderavoiding the need to create one manually viaAwsCloudFrontDistributionLogging.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tologging(AwsCloudFrontDistributionLogging).- Parameters:
logging- a consumer that will call methods onAwsCloudFrontDistributionLogging.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
origins
A complex type that contains information about origins for this distribution.
- Parameters:
origins- A complex type that contains information about origins for this distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
origins
default AwsCloudFrontDistributionDetails.Builder origins(Consumer<AwsCloudFrontDistributionOrigins.Builder> origins) A complex type that contains information about origins for this distribution.
This is a convenience method that creates an instance of theAwsCloudFrontDistributionOrigins.Builderavoiding the need to create one manually viaAwsCloudFrontDistributionOrigins.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toorigins(AwsCloudFrontDistributionOrigins).- Parameters:
origins- a consumer that will call methods onAwsCloudFrontDistributionOrigins.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
originGroups
AwsCloudFrontDistributionDetails.Builder originGroups(AwsCloudFrontDistributionOriginGroups originGroups) Provides information about the origin groups in the distribution.
- Parameters:
originGroups- Provides information about the origin groups in the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
originGroups
default AwsCloudFrontDistributionDetails.Builder originGroups(Consumer<AwsCloudFrontDistributionOriginGroups.Builder> originGroups) Provides information about the origin groups in the distribution.
This is a convenience method that creates an instance of theAwsCloudFrontDistributionOriginGroups.Builderavoiding the need to create one manually viaAwsCloudFrontDistributionOriginGroups.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooriginGroups(AwsCloudFrontDistributionOriginGroups).- Parameters:
originGroups- a consumer that will call methods onAwsCloudFrontDistributionOriginGroups.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
viewerCertificate
AwsCloudFrontDistributionDetails.Builder viewerCertificate(AwsCloudFrontDistributionViewerCertificate viewerCertificate) Provides information about the TLS/SSL configuration that the distribution uses to communicate with viewers.
- Parameters:
viewerCertificate- Provides information about the TLS/SSL configuration that the distribution uses to communicate with viewers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
viewerCertificate
default AwsCloudFrontDistributionDetails.Builder viewerCertificate(Consumer<AwsCloudFrontDistributionViewerCertificate.Builder> viewerCertificate) Provides information about the TLS/SSL configuration that the distribution uses to communicate with viewers.
This is a convenience method that creates an instance of theAwsCloudFrontDistributionViewerCertificate.Builderavoiding the need to create one manually viaAwsCloudFrontDistributionViewerCertificate.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toviewerCertificate(AwsCloudFrontDistributionViewerCertificate).- Parameters:
viewerCertificate- a consumer that will call methods onAwsCloudFrontDistributionViewerCertificate.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
Indicates the current status of the distribution.
- Parameters:
status- Indicates the current status of the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
webAclId
A unique identifier that specifies the WAF web ACL, if any, to associate with this distribution.
- Parameters:
webAclId- A unique identifier that specifies the WAF web ACL, if any, to associate with this distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-