Interface CreateLoadBalancerRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<CreateLoadBalancerRequest.Builder,CreateLoadBalancerRequest>, LightsailRequest.Builder, SdkBuilder<CreateLoadBalancerRequest.Builder,CreateLoadBalancerRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
CreateLoadBalancerRequest

public static interface CreateLoadBalancerRequest.Builder extends LightsailRequest.Builder, SdkPojo, CopyableBuilder<CreateLoadBalancerRequest.Builder,CreateLoadBalancerRequest>
  • Method Details

    • 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

      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

      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

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

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

      CreateLoadBalancerRequest.Builder tlsPolicyName(String tlsPolicyName)

      The name of the TLS policy to apply to the load balancer.

      Use the GetLoadBalancerTlsPolicies action to get a list of TLS policy names that you can specify.

      For more information about load balancer TLS policies, see Configuring TLS security policies on your Amazon Lightsail load balancers in the Amazon Lightsail Developer Guide.

      Parameters:
      tlsPolicyName - The name of the TLS policy to apply to the load balancer.

      Use the GetLoadBalancerTlsPolicies action to get a list of TLS policy names that you can specify.

      For more information about load balancer TLS policies, see Configuring TLS security policies on your Amazon Lightsail load balancers in the Amazon Lightsail Developer Guide.

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

      CreateLoadBalancerRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.