Interface CreateDistributionRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateDistributionRequest.Builder,CreateDistributionRequest>,LightsailRequest.Builder,SdkBuilder<CreateDistributionRequest.Builder,CreateDistributionRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateDistributionRequest
public static interface CreateDistributionRequest.Builder extends LightsailRequest.Builder, SdkPojo, CopyableBuilder<CreateDistributionRequest.Builder,CreateDistributionRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateDistributionRequest.BuilderbundleId(String bundleId)The bundle ID to use for the distribution.CreateDistributionRequest.BuildercacheBehaviors(Collection<CacheBehaviorPerPath> cacheBehaviors)An array of objects that describe the per-path cache behavior for the distribution.CreateDistributionRequest.BuildercacheBehaviors(Consumer<CacheBehaviorPerPath.Builder>... cacheBehaviors)An array of objects that describe the per-path cache behavior for the distribution.CreateDistributionRequest.BuildercacheBehaviors(CacheBehaviorPerPath... cacheBehaviors)An array of objects that describe the per-path cache behavior for the distribution.default CreateDistributionRequest.BuildercacheBehaviorSettings(Consumer<CacheSettings.Builder> cacheBehaviorSettings)An object that describes the cache behavior settings for the distribution.CreateDistributionRequest.BuildercacheBehaviorSettings(CacheSettings cacheBehaviorSettings)An object that describes the cache behavior settings for the distribution.default CreateDistributionRequest.BuilderdefaultCacheBehavior(Consumer<CacheBehavior.Builder> defaultCacheBehavior)An object that describes the default cache behavior for the distribution.CreateDistributionRequest.BuilderdefaultCacheBehavior(CacheBehavior defaultCacheBehavior)An object that describes the default cache behavior for the distribution.CreateDistributionRequest.BuilderdistributionName(String distributionName)The name for the distribution.CreateDistributionRequest.BuilderipAddressType(String ipAddressType)The IP address type for the distribution.CreateDistributionRequest.BuilderipAddressType(IpAddressType ipAddressType)The IP address type for the distribution.default CreateDistributionRequest.Builderorigin(Consumer<InputOrigin.Builder> origin)An object that describes the origin resource for the distribution, such as a Lightsail instance, bucket, or load balancer.CreateDistributionRequest.Builderorigin(InputOrigin origin)An object that describes the origin resource for the distribution, such as a Lightsail instance, bucket, or load balancer.CreateDistributionRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateDistributionRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateDistributionRequest.Buildertags(Collection<Tag> tags)The tag keys and optional values to add to the distribution during create.CreateDistributionRequest.Buildertags(Consumer<Tag.Builder>... tags)The tag keys and optional values to add to the distribution during create.CreateDistributionRequest.Buildertags(Tag... tags)The tag keys and optional values to add to the distribution during create.-
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
CreateDistributionRequest.Builder distributionName(String distributionName)
The name for the distribution.
- Parameters:
distributionName- The name for the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
origin
CreateDistributionRequest.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 CreateDistributionRequest.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
CreateDistributionRequest.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 CreateDistributionRequest.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
CreateDistributionRequest.Builder cacheBehaviorSettings(CacheSettings cacheBehaviorSettings)
An object that describes the cache behavior settings for the distribution.
- Parameters:
cacheBehaviorSettings- An object that describes the cache behavior settings for the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cacheBehaviorSettings
default CreateDistributionRequest.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 theCacheSettings.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
CreateDistributionRequest.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
CreateDistributionRequest.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
CreateDistributionRequest.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)
-
bundleId
CreateDistributionRequest.Builder bundleId(String bundleId)
The bundle ID to use for the distribution.
A distribution bundle describes the specifications of your distribution, such as the monthly cost and monthly network transfer quota.
Use the
GetDistributionBundlesaction to get a list of distribution bundle IDs that you can specify.- Parameters:
bundleId- The bundle ID to use for the distribution.A distribution bundle describes the specifications of your distribution, such as the monthly cost and monthly network transfer quota.
Use the
GetDistributionBundlesaction to get a list of distribution bundle IDs that you can specify.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipAddressType
CreateDistributionRequest.Builder ipAddressType(String ipAddressType)
The IP address type for the distribution.
The possible values are
ipv4for IPv4 only, anddualstackfor IPv4 and IPv6.The default value is
dualstack.- Parameters:
ipAddressType- The IP address type for the distribution.The possible values are
ipv4for IPv4 only, anddualstackfor IPv4 and IPv6.The default value is
dualstack.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
IpAddressType,IpAddressType
-
ipAddressType
CreateDistributionRequest.Builder ipAddressType(IpAddressType ipAddressType)
The IP address type for the distribution.
The possible values are
ipv4for IPv4 only, anddualstackfor IPv4 and IPv6.The default value is
dualstack.- Parameters:
ipAddressType- The IP address type for the distribution.The possible values are
ipv4for IPv4 only, anddualstackfor IPv4 and IPv6.The default value is
dualstack.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
IpAddressType,IpAddressType
-
tags
CreateDistributionRequest.Builder tags(Collection<Tag> tags)
The tag keys and optional values to add to the distribution during create.
Use the
TagResourceaction to tag a resource after it's created.- Parameters:
tags- The tag keys and optional values to add to the distribution during create.Use the
TagResourceaction to tag a resource after it's created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateDistributionRequest.Builder tags(Tag... tags)
The tag keys and optional values to add to the distribution during create.
Use the
TagResourceaction to tag a resource after it's created.- Parameters:
tags- The tag keys and optional values to add to the distribution during create.Use the
TagResourceaction to tag a resource after it's created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateDistributionRequest.Builder tags(Consumer<Tag.Builder>... tags)
The tag keys and optional values to add to the distribution during create.
Use the
This is a convenience method that creates an instance of theTagResourceaction to tag a resource after it's created.Tag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
overrideConfiguration
CreateDistributionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateDistributionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-