Class SearchRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.sagemaker.model.SageMakerRequest
-
- software.amazon.awssdk.services.sagemaker.model.SearchRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<SearchRequest.Builder,SearchRequest>
@Generated("software.amazon.awssdk:codegen") public final class SearchRequest extends SageMakerRequest implements ToCopyableBuilder<SearchRequest.Builder,SearchRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSearchRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SearchRequest.Builderbuilder()CrossAccountFilterOptioncrossAccountFilterOption()A cross account filter option.StringcrossAccountFilterOptionAsString()A cross account filter option.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegermaxResults()The maximum number of results to return.StringnextToken()If more thanMaxResultsresources match the specifiedSearchExpression, the response includes aNextToken.ResourceTyperesource()The name of the SageMaker resource to search for.StringresourceAsString()The name of the SageMaker resource to search for.List<SdkField<?>>sdkFields()SearchExpressionsearchExpression()A Boolean conditional statement.static Class<? extends SearchRequest.Builder>serializableBuilderClass()StringsortBy()The name of the resource property used to sort theSearchResults.SearchSortOrdersortOrder()HowSearchResultsare ordered.StringsortOrderAsString()HowSearchResultsare ordered.SearchRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
resource
public final ResourceType resource()
The name of the SageMaker resource to search for.
If the service returns an enum value that is not available in the current SDK version,
resourcewill returnResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromresourceAsString().- Returns:
- The name of the SageMaker resource to search for.
- See Also:
ResourceType
-
resourceAsString
public final String resourceAsString()
The name of the SageMaker resource to search for.
If the service returns an enum value that is not available in the current SDK version,
resourcewill returnResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromresourceAsString().- Returns:
- The name of the SageMaker resource to search for.
- See Also:
ResourceType
-
searchExpression
public final SearchExpression 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, andFiltersthat can be included in aSearchExpressionobject is 50.- Returns:
- 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, andFiltersthat can be included in aSearchExpressionobject is 50.
-
sortBy
public final String sortBy()
The name of the resource property used to sort the
SearchResults. The default isLastModifiedTime.- Returns:
- The name of the resource property used to sort the
SearchResults. The default isLastModifiedTime.
-
sortOrder
public final SearchSortOrder sortOrder()
How
SearchResultsare ordered. Valid values areAscendingorDescending. The default isDescending.If the service returns an enum value that is not available in the current SDK version,
sortOrderwill returnSearchSortOrder.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsortOrderAsString().- Returns:
- How
SearchResultsare ordered. Valid values areAscendingorDescending. The default isDescending. - See Also:
SearchSortOrder
-
sortOrderAsString
public final String sortOrderAsString()
How
SearchResultsare ordered. Valid values areAscendingorDescending. The default isDescending.If the service returns an enum value that is not available in the current SDK version,
sortOrderwill returnSearchSortOrder.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsortOrderAsString().- Returns:
- How
SearchResultsare ordered. Valid values areAscendingorDescending. The default isDescending. - See Also:
SearchSortOrder
-
nextToken
public final String nextToken()
If more than
MaxResultsresources match the specifiedSearchExpression, the response includes aNextToken. TheNextTokencan be passed to the nextSearchRequestto continue retrieving results.- Returns:
- If more than
MaxResultsresources match the specifiedSearchExpression, the response includes aNextToken. TheNextTokencan be passed to the nextSearchRequestto continue retrieving results.
-
maxResults
public final Integer maxResults()
The maximum number of results to return.
- Returns:
- The maximum number of results to return.
-
crossAccountFilterOption
public final CrossAccountFilterOption 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"ornullthe 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 ofResourceCatalogs viewable is 1000.If the service returns an enum value that is not available in the current SDK version,
crossAccountFilterOptionwill returnCrossAccountFilterOption.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcrossAccountFilterOptionAsString().- Returns:
- 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"ornullthe 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 ofResourceCatalogs viewable is 1000. - See Also:
CrossAccountFilterOption
-
crossAccountFilterOptionAsString
public final String crossAccountFilterOptionAsString()
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"ornullthe 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 ofResourceCatalogs viewable is 1000.If the service returns an enum value that is not available in the current SDK version,
crossAccountFilterOptionwill returnCrossAccountFilterOption.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcrossAccountFilterOptionAsString().- Returns:
- 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"ornullthe 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 ofResourceCatalogs viewable is 1000. - See Also:
CrossAccountFilterOption
-
toBuilder
public SearchRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SearchRequest.Builder,SearchRequest>- Specified by:
toBuilderin classSageMakerRequest
-
builder
public static SearchRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends SearchRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-