Interface LaunchInstancesResponse.Builder
- All Superinterfaces:
AutoScalingResponse.Builder,AwsResponse.Builder,Buildable,CopyableBuilder<LaunchInstancesResponse.Builder,,LaunchInstancesResponse> SdkBuilder<LaunchInstancesResponse.Builder,,LaunchInstancesResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
LaunchInstancesResponse
-
Method Summary
Modifier and TypeMethodDescriptionautoScalingGroupName(String autoScalingGroupName) The name of the Auto Scaling group where the instances were launched.clientToken(String clientToken) The idempotency token used for the request, either customer-specified or auto-generated.errors(Collection<LaunchInstancesError> errors) A list of errors encountered during the launch attempt including details about failed instance launches with their corresponding error codes and messages.errors(Consumer<LaunchInstancesError.Builder>... errors) A list of errors encountered during the launch attempt including details about failed instance launches with their corresponding error codes and messages.errors(LaunchInstancesError... errors) A list of errors encountered during the launch attempt including details about failed instance launches with their corresponding error codes and messages.instances(Collection<InstanceCollection> instances) A list of successfully launched instances including details such as instance type, Availability Zone, subnet, lifecycle state, and instance IDs.instances(Consumer<InstanceCollection.Builder>... instances) A list of successfully launched instances including details such as instance type, Availability Zone, subnet, lifecycle state, and instance IDs.instances(InstanceCollection... instances) A list of successfully launched instances including details such as instance type, Availability Zone, subnet, lifecycle state, and instance IDs.Methods inherited from interface software.amazon.awssdk.services.autoscaling.model.AutoScalingResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
autoScalingGroupName
The name of the Auto Scaling group where the instances were launched.
- Parameters:
autoScalingGroupName- The name of the Auto Scaling group where the instances were launched.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
The idempotency token used for the request, either customer-specified or auto-generated.
- Parameters:
clientToken- The idempotency token used for the request, either customer-specified or auto-generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instances
A list of successfully launched instances including details such as instance type, Availability Zone, subnet, lifecycle state, and instance IDs.
- Parameters:
instances- A list of successfully launched instances including details such as instance type, Availability Zone, subnet, lifecycle state, and instance IDs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instances
A list of successfully launched instances including details such as instance type, Availability Zone, subnet, lifecycle state, and instance IDs.
- Parameters:
instances- A list of successfully launched instances including details such as instance type, Availability Zone, subnet, lifecycle state, and instance IDs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instances
A list of successfully launched instances including details such as instance type, Availability Zone, subnet, lifecycle state, and instance IDs.
This is a convenience method that creates an instance of theInstanceCollection.Builderavoiding the need to create one manually viaInstanceCollection.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinstances(List<InstanceCollection>).- Parameters:
instances- a consumer that will call methods onInstanceCollection.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
errors
A list of errors encountered during the launch attempt including details about failed instance launches with their corresponding error codes and messages.
- Parameters:
errors- A list of errors encountered during the launch attempt including details about failed instance launches with their corresponding error codes and messages.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
A list of errors encountered during the launch attempt including details about failed instance launches with their corresponding error codes and messages.
- Parameters:
errors- A list of errors encountered during the launch attempt including details about failed instance launches with their corresponding error codes and messages.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
A list of errors encountered during the launch attempt including details about failed instance launches with their corresponding error codes and messages.
This is a convenience method that creates an instance of theLaunchInstancesError.Builderavoiding the need to create one manually viaLaunchInstancesError.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toerrors(List<LaunchInstancesError>).- Parameters:
errors- a consumer that will call methods onLaunchInstancesError.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-