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 Modifier and Type Method Description Listener.BuilderinstancePort(Integer instancePort)The port on which the instance is listening.Listener.BuilderinstanceProtocol(String instanceProtocol)The protocol to use for routing traffic to instances: HTTP, HTTPS, TCP, or SSL.Listener.BuilderloadBalancerPort(Integer loadBalancerPort)The port on which the load balancer is listening.Listener.Builderprotocol(String protocol)The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.Listener.BuildersslCertificateId(String sslCertificateId)The Amazon Resource Name (ARN) of the server certificate.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
protocol
Listener.Builder protocol(String protocol)
The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.
- Parameters:
protocol- The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
loadBalancerPort
Listener.Builder loadBalancerPort(Integer loadBalancerPort)
The port on which the load balancer is listening. On EC2-VPC, you can specify any port from the range 1-65535. On EC2-Classic, you can specify any port from the following list: 25, 80, 443, 465, 587, 1024-65535.
- Parameters:
loadBalancerPort- The port on which the load balancer is listening. On EC2-VPC, you can specify any port from the range 1-65535. On EC2-Classic, you can specify any port from the following list: 25, 80, 443, 465, 587, 1024-65535.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceProtocol
Listener.Builder instanceProtocol(String instanceProtocol)
The protocol to use for routing traffic to instances: HTTP, HTTPS, TCP, or SSL.
If the front-end protocol is TCP or SSL, the back-end protocol must be TCP or SSL. If the front-end protocol is HTTP or HTTPS, the back-end protocol must be HTTP or HTTPS.
If there is another listener with the same
InstancePortwhoseInstanceProtocolis secure, (HTTPS or SSL), the listener'sInstanceProtocolmust also be secure.If there is another listener with the same
InstancePortwhoseInstanceProtocolis HTTP or TCP, the listener'sInstanceProtocolmust be HTTP or TCP.- Parameters:
instanceProtocol- The protocol to use for routing traffic to instances: HTTP, HTTPS, TCP, or SSL.If the front-end protocol is TCP or SSL, the back-end protocol must be TCP or SSL. If the front-end protocol is HTTP or HTTPS, the back-end protocol must be HTTP or HTTPS.
If there is another listener with the same
InstancePortwhoseInstanceProtocolis secure, (HTTPS or SSL), the listener'sInstanceProtocolmust also be secure.If there is another listener with the same
InstancePortwhoseInstanceProtocolis HTTP or TCP, the listener'sInstanceProtocolmust be HTTP or TCP.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instancePort
Listener.Builder instancePort(Integer instancePort)
The port on which the instance is listening.
- Parameters:
instancePort- The port on which the instance is listening.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sslCertificateId
Listener.Builder sslCertificateId(String sslCertificateId)
The Amazon Resource Name (ARN) of the server certificate.
- Parameters:
sslCertificateId- The Amazon Resource Name (ARN) of the server certificate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-