Interface CreateListenerRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateListenerRequest.Builder,CreateListenerRequest>,ElasticLoadBalancingV2Request.Builder,SdkBuilder<CreateListenerRequest.Builder,CreateListenerRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateListenerRequest
public static interface CreateListenerRequest.Builder extends ElasticLoadBalancingV2Request.Builder, SdkPojo, CopyableBuilder<CreateListenerRequest.Builder,CreateListenerRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateListenerRequest.BuilderalpnPolicy(String... alpnPolicy)[TLS listeners] The name of the Application-Layer Protocol Negotiation (ALPN) policy.CreateListenerRequest.BuilderalpnPolicy(Collection<String> alpnPolicy)[TLS listeners] The name of the Application-Layer Protocol Negotiation (ALPN) policy.CreateListenerRequest.Buildercertificates(Collection<Certificate> certificates)[HTTPS and TLS listeners] The default certificate for the listener.CreateListenerRequest.Buildercertificates(Consumer<Certificate.Builder>... certificates)[HTTPS and TLS listeners] The default certificate for the listener.CreateListenerRequest.Buildercertificates(Certificate... certificates)[HTTPS and TLS listeners] The default certificate for the listener.CreateListenerRequest.BuilderdefaultActions(Collection<Action> defaultActions)The actions for the default rule.CreateListenerRequest.BuilderdefaultActions(Consumer<Action.Builder>... defaultActions)The actions for the default rule.CreateListenerRequest.BuilderdefaultActions(Action... defaultActions)The actions for the default rule.CreateListenerRequest.BuilderloadBalancerArn(String loadBalancerArn)The Amazon Resource Name (ARN) of the load balancer.default CreateListenerRequest.BuildermutualAuthentication(Consumer<MutualAuthenticationAttributes.Builder> mutualAuthentication)The mutual authentication configuration information.CreateListenerRequest.BuildermutualAuthentication(MutualAuthenticationAttributes mutualAuthentication)The mutual authentication configuration information.CreateListenerRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateListenerRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateListenerRequest.Builderport(Integer port)The port on which the load balancer is listening.CreateListenerRequest.Builderprotocol(String protocol)The protocol for connections from clients to the load balancer.CreateListenerRequest.Builderprotocol(ProtocolEnum protocol)The protocol for connections from clients to the load balancer.CreateListenerRequest.BuildersslPolicy(String sslPolicy)[HTTPS and TLS listeners] The security policy that defines which protocols and ciphers are supported.CreateListenerRequest.Buildertags(Collection<Tag> tags)The tags to assign to the listener.CreateListenerRequest.Buildertags(Consumer<Tag.Builder>... tags)The tags to assign to the listener.CreateListenerRequest.Buildertags(Tag... tags)The tags to assign to the listener.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.elasticloadbalancingv2.model.ElasticLoadBalancingV2Request.Builder
build
-
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
-
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
CreateListenerRequest.Builder protocol(String 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:
ProtocolEnum,ProtocolEnum
-
protocol
CreateListenerRequest.Builder protocol(ProtocolEnum 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:
ProtocolEnum,ProtocolEnum
-
port
CreateListenerRequest.Builder port(Integer 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
CreateListenerRequest.Builder certificates(Collection<Certificate> certificates)
[HTTPS and TLS listeners] The default certificate for the listener. You must provide exactly one certificate. Set
CertificateArnto the certificate ARN but do not setIsDefault.- Parameters:
certificates- [HTTPS and TLS listeners] The default certificate for the listener. You must provide exactly one certificate. SetCertificateArnto the certificate ARN but do not setIsDefault.- 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
CertificateArnto the certificate ARN but do not setIsDefault.- Parameters:
certificates- [HTTPS and TLS listeners] The default certificate for the listener. You must provide exactly one certificate. SetCertificateArnto the certificate ARN but do not setIsDefault.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
certificates
CreateListenerRequest.Builder certificates(Consumer<Certificate.Builder>... certificates)
[HTTPS and TLS listeners] The default certificate for the listener. You must provide exactly one certificate. Set
This is a convenience method that creates an instance of theCertificateArnto the certificate ARN but do not setIsDefault.Certificate.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)
-
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 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
CreateListenerRequest.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
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
CreateListenerRequest.Builder tags(Collection<Tag> 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
CreateListenerRequest.Builder tags(Tag... 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
CreateListenerRequest.Builder tags(Consumer<Tag.Builder>... tags)
The tags to assign to the listener.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
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 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)
-
overrideConfiguration
CreateListenerRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateListenerRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-