public static interface LightsailDistribution.Builder extends SdkPojo, CopyableBuilder<LightsailDistribution.Builder,LightsailDistribution>
| Modifier and Type | Method and Description |
|---|---|
LightsailDistribution.Builder |
ableToUpdateBundle(Boolean ableToUpdateBundle)
Indicates whether the bundle that is currently applied to your distribution, specified using the
distributionName parameter, can be changed to another bundle. |
LightsailDistribution.Builder |
alternativeDomainNames(Collection<String> alternativeDomainNames)
The alternate domain names of the distribution.
|
LightsailDistribution.Builder |
alternativeDomainNames(String... alternativeDomainNames)
The alternate domain names of the distribution.
|
LightsailDistribution.Builder |
arn(String arn)
The Amazon Resource Name (ARN) of the distribution.
|
LightsailDistribution.Builder |
bundleId(String bundleId)
The ID of the bundle currently applied to the distribution.
|
LightsailDistribution.Builder |
cacheBehaviors(CacheBehaviorPerPath... cacheBehaviors)
An array of objects that describe the per-path cache behavior of the distribution.
|
LightsailDistribution.Builder |
cacheBehaviors(Collection<CacheBehaviorPerPath> cacheBehaviors)
An array of objects that describe the per-path cache behavior of the distribution.
|
LightsailDistribution.Builder |
cacheBehaviors(Consumer<CacheBehaviorPerPath.Builder>... cacheBehaviors)
An array of objects that describe the per-path cache behavior of the distribution.
|
LightsailDistribution.Builder |
cacheBehaviorSettings(CacheSettings cacheBehaviorSettings)
An object that describes the cache behavior settings of the distribution.
|
default LightsailDistribution.Builder |
cacheBehaviorSettings(Consumer<CacheSettings.Builder> cacheBehaviorSettings)
An object that describes the cache behavior settings of the distribution.
|
LightsailDistribution.Builder |
certificateName(String certificateName)
The name of the SSL/TLS certificate attached to the distribution, if any.
|
LightsailDistribution.Builder |
createdAt(Instant createdAt)
The timestamp when the distribution was created.
|
LightsailDistribution.Builder |
defaultCacheBehavior(CacheBehavior defaultCacheBehavior)
An object that describes the default cache behavior of the distribution.
|
default LightsailDistribution.Builder |
defaultCacheBehavior(Consumer<CacheBehavior.Builder> defaultCacheBehavior)
An object that describes the default cache behavior of the distribution.
|
LightsailDistribution.Builder |
domainName(String domainName)
The domain name of the distribution.
|
LightsailDistribution.Builder |
ipAddressType(IpAddressType ipAddressType)
The IP address type of the distribution.
|
LightsailDistribution.Builder |
ipAddressType(String ipAddressType)
The IP address type of the distribution.
|
LightsailDistribution.Builder |
isEnabled(Boolean isEnabled)
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.
|
LightsailDistribution.Builder |
location(ResourceLocation location)
An object that describes the location of the distribution, such as the Amazon Web Services Region and
Availability Zone.
|
LightsailDistribution.Builder |
name(String name)
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.
|
LightsailDistribution.Builder |
origin(Origin origin)
An object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or
load balancer.
|
LightsailDistribution.Builder |
originPublicDNS(String originPublicDNS)
The public DNS of the origin.
|
LightsailDistribution.Builder |
resourceType(ResourceType resourceType)
The Lightsail resource type (e.g.,
Distribution). |
LightsailDistribution.Builder |
resourceType(String resourceType)
The Lightsail resource type (e.g.,
Distribution). |
LightsailDistribution.Builder |
status(String status)
The status of the distribution.
|
LightsailDistribution.Builder |
supportCode(String supportCode)
The support code.
|
LightsailDistribution.Builder |
tags(Collection<Tag> tags)
The tag keys and optional values for the resource.
|
LightsailDistribution.Builder |
tags(Consumer<Tag.Builder>... tags)
The tag keys and optional values for the resource.
|
LightsailDistribution.Builder |
tags(Tag... tags)
The tag keys and optional values for the resource.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildLightsailDistribution.Builder name(String name)
The name of the distribution.
name - The name of the distribution.LightsailDistribution.Builder arn(String arn)
The Amazon Resource Name (ARN) of the distribution.
arn - The Amazon Resource Name (ARN) of the distribution.LightsailDistribution.Builder supportCode(String 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.
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.LightsailDistribution.Builder createdAt(Instant createdAt)
The timestamp when the distribution was created.
createdAt - The timestamp when the distribution was created.LightsailDistribution.Builder location(ResourceLocation 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.
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.
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.
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 via ResourceLocation.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to location(ResourceLocation).
location - a consumer that will call methods on ResourceLocation.Builderlocation(ResourceLocation)LightsailDistribution.Builder resourceType(String resourceType)
The Lightsail resource type (e.g., Distribution).
resourceType - The Lightsail resource type (e.g., Distribution).ResourceType,
ResourceTypeLightsailDistribution.Builder resourceType(ResourceType resourceType)
The Lightsail resource type (e.g., Distribution).
resourceType - The Lightsail resource type (e.g., Distribution).ResourceType,
ResourceTypeLightsailDistribution.Builder alternativeDomainNames(Collection<String> alternativeDomainNames)
The alternate domain names of the distribution.
alternativeDomainNames - The alternate domain names of the distribution.LightsailDistribution.Builder alternativeDomainNames(String... alternativeDomainNames)
The alternate domain names of the distribution.
alternativeDomainNames - The alternate domain names of the distribution.LightsailDistribution.Builder status(String status)
The status of the distribution.
status - The status of the distribution.LightsailDistribution.Builder isEnabled(Boolean isEnabled)
Indicates whether the distribution is enabled.
isEnabled - Indicates whether the distribution is enabled.LightsailDistribution.Builder domainName(String domainName)
The domain name of the distribution.
domainName - The domain name of the distribution.LightsailDistribution.Builder bundleId(String bundleId)
The ID of the bundle currently applied to the distribution.
bundleId - The ID of the bundle currently applied to the distribution.LightsailDistribution.Builder certificateName(String certificateName)
The name of the SSL/TLS certificate attached to the distribution, if any.
certificateName - The name of the SSL/TLS certificate attached to the distribution, if any.LightsailDistribution.Builder origin(Origin 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.
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.
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.
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 via Origin.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result is
passed to origin(Origin).
origin - a consumer that will call methods on Origin.Builderorigin(Origin)LightsailDistribution.Builder originPublicDNS(String originPublicDNS)
The public DNS of the origin.
originPublicDNS - The public DNS of the origin.LightsailDistribution.Builder defaultCacheBehavior(CacheBehavior defaultCacheBehavior)
An object that describes the default cache behavior of the distribution.
defaultCacheBehavior - An object that describes the default cache behavior of the distribution.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 via CacheBehavior.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to defaultCacheBehavior(CacheBehavior).
defaultCacheBehavior - a consumer that will call methods on CacheBehavior.BuilderdefaultCacheBehavior(CacheBehavior)LightsailDistribution.Builder cacheBehaviorSettings(CacheSettings cacheBehaviorSettings)
An object that describes the cache behavior settings of the distribution.
cacheBehaviorSettings - An object that describes the cache behavior settings of the distribution.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 via CacheSettings.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to cacheBehaviorSettings(CacheSettings).
cacheBehaviorSettings - a consumer that will call methods on CacheSettings.BuildercacheBehaviorSettings(CacheSettings)LightsailDistribution.Builder cacheBehaviors(Collection<CacheBehaviorPerPath> cacheBehaviors)
An array of objects that describe the per-path cache behavior of the distribution.
cacheBehaviors - An array of objects that describe the per-path cache behavior of the distribution.LightsailDistribution.Builder cacheBehaviors(CacheBehaviorPerPath... cacheBehaviors)
An array of objects that describe the per-path cache behavior of the distribution.
cacheBehaviors - An array of objects that describe the per-path cache behavior of the distribution.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 via
CacheBehaviorPerPath.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #cacheBehaviors(List.
cacheBehaviors - a consumer that will call methods on
CacheBehaviorPerPath.Builder#cacheBehaviors(java.util.Collection) LightsailDistribution.Builder ableToUpdateBundle(Boolean 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.
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.
LightsailDistribution.Builder ipAddressType(String ipAddressType)
The IP address type of the distribution.
The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.
ipAddressType - The IP address type of the distribution.
The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.
IpAddressType,
IpAddressTypeLightsailDistribution.Builder ipAddressType(IpAddressType ipAddressType)
The IP address type of the distribution.
The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.
ipAddressType - The IP address type of the distribution.
The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.
IpAddressType,
IpAddressTypeLightsailDistribution.Builder tags(Collection<Tag> tags)
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
tags - The tag keys and optional values for the resource. For more information about tags in Lightsail, see
the Amazon
Lightsail Developer Guide.LightsailDistribution.Builder tags(Tag... tags)
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
tags - The tag keys and optional values for the resource. For more information about tags in Lightsail, see
the Amazon
Lightsail Developer Guide.LightsailDistribution.Builder tags(Consumer<Tag.Builder>... 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
via Tag.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #tags(List.
tags - a consumer that will call methods on
Tag.Builder#tags(java.util.Collection) Copyright © 2023. All rights reserved.