Struct aws_sdk_sagemaker::operation::list_model_packages::builders::ListModelPackagesInputBuilder
source · #[non_exhaustive]pub struct ListModelPackagesInputBuilder { /* private fields */ }
Expand description
A builder for ListModelPackagesInput
.
Implementations§
source§impl ListModelPackagesInputBuilder
impl ListModelPackagesInputBuilder
sourcepub fn creation_time_after(self, input: DateTime) -> Self
pub fn creation_time_after(self, input: DateTime) -> Self
A filter that returns only model packages created after the specified time (timestamp).
sourcepub fn set_creation_time_after(self, input: Option<DateTime>) -> Self
pub fn set_creation_time_after(self, input: Option<DateTime>) -> Self
A filter that returns only model packages created after the specified time (timestamp).
sourcepub fn creation_time_before(self, input: DateTime) -> Self
pub fn creation_time_before(self, input: DateTime) -> Self
A filter that returns only model packages created before the specified time (timestamp).
sourcepub fn set_creation_time_before(self, input: Option<DateTime>) -> Self
pub fn set_creation_time_before(self, input: Option<DateTime>) -> Self
A filter that returns only model packages created before the specified time (timestamp).
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of model packages to return in the response.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of model packages to return in the response.
sourcepub fn name_contains(self, input: impl Into<String>) -> Self
pub fn name_contains(self, input: impl Into<String>) -> Self
A string in the model package name. This filter returns only model packages whose name contains the specified string.
sourcepub fn set_name_contains(self, input: Option<String>) -> Self
pub fn set_name_contains(self, input: Option<String>) -> Self
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, input: ModelApprovalStatus) -> Self
pub fn model_approval_status(self, input: ModelApprovalStatus) -> Self
A filter that returns only the model packages with the specified approval status.
sourcepub fn set_model_approval_status(
self,
input: Option<ModelApprovalStatus>
) -> Self
pub fn set_model_approval_status( self, input: Option<ModelApprovalStatus> ) -> Self
A filter that returns only the model packages with the specified approval status.
sourcepub fn model_package_group_name(self, input: impl Into<String>) -> Self
pub fn model_package_group_name(self, input: impl Into<String>) -> Self
A filter that returns only model versions that belong to the specified model group.
sourcepub fn set_model_package_group_name(self, input: Option<String>) -> Self
pub fn set_model_package_group_name(self, input: Option<String>) -> Self
A filter that returns only model versions that belong to the specified model group.
sourcepub fn model_package_type(self, input: ModelPackageType) -> Self
pub fn model_package_type(self, input: ModelPackageType) -> Self
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 set_model_package_type(self, input: Option<ModelPackageType>) -> Self
pub fn set_model_package_type(self, input: Option<ModelPackageType>) -> Self
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, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
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 set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
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, input: ModelPackageSortBy) -> Self
pub fn sort_by(self, input: ModelPackageSortBy) -> Self
The parameter by which to sort the results. The default is CreationTime
.
sourcepub fn set_sort_by(self, input: Option<ModelPackageSortBy>) -> Self
pub fn set_sort_by(self, input: Option<ModelPackageSortBy>) -> Self
The parameter by which to sort the results. The default is CreationTime
.
sourcepub fn sort_order(self, input: SortOrder) -> Self
pub fn sort_order(self, input: SortOrder) -> Self
The sort order for the results. The default is Ascending
.
sourcepub fn set_sort_order(self, input: Option<SortOrder>) -> Self
pub fn set_sort_order(self, input: Option<SortOrder>) -> Self
The sort order for the results. The default is Ascending
.
sourcepub fn build(self) -> Result<ListModelPackagesInput, BuildError>
pub fn build(self) -> Result<ListModelPackagesInput, BuildError>
Consumes the builder and constructs a ListModelPackagesInput
.
Trait Implementations§
source§impl Clone for ListModelPackagesInputBuilder
impl Clone for ListModelPackagesInputBuilder
source§fn clone(&self) -> ListModelPackagesInputBuilder
fn clone(&self) -> ListModelPackagesInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ListModelPackagesInputBuilder
impl Default for ListModelPackagesInputBuilder
source§fn default() -> ListModelPackagesInputBuilder
fn default() -> ListModelPackagesInputBuilder
source§impl PartialEq<ListModelPackagesInputBuilder> for ListModelPackagesInputBuilder
impl PartialEq<ListModelPackagesInputBuilder> for ListModelPackagesInputBuilder
source§fn eq(&self, other: &ListModelPackagesInputBuilder) -> bool
fn eq(&self, other: &ListModelPackagesInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.