Interface AttachInstancesToLoadBalancerRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<AttachInstancesToLoadBalancerRequest.Builder,
,AttachInstancesToLoadBalancerRequest> LightsailRequest.Builder
,SdkBuilder<AttachInstancesToLoadBalancerRequest.Builder,
,AttachInstancesToLoadBalancerRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
AttachInstancesToLoadBalancerRequest
-
Method Summary
Modifier and TypeMethodDescriptioninstanceNames
(String... instanceNames) An array of strings representing the instance name(s) you want to attach to your load balancer.instanceNames
(Collection<String> instanceNames) An array of strings representing the instance name(s) you want to attach to your load balancer.loadBalancerName
(String loadBalancerName) The name of the load balancer.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.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.lightsail.model.LightsailRequest.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 Details
-
loadBalancerName
The name of the load balancer.
- Parameters:
loadBalancerName
- The name of the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceNames
An array of strings representing the instance name(s) you want to attach to your load balancer.
An instance must be
running
before you can attach it to your load balancer.There are no additional limits on the number of instances you can attach to your load balancer, aside from the limit of Lightsail instances you can create in your account (20).
- Parameters:
instanceNames
- An array of strings representing the instance name(s) you want to attach to your load balancer.An instance must be
running
before you can attach it to your load balancer.There are no additional limits on the number of instances you can attach to your load balancer, aside from the limit of Lightsail instances you can create in your account (20).
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceNames
An array of strings representing the instance name(s) you want to attach to your load balancer.
An instance must be
running
before you can attach it to your load balancer.There are no additional limits on the number of instances you can attach to your load balancer, aside from the limit of Lightsail instances you can create in your account (20).
- Parameters:
instanceNames
- An array of strings representing the instance name(s) you want to attach to your load balancer.An instance must be
running
before you can attach it to your load balancer.There are no additional limits on the number of instances you can attach to your load balancer, aside from the limit of Lightsail instances you can create in your account (20).
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
AttachInstancesToLoadBalancerRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
AttachInstancesToLoadBalancerRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-