Interface ModifyListenerRequest.Builder

    • Method Detail

      • listenerArn

        ModifyListenerRequest.Builder listenerArn​(String listenerArn)

        The Amazon Resource Name (ARN) of the listener.

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

        ModifyListenerRequest.Builder port​(Integer port)

        The port for connections from clients to the load balancer. You cannot specify a port for a Gateway Load Balancer.

        Parameters:
        port - The port for connections from clients to the load balancer. 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.
      • protocol

        ModifyListenerRequest.Builder protocol​(String protocol)

        The protocol for connections from clients to the load balancer. Application Load Balancers support the HTTP and HTTPS protocols. Network Load Balancers support the TCP, TLS, UDP, and TCP_UDP protocols. You can’t change the protocol to UDP or TCP_UDP 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. Application Load Balancers support the HTTP and HTTPS protocols. Network Load Balancers support the TCP, TLS, UDP, and TCP_UDP protocols. You can’t change the protocol to UDP or TCP_UDP 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:
        ProtocolEnum, ProtocolEnum
      • protocol

        ModifyListenerRequest.Builder protocol​(ProtocolEnum protocol)

        The protocol for connections from clients to the load balancer. Application Load Balancers support the HTTP and HTTPS protocols. Network Load Balancers support the TCP, TLS, UDP, and TCP_UDP protocols. You can’t change the protocol to UDP or TCP_UDP 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. Application Load Balancers support the HTTP and HTTPS protocols. Network Load Balancers support the TCP, TLS, UDP, and TCP_UDP protocols. You can’t change the protocol to UDP or TCP_UDP 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:
        ProtocolEnum, ProtocolEnum
      • sslPolicy

        ModifyListenerRequest.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 or 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 or Security policies in the Network Load Balancers Guide.

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

        ModifyListenerRequest.Builder certificates​(Collection<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

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

        ModifyListenerRequest.Builder certificates​(Consumer<Certificate.Builder>... 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).

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

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

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

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

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

        ModifyListenerRequest.Builder alpnPolicy​(Collection<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.
      • alpnPolicy

        ModifyListenerRequest.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.
      • mutualAuthentication

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