Interface CreateListenerRequest.Builder

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

  • Method Details

    • loadBalancerArn

      CreateListenerRequest.Builder loadBalancerArn(String loadBalancerArn)

      The Amazon Resource Name (ARN) of the load balancer.

      Parameters:
      loadBalancerArn - The Amazon Resource Name (ARN) of the load balancer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • protocol

      The protocol for connections from clients to the load balancer. For Application Load Balancers, the supported protocols are HTTP and HTTPS. For Network Load Balancers, the supported protocols are TCP, TLS, UDP, and TCP_UDP. You can’t specify the UDP or TCP_UDP protocol if dual-stack mode is enabled. You cannot specify a protocol for a Gateway Load Balancer.

      Parameters:
      protocol - The protocol for connections from clients to the load balancer. For Application Load Balancers, the supported protocols are HTTP and HTTPS. For Network Load Balancers, the supported protocols are TCP, TLS, UDP, and TCP_UDP. You can’t specify the UDP or TCP_UDP protocol if dual-stack mode is enabled. You cannot specify a protocol for a Gateway Load Balancer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • protocol

      The protocol for connections from clients to the load balancer. For Application Load Balancers, the supported protocols are HTTP and HTTPS. For Network Load Balancers, the supported protocols are TCP, TLS, UDP, and TCP_UDP. You can’t specify the UDP or TCP_UDP protocol if dual-stack mode is enabled. You cannot specify a protocol for a Gateway Load Balancer.

      Parameters:
      protocol - The protocol for connections from clients to the load balancer. For Application Load Balancers, the supported protocols are HTTP and HTTPS. For Network Load Balancers, the supported protocols are TCP, TLS, UDP, and TCP_UDP. You can’t specify the UDP or TCP_UDP protocol if dual-stack mode is enabled. You cannot specify a protocol for a Gateway Load Balancer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • port

      The port on which the load balancer is listening. You cannot specify a port for a Gateway Load Balancer.

      Parameters:
      port - The port on which the load balancer is listening. You cannot specify a port for a Gateway Load Balancer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sslPolicy

      CreateListenerRequest.Builder sslPolicy(String sslPolicy)

      [HTTPS and TLS listeners] The security policy that defines which protocols and ciphers are supported.

      For more information, see Security policies in the Application Load Balancers Guide and Security policies in the Network Load Balancers Guide.

      Parameters:
      sslPolicy - [HTTPS and TLS listeners] The security policy that defines which protocols and ciphers are supported.

      For more information, see Security policies in the Application Load Balancers Guide and Security policies in the Network Load Balancers Guide.

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

      [HTTPS and TLS listeners] The default certificate for the listener. You must provide exactly one certificate. Set CertificateArn to the certificate ARN but do not set IsDefault.

      Parameters:
      certificates - [HTTPS and TLS listeners] The default certificate for the listener. You must provide exactly one certificate. Set CertificateArn to the certificate ARN but do not set IsDefault.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • certificates

      CreateListenerRequest.Builder certificates(Certificate... certificates)

      [HTTPS and TLS listeners] The default certificate for the listener. You must provide exactly one certificate. Set CertificateArn to the certificate ARN but do not set IsDefault.

      Parameters:
      certificates - [HTTPS and TLS listeners] The default certificate for the listener. You must provide exactly one certificate. Set CertificateArn to the certificate ARN but do not set IsDefault.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • certificates

      [HTTPS and TLS listeners] The default certificate for the listener. You must provide exactly one certificate. Set CertificateArn to the certificate ARN but do not set IsDefault.

      This is a convenience method that creates an instance of the Certificate.Builder avoiding the need to create one manually via Certificate.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to certificates(List<Certificate>).

      Parameters:
      certificates - a consumer that will call methods on Certificate.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • defaultActions

      CreateListenerRequest.Builder defaultActions(Collection<Action> defaultActions)

      The actions for the default rule.

      Parameters:
      defaultActions - The actions for the default rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • defaultActions

      CreateListenerRequest.Builder defaultActions(Action... defaultActions)

      The actions for the default rule.

      Parameters:
      defaultActions - The actions for the default rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • defaultActions

      CreateListenerRequest.Builder defaultActions(Consumer<Action.Builder>... defaultActions)

      The actions for the default rule.

      This is a convenience method that creates an instance of the Action.Builder avoiding the need to create one manually via Action.builder() .

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to defaultActions(List<Action>).

      Parameters:
      defaultActions - a consumer that will call methods on Action.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • alpnPolicy

      [TLS listeners] The name of the Application-Layer Protocol Negotiation (ALPN) policy. You can specify one policy name. The following are the possible values:

      • HTTP1Only

      • HTTP2Only

      • HTTP2Optional

      • HTTP2Preferred

      • None

      For more information, see ALPN policies in the Network Load Balancers Guide.

      Parameters:
      alpnPolicy - [TLS listeners] The name of the Application-Layer Protocol Negotiation (ALPN) policy. You can specify one policy name. The following are the possible values:

      • HTTP1Only

      • HTTP2Only

      • HTTP2Optional

      • HTTP2Preferred

      • None

      For more information, see ALPN policies in the Network Load Balancers Guide.

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

      CreateListenerRequest.Builder alpnPolicy(String... alpnPolicy)

      [TLS listeners] The name of the Application-Layer Protocol Negotiation (ALPN) policy. You can specify one policy name. The following are the possible values:

      • HTTP1Only

      • HTTP2Only

      • HTTP2Optional

      • HTTP2Preferred

      • None

      For more information, see ALPN policies in the Network Load Balancers Guide.

      Parameters:
      alpnPolicy - [TLS listeners] The name of the Application-Layer Protocol Negotiation (ALPN) policy. You can specify one policy name. The following are the possible values:

      • HTTP1Only

      • HTTP2Only

      • HTTP2Optional

      • HTTP2Preferred

      • None

      For more information, see ALPN policies in the Network Load Balancers Guide.

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

      The tags to assign to the listener.

      Parameters:
      tags - The tags to assign to the listener.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags to assign to the listener.

      Parameters:
      tags - The tags to assign to the listener.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags to assign to the listener.

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

      CreateListenerRequest.Builder mutualAuthentication(MutualAuthenticationAttributes mutualAuthentication)

      The mutual authentication configuration information.

      Parameters:
      mutualAuthentication - The mutual authentication configuration information.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • mutualAuthentication

      default CreateListenerRequest.Builder mutualAuthentication(Consumer<MutualAuthenticationAttributes.Builder> mutualAuthentication)

      The mutual authentication configuration information.

      This is a convenience method that creates an instance of the MutualAuthenticationAttributes.Builder avoiding the need to create one manually via MutualAuthenticationAttributes.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to mutualAuthentication(MutualAuthenticationAttributes).

      Parameters:
      mutualAuthentication - a consumer that will call methods on MutualAuthenticationAttributes.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

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