Interface LightsailDistribution.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<LightsailDistribution.Builder,,- LightsailDistribution> - SdkBuilder<LightsailDistribution.Builder,,- LightsailDistribution> - SdkPojo
- Enclosing class:
- LightsailDistribution
- 
Method SummaryModifier and TypeMethodDescriptionableToUpdateBundle(Boolean ableToUpdateBundle) Indicates whether the bundle that is currently applied to your distribution, specified using thedistributionNameparameter, 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.BuildercacheBehaviorSettings(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.BuilderdefaultCacheBehavior(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.Builderlocation(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.Builderorigin(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.viewerMinimumTlsProtocolVersion(String viewerMinimumTlsProtocolVersion) The minimum TLS protocol version that the distribution can use to communicate with viewers.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
nameThe 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.
 
- 
arnThe 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.
 
- 
supportCodeThe 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.
 
- 
createdAtThe 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.
 
- 
locationAn 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.
 
- 
locationAn 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.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 on- ResourceLocation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
resourceTypeThe 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:
 
- 
resourceTypeThe 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:
 
- 
alternativeDomainNamesThe 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.
 
- 
alternativeDomainNamesThe 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.
 
- 
statusThe 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.
 
- 
isEnabledIndicates 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.
 
- 
domainNameThe 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.
 
- 
bundleIdThe 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.
 
- 
certificateNameThe 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.
 
- 
originAn 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.
 
- 
originAn 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 on- Origin.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
originPublicDNSThe 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.
 
- 
defaultCacheBehaviorAn 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.
 
- 
defaultCacheBehaviordefault 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 on- CacheBehavior.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
cacheBehaviorSettingsAn 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.
 
- 
cacheBehaviorSettingsdefault 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 on- CacheSettings.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
cacheBehaviorsAn 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.
 
- 
cacheBehaviorsAn 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.
 
- 
cacheBehaviorsLightsailDistribution.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 tocacheBehaviors(List<CacheBehaviorPerPath>).- Parameters:
- cacheBehaviors- a consumer that will call methods on- CacheBehaviorPerPath.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
ableToUpdateBundleIndicates 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 the- distributionNameparameter, 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.
 
- 
ipAddressTypeThe 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, and- dualstackfor IPv4 and IPv6.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
ipAddressTypeThe 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, and- dualstackfor IPv4 and IPv6.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
tagsThe 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.
 
- 
tagsThe 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.
 
- 
tagsThe 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 totags(List<Tag>).- Parameters:
- tags- a consumer that will call methods on- Tag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
viewerMinimumTlsProtocolVersionLightsailDistribution.Builder viewerMinimumTlsProtocolVersion(String viewerMinimumTlsProtocolVersion) The minimum TLS protocol version that the distribution can use to communicate with viewers. - Parameters:
- viewerMinimumTlsProtocolVersion- The minimum TLS protocol version that the distribution can use to communicate with viewers.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
 
-