Interface ListCandidatesRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ListCandidatesRequest.Builder,,ListCandidatesRequest> SageMakerRequest.Builder,SdkBuilder<ListCandidatesRequest.Builder,,ListCandidatesRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
ListCandidatesRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault ListCandidatesRequest.BuilderFilters that return only the candidates that match all of the filter values that you specify.filters(LeaderboardCandidateFilters filters) Filters that return only the candidates that match all of the filter values that you specify.leaderboardArn(String leaderboardArn) The Amazon Resource Name (ARN) of the leaderboard.maxResults(Integer maxResults) The maximum number of candidates to return in the response.If the result of the previousListCandidatesrequest was truncated, the response includes aNextToken.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The field to sort the candidates by.sortBy(LeaderboardSortBy sortBy) The field to sort the candidates by.default ListCandidatesRequest.BuildersortMetric(Consumer<LeaderboardSortMetric.Builder> sortMetric) The metric to sort the candidates by.sortMetric(LeaderboardSortMetric sortMetric) The metric to sort the candidates by.The sort order.sortOrder(LeaderboardSortOrder sortOrder) The sort 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.sagemaker.model.SageMakerRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
leaderboardArn
The Amazon Resource Name (ARN) of the leaderboard.
- Parameters:
leaderboardArn- The Amazon Resource Name (ARN) of the leaderboard.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
Filters that return only the candidates that match all of the filter values that you specify.
- Parameters:
filters- Filters that return only the candidates that match all of the filter values that you specify.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
default ListCandidatesRequest.Builder filters(Consumer<LeaderboardCandidateFilters.Builder> filters) Filters that return only the candidates that match all of the filter values that you specify.
This is a convenience method that creates an instance of theLeaderboardCandidateFilters.Builderavoiding the need to create one manually viaLeaderboardCandidateFilters.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofilters(LeaderboardCandidateFilters).- Parameters:
filters- a consumer that will call methods onLeaderboardCandidateFilters.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sortBy
The field to sort the candidates by. If you specify
METRIC, you must also specifySortMetric. If you don't specifySortBy, the candidates are sorted byCandidateId.- Parameters:
sortBy- The field to sort the candidates by. If you specifyMETRIC, you must also specifySortMetric. If you don't specifySortBy, the candidates are sorted byCandidateId.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sortBy
The field to sort the candidates by. If you specify
METRIC, you must also specifySortMetric. If you don't specifySortBy, the candidates are sorted byCandidateId.- Parameters:
sortBy- The field to sort the candidates by. If you specifyMETRIC, you must also specifySortMetric. If you don't specifySortBy, the candidates are sorted byCandidateId.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sortMetric
The metric to sort the candidates by. Required when
SortByisMETRIC. The response includes only the candidates whose most recent evaluation run reports this metric.- Parameters:
sortMetric- The metric to sort the candidates by. Required whenSortByisMETRIC. The response includes only the candidates whose most recent evaluation run reports this metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sortMetric
default ListCandidatesRequest.Builder sortMetric(Consumer<LeaderboardSortMetric.Builder> sortMetric) The metric to sort the candidates by. Required when
This is a convenience method that creates an instance of theSortByisMETRIC. The response includes only the candidates whose most recent evaluation run reports this metric.LeaderboardSortMetric.Builderavoiding the need to create one manually viaLeaderboardSortMetric.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosortMetric(LeaderboardSortMetric).- Parameters:
sortMetric- a consumer that will call methods onLeaderboardSortMetric.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sortOrder
The sort order. The default is
DESCENDING.- Parameters:
sortOrder- The sort order. The default isDESCENDING.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sortOrder
The sort order. The default is
DESCENDING.- Parameters:
sortOrder- The sort order. The default isDESCENDING.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxResults
The maximum number of candidates to return in the response. The default is 20.
- Parameters:
maxResults- The maximum number of candidates to return in the response. The default is 20.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
If the result of the previous
ListCandidatesrequest was truncated, the response includes aNextToken. To retrieve the next set of candidates, use the token in the next request. Use the sameFilters,SortBy,SortMetric, andSortOrderas in the previous request. Otherwise,ListCandidatesreturns aValidationExceptionerror.- Parameters:
nextToken- If the result of the previousListCandidatesrequest was truncated, the response includes aNextToken. To retrieve the next set of candidates, use the token in the next request. Use the sameFilters,SortBy,SortMetric, andSortOrderas in the previous request. Otherwise,ListCandidatesreturns aValidationExceptionerror.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
ListCandidatesRequest.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
ListCandidatesRequest.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.
-