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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StopInstancesResponse.BuilderstoppingInstances(Collection<InstanceStateChange> stoppingInstances)Information about the stopped instances.StopInstancesResponse.BuilderstoppingInstances(Consumer<InstanceStateChange.Builder>... stoppingInstances)Information about the stopped instances.StopInstancesResponse.BuilderstoppingInstances(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, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
stoppingInstances
StopInstancesResponse.Builder stoppingInstances(Collection<InstanceStateChange> 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(InstanceStateChange... 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.Builderavoiding the need to create one manually viaInstanceStateChange.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#stoppingInstances(List.) - 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:
#stoppingInstances(java.util.Collection)
-
-