Struct aws_sdk_sagemaker::client::fluent_builders::ListContexts
source · pub struct ListContexts { /* private fields */ }
Expand description
Fluent builder constructing a request to ListContexts
.
Lists the contexts in your account and their properties.
Implementations§
source§impl ListContexts
impl ListContexts
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<ListContexts, AwsResponseRetryClassifier>, SdkError<ListContextsError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<ListContexts, AwsResponseRetryClassifier>, SdkError<ListContextsError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<ListContextsOutput, SdkError<ListContextsError>>
pub async fn send(
self
) -> Result<ListContextsOutput, SdkError<ListContextsError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn into_paginator(self) -> ListContextsPaginator
pub fn into_paginator(self) -> ListContextsPaginator
Create a paginator for this request
Paginators are used by calling send().await
which returns a Stream
.
sourcepub fn source_uri(self, input: impl Into<String>) -> Self
pub fn source_uri(self, input: impl Into<String>) -> Self
A filter that returns only contexts with the specified source URI.
sourcepub fn set_source_uri(self, input: Option<String>) -> Self
pub fn set_source_uri(self, input: Option<String>) -> Self
A filter that returns only contexts with the specified source URI.
sourcepub fn context_type(self, input: impl Into<String>) -> Self
pub fn context_type(self, input: impl Into<String>) -> Self
A filter that returns only contexts of the specified type.
sourcepub fn set_context_type(self, input: Option<String>) -> Self
pub fn set_context_type(self, input: Option<String>) -> Self
A filter that returns only contexts of the specified type.
sourcepub fn created_after(self, input: DateTime) -> Self
pub fn created_after(self, input: DateTime) -> Self
A filter that returns only contexts created on or after the specified time.
sourcepub fn set_created_after(self, input: Option<DateTime>) -> Self
pub fn set_created_after(self, input: Option<DateTime>) -> Self
A filter that returns only contexts created on or after the specified time.
sourcepub fn created_before(self, input: DateTime) -> Self
pub fn created_before(self, input: DateTime) -> Self
A filter that returns only contexts created on or before the specified time.
sourcepub fn set_created_before(self, input: Option<DateTime>) -> Self
pub fn set_created_before(self, input: Option<DateTime>) -> Self
A filter that returns only contexts created on or before the specified time.
sourcepub fn sort_by(self, input: SortContextsBy) -> Self
pub fn sort_by(self, input: SortContextsBy) -> Self
The property used to sort results. The default value is CreationTime
.
sourcepub fn set_sort_by(self, input: Option<SortContextsBy>) -> Self
pub fn set_sort_by(self, input: Option<SortContextsBy>) -> Self
The property used to sort results. The default value is CreationTime
.
sourcepub fn sort_order(self, input: SortOrder) -> Self
pub fn sort_order(self, input: SortOrder) -> Self
The sort order. The default value is Descending
.
sourcepub fn set_sort_order(self, input: Option<SortOrder>) -> Self
pub fn set_sort_order(self, input: Option<SortOrder>) -> Self
The sort order. The default value is Descending
.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
If the previous call to ListContexts
didn't return the full set of contexts, the call returns a token for getting the next set of contexts.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
If the previous call to ListContexts
didn't return the full set of contexts, the call returns a token for getting the next set of contexts.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of contexts to return in the response. The default value is 10.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of contexts to return in the response. The default value is 10.
Trait Implementations§
source§impl Clone for ListContexts
impl Clone for ListContexts
source§fn clone(&self) -> ListContexts
fn clone(&self) -> ListContexts
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more