Struct aws_sdk_sagemaker::input::ListModelPackagesInput
source · [−]#[non_exhaustive]pub struct ListModelPackagesInput {
pub creation_time_after: Option<DateTime>,
pub creation_time_before: Option<DateTime>,
pub max_results: Option<i32>,
pub name_contains: Option<String>,
pub model_approval_status: Option<ModelApprovalStatus>,
pub model_package_group_name: Option<String>,
pub model_package_type: Option<ModelPackageType>,
pub next_token: Option<String>,
pub sort_by: Option<ModelPackageSortBy>,
pub sort_order: Option<SortOrder>,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.creation_time_after: Option<DateTime>
A filter that returns only model packages created after the specified time (timestamp).
creation_time_before: Option<DateTime>
A filter that returns only model packages created before the specified time (timestamp).
max_results: Option<i32>
The maximum number of model packages to return in the response.
name_contains: Option<String>
A string in the model package name. This filter returns only model packages whose name contains the specified string.
model_approval_status: Option<ModelApprovalStatus>
A filter that returns only the model packages with the specified approval status.
model_package_group_name: Option<String>
A filter that returns only model versions that belong to the specified model group.
model_package_type: Option<ModelPackageType>
A filter that returns only the model packages of the specified type. This can be one of the following values.
-
UNVERSIONED
- List only unversioined models. This is the default value if noModelPackageType
is specified. -
VERSIONED
- List only versioned models. -
BOTH
- List both versioned and unversioned models.
next_token: Option<String>
If the response to a previous ListModelPackages
request was truncated, the response includes a NextToken
. To retrieve the next set of model packages, use the token in the next request.
sort_by: Option<ModelPackageSortBy>
The parameter by which to sort the results. The default is CreationTime
.
sort_order: Option<SortOrder>
The sort order for the results. The default is Ascending
.
Implementations
sourceimpl ListModelPackagesInput
impl ListModelPackagesInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ListModelPackages, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ListModelPackages, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<ListModelPackages
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ListModelPackagesInput
sourceimpl ListModelPackagesInput
impl ListModelPackagesInput
sourcepub fn creation_time_after(&self) -> Option<&DateTime>
pub fn creation_time_after(&self) -> Option<&DateTime>
A filter that returns only model packages created after the specified time (timestamp).
sourcepub fn creation_time_before(&self) -> Option<&DateTime>
pub fn creation_time_before(&self) -> Option<&DateTime>
A filter that returns only model packages created before the specified time (timestamp).
sourcepub fn max_results(&self) -> Option<i32>
pub fn max_results(&self) -> Option<i32>
The maximum number of model packages to return in the response.
sourcepub fn name_contains(&self) -> Option<&str>
pub fn name_contains(&self) -> Option<&str>
A string in the model package name. This filter returns only model packages whose name contains the specified string.
sourcepub fn model_approval_status(&self) -> Option<&ModelApprovalStatus>
pub fn model_approval_status(&self) -> Option<&ModelApprovalStatus>
A filter that returns only the model packages with the specified approval status.
sourcepub fn model_package_group_name(&self) -> Option<&str>
pub fn model_package_group_name(&self) -> Option<&str>
A filter that returns only model versions that belong to the specified model group.
sourcepub fn model_package_type(&self) -> Option<&ModelPackageType>
pub fn model_package_type(&self) -> Option<&ModelPackageType>
A filter that returns only the model packages of the specified type. This can be one of the following values.
-
UNVERSIONED
- List only unversioined models. This is the default value if noModelPackageType
is specified. -
VERSIONED
- List only versioned models. -
BOTH
- List both versioned and unversioned models.
sourcepub fn next_token(&self) -> Option<&str>
pub fn next_token(&self) -> Option<&str>
If the response to a previous ListModelPackages
request was truncated, the response includes a NextToken
. To retrieve the next set of model packages, use the token in the next request.
sourcepub fn sort_by(&self) -> Option<&ModelPackageSortBy>
pub fn sort_by(&self) -> Option<&ModelPackageSortBy>
The parameter by which to sort the results. The default is CreationTime
.
sourcepub fn sort_order(&self) -> Option<&SortOrder>
pub fn sort_order(&self) -> Option<&SortOrder>
The sort order for the results. The default is Ascending
.
Trait Implementations
sourceimpl Clone for ListModelPackagesInput
impl Clone for ListModelPackagesInput
sourcefn clone(&self) -> ListModelPackagesInput
fn clone(&self) -> ListModelPackagesInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ListModelPackagesInput
impl Debug for ListModelPackagesInput
sourceimpl PartialEq<ListModelPackagesInput> for ListModelPackagesInput
impl PartialEq<ListModelPackagesInput> for ListModelPackagesInput
sourcefn eq(&self, other: &ListModelPackagesInput) -> bool
fn eq(&self, other: &ListModelPackagesInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ListModelPackagesInput) -> bool
fn ne(&self, other: &ListModelPackagesInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for ListModelPackagesInput
Auto Trait Implementations
impl RefUnwindSafe for ListModelPackagesInput
impl Send for ListModelPackagesInput
impl Sync for ListModelPackagesInput
impl Unpin for ListModelPackagesInput
impl UnwindSafe for ListModelPackagesInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more