Interface LightsailDistribution.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<LightsailDistribution.Builder,
,LightsailDistribution> SdkBuilder<LightsailDistribution.Builder,
,LightsailDistribution> SdkPojo
- Enclosing class:
LightsailDistribution
-
Method Summary
Modifier and TypeMethodDescriptionableToUpdateBundle
(Boolean ableToUpdateBundle) Indicates whether the bundle that is currently applied to your distribution, specified using thedistributionName
parameter, can be changed to another bundle.alternativeDomainNames
(String... alternativeDomainNames) The alternate domain names of the distribution.alternativeDomainNames
(Collection<String> alternativeDomainNames) The alternate domain names of the distribution.The Amazon Resource Name (ARN) of the distribution.The ID of the bundle currently applied to the distribution.cacheBehaviors
(Collection<CacheBehaviorPerPath> cacheBehaviors) An array of objects that describe the per-path cache behavior of the distribution.cacheBehaviors
(Consumer<CacheBehaviorPerPath.Builder>... cacheBehaviors) An array of objects that describe the per-path cache behavior of the distribution.cacheBehaviors
(CacheBehaviorPerPath... cacheBehaviors) An array of objects that describe the per-path cache behavior of the distribution.default LightsailDistribution.Builder
cacheBehaviorSettings
(Consumer<CacheSettings.Builder> cacheBehaviorSettings) An object that describes the cache behavior settings of the distribution.cacheBehaviorSettings
(CacheSettings cacheBehaviorSettings) An object that describes the cache behavior settings of the distribution.certificateName
(String certificateName) The name of the SSL/TLS certificate attached to the distribution, if any.The timestamp when the distribution was created.default LightsailDistribution.Builder
defaultCacheBehavior
(Consumer<CacheBehavior.Builder> defaultCacheBehavior) An object that describes the default cache behavior of the distribution.defaultCacheBehavior
(CacheBehavior defaultCacheBehavior) An object that describes the default cache behavior of the distribution.domainName
(String domainName) The domain name of the distribution.ipAddressType
(String ipAddressType) The IP address type of the distribution.ipAddressType
(IpAddressType ipAddressType) The IP address type of the distribution.Indicates whether the distribution is enabled.default LightsailDistribution.Builder
location
(Consumer<ResourceLocation.Builder> location) An object that describes the location of the distribution, such as the Amazon Web Services Region and Availability Zone.location
(ResourceLocation location) An object that describes the location of the distribution, such as the Amazon Web Services Region and Availability Zone.The name of the distribution.default LightsailDistribution.Builder
origin
(Consumer<Origin.Builder> origin) An object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer.An object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer.originPublicDNS
(String originPublicDNS) The public DNS of the origin.resourceType
(String resourceType) The Lightsail resource type (Distribution
).resourceType
(ResourceType resourceType) The Lightsail resource type (Distribution
).The status of the distribution.supportCode
(String supportCode) The support code.tags
(Collection<Tag> tags) The tag keys and optional values for the resource.tags
(Consumer<Tag.Builder>... tags) The tag keys and optional values for the resource.The tag keys and optional values for the resource.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
name
The name of the distribution.
- Parameters:
name
- The name of the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
The Amazon Resource Name (ARN) of the distribution.
- Parameters:
arn
- The Amazon Resource Name (ARN) of the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportCode
The support code. Include this code in your email to support when you have questions about your Lightsail distribution. This code enables our support team to look up your Lightsail information more easily.
- Parameters:
supportCode
- The support code. Include this code in your email to support when you have questions about your Lightsail distribution. This code enables our support team to look up your Lightsail information more easily.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The timestamp when the distribution was created.
- Parameters:
createdAt
- The timestamp when the distribution was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
An object that describes the location of the distribution, such as the Amazon Web Services Region and Availability Zone.
Lightsail distributions are global resources that can reference an origin in any Amazon Web Services Region, and distribute its content globally. However, all distributions are located in the
us-east-1
Region.- Parameters:
location
- An object that describes the location of the distribution, such as the Amazon Web Services Region and Availability Zone.Lightsail distributions are global resources that can reference an origin in any Amazon Web Services Region, and distribute its content globally. However, all distributions are located in the
us-east-1
Region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
An object that describes the location of the distribution, such as the Amazon Web Services Region and Availability Zone.
Lightsail distributions are global resources that can reference an origin in any Amazon Web Services Region, and distribute its content globally. However, all distributions are located in the
us-east-1
Region.ResourceLocation.Builder
avoiding the need to create one manually viaResourceLocation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolocation(ResourceLocation)
.- Parameters:
location
- a consumer that will call methods onResourceLocation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceType
The Lightsail resource type (
Distribution
).- Parameters:
resourceType
- The Lightsail resource type (Distribution
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceType
The Lightsail resource type (
Distribution
).- Parameters:
resourceType
- The Lightsail resource type (Distribution
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
alternativeDomainNames
The alternate domain names of the distribution.
- Parameters:
alternativeDomainNames
- The alternate domain names of the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alternativeDomainNames
The alternate domain names of the distribution.
- Parameters:
alternativeDomainNames
- The alternate domain names of the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The status of the distribution.
- Parameters:
status
- The status of the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isEnabled
Indicates whether the distribution is enabled.
- Parameters:
isEnabled
- Indicates whether the distribution is enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
domainName
The domain name of the distribution.
- Parameters:
domainName
- The domain name of the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bundleId
The ID of the bundle currently applied to the distribution.
- Parameters:
bundleId
- The ID of the bundle currently applied to the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
certificateName
The name of the SSL/TLS certificate attached to the distribution, if any.
- Parameters:
certificateName
- The name of the SSL/TLS certificate attached to the distribution, if any.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
origin
An object that describes the origin resource of 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 of 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 of 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 theOrigin.Builder
avoiding the need to create one manually viaOrigin.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toorigin(Origin)
.- Parameters:
origin
- a consumer that will call methods onOrigin.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
originPublicDNS
The public DNS of the origin.
- Parameters:
originPublicDNS
- The public DNS of the origin.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultCacheBehavior
An object that describes the default cache behavior of the distribution.
- Parameters:
defaultCacheBehavior
- An object that describes the default cache behavior of the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultCacheBehavior
default LightsailDistribution.Builder defaultCacheBehavior(Consumer<CacheBehavior.Builder> defaultCacheBehavior) An object that describes the default cache behavior of 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 of the distribution.
- Parameters:
cacheBehaviorSettings
- An object that describes the cache behavior settings of the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cacheBehaviorSettings
default LightsailDistribution.Builder cacheBehaviorSettings(Consumer<CacheSettings.Builder> cacheBehaviorSettings) An object that describes the cache behavior settings of 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 of the distribution.
- Parameters:
cacheBehaviors
- An array of objects that describe the per-path cache behavior of 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 of the distribution.
- Parameters:
cacheBehaviors
- An array of objects that describe the per-path cache behavior of the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cacheBehaviors
LightsailDistribution.Builder cacheBehaviors(Consumer<CacheBehaviorPerPath.Builder>... cacheBehaviors) An array of objects that describe the per-path cache behavior of 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:
-
ableToUpdateBundle
Indicates whether the bundle that is currently applied to your distribution, specified using the
distributionName
parameter, can be changed to another bundle.Use the
UpdateDistributionBundle
action to change your distribution's bundle.- Parameters:
ableToUpdateBundle
- Indicates whether the bundle that is currently applied to your distribution, specified using thedistributionName
parameter, can be changed to another bundle.Use the
UpdateDistributionBundle
action to change your distribution's bundle.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipAddressType
The IP address type of the distribution.
The possible values are
ipv4
for IPv4 only, anddualstack
for IPv4 and IPv6.- Parameters:
ipAddressType
- The IP address type of the distribution.The possible values are
ipv4
for IPv4 only, anddualstack
for IPv4 and IPv6.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ipAddressType
The IP address type of the distribution.
The possible values are
ipv4
for IPv4 only, anddualstack
for IPv4 and IPv6.- Parameters:
ipAddressType
- The IP address type of the distribution.The possible values are
ipv4
for IPv4 only, anddualstack
for IPv4 and IPv6.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
- Parameters:
tags
- The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
- Parameters:
tags
- The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
This is a convenience method that creates an instance of theTag.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:
-