Interface ListInstancesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListInstancesResponse.Builder,,ListInstancesResponse> SdkBuilder<ListInstancesResponse.Builder,,ListInstancesResponse> SdkPojo,SdkResponse.Builder,SupplyChainResponse.Builder
- Enclosing class:
ListInstancesResponse
public static interface ListInstancesResponse.Builder
extends SupplyChainResponse.Builder, SdkPojo, CopyableBuilder<ListInstancesResponse.Builder,ListInstancesResponse>
-
Method Summary
Modifier and TypeMethodDescriptioninstances(Collection<Instance> instances) The list of instances resource data details.instances(Consumer<Instance.Builder>... instances) The list of instances resource data details.The list of instances resource data details.The pagination token to fetch the next page of instances.Methods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponseMethods inherited from interface software.amazon.awssdk.services.supplychain.model.SupplyChainResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
instances
The list of instances resource data details.
- Parameters:
instances- The list of instances resource data details.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instances
The list of instances resource data details.
- Parameters:
instances- The list of instances resource data details.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instances
The list of instances resource data details.
This is a convenience method that creates an instance of theInstance.Builderavoiding the need to create one manually viaInstance.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinstances(List<Instance>).- Parameters:
instances- a consumer that will call methods onInstance.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The pagination token to fetch the next page of instances.
- Parameters:
nextToken- The pagination token to fetch the next page of instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-