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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.migrationhubstrategy.model.MigrationHubStrategyRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
filterValue
Specifies the filter value, which is based on the type of server criteria. For example, if
serverCriteriaisOS_NAME, and thefilterValueis equal toWindowsServer, thenListServersreturns 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, ifserverCriteriaisOS_NAME, and thefilterValueis equal toWindowsServer, thenListServersreturns 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.Builderavoiding the need to create one manually viaGroup.builder().When the
Consumercompletes,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
maxResultsto 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 setmaxResultsto 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-