Interface ListServersRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<ListServersRequest.Builder,
,ListServersRequest> MigrationHubStrategyRequest.Builder
,SdkBuilder<ListServersRequest.Builder,
,ListServersRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
ListServersRequest
-
Method Summary
Modifier and TypeMethodDescriptionfilterValue
(String filterValue) Specifies the filter value, which is based on the type of server criteria.groupIdFilter
(Collection<Group> groupIdFilter) Specifies the group ID to filter on.groupIdFilter
(Consumer<Group.Builder>... groupIdFilter) Specifies the group ID to filter on.groupIdFilter
(Group... groupIdFilter) Specifies the group ID to filter on.maxResults
(Integer maxResults) The maximum number of items to include in the response.The token from a previous call that you use to retrieve the next set of results.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.serverCriteria
(String serverCriteria) Criteria for filtering servers.serverCriteria
(ServerCriteria serverCriteria) Criteria for filtering servers.Specifies whether to sort by ascending (ASC
) or descending (DESC
) order.Specifies whether to sort by ascending (ASC
) or descending (DESC
) order.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.migrationhubstrategy.model.MigrationHubStrategyRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
filterValue
Specifies the filter value, which is based on the type of server criteria. For example, if
serverCriteria
isOS_NAME
, and thefilterValue
is equal toWindowsServer
, thenListServers
returns all of the servers matching the OS nameWindowsServer
.- Parameters:
filterValue
- Specifies the filter value, which is based on the type of server criteria. For example, ifserverCriteria
isOS_NAME
, and thefilterValue
is equal toWindowsServer
, thenListServers
returns all of the servers matching the OS nameWindowsServer
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupIdFilter
Specifies the group ID to filter on.
- Parameters:
groupIdFilter
- Specifies the group ID to filter on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupIdFilter
Specifies the group ID to filter on.
- Parameters:
groupIdFilter
- Specifies the group ID to filter on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupIdFilter
Specifies the group ID to filter on.
This is a convenience method that creates an instance of theGroup.Builder
avoiding the need to create one manually viaGroup.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togroupIdFilter(List<Group>)
.- Parameters:
groupIdFilter
- a consumer that will call methods onGroup.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxResults
The maximum number of items to include in the response. The maximum value is 100.
- Parameters:
maxResults
- The maximum number of items to include in the response. The maximum value is 100.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
The token from a previous call that you use to retrieve the next set of results. For example, if a previous call to this action returned 100 items, but you set
maxResults
to 10. You'll receive a set of 10 results along with a token. You then use the returned token to retrieve the next set of 10.- Parameters:
nextToken
- The token from a previous call that you use to retrieve the next set of results. For example, if a previous call to this action returned 100 items, but you setmaxResults
to 10. You'll receive a set of 10 results along with a token. You then use the returned token to retrieve the next set of 10.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverCriteria
Criteria for filtering servers.
- Parameters:
serverCriteria
- Criteria for filtering servers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
serverCriteria
Criteria for filtering servers.
- Parameters:
serverCriteria
- Criteria for filtering servers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sort
Specifies whether to sort by ascending (
ASC
) or descending (DESC
) order.- Parameters:
sort
- Specifies whether to sort by ascending (ASC
) or descending (DESC
) order.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sort
Specifies whether to sort by ascending (
ASC
) or descending (DESC
) order.- Parameters:
sort
- Specifies whether to sort by ascending (ASC
) or descending (DESC
) order.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
ListServersRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ListServersRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-