Struct aws_sdk_sagemaker::operation::search::builders::SearchInputBuilder
source · #[non_exhaustive]pub struct SearchInputBuilder { /* private fields */ }
Expand description
A builder for SearchInput
.
Implementations§
source§impl SearchInputBuilder
impl SearchInputBuilder
sourcepub fn resource(self, input: ResourceType) -> Self
pub fn resource(self, input: ResourceType) -> Self
The name of the SageMaker resource to search for.
This field is required.sourcepub fn set_resource(self, input: Option<ResourceType>) -> Self
pub fn set_resource(self, input: Option<ResourceType>) -> Self
The name of the SageMaker resource to search for.
sourcepub fn get_resource(&self) -> &Option<ResourceType>
pub fn get_resource(&self) -> &Option<ResourceType>
The name of the SageMaker resource to search for.
sourcepub fn search_expression(self, input: SearchExpression) -> Self
pub fn search_expression(self, input: SearchExpression) -> Self
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.
sourcepub fn set_search_expression(self, input: Option<SearchExpression>) -> Self
pub fn set_search_expression(self, input: Option<SearchExpression>) -> Self
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.
sourcepub fn get_search_expression(&self) -> &Option<SearchExpression>
pub fn get_search_expression(&self) -> &Option<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.
sourcepub fn sort_by(self, input: impl Into<String>) -> Self
pub fn sort_by(self, input: impl Into<String>) -> Self
The name of the resource property used to sort the SearchResults
. The default is LastModifiedTime
.
sourcepub fn set_sort_by(self, input: Option<String>) -> Self
pub fn set_sort_by(self, input: Option<String>) -> Self
The name of the resource property used to sort the SearchResults
. The default is LastModifiedTime
.
sourcepub fn get_sort_by(&self) -> &Option<String>
pub fn get_sort_by(&self) -> &Option<String>
The name of the resource property used to sort the SearchResults
. The default is LastModifiedTime
.
sourcepub fn sort_order(self, input: SearchSortOrder) -> Self
pub fn sort_order(self, input: SearchSortOrder) -> Self
How SearchResults
are ordered. Valid values are Ascending
or Descending
. The default is Descending
.
sourcepub fn set_sort_order(self, input: Option<SearchSortOrder>) -> Self
pub fn set_sort_order(self, input: Option<SearchSortOrder>) -> Self
How SearchResults
are ordered. Valid values are Ascending
or Descending
. The default is Descending
.
sourcepub fn get_sort_order(&self) -> &Option<SearchSortOrder>
pub fn get_sort_order(&self) -> &Option<SearchSortOrder>
How SearchResults
are ordered. Valid values are Ascending
or Descending
. The default is Descending
.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
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.
sourcepub fn get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
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.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of results to return.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of results to return.
sourcepub fn get_max_results(&self) -> &Option<i32>
pub fn get_max_results(&self) -> &Option<i32>
The maximum number of results to return.
sourcepub fn cross_account_filter_option(
self,
input: CrossAccountFilterOption
) -> Self
pub fn cross_account_filter_option( self, input: CrossAccountFilterOption ) -> Self
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"
or null
the search results will only include resources from your account. Default is null
. For more information on searching for resources made discoverable to your account, see Search discoverable resources in the SageMaker Developer Guide. The maximum number of ResourceCatalog
s viewable is 1000.
sourcepub fn set_cross_account_filter_option(
self,
input: Option<CrossAccountFilterOption>
) -> Self
pub fn set_cross_account_filter_option( self, input: Option<CrossAccountFilterOption> ) -> Self
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"
or null
the search results will only include resources from your account. Default is null
. For more information on searching for resources made discoverable to your account, see Search discoverable resources in the SageMaker Developer Guide. The maximum number of ResourceCatalog
s viewable is 1000.
sourcepub fn get_cross_account_filter_option(
&self
) -> &Option<CrossAccountFilterOption>
pub fn get_cross_account_filter_option( &self ) -> &Option<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"
or null
the search results will only include resources from your account. Default is null
. For more information on searching for resources made discoverable to your account, see Search discoverable resources in the SageMaker Developer Guide. The maximum number of ResourceCatalog
s viewable is 1000.
sourcepub fn build(self) -> Result<SearchInput, BuildError>
pub fn build(self) -> Result<SearchInput, BuildError>
Consumes the builder and constructs a SearchInput
.
source§impl SearchInputBuilder
impl SearchInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<SearchOutput, SdkError<SearchError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<SearchOutput, SdkError<SearchError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for SearchInputBuilder
impl Clone for SearchInputBuilder
source§fn clone(&self) -> SearchInputBuilder
fn clone(&self) -> SearchInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SearchInputBuilder
impl Debug for SearchInputBuilder
source§impl Default for SearchInputBuilder
impl Default for SearchInputBuilder
source§fn default() -> SearchInputBuilder
fn default() -> SearchInputBuilder
source§impl PartialEq for SearchInputBuilder
impl PartialEq for SearchInputBuilder
source§fn eq(&self, other: &SearchInputBuilder) -> bool
fn eq(&self, other: &SearchInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.