Interface LaunchInstancesResponse.Builder
-
- All Superinterfaces:
AutoScalingResponse.Builder,AwsResponse.Builder,Buildable,CopyableBuilder<LaunchInstancesResponse.Builder,LaunchInstancesResponse>,SdkBuilder<LaunchInstancesResponse.Builder,LaunchInstancesResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- LaunchInstancesResponse
@Mutable @NotThreadSafe public static interface LaunchInstancesResponse.Builder extends AutoScalingResponse.Builder, SdkPojo, CopyableBuilder<LaunchInstancesResponse.Builder,LaunchInstancesResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LaunchInstancesResponse.BuilderautoScalingGroupName(String autoScalingGroupName)The name of the Auto Scaling group where the instances were launched.LaunchInstancesResponse.BuilderclientToken(String clientToken)The idempotency token used for the request, either customer-specified or auto-generated.LaunchInstancesResponse.Buildererrors(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.LaunchInstancesResponse.Buildererrors(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.LaunchInstancesResponse.Buildererrors(LaunchInstancesError... errors)A list of errors encountered during the launch attempt including details about failed instance launches with their corresponding error codes and messages.LaunchInstancesResponse.Builderinstances(Collection<InstanceCollection> instances)A list of successfully launched instances including details such as instance type, Availability Zone, subnet, lifecycle state, and instance IDs.LaunchInstancesResponse.Builderinstances(Consumer<InstanceCollection.Builder>... instances)A list of successfully launched instances including details such as instance type, Availability Zone, subnet, lifecycle state, and instance IDs.LaunchInstancesResponse.Builderinstances(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, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
autoScalingGroupName
LaunchInstancesResponse.Builder autoScalingGroupName(String 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
LaunchInstancesResponse.Builder clientToken(String 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
LaunchInstancesResponse.Builder instances(Collection<InstanceCollection> 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
LaunchInstancesResponse.Builder instances(InstanceCollection... 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
LaunchInstancesResponse.Builder 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.
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 to#instances(List.) - 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:
#instances(java.util.Collection)
-
errors
LaunchInstancesResponse.Builder 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.
- 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
LaunchInstancesResponse.Builder 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.
- 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
LaunchInstancesResponse.Builder 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.
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 to#errors(List.) - 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:
#errors(java.util.Collection)
-
-