Interface UpdateDistributionRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateDistributionRequest.Builder,UpdateDistributionRequest>,LightsailRequest.Builder,SdkBuilder<UpdateDistributionRequest.Builder,UpdateDistributionRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- UpdateDistributionRequest
public static interface UpdateDistributionRequest.Builder extends LightsailRequest.Builder, SdkPojo, CopyableBuilder<UpdateDistributionRequest.Builder,UpdateDistributionRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description UpdateDistributionRequest.BuildercacheBehaviors(Collection<CacheBehaviorPerPath> cacheBehaviors)An array of objects that describe the per-path cache behavior for the distribution.UpdateDistributionRequest.BuildercacheBehaviors(Consumer<CacheBehaviorPerPath.Builder>... cacheBehaviors)An array of objects that describe the per-path cache behavior for the distribution.UpdateDistributionRequest.BuildercacheBehaviors(CacheBehaviorPerPath... cacheBehaviors)An array of objects that describe the per-path cache behavior for the distribution.default UpdateDistributionRequest.BuildercacheBehaviorSettings(Consumer<CacheSettings.Builder> cacheBehaviorSettings)An object that describes the cache behavior settings for the distribution.UpdateDistributionRequest.BuildercacheBehaviorSettings(CacheSettings cacheBehaviorSettings)An object that describes the cache behavior settings for the distribution.default UpdateDistributionRequest.BuilderdefaultCacheBehavior(Consumer<CacheBehavior.Builder> defaultCacheBehavior)An object that describes the default cache behavior for the distribution.UpdateDistributionRequest.BuilderdefaultCacheBehavior(CacheBehavior defaultCacheBehavior)An object that describes the default cache behavior for the distribution.UpdateDistributionRequest.BuilderdistributionName(String distributionName)The name of the distribution to update.UpdateDistributionRequest.BuilderisEnabled(Boolean isEnabled)Indicates whether to enable the distribution.default UpdateDistributionRequest.Builderorigin(Consumer<InputOrigin.Builder> origin)An object that describes the origin resource for the distribution, such as a Lightsail instance, bucket, or load balancer.UpdateDistributionRequest.Builderorigin(InputOrigin origin)An object that describes the origin resource for the distribution, such as a Lightsail instance, bucket, or load balancer.UpdateDistributionRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)UpdateDistributionRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.lightsail.model.LightsailRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
distributionName
UpdateDistributionRequest.Builder distributionName(String 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
UpdateDistributionRequest.Builder origin(InputOrigin 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
default UpdateDistributionRequest.Builder origin(Consumer<InputOrigin.Builder> 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:
origin(InputOrigin)
-
defaultCacheBehavior
UpdateDistributionRequest.Builder defaultCacheBehavior(CacheBehavior 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:
defaultCacheBehavior(CacheBehavior)
-
cacheBehaviorSettings
UpdateDistributionRequest.Builder cacheBehaviorSettings(CacheSettings 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:
cacheBehaviorSettings(CacheSettings)
-
cacheBehaviors
UpdateDistributionRequest.Builder cacheBehaviors(Collection<CacheBehaviorPerPath> 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(CacheBehaviorPerPath... 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 to#cacheBehaviors(List.) - 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:
#cacheBehaviors(java.util.Collection)
-
isEnabled
UpdateDistributionRequest.Builder isEnabled(Boolean 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.
-
overrideConfiguration
UpdateDistributionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
UpdateDistributionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-