Interface LightsailDistribution.Builder

    • 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-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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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, IpAddressType
      • 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:
        IpAddressType, IpAddressType