@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SearchRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
SearchRequest() |
Modifier and Type | Method and Description |
---|---|
SearchRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Integer |
getMaxResults()
The maximum number of results to return.
|
String |
getNextToken()
If more than
MaxResults resources match the specified SearchExpression , the response
includes a NextToken . |
String |
getResource()
The name of the Amazon SageMaker resource to search for.
|
SearchExpression |
getSearchExpression()
A Boolean conditional statement.
|
String |
getSortBy()
The name of the resource property used to sort the
SearchResults . |
String |
getSortOrder()
How
SearchResults are ordered. |
int |
hashCode() |
void |
setMaxResults(Integer maxResults)
The maximum number of results to return.
|
void |
setNextToken(String nextToken)
If more than
MaxResults resources match the specified SearchExpression , the response
includes a NextToken . |
void |
setResource(String resource)
The name of the Amazon SageMaker resource to search for.
|
void |
setSearchExpression(SearchExpression searchExpression)
A Boolean conditional statement.
|
void |
setSortBy(String sortBy)
The name of the resource property used to sort the
SearchResults . |
void |
setSortOrder(String sortOrder)
How
SearchResults are ordered. |
String |
toString()
Returns a string representation of this object.
|
SearchRequest |
withMaxResults(Integer maxResults)
The maximum number of results to return.
|
SearchRequest |
withNextToken(String nextToken)
If more than
MaxResults resources match the specified SearchExpression , the response
includes a NextToken . |
SearchRequest |
withResource(ResourceType resource)
The name of the Amazon SageMaker resource to search for.
|
SearchRequest |
withResource(String resource)
The name of the Amazon SageMaker resource to search for.
|
SearchRequest |
withSearchExpression(SearchExpression searchExpression)
A Boolean conditional statement.
|
SearchRequest |
withSortBy(String sortBy)
The name of the resource property used to sort the
SearchResults . |
SearchRequest |
withSortOrder(SearchSortOrder sortOrder)
How
SearchResults are ordered. |
SearchRequest |
withSortOrder(String sortOrder)
How
SearchResults are ordered. |
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setResource(String resource)
The name of the Amazon SageMaker resource to search for.
resource
- The name of the Amazon SageMaker resource to search for.ResourceType
public String getResource()
The name of the Amazon SageMaker resource to search for.
ResourceType
public SearchRequest withResource(String resource)
The name of the Amazon SageMaker resource to search for.
resource
- The name of the Amazon SageMaker resource to search for.ResourceType
public SearchRequest withResource(ResourceType resource)
The name of the Amazon SageMaker resource to search for.
resource
- The name of the Amazon SageMaker resource to search for.ResourceType
public void setSearchExpression(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
, and Filters
that can be included in a
SearchExpression
object is 50.
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
, and Filters
that can be included in
a SearchExpression
object is 50.public SearchExpression getSearchExpression()
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
, and Filters
that can be included in a
SearchExpression
object is 50.
SubExpressions
, NestedFilters
, and Filters
that can be included in
a SearchExpression
object is 50.public SearchRequest withSearchExpression(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
, and Filters
that can be included in a
SearchExpression
object is 50.
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
, and Filters
that can be included in
a SearchExpression
object is 50.public void setSortBy(String sortBy)
The name of the resource property used to sort the SearchResults
. The default is
LastModifiedTime
.
sortBy
- The name of the resource property used to sort the SearchResults
. The default is
LastModifiedTime
.public String getSortBy()
The name of the resource property used to sort the SearchResults
. The default is
LastModifiedTime
.
SearchResults
. The default is
LastModifiedTime
.public SearchRequest withSortBy(String sortBy)
The name of the resource property used to sort the SearchResults
. The default is
LastModifiedTime
.
sortBy
- The name of the resource property used to sort the SearchResults
. The default is
LastModifiedTime
.public void setSortOrder(String sortOrder)
How SearchResults
are ordered. Valid values are Ascending
or Descending
.
The default is Descending
.
sortOrder
- How SearchResults
are ordered. Valid values are Ascending
or
Descending
. The default is Descending
.SearchSortOrder
public String getSortOrder()
How SearchResults
are ordered. Valid values are Ascending
or Descending
.
The default is Descending
.
SearchResults
are ordered. Valid values are Ascending
or
Descending
. The default is Descending
.SearchSortOrder
public SearchRequest withSortOrder(String sortOrder)
How SearchResults
are ordered. Valid values are Ascending
or Descending
.
The default is Descending
.
sortOrder
- How SearchResults
are ordered. Valid values are Ascending
or
Descending
. The default is Descending
.SearchSortOrder
public SearchRequest withSortOrder(SearchSortOrder sortOrder)
How SearchResults
are ordered. Valid values are Ascending
or Descending
.
The default is Descending
.
sortOrder
- How SearchResults
are ordered. Valid values are Ascending
or
Descending
. The default is Descending
.SearchSortOrder
public void setNextToken(String nextToken)
If more than MaxResults
resources match the specified SearchExpression
, the response
includes a NextToken
. The NextToken
can be passed to the next
SearchRequest
to continue retrieving results.
nextToken
- If more than MaxResults
resources match the specified SearchExpression
, the
response includes a NextToken
. The NextToken
can be passed to the next
SearchRequest
to continue retrieving results.public String getNextToken()
If more than MaxResults
resources match the specified SearchExpression
, the response
includes a NextToken
. The NextToken
can be passed to the next
SearchRequest
to continue retrieving results.
MaxResults
resources match the specified SearchExpression
, the
response includes a NextToken
. The NextToken
can be passed to the next
SearchRequest
to continue retrieving results.public SearchRequest withNextToken(String nextToken)
If more than MaxResults
resources match the specified SearchExpression
, the response
includes a NextToken
. The NextToken
can be passed to the next
SearchRequest
to continue retrieving results.
nextToken
- If more than MaxResults
resources match the specified SearchExpression
, the
response includes a NextToken
. The NextToken
can be passed to the next
SearchRequest
to continue retrieving results.public void setMaxResults(Integer maxResults)
The maximum number of results to return.
maxResults
- The maximum number of results to return.public Integer getMaxResults()
The maximum number of results to return.
public SearchRequest withMaxResults(Integer maxResults)
The maximum number of results to return.
maxResults
- The maximum number of results to return.public String toString()
toString
in class Object
Object.toString()
public SearchRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()