Interface ListServersRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ListServersRequest.Builder,ListServersRequest>,MigrationHubStrategyRequest.Builder,SdkBuilder<ListServersRequest.Builder,ListServersRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- ListServersRequest
public static interface ListServersRequest.Builder extends MigrationHubStrategyRequest.Builder, SdkPojo, CopyableBuilder<ListServersRequest.Builder,ListServersRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListServersRequest.BuilderfilterValue(String filterValue)Specifies the filter value, which is based on the type of server criteria.ListServersRequest.BuildergroupIdFilter(Collection<Group> groupIdFilter)Specifies the group ID to filter on.ListServersRequest.BuildergroupIdFilter(Consumer<Group.Builder>... groupIdFilter)Specifies the group ID to filter on.ListServersRequest.BuildergroupIdFilter(Group... groupIdFilter)Specifies the group ID to filter on.ListServersRequest.BuildermaxResults(Integer maxResults)The maximum number of items to include in the response.ListServersRequest.BuildernextToken(String nextToken)The token from a previous call that you use to retrieve the next set of results.ListServersRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)ListServersRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)ListServersRequest.BuilderserverCriteria(String serverCriteria)Criteria for filtering servers.ListServersRequest.BuilderserverCriteria(ServerCriteria serverCriteria)Criteria for filtering servers.ListServersRequest.Buildersort(String sort)Specifies whether to sort by ascending (ASC) or descending (DESC) order.ListServersRequest.Buildersort(SortOrder sort)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 Detail
-
filterValue
ListServersRequest.Builder filterValue(String 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
ListServersRequest.Builder groupIdFilter(Collection<Group> 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
ListServersRequest.Builder groupIdFilter(Group... 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
ListServersRequest.Builder groupIdFilter(Consumer<Group.Builder>... 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 to#groupIdFilter(List.) - 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:
#groupIdFilter(java.util.Collection)
-
maxResults
ListServersRequest.Builder maxResults(Integer 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
ListServersRequest.Builder nextToken(String 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
ListServersRequest.Builder serverCriteria(String 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,ServerCriteria
-
serverCriteria
ListServersRequest.Builder serverCriteria(ServerCriteria 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,ServerCriteria
-
sort
ListServersRequest.Builder sort(String sort)
Specifies whether to sort by ascending (
ASC) or descending (DESC) order.
-
sort
ListServersRequest.Builder sort(SortOrder sort)
Specifies whether to sort by ascending (
ASC) or descending (DESC) order.
-
overrideConfiguration
ListServersRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
ListServersRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-