Interface CreateDistributionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateDistributionRequest.Builder,
,CreateDistributionRequest> LightsailRequest.Builder
,SdkBuilder<CreateDistributionRequest.Builder,
,CreateDistributionRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateDistributionRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe bundle ID to use for the distribution.cacheBehaviors
(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 for the distribution.ipAddressType
(String ipAddressType) The IP address type for the distribution.ipAddressType
(IpAddressType ipAddressType) The IP address type for 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.tags
(Collection<Tag> tags) The tag keys and optional values to add to the distribution during create.tags
(Consumer<Tag.Builder>... tags) The tag keys and optional values to add to the distribution during create.The tag keys and optional values to add to the distribution during create.viewerMinimumTlsProtocolVersion
(String viewerMinimumTlsProtocolVersion) The minimum TLS protocol version for the SSL/TLS certificate.viewerMinimumTlsProtocolVersion
(ViewerMinimumTlsProtocolVersionEnum viewerMinimumTlsProtocolVersion) The minimum TLS protocol version for the SSL/TLS certificate.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, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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.Builder
avoiding the need to create one manually viaInputOrigin.builder()
.When the
Consumer
completes,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 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.Builder
avoiding the need to create one manually viaCacheBehavior.builder()
.When the
Consumer
completes,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.
- 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.Builder
avoiding the need to create one manually viaCacheSettings.builder()
.When the
Consumer
completes,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
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.Builder
avoiding the need to create one manually viaCacheBehaviorPerPath.builder()
.When the
Consumer
completes,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:
-
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
GetDistributionBundles
action 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
GetDistributionBundles
action 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
The IP address type for the distribution.
The possible values are
ipv4
for IPv4 only, anddualstack
for IPv4 and IPv6.The default value is
dualstack
.- Parameters:
ipAddressType
- The IP address type for the distribution.The possible values are
ipv4
for IPv4 only, anddualstack
for 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
The IP address type for the distribution.
The possible values are
ipv4
for IPv4 only, anddualstack
for IPv4 and IPv6.The default value is
dualstack
.- Parameters:
ipAddressType
- The IP address type for the distribution.The possible values are
ipv4
for IPv4 only, anddualstack
for 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:
-
tags
The tag keys and optional values to add to the distribution during create.
Use the
TagResource
action 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
TagResource
action to tag a resource after it's created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tag keys and optional values to add to the distribution during create.
Use the
TagResource
action 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
TagResource
action to tag a resource after it's created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 theTagResource
action to tag a resource after it's created.Tag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- 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:
-
certificateName
The name of the SSL/TLS certificate that you want to attach to the 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.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.
-
viewerMinimumTlsProtocolVersion
CreateDistributionRequest.Builder viewerMinimumTlsProtocolVersion(String viewerMinimumTlsProtocolVersion) The minimum TLS protocol version for the SSL/TLS certificate.
- Parameters:
viewerMinimumTlsProtocolVersion
- The minimum TLS protocol version for the SSL/TLS certificate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
viewerMinimumTlsProtocolVersion
CreateDistributionRequest.Builder viewerMinimumTlsProtocolVersion(ViewerMinimumTlsProtocolVersionEnum viewerMinimumTlsProtocolVersion) The minimum TLS protocol version for the SSL/TLS certificate.
- Parameters:
viewerMinimumTlsProtocolVersion
- The minimum TLS protocol version for the SSL/TLS certificate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateDistributionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateDistributionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-