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 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

      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

      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.

      This is a convenience method that creates an instance of the 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).

      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:
    • 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

      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:
    • 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

      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

      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

      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 the Origin.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).

      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:
    • 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 the CacheBehavior.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).

      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:
    • 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 the CacheSettings.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).

      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:
    • 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

      An array of objects that describe the per-path cache behavior of the distribution.

      This is a convenience method that creates an instance of the CacheBehaviorPerPath.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<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:
    • ableToUpdateBundle

      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.

      Parameters:
      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.

      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 ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.

      Parameters:
      ipAddressType - The IP address type of the distribution.

      The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • ipAddressType

      LightsailDistribution.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.

      Parameters:
      ipAddressType - The IP address type of the distribution.

      The possible values are ipv4 for IPv4 only, and dualstack 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 the Tag.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<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: