@Generated(value="software.amazon.awssdk:codegen") public final class CreateListenerRequest extends ElasticLoadBalancingV2Request implements ToCopyableBuilder<CreateListenerRequest.Builder,CreateListenerRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
CreateListenerRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static CreateListenerRequest.Builder |
builder() |
List<Certificate> |
certificates()
[HTTPS listeners] The SSL server certificate.
|
List<Action> |
defaultActions()
The default action for the listener.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
String |
loadBalancerArn()
The Amazon Resource Name (ARN) of the load balancer.
|
Integer |
port()
The port on which the load balancer is listening.
|
ProtocolEnum |
protocol()
The protocol for connections from clients to the load balancer.
|
String |
protocolAsString()
The protocol for connections from clients to the load balancer.
|
static Class<? extends CreateListenerRequest.Builder> |
serializableBuilderClass() |
String |
sslPolicy()
[HTTPS listeners] The security policy that defines which ciphers and protocols are supported.
|
CreateListenerRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
overrideConfiguration
copy
public String loadBalancerArn()
The Amazon Resource Name (ARN) of the load balancer.
public 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 protocol is TCP.
If the service returns an enum value that is not available in the current SDK version, protocol
will
return ProtocolEnum.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
protocolAsString()
.
ProtocolEnum
public String protocolAsString()
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 protocol is TCP.
If the service returns an enum value that is not available in the current SDK version, protocol
will
return ProtocolEnum.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
protocolAsString()
.
ProtocolEnum
public Integer port()
The port on which the load balancer is listening.
public String sslPolicy()
[HTTPS listeners] The security policy that defines which ciphers and protocols are supported. The default is the current predefined security policy.
public List<Certificate> certificates()
[HTTPS listeners] The SSL server certificate. You must provide exactly one certificate.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<Action> defaultActions()
The default action for the listener. For Application Load Balancers, the protocol of the specified target group must be HTTP or HTTPS. For Network Load Balancers, the protocol of the specified target group must be TCP.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public CreateListenerRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateListenerRequest.Builder,CreateListenerRequest>
toBuilder
in class ElasticLoadBalancingV2Request
public static CreateListenerRequest.Builder builder()
public static Class<? extends CreateListenerRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.