@Generated(value="software.amazon.awssdk:codegen") public final class CreateLoadBalancerRequest extends ElasticLoadBalancingRequest implements ToCopyableBuilder<CreateLoadBalancerRequest.Builder,CreateLoadBalancerRequest>
Contains the parameters for CreateLoadBalancer.
Modifier and Type | Class and Description |
---|---|
static interface |
CreateLoadBalancerRequest.Builder |
Modifier and Type | Method and Description |
---|---|
List<String> |
availabilityZones()
One or more Availability Zones from the same region as the load balancer.
|
static CreateLoadBalancerRequest.Builder |
builder() |
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() |
List<Listener> |
listeners()
The listeners.
|
String |
loadBalancerName()
The name of the load balancer.
|
String |
scheme()
The type of a load balancer.
|
List<SdkField<?>> |
sdkFields() |
List<String> |
securityGroups()
The IDs of the security groups to assign to the load balancer.
|
static Class<? extends CreateLoadBalancerRequest.Builder> |
serializableBuilderClass() |
List<String> |
subnets()
The IDs of the subnets in your VPC to attach to the load balancer.
|
List<Tag> |
tags()
A list of tags to assign to the load balancer.
|
CreateLoadBalancerRequest.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 loadBalancerName()
The name of the load balancer.
This name must be unique within your set of load balancers for the region, must have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and cannot begin or end with a hyphen.
This name must be unique within your set of load balancers for the region, must have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and cannot begin or end with a hyphen.
public List<Listener> listeners()
The listeners.
For more information, see Listeners for Your Classic Load Balancer in the Classic Load Balancers Guide.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
For more information, see Listeners for Your Classic Load Balancer in the Classic Load Balancers Guide.
public List<String> availabilityZones()
One or more Availability Zones from the same region as the load balancer.
You must specify at least one Availability Zone.
You can add more Availability Zones after you create the load balancer using EnableAvailabilityZonesForLoadBalancer.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You must specify at least one Availability Zone.
You can add more Availability Zones after you create the load balancer using EnableAvailabilityZonesForLoadBalancer.
public List<String> subnets()
The IDs of the subnets in your VPC to attach to the load balancer. Specify one subnet per Availability Zone
specified in AvailabilityZones
.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
AvailabilityZones
.public List<String> securityGroups()
The IDs of the security groups to assign to the load balancer.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String scheme()
The type of a load balancer. Valid only for load balancers in a VPC.
By default, Elastic Load Balancing creates an Internet-facing load balancer with a DNS name that resolves to public IP addresses. For more information about Internet-facing and Internal load balancers, see Load Balancer Scheme in the Elastic Load Balancing User Guide.
Specify internal
to create a load balancer with a DNS name that resolves to private IP addresses.
By default, Elastic Load Balancing creates an Internet-facing load balancer with a DNS name that resolves to public IP addresses. For more information about Internet-facing and Internal load balancers, see Load Balancer Scheme in the Elastic Load Balancing User Guide.
Specify internal
to create a load balancer with a DNS name that resolves to private IP
addresses.
public List<Tag> tags()
A list of tags to assign to the load balancer.
For more information about tagging your load balancer, see Tag Your Classic Load Balancer in the Classic Load Balancers Guide.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
For more information about tagging your load balancer, see Tag Your Classic Load Balancer in the Classic Load Balancers Guide.
public CreateLoadBalancerRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateLoadBalancerRequest.Builder,CreateLoadBalancerRequest>
toBuilder
in class ElasticLoadBalancingRequest
public static CreateLoadBalancerRequest.Builder builder()
public static Class<? extends CreateLoadBalancerRequest.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.