Interface Listener.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Listener.Builder,Listener>,SdkBuilder<Listener.Builder,Listener>,SdkPojo
- Enclosing class:
- Listener
public static interface Listener.Builder extends SdkPojo, CopyableBuilder<Listener.Builder,Listener>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Listener.BuilderalpnPolicy(String... alpnPolicy)[TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN) policy.Listener.BuilderalpnPolicy(Collection<String> alpnPolicy)[TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN) policy.Listener.Buildercertificates(Collection<Certificate> certificates)[HTTPS or TLS listener] The default certificate for the listener.Listener.Buildercertificates(Consumer<Certificate.Builder>... certificates)[HTTPS or TLS listener] The default certificate for the listener.Listener.Buildercertificates(Certificate... certificates)[HTTPS or TLS listener] The default certificate for the listener.Listener.BuilderdefaultActions(Collection<Action> defaultActions)The default actions for the listener.Listener.BuilderdefaultActions(Consumer<Action.Builder>... defaultActions)The default actions for the listener.Listener.BuilderdefaultActions(Action... defaultActions)The default actions for the listener.Listener.BuilderlistenerArn(String listenerArn)The Amazon Resource Name (ARN) of the listener.Listener.BuilderloadBalancerArn(String loadBalancerArn)The Amazon Resource Name (ARN) of the load balancer.default Listener.BuildermutualAuthentication(Consumer<MutualAuthenticationAttributes.Builder> mutualAuthentication)The mutual authentication configuration information.Listener.BuildermutualAuthentication(MutualAuthenticationAttributes mutualAuthentication)The mutual authentication configuration information.Listener.Builderport(Integer port)The port on which the load balancer is listening.Listener.Builderprotocol(String protocol)The protocol for connections from clients to the load balancer.Listener.Builderprotocol(ProtocolEnum protocol)The protocol for connections from clients to the load balancer.Listener.BuildersslPolicy(String sslPolicy)[HTTPS or TLS listener] The security policy that defines which protocols and ciphers are supported.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
listenerArn
Listener.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.
-
loadBalancerArn
Listener.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.
-
port
Listener.Builder port(Integer port)
The port on which the load balancer is listening.
- Parameters:
port- The port on which the load balancer is listening.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protocol
Listener.Builder protocol(String protocol)
The protocol for connections from clients to the load balancer.
- Parameters:
protocol- The protocol for connections from clients to the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ProtocolEnum,ProtocolEnum
-
protocol
Listener.Builder protocol(ProtocolEnum protocol)
The protocol for connections from clients to the load balancer.
- Parameters:
protocol- The protocol for connections from clients to the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ProtocolEnum,ProtocolEnum
-
certificates
Listener.Builder certificates(Collection<Certificate> certificates)
[HTTPS or TLS listener] The default certificate for the listener.
- Parameters:
certificates- [HTTPS or TLS listener] The default certificate for the listener.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
certificates
Listener.Builder certificates(Certificate... certificates)
[HTTPS or TLS listener] The default certificate for the listener.
- Parameters:
certificates- [HTTPS or TLS listener] The default certificate for the listener.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
certificates
Listener.Builder certificates(Consumer<Certificate.Builder>... certificates)
[HTTPS or TLS listener] The default certificate for the listener.
This is a convenience method that creates an instance of theCertificate.Builderavoiding the need to create one manually viaCertificate.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#certificates(List.) - Parameters:
certificates- a consumer that will call methods onCertificate.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#certificates(java.util.Collection)
-
sslPolicy
Listener.Builder sslPolicy(String sslPolicy)
[HTTPS or TLS listener] The security policy that defines which protocols and ciphers are supported.
- Parameters:
sslPolicy- [HTTPS or TLS listener] The security policy that defines which protocols and ciphers are supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultActions
Listener.Builder defaultActions(Collection<Action> defaultActions)
The default actions for the listener.
- Parameters:
defaultActions- The default actions for the listener.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultActions
Listener.Builder defaultActions(Action... defaultActions)
The default actions for the listener.
- Parameters:
defaultActions- The default actions for the listener.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultActions
Listener.Builder defaultActions(Consumer<Action.Builder>... defaultActions)
The default actions for the listener.
This is a convenience method that creates an instance of theAction.Builderavoiding the need to create one manually viaAction.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#defaultActions(List.) - Parameters:
defaultActions- a consumer that will call methods onAction.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#defaultActions(java.util.Collection)
-
alpnPolicy
Listener.Builder alpnPolicy(Collection<String> alpnPolicy)
[TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN) policy.
- Parameters:
alpnPolicy- [TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN) policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alpnPolicy
Listener.Builder alpnPolicy(String... alpnPolicy)
[TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN) policy.
- Parameters:
alpnPolicy- [TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN) policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mutualAuthentication
Listener.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 Listener.Builder mutualAuthentication(Consumer<MutualAuthenticationAttributes.Builder> mutualAuthentication)
The mutual authentication configuration information.
This is a convenience method that creates an instance of theMutualAuthenticationAttributes.Builderavoiding the need to create one manually viaMutualAuthenticationAttributes.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomutualAuthentication(MutualAuthenticationAttributes).- Parameters:
mutualAuthentication- a consumer that will call methods onMutualAuthenticationAttributes.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
mutualAuthentication(MutualAuthenticationAttributes)
-
-