Interface ListVirtualMachinesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,BackupGatewayResponse.Builder
,Buildable
,CopyableBuilder<ListVirtualMachinesResponse.Builder,
,ListVirtualMachinesResponse> SdkBuilder<ListVirtualMachinesResponse.Builder,
,ListVirtualMachinesResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListVirtualMachinesResponse
@Mutable
@NotThreadSafe
public static interface ListVirtualMachinesResponse.Builder
extends BackupGatewayResponse.Builder, SdkPojo, CopyableBuilder<ListVirtualMachinesResponse.Builder,ListVirtualMachinesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe next item following a partial list of returned resources.virtualMachines
(Collection<VirtualMachine> virtualMachines) A list of yourVirtualMachine
objects, ordered by their Amazon Resource Names (ARNs).virtualMachines
(Consumer<VirtualMachine.Builder>... virtualMachines) A list of yourVirtualMachine
objects, ordered by their Amazon Resource Names (ARNs).virtualMachines
(VirtualMachine... virtualMachines) A list of yourVirtualMachine
objects, ordered by their Amazon Resource Names (ARNs).Methods inherited from interface software.amazon.awssdk.services.backupgateway.model.BackupGatewayResponse.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 Details
-
nextToken
The next item following a partial list of returned resources. For example, if a request is made to return
maxResults
number of resources,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.- Parameters:
nextToken
- The next item following a partial list of returned resources. For example, if a request is made to returnmaxResults
number of resources,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
virtualMachines
A list of your
VirtualMachine
objects, ordered by their Amazon Resource Names (ARNs).- Parameters:
virtualMachines
- A list of yourVirtualMachine
objects, ordered by their Amazon Resource Names (ARNs).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
virtualMachines
A list of your
VirtualMachine
objects, ordered by their Amazon Resource Names (ARNs).- Parameters:
virtualMachines
- A list of yourVirtualMachine
objects, ordered by their Amazon Resource Names (ARNs).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
virtualMachines
ListVirtualMachinesResponse.Builder virtualMachines(Consumer<VirtualMachine.Builder>... virtualMachines) A list of your
This is a convenience method that creates an instance of theVirtualMachine
objects, ordered by their Amazon Resource Names (ARNs).VirtualMachine.Builder
avoiding the need to create one manually viaVirtualMachine.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovirtualMachines(List<VirtualMachine>)
.- Parameters:
virtualMachines
- a consumer that will call methods onVirtualMachine.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-