Interface StopInstancesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<StopInstancesResponse.Builder,
,StopInstancesResponse> Ec2Response.Builder
,SdkBuilder<StopInstancesResponse.Builder,
,StopInstancesResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
StopInstancesResponse
public static interface StopInstancesResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<StopInstancesResponse.Builder,StopInstancesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionstoppingInstances
(Collection<InstanceStateChange> stoppingInstances) Information about the stopped instances.stoppingInstances
(Consumer<InstanceStateChange.Builder>... stoppingInstances) Information about the stopped instances.stoppingInstances
(InstanceStateChange... stoppingInstances) Information about the stopped instances.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
stoppingInstances
Information about the stopped instances.
- Parameters:
stoppingInstances
- Information about the stopped instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stoppingInstances
Information about the stopped instances.
- Parameters:
stoppingInstances
- Information about the stopped instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stoppingInstances
StopInstancesResponse.Builder stoppingInstances(Consumer<InstanceStateChange.Builder>... stoppingInstances) Information about the stopped instances.
This is a convenience method that creates an instance of theInstanceStateChange.Builder
avoiding the need to create one manually viaInstanceStateChange.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostoppingInstances(List<InstanceStateChange>)
.- Parameters:
stoppingInstances
- a consumer that will call methods onInstanceStateChange.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-