Interface UpdateDistributionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateDistributionRequest.Builder,,UpdateDistributionRequest> LightsailRequest.Builder,SdkBuilder<UpdateDistributionRequest.Builder,,UpdateDistributionRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateDistributionRequest
-
Method Summary
Modifier and TypeMethodDescriptioncacheBehaviors(Collection<CacheBehaviorPerPath> cacheBehaviors) An array of objects that describe the per-path cache behavior for the distribution.cacheBehaviors(Consumer<CacheBehaviorPerPath.Builder>... cacheBehaviors) An array of objects that describe the per-path cache behavior for the distribution.cacheBehaviors(CacheBehaviorPerPath... cacheBehaviors) An array of objects that describe the per-path cache behavior for the distribution.cacheBehaviorSettings(Consumer<CacheSettings.Builder> cacheBehaviorSettings) An object that describes the cache behavior settings for the distribution.cacheBehaviorSettings(CacheSettings cacheBehaviorSettings) An object that describes the cache behavior settings for the distribution.certificateName(String certificateName) The name of the SSL/TLS certificate that you want to attach to the distribution.defaultCacheBehavior(Consumer<CacheBehavior.Builder> defaultCacheBehavior) An object that describes the default cache behavior for the distribution.defaultCacheBehavior(CacheBehavior defaultCacheBehavior) An object that describes the default cache behavior for the distribution.distributionName(String distributionName) The name of the distribution to update.Indicates whether to enable the distribution.origin(Consumer<InputOrigin.Builder> origin) An object that describes the origin resource for the distribution, such as a Lightsail instance, bucket, or load balancer.origin(InputOrigin origin) An object that describes the origin resource for the distribution, such as a Lightsail instance, bucket, or load balancer.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.useDefaultCertificate(Boolean useDefaultCertificate) Indicates whether the default SSL/TLS certificate is attached to the distribution.viewerMinimumTlsProtocolVersion(String viewerMinimumTlsProtocolVersion) Use this parameter to update the minimum TLS protocol version for the SSL/TLS certificate that's attached to the distribution.viewerMinimumTlsProtocolVersion(ViewerMinimumTlsProtocolVersionEnum viewerMinimumTlsProtocolVersion) Use this parameter to update the minimum TLS protocol version for the SSL/TLS certificate that's attached to the distribution.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.lightsail.model.LightsailRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
distributionName
The name of the distribution to update.
Use the
GetDistributionsaction to get a list of distribution names that you can specify.- Parameters:
distributionName- The name of the distribution to update.Use the
GetDistributionsaction to get a list of distribution names that you can specify.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
origin
An object that describes the origin resource for the distribution, such as a Lightsail instance, bucket, or load balancer.
The distribution pulls, caches, and serves content from the origin.
- Parameters:
origin- An object that describes the origin resource for the distribution, such as a Lightsail instance, bucket, or load balancer.The distribution pulls, caches, and serves content from the origin.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
origin
An object that describes the origin resource for the distribution, such as a Lightsail instance, bucket, or load balancer.
The distribution pulls, caches, and serves content from the origin.
This is a convenience method that creates an instance of theInputOrigin.Builderavoiding the need to create one manually viaInputOrigin.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toorigin(InputOrigin).- Parameters:
origin- a consumer that will call methods onInputOrigin.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
defaultCacheBehavior
An object that describes the default cache behavior for the distribution.
- Parameters:
defaultCacheBehavior- An object that describes the default cache behavior for the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultCacheBehavior
default UpdateDistributionRequest.Builder defaultCacheBehavior(Consumer<CacheBehavior.Builder> defaultCacheBehavior) An object that describes the default cache behavior for the distribution.
This is a convenience method that creates an instance of theCacheBehavior.Builderavoiding the need to create one manually viaCacheBehavior.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todefaultCacheBehavior(CacheBehavior).- Parameters:
defaultCacheBehavior- a consumer that will call methods onCacheBehavior.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
cacheBehaviorSettings
An object that describes the cache behavior settings for the distribution.
The
cacheBehaviorSettingsspecified in yourUpdateDistributionRequestwill replace your distribution's existing settings.- Parameters:
cacheBehaviorSettings- An object that describes the cache behavior settings for the distribution.The
cacheBehaviorSettingsspecified in yourUpdateDistributionRequestwill replace your distribution's existing settings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cacheBehaviorSettings
default UpdateDistributionRequest.Builder cacheBehaviorSettings(Consumer<CacheSettings.Builder> cacheBehaviorSettings) An object that describes the cache behavior settings for the distribution.
This is a convenience method that creates an instance of theThe
cacheBehaviorSettingsspecified in yourUpdateDistributionRequestwill replace your distribution's existing settings.CacheSettings.Builderavoiding the need to create one manually viaCacheSettings.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocacheBehaviorSettings(CacheSettings).- Parameters:
cacheBehaviorSettings- a consumer that will call methods onCacheSettings.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
cacheBehaviors
An array of objects that describe the per-path cache behavior for the distribution.
- Parameters:
cacheBehaviors- An array of objects that describe the per-path cache behavior for the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cacheBehaviors
An array of objects that describe the per-path cache behavior for the distribution.
- Parameters:
cacheBehaviors- An array of objects that describe the per-path cache behavior for the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cacheBehaviors
UpdateDistributionRequest.Builder cacheBehaviors(Consumer<CacheBehaviorPerPath.Builder>... cacheBehaviors) An array of objects that describe the per-path cache behavior for the distribution.
This is a convenience method that creates an instance of theCacheBehaviorPerPath.Builderavoiding the need to create one manually viaCacheBehaviorPerPath.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocacheBehaviors(List<CacheBehaviorPerPath>).- Parameters:
cacheBehaviors- a consumer that will call methods onCacheBehaviorPerPath.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
isEnabled
Indicates whether to enable the distribution.
- Parameters:
isEnabled- Indicates whether to enable the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
viewerMinimumTlsProtocolVersion
UpdateDistributionRequest.Builder viewerMinimumTlsProtocolVersion(String viewerMinimumTlsProtocolVersion) Use this parameter to update the minimum TLS protocol version for the SSL/TLS certificate that's attached to the distribution.
- Parameters:
viewerMinimumTlsProtocolVersion- Use this parameter to update the minimum TLS protocol version for the SSL/TLS certificate that's attached to the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
viewerMinimumTlsProtocolVersion
UpdateDistributionRequest.Builder viewerMinimumTlsProtocolVersion(ViewerMinimumTlsProtocolVersionEnum viewerMinimumTlsProtocolVersion) Use this parameter to update the minimum TLS protocol version for the SSL/TLS certificate that's attached to the distribution.
- Parameters:
viewerMinimumTlsProtocolVersion- Use this parameter to update the minimum TLS protocol version for the SSL/TLS certificate that's attached to the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
certificateName
The name of the SSL/TLS certificate that you want to attach to the distribution.
Only certificates with a status of
ISSUEDcan be attached to a distribution.Use the GetCertificates action to get a list of certificate names that you can specify.
- Parameters:
certificateName- The name of the SSL/TLS certificate that you want to attach to the distribution.Only certificates with a status of
ISSUEDcan be attached to a distribution.Use the GetCertificates action to get a list of certificate names that you can specify.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
useDefaultCertificate
Indicates whether the default SSL/TLS certificate is attached to the distribution. The default value is
true. Whentrue, the distribution uses the default domain name such asd111111abcdef8.cloudfront.net.Set this value to
falseto attach a new certificate to the distribution.- Parameters:
useDefaultCertificate- Indicates whether the default SSL/TLS certificate is attached to the distribution. The default value istrue. Whentrue, the distribution uses the default domain name such asd111111abcdef8.cloudfront.net.Set this value to
falseto attach a new certificate to the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateDistributionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateDistributionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-