Struct aws_sdk_sagemaker::model::model_package::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for ModelPackage
Implementations
sourceimpl Builder
impl Builder
sourcepub fn model_package_name(self, input: impl Into<String>) -> Self
pub fn model_package_name(self, input: impl Into<String>) -> Self
The name of the model.
sourcepub fn set_model_package_name(self, input: Option<String>) -> Self
pub fn set_model_package_name(self, input: Option<String>) -> Self
The name of the model.
sourcepub fn model_package_group_name(self, input: impl Into<String>) -> Self
pub fn model_package_group_name(self, input: impl Into<String>) -> Self
The model group to which the model belongs.
sourcepub fn set_model_package_group_name(self, input: Option<String>) -> Self
pub fn set_model_package_group_name(self, input: Option<String>) -> Self
The model group to which the model belongs.
sourcepub fn model_package_version(self, input: i32) -> Self
pub fn model_package_version(self, input: i32) -> Self
The version number of a versioned model.
sourcepub fn set_model_package_version(self, input: Option<i32>) -> Self
pub fn set_model_package_version(self, input: Option<i32>) -> Self
The version number of a versioned model.
sourcepub fn model_package_arn(self, input: impl Into<String>) -> Self
pub fn model_package_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the model package.
sourcepub fn set_model_package_arn(self, input: Option<String>) -> Self
pub fn set_model_package_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the model package.
sourcepub fn model_package_description(self, input: impl Into<String>) -> Self
pub fn model_package_description(self, input: impl Into<String>) -> Self
The description of the model package.
sourcepub fn set_model_package_description(self, input: Option<String>) -> Self
pub fn set_model_package_description(self, input: Option<String>) -> Self
The description of the model package.
sourcepub fn creation_time(self, input: DateTime) -> Self
pub fn creation_time(self, input: DateTime) -> Self
The time that the model package was created.
sourcepub fn set_creation_time(self, input: Option<DateTime>) -> Self
pub fn set_creation_time(self, input: Option<DateTime>) -> Self
The time that the model package was created.
sourcepub fn inference_specification(self, input: InferenceSpecification) -> Self
pub fn inference_specification(self, input: InferenceSpecification) -> Self
Defines how to perform inference generation after a training job is run.
sourcepub fn set_inference_specification(
self,
input: Option<InferenceSpecification>
) -> Self
pub fn set_inference_specification(
self,
input: Option<InferenceSpecification>
) -> Self
Defines how to perform inference generation after a training job is run.
sourcepub fn source_algorithm_specification(
self,
input: SourceAlgorithmSpecification
) -> Self
pub fn source_algorithm_specification(
self,
input: SourceAlgorithmSpecification
) -> Self
A list of algorithms that were used to create a model package.
sourcepub fn set_source_algorithm_specification(
self,
input: Option<SourceAlgorithmSpecification>
) -> Self
pub fn set_source_algorithm_specification(
self,
input: Option<SourceAlgorithmSpecification>
) -> Self
A list of algorithms that were used to create a model package.
sourcepub fn validation_specification(
self,
input: ModelPackageValidationSpecification
) -> Self
pub fn validation_specification(
self,
input: ModelPackageValidationSpecification
) -> Self
Specifies batch transform jobs that Amazon SageMaker runs to validate your model package.
sourcepub fn set_validation_specification(
self,
input: Option<ModelPackageValidationSpecification>
) -> Self
pub fn set_validation_specification(
self,
input: Option<ModelPackageValidationSpecification>
) -> Self
Specifies batch transform jobs that Amazon SageMaker runs to validate your model package.
sourcepub fn model_package_status(self, input: ModelPackageStatus) -> Self
pub fn model_package_status(self, input: ModelPackageStatus) -> Self
The status of the model package. This can be one of the following values.
-
PENDING
- The model package is pending being created. -
IN_PROGRESS
- The model package is in the process of being created. -
COMPLETED
- The model package was successfully created. -
FAILED
- The model package failed. -
DELETING
- The model package is in the process of being deleted.
sourcepub fn set_model_package_status(self, input: Option<ModelPackageStatus>) -> Self
pub fn set_model_package_status(self, input: Option<ModelPackageStatus>) -> Self
The status of the model package. This can be one of the following values.
-
PENDING
- The model package is pending being created. -
IN_PROGRESS
- The model package is in the process of being created. -
COMPLETED
- The model package was successfully created. -
FAILED
- The model package failed. -
DELETING
- The model package is in the process of being deleted.
sourcepub fn model_package_status_details(
self,
input: ModelPackageStatusDetails
) -> Self
pub fn model_package_status_details(
self,
input: ModelPackageStatusDetails
) -> Self
Specifies the validation and image scan statuses of the model package.
sourcepub fn set_model_package_status_details(
self,
input: Option<ModelPackageStatusDetails>
) -> Self
pub fn set_model_package_status_details(
self,
input: Option<ModelPackageStatusDetails>
) -> Self
Specifies the validation and image scan statuses of the model package.
sourcepub fn certify_for_marketplace(self, input: bool) -> Self
pub fn certify_for_marketplace(self, input: bool) -> Self
Whether the model package is to be certified to be listed on Amazon Web Services Marketplace. For information about listing model packages on Amazon Web Services Marketplace, see List Your Algorithm or Model Package on Amazon Web Services Marketplace.
sourcepub fn set_certify_for_marketplace(self, input: Option<bool>) -> Self
pub fn set_certify_for_marketplace(self, input: Option<bool>) -> Self
Whether the model package is to be certified to be listed on Amazon Web Services Marketplace. For information about listing model packages on Amazon Web Services Marketplace, see List Your Algorithm or Model Package on Amazon Web Services Marketplace.
sourcepub fn model_approval_status(self, input: ModelApprovalStatus) -> Self
pub fn model_approval_status(self, input: ModelApprovalStatus) -> Self
The approval status of the model. This can be one of the following values.
-
APPROVED
- The model is approved -
REJECTED
- The model is rejected. -
PENDING_MANUAL_APPROVAL
- The model is waiting for manual approval.
sourcepub fn set_model_approval_status(
self,
input: Option<ModelApprovalStatus>
) -> Self
pub fn set_model_approval_status(
self,
input: Option<ModelApprovalStatus>
) -> Self
The approval status of the model. This can be one of the following values.
-
APPROVED
- The model is approved -
REJECTED
- The model is rejected. -
PENDING_MANUAL_APPROVAL
- The model is waiting for manual approval.
sourcepub fn created_by(self, input: UserContext) -> Self
pub fn created_by(self, input: UserContext) -> Self
Information about the user who created or modified an experiment, trial, trial component, lineage group, or project.
sourcepub fn set_created_by(self, input: Option<UserContext>) -> Self
pub fn set_created_by(self, input: Option<UserContext>) -> Self
Information about the user who created or modified an experiment, trial, trial component, lineage group, or project.
sourcepub fn metadata_properties(self, input: MetadataProperties) -> Self
pub fn metadata_properties(self, input: MetadataProperties) -> Self
Metadata properties of the tracking entity, trial, or trial component.
sourcepub fn set_metadata_properties(self, input: Option<MetadataProperties>) -> Self
pub fn set_metadata_properties(self, input: Option<MetadataProperties>) -> Self
Metadata properties of the tracking entity, trial, or trial component.
sourcepub fn model_metrics(self, input: ModelMetrics) -> Self
pub fn model_metrics(self, input: ModelMetrics) -> Self
Metrics for the model.
sourcepub fn set_model_metrics(self, input: Option<ModelMetrics>) -> Self
pub fn set_model_metrics(self, input: Option<ModelMetrics>) -> Self
Metrics for the model.
sourcepub fn last_modified_time(self, input: DateTime) -> Self
pub fn last_modified_time(self, input: DateTime) -> Self
The last time the model package was modified.
sourcepub fn set_last_modified_time(self, input: Option<DateTime>) -> Self
pub fn set_last_modified_time(self, input: Option<DateTime>) -> Self
The last time the model package was modified.
sourcepub fn last_modified_by(self, input: UserContext) -> Self
pub fn last_modified_by(self, input: UserContext) -> Self
Information about the user who created or modified an experiment, trial, trial component, lineage group, or project.
sourcepub fn set_last_modified_by(self, input: Option<UserContext>) -> Self
pub fn set_last_modified_by(self, input: Option<UserContext>) -> Self
Information about the user who created or modified an experiment, trial, trial component, lineage group, or project.
sourcepub fn approval_description(self, input: impl Into<String>) -> Self
pub fn approval_description(self, input: impl Into<String>) -> Self
A description provided when the model approval is set.
sourcepub fn set_approval_description(self, input: Option<String>) -> Self
pub fn set_approval_description(self, input: Option<String>) -> Self
A description provided when the model approval is set.
sourcepub fn domain(self, input: impl Into<String>) -> Self
pub fn domain(self, input: impl Into<String>) -> Self
The machine learning domain of your model package and its components. Common machine learning domains include computer vision and natural language processing.
sourcepub fn set_domain(self, input: Option<String>) -> Self
pub fn set_domain(self, input: Option<String>) -> Self
The machine learning domain of your model package and its components. Common machine learning domains include computer vision and natural language processing.
sourcepub fn task(self, input: impl Into<String>) -> Self
pub fn task(self, input: impl Into<String>) -> Self
The machine learning task your model package accomplishes. Common machine learning tasks include object detection and image classification.
sourcepub fn set_task(self, input: Option<String>) -> Self
pub fn set_task(self, input: Option<String>) -> Self
The machine learning task your model package accomplishes. Common machine learning tasks include object detection and image classification.
sourcepub fn sample_payload_url(self, input: impl Into<String>) -> Self
pub fn sample_payload_url(self, input: impl Into<String>) -> Self
The Amazon Simple Storage Service path where the sample payload are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix).
sourcepub fn set_sample_payload_url(self, input: Option<String>) -> Self
pub fn set_sample_payload_url(self, input: Option<String>) -> Self
The Amazon Simple Storage Service path where the sample payload are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix).
sourcepub fn additional_inference_specifications(
self,
input: AdditionalInferenceSpecificationDefinition
) -> Self
pub fn additional_inference_specifications(
self,
input: AdditionalInferenceSpecificationDefinition
) -> Self
Appends an item to additional_inference_specifications
.
To override the contents of this collection use set_additional_inference_specifications
.
An array of additional Inference Specification objects.
sourcepub fn set_additional_inference_specifications(
self,
input: Option<Vec<AdditionalInferenceSpecificationDefinition>>
) -> Self
pub fn set_additional_inference_specifications(
self,
input: Option<Vec<AdditionalInferenceSpecificationDefinition>>
) -> Self
An array of additional Inference Specification objects.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
A list of the tags associated with the model package. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide.
A list of the tags associated with the model package. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide.
sourcepub fn customer_metadata_properties(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn customer_metadata_properties(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
Adds a key-value pair to customer_metadata_properties
.
To override the contents of this collection use set_customer_metadata_properties
.
The metadata properties for the model package.
sourcepub fn set_customer_metadata_properties(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_customer_metadata_properties(
self,
input: Option<HashMap<String, String>>
) -> Self
The metadata properties for the model package.
sourcepub fn drift_check_baselines(self, input: DriftCheckBaselines) -> Self
pub fn drift_check_baselines(self, input: DriftCheckBaselines) -> Self
Represents the drift check baselines that can be used when the model monitor is set using the model package.
sourcepub fn set_drift_check_baselines(
self,
input: Option<DriftCheckBaselines>
) -> Self
pub fn set_drift_check_baselines(
self,
input: Option<DriftCheckBaselines>
) -> Self
Represents the drift check baselines that can be used when the model monitor is set using the model package.
sourcepub fn build(self) -> ModelPackage
pub fn build(self) -> ModelPackage
Consumes the builder and constructs a ModelPackage
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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