Interface CreateLoadBalancerRequest.Builder

    • Method Detail

      • loadBalancerName

        CreateLoadBalancerRequest.Builder loadBalancerName​(String loadBalancerName)

        The name of your load balancer.

        Parameters:
        loadBalancerName - The name of your load balancer.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • instancePort

        CreateLoadBalancerRequest.Builder instancePort​(Integer instancePort)

        The instance port where you're creating your load balancer.

        Parameters:
        instancePort - The instance port where you're creating your load balancer.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • healthCheckPath

        CreateLoadBalancerRequest.Builder healthCheckPath​(String healthCheckPath)

        The path you provided to perform the load balancer health check. If you didn't specify a health check path, Lightsail uses the root path of your website ("/").

        You may want to specify a custom health check path other than the root of your application if your home page loads slowly or has a lot of media or scripting on it.

        Parameters:
        healthCheckPath - The path you provided to perform the load balancer health check. If you didn't specify a health check path, Lightsail uses the root path of your website ("/").

        You may want to specify a custom health check path other than the root of your application if your home page loads slowly or has a lot of media or scripting on it.

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

        CreateLoadBalancerRequest.Builder certificateName​(String certificateName)

        The name of the SSL/TLS certificate.

        If you specify certificateName, then certificateDomainName is required (and vice-versa).

        Parameters:
        certificateName - The name of the SSL/TLS certificate.

        If you specify certificateName, then certificateDomainName is required (and vice-versa).

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

        CreateLoadBalancerRequest.Builder certificateDomainName​(String certificateDomainName)

        The domain name with which your certificate is associated (example.com).

        If you specify certificateDomainName, then certificateName is required (and vice-versa).

        Parameters:
        certificateDomainName - The domain name with which your certificate is associated (example.com).

        If you specify certificateDomainName, then certificateName is required (and vice-versa).

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

        CreateLoadBalancerRequest.Builder certificateAlternativeNames​(Collection<String> certificateAlternativeNames)

        The optional alternative domains and subdomains to use with your SSL/TLS certificate ( www.example.com, example.com, m.example.com, blog.example.com).

        Parameters:
        certificateAlternativeNames - The optional alternative domains and subdomains to use with your SSL/TLS certificate ( www.example.com, example.com, m.example.com, blog.example.com).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • certificateAlternativeNames

        CreateLoadBalancerRequest.Builder certificateAlternativeNames​(String... certificateAlternativeNames)

        The optional alternative domains and subdomains to use with your SSL/TLS certificate ( www.example.com, example.com, m.example.com, blog.example.com).

        Parameters:
        certificateAlternativeNames - The optional alternative domains and subdomains to use with your SSL/TLS certificate ( www.example.com, example.com, m.example.com, blog.example.com).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateLoadBalancerRequest.Builder tags​(Collection<Tag> tags)

        The tag keys and optional values to add to the resource during create.

        Use the TagResource action to tag a resource after it's created.

        Parameters:
        tags - The tag keys and optional values to add to the resource during create.

        Use the TagResource action to tag a resource after it's created.

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

        CreateLoadBalancerRequest.Builder tags​(Tag... tags)

        The tag keys and optional values to add to the resource during create.

        Use the TagResource action to tag a resource after it's created.

        Parameters:
        tags - The tag keys and optional values to add to the resource during create.

        Use the TagResource action to tag a resource after it's created.

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

        CreateLoadBalancerRequest.Builder tags​(Consumer<Tag.Builder>... tags)

        The tag keys and optional values to add to the resource during create.

        Use the TagResource action to tag a resource after it's created.

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

        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:
        #tags(java.util.Collection)
      • ipAddressType

        CreateLoadBalancerRequest.Builder ipAddressType​(String ipAddressType)

        The IP address type for the load balancer.

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

        The default value is dualstack.

        Parameters:
        ipAddressType - The IP address type for the load balancer.

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

        The default value is dualstack.

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

        CreateLoadBalancerRequest.Builder ipAddressType​(IpAddressType ipAddressType)

        The IP address type for the load balancer.

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

        The default value is dualstack.

        Parameters:
        ipAddressType - The IP address type for the load balancer.

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

        The default value is dualstack.

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