Interface LightsailDistribution.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<LightsailDistribution.Builder,LightsailDistribution>,SdkBuilder<LightsailDistribution.Builder,LightsailDistribution>,SdkPojo
- Enclosing class:
- LightsailDistribution
public static interface LightsailDistribution.Builder extends SdkPojo, CopyableBuilder<LightsailDistribution.Builder,LightsailDistribution>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description LightsailDistribution.BuilderableToUpdateBundle(Boolean ableToUpdateBundle)Indicates whether the bundle that is currently applied to your distribution, specified using thedistributionNameparameter, can be changed to another bundle.LightsailDistribution.BuilderalternativeDomainNames(String... alternativeDomainNames)The alternate domain names of the distribution.LightsailDistribution.BuilderalternativeDomainNames(Collection<String> alternativeDomainNames)The alternate domain names of the distribution.LightsailDistribution.Builderarn(String arn)The Amazon Resource Name (ARN) of the distribution.LightsailDistribution.BuilderbundleId(String bundleId)The ID of the bundle currently applied to the distribution.LightsailDistribution.BuildercacheBehaviors(Collection<CacheBehaviorPerPath> cacheBehaviors)An array of objects that describe the per-path cache behavior of the distribution.LightsailDistribution.BuildercacheBehaviors(Consumer<CacheBehaviorPerPath.Builder>... cacheBehaviors)An array of objects that describe the per-path cache behavior of the distribution.LightsailDistribution.BuildercacheBehaviors(CacheBehaviorPerPath... cacheBehaviors)An array of objects that describe the per-path cache behavior of the distribution.default LightsailDistribution.BuildercacheBehaviorSettings(Consumer<CacheSettings.Builder> cacheBehaviorSettings)An object that describes the cache behavior settings of the distribution.LightsailDistribution.BuildercacheBehaviorSettings(CacheSettings cacheBehaviorSettings)An object that describes the cache behavior settings of the distribution.LightsailDistribution.BuildercertificateName(String certificateName)The name of the SSL/TLS certificate attached to the distribution, if any.LightsailDistribution.BuildercreatedAt(Instant createdAt)The timestamp when the distribution was created.default LightsailDistribution.BuilderdefaultCacheBehavior(Consumer<CacheBehavior.Builder> defaultCacheBehavior)An object that describes the default cache behavior of the distribution.LightsailDistribution.BuilderdefaultCacheBehavior(CacheBehavior defaultCacheBehavior)An object that describes the default cache behavior of the distribution.LightsailDistribution.BuilderdomainName(String domainName)The domain name of the distribution.LightsailDistribution.BuilderipAddressType(String ipAddressType)The IP address type of the distribution.LightsailDistribution.BuilderipAddressType(IpAddressType ipAddressType)The IP address type of the distribution.LightsailDistribution.BuilderisEnabled(Boolean isEnabled)Indicates whether the distribution is enabled.default LightsailDistribution.Builderlocation(Consumer<ResourceLocation.Builder> location)An object that describes the location of the distribution, such as the Amazon Web Services Region and Availability Zone.LightsailDistribution.Builderlocation(ResourceLocation location)An object that describes the location of the distribution, such as the Amazon Web Services Region and Availability Zone.LightsailDistribution.Buildername(String name)The name of the distribution.default LightsailDistribution.Builderorigin(Consumer<Origin.Builder> origin)An object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer.LightsailDistribution.Builderorigin(Origin origin)An object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer.LightsailDistribution.BuilderoriginPublicDNS(String originPublicDNS)The public DNS of the origin.LightsailDistribution.BuilderresourceType(String resourceType)The Lightsail resource type (Distribution).LightsailDistribution.BuilderresourceType(ResourceType resourceType)The Lightsail resource type (Distribution).LightsailDistribution.Builderstatus(String status)The status of the distribution.LightsailDistribution.BuildersupportCode(String supportCode)The support code.LightsailDistribution.Buildertags(Collection<Tag> tags)The tag keys and optional values for the resource.LightsailDistribution.Buildertags(Consumer<Tag.Builder>... tags)The tag keys and optional values for the resource.LightsailDistribution.Buildertags(Tag... tags)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 Detail
-
name
LightsailDistribution.Builder name(String 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
LightsailDistribution.Builder arn(String 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
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.
- 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
LightsailDistribution.Builder createdAt(Instant 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
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-1Region.- 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-1Region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
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.
This is a convenience method that creates an instance of theLightsail 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-1Region.ResourceLocation.Builderavoiding the need to create one manually viaResourceLocation.builder().When the
Consumercompletes,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:
location(ResourceLocation)
-
resourceType
LightsailDistribution.Builder resourceType(String 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,ResourceType
-
resourceType
LightsailDistribution.Builder resourceType(ResourceType 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,ResourceType
-
alternativeDomainNames
LightsailDistribution.Builder alternativeDomainNames(Collection<String> 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
LightsailDistribution.Builder alternativeDomainNames(String... 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
LightsailDistribution.Builder status(String 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
LightsailDistribution.Builder isEnabled(Boolean 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
LightsailDistribution.Builder domainName(String 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
LightsailDistribution.Builder bundleId(String 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
LightsailDistribution.Builder certificateName(String 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
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.
- 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
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.Builderavoiding the need to create one manually viaOrigin.builder().When the
Consumercompletes,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:
origin(Origin)
-
originPublicDNS
LightsailDistribution.Builder originPublicDNS(String 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
LightsailDistribution.Builder defaultCacheBehavior(CacheBehavior 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.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
LightsailDistribution.Builder cacheBehaviorSettings(CacheSettings 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.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
LightsailDistribution.Builder cacheBehaviors(Collection<CacheBehaviorPerPath> 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(CacheBehaviorPerPath... 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.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)
-
ableToUpdateBundle
LightsailDistribution.Builder ableToUpdateBundle(Boolean ableToUpdateBundle)
Indicates whether the bundle that is currently applied to your distribution, specified using the
distributionNameparameter, can be changed to another bundle.Use the
UpdateDistributionBundleaction to change your distribution's bundle.- Parameters:
ableToUpdateBundle- Indicates whether the bundle that is currently applied to your distribution, specified using thedistributionNameparameter, can be changed to another bundle.Use the
UpdateDistributionBundleaction to change your distribution's bundle.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipAddressType
LightsailDistribution.Builder ipAddressType(String ipAddressType)
The IP address type of the distribution.
The possible values are
ipv4for IPv4 only, anddualstackfor IPv4 and IPv6.- Parameters:
ipAddressType- The IP address type of the distribution.The possible values are
ipv4for IPv4 only, anddualstackfor IPv4 and IPv6.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
IpAddressType,IpAddressType
-
ipAddressType
LightsailDistribution.Builder ipAddressType(IpAddressType ipAddressType)
The IP address type of the distribution.
The possible values are
ipv4for IPv4 only, anddualstackfor IPv4 and IPv6.- Parameters:
ipAddressType- The IP address type of the distribution.The possible values are
ipv4for IPv4 only, anddualstackfor IPv4 and IPv6.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
IpAddressType,IpAddressType
-
tags
LightsailDistribution.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.
- 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
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.
- 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
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.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)
-
-