Interface SearchRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<SearchRequest.Builder,
,SearchRequest> SageMakerRequest.Builder
,SdkBuilder<SearchRequest.Builder,
,SearchRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
SearchRequest
-
Method Summary
Modifier and TypeMethodDescriptioncrossAccountFilterOption
(String crossAccountFilterOption) A cross account filter option.crossAccountFilterOption
(CrossAccountFilterOption crossAccountFilterOption) A cross account filter option.maxResults
(Integer maxResults) The maximum number of results to return.If more thanMaxResults
resources match the specifiedSearchExpression
, 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 name of the SageMaker resource to search for.resource
(ResourceType resource) The name of the SageMaker resource to search for.default SearchRequest.Builder
searchExpression
(Consumer<SearchExpression.Builder> searchExpression) A Boolean conditional statement.searchExpression
(SearchExpression searchExpression) A Boolean conditional statement.The name of the resource property used to sort theSearchResults
.HowSearchResults
are ordered.sortOrder
(SearchSortOrder sortOrder) HowSearchResults
are ordered.visibilityConditions
(Collection<VisibilityConditions> visibilityConditions) Limits the results of your search request to the resources that you can access.visibilityConditions
(Consumer<VisibilityConditions.Builder>... visibilityConditions) Limits the results of your search request to the resources that you can access.visibilityConditions
(VisibilityConditions... visibilityConditions) Limits the results of your search request to the resources that you can access.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.sagemaker.model.SageMakerRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
resource
The name of the SageMaker resource to search for.
- Parameters:
resource
- The name of the SageMaker resource to search for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resource
The name of the SageMaker resource to search for.
- Parameters:
resource
- The name of the SageMaker resource to search for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
searchExpression
A Boolean conditional statement. Resources must satisfy this condition to be included in search results. You must provide at least one subexpression, filter, or nested filter. The maximum number of recursive
SubExpressions
,NestedFilters
, andFilters
that can be included in aSearchExpression
object is 50.- Parameters:
searchExpression
- A Boolean conditional statement. Resources must satisfy this condition to be included in search results. You must provide at least one subexpression, filter, or nested filter. The maximum number of recursiveSubExpressions
,NestedFilters
, andFilters
that can be included in aSearchExpression
object is 50.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
searchExpression
A Boolean conditional statement. Resources must satisfy this condition to be included in search results. You must provide at least one subexpression, filter, or nested filter. The maximum number of recursive
This is a convenience method that creates an instance of theSubExpressions
,NestedFilters
, andFilters
that can be included in aSearchExpression
object is 50.SearchExpression.Builder
avoiding the need to create one manually viaSearchExpression.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosearchExpression(SearchExpression)
.- Parameters:
searchExpression
- a consumer that will call methods onSearchExpression.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sortBy
The name of the resource property used to sort the
SearchResults
. The default isLastModifiedTime
.- Parameters:
sortBy
- The name of the resource property used to sort theSearchResults
. The default isLastModifiedTime
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sortOrder
How
SearchResults
are ordered. Valid values areAscending
orDescending
. The default isDescending
.- Parameters:
sortOrder
- HowSearchResults
are ordered. Valid values areAscending
orDescending
. The default isDescending
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sortOrder
How
SearchResults
are ordered. Valid values areAscending
orDescending
. The default isDescending
.- Parameters:
sortOrder
- HowSearchResults
are ordered. Valid values areAscending
orDescending
. The default isDescending
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
If more than
MaxResults
resources match the specifiedSearchExpression
, the response includes aNextToken
. TheNextToken
can be passed to the nextSearchRequest
to continue retrieving results.- Parameters:
nextToken
- If more thanMaxResults
resources match the specifiedSearchExpression
, the response includes aNextToken
. TheNextToken
can be passed to the nextSearchRequest
to continue retrieving results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxResults
The maximum number of results to return.
- Parameters:
maxResults
- The maximum number of results to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
crossAccountFilterOption
A cross account filter option. When the value is
"CrossAccount"
the search results will only include resources made discoverable to you from other accounts. When the value is"SameAccount"
ornull
the search results will only include resources from your account. Default isnull
. For more information on searching for resources made discoverable to your account, see Search discoverable resources in the SageMaker Developer Guide. The maximum number ofResourceCatalog
s viewable is 1000.- Parameters:
crossAccountFilterOption
- A cross account filter option. When the value is"CrossAccount"
the search results will only include resources made discoverable to you from other accounts. When the value is"SameAccount"
ornull
the search results will only include resources from your account. Default isnull
. For more information on searching for resources made discoverable to your account, see Search discoverable resources in the SageMaker Developer Guide. The maximum number ofResourceCatalog
s viewable is 1000.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
crossAccountFilterOption
A cross account filter option. When the value is
"CrossAccount"
the search results will only include resources made discoverable to you from other accounts. When the value is"SameAccount"
ornull
the search results will only include resources from your account. Default isnull
. For more information on searching for resources made discoverable to your account, see Search discoverable resources in the SageMaker Developer Guide. The maximum number ofResourceCatalog
s viewable is 1000.- Parameters:
crossAccountFilterOption
- A cross account filter option. When the value is"CrossAccount"
the search results will only include resources made discoverable to you from other accounts. When the value is"SameAccount"
ornull
the search results will only include resources from your account. Default isnull
. For more information on searching for resources made discoverable to your account, see Search discoverable resources in the SageMaker Developer Guide. The maximum number ofResourceCatalog
s viewable is 1000.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
visibilityConditions
Limits the results of your search request to the resources that you can access.
- Parameters:
visibilityConditions
- Limits the results of your search request to the resources that you can access.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
visibilityConditions
Limits the results of your search request to the resources that you can access.
- Parameters:
visibilityConditions
- Limits the results of your search request to the resources that you can access.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
visibilityConditions
SearchRequest.Builder visibilityConditions(Consumer<VisibilityConditions.Builder>... visibilityConditions) Limits the results of your search request to the resources that you can access.
This is a convenience method that creates an instance of theVisibilityConditions.Builder
avoiding the need to create one manually viaVisibilityConditions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovisibilityConditions(List<VisibilityConditions>)
.- Parameters:
visibilityConditions
- a consumer that will call methods onVisibilityConditions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
SearchRequest.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.
-