@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) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAvailabilityZones()
Returns true if the AvailabilityZones property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasListeners()
Returns true if the Listeners property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
boolean |
hasSecurityGroups()
Returns true if the SecurityGroups property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasSubnets()
Returns true if the Subnets property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
boolean |
hasTags()
Returns true if the Tags property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
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() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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 final boolean hasListeners()
public final 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.
You can use hasListeners() to see if a value was sent in this field.
For more information, see Listeners for Your Classic Load Balancer in the Classic Load Balancers Guide.
public final boolean hasAvailabilityZones()
public final 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 can use hasAvailabilityZones() to see if a value was sent in this field.
You must specify at least one Availability Zone.
You can add more Availability Zones after you create the load balancer using EnableAvailabilityZonesForLoadBalancer.
public final boolean hasSubnets()
public final 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.
You can use hasSubnets() to see if a value was sent in this field.
AvailabilityZones.public final boolean hasSecurityGroups()
public final 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.
You can use hasSecurityGroups() to see if a value was sent in this field.
public final 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 final boolean hasTags()
public final 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.
You can use hasTags() to see if a value was sent in this field.
For more information about tagging your load balancer, see Tag Your Classic Load Balancer in the Classic Load Balancers Guide.
public CreateLoadBalancerRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateLoadBalancerRequest.Builder,CreateLoadBalancerRequest>toBuilder in class ElasticLoadBalancingRequestpublic static CreateLoadBalancerRequest.Builder builder()
public static Class<? extends CreateLoadBalancerRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2021. All rights reserved.