Struct aws_sdk_sagemaker::types::builders::ModelBuilder
source · #[non_exhaustive]pub struct ModelBuilder { /* private fields */ }
Expand description
A builder for Model
.
Implementations§
source§impl ModelBuilder
impl ModelBuilder
sourcepub fn model_name(self, input: impl Into<String>) -> Self
pub fn model_name(self, input: impl Into<String>) -> Self
The name of the model.
sourcepub fn set_model_name(self, input: Option<String>) -> Self
pub fn set_model_name(self, input: Option<String>) -> Self
The name of the model.
sourcepub fn get_model_name(&self) -> &Option<String>
pub fn get_model_name(&self) -> &Option<String>
The name of the model.
sourcepub fn primary_container(self, input: ContainerDefinition) -> Self
pub fn primary_container(self, input: ContainerDefinition) -> Self
Describes the container, as part of model definition.
sourcepub fn set_primary_container(self, input: Option<ContainerDefinition>) -> Self
pub fn set_primary_container(self, input: Option<ContainerDefinition>) -> Self
Describes the container, as part of model definition.
sourcepub fn get_primary_container(&self) -> &Option<ContainerDefinition>
pub fn get_primary_container(&self) -> &Option<ContainerDefinition>
Describes the container, as part of model definition.
sourcepub fn containers(self, input: ContainerDefinition) -> Self
pub fn containers(self, input: ContainerDefinition) -> Self
Appends an item to containers
.
To override the contents of this collection use set_containers
.
The containers in the inference pipeline.
sourcepub fn set_containers(self, input: Option<Vec<ContainerDefinition>>) -> Self
pub fn set_containers(self, input: Option<Vec<ContainerDefinition>>) -> Self
The containers in the inference pipeline.
sourcepub fn get_containers(&self) -> &Option<Vec<ContainerDefinition>>
pub fn get_containers(&self) -> &Option<Vec<ContainerDefinition>>
The containers in the inference pipeline.
sourcepub fn inference_execution_config(self, input: InferenceExecutionConfig) -> Self
pub fn inference_execution_config(self, input: InferenceExecutionConfig) -> Self
Specifies details about how containers in a multi-container endpoint are run.
sourcepub fn set_inference_execution_config(
self,
input: Option<InferenceExecutionConfig>
) -> Self
pub fn set_inference_execution_config( self, input: Option<InferenceExecutionConfig> ) -> Self
Specifies details about how containers in a multi-container endpoint are run.
sourcepub fn get_inference_execution_config(
&self
) -> &Option<InferenceExecutionConfig>
pub fn get_inference_execution_config( &self ) -> &Option<InferenceExecutionConfig>
Specifies details about how containers in a multi-container endpoint are run.
sourcepub fn execution_role_arn(self, input: impl Into<String>) -> Self
pub fn execution_role_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the IAM role that you specified for the model.
sourcepub fn set_execution_role_arn(self, input: Option<String>) -> Self
pub fn set_execution_role_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the IAM role that you specified for the model.
sourcepub fn get_execution_role_arn(&self) -> &Option<String>
pub fn get_execution_role_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the IAM role that you specified for the model.
sourcepub fn vpc_config(self, input: VpcConfig) -> Self
pub fn vpc_config(self, input: VpcConfig) -> Self
Specifies a VPC that your training jobs and hosted models have access to. Control access to and from your training and model containers by configuring the VPC. For more information, see Protect Endpoints by Using an Amazon Virtual Private Cloud and Protect Training Jobs by Using an Amazon Virtual Private Cloud.
sourcepub fn set_vpc_config(self, input: Option<VpcConfig>) -> Self
pub fn set_vpc_config(self, input: Option<VpcConfig>) -> Self
Specifies a VPC that your training jobs and hosted models have access to. Control access to and from your training and model containers by configuring the VPC. For more information, see Protect Endpoints by Using an Amazon Virtual Private Cloud and Protect Training Jobs by Using an Amazon Virtual Private Cloud.
sourcepub fn get_vpc_config(&self) -> &Option<VpcConfig>
pub fn get_vpc_config(&self) -> &Option<VpcConfig>
Specifies a VPC that your training jobs and hosted models have access to. Control access to and from your training and model containers by configuring the VPC. For more information, see Protect Endpoints by Using an Amazon Virtual Private Cloud and Protect Training Jobs by Using an Amazon Virtual Private Cloud.
sourcepub fn creation_time(self, input: DateTime) -> Self
pub fn creation_time(self, input: DateTime) -> Self
A timestamp that indicates when the model was created.
sourcepub fn set_creation_time(self, input: Option<DateTime>) -> Self
pub fn set_creation_time(self, input: Option<DateTime>) -> Self
A timestamp that indicates when the model was created.
sourcepub fn get_creation_time(&self) -> &Option<DateTime>
pub fn get_creation_time(&self) -> &Option<DateTime>
A timestamp that indicates when the model was created.
sourcepub fn model_arn(self, input: impl Into<String>) -> Self
pub fn model_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the model.
sourcepub fn set_model_arn(self, input: Option<String>) -> Self
pub fn set_model_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the model.
sourcepub fn get_model_arn(&self) -> &Option<String>
pub fn get_model_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the model.
sourcepub fn enable_network_isolation(self, input: bool) -> Self
pub fn enable_network_isolation(self, input: bool) -> Self
Isolates the model container. No inbound or outbound network calls can be made to or from the model container.
sourcepub fn set_enable_network_isolation(self, input: Option<bool>) -> Self
pub fn set_enable_network_isolation(self, input: Option<bool>) -> Self
Isolates the model container. No inbound or outbound network calls can be made to or from the model container.
sourcepub fn get_enable_network_isolation(&self) -> &Option<bool>
pub fn get_enable_network_isolation(&self) -> &Option<bool>
Isolates the model container. No inbound or outbound network calls can be made to or from the model container.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
A list of key-value pairs associated with the model. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide.
A list of key-value pairs associated with the model. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide.
A list of key-value pairs associated with the model. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide.
sourcepub fn deployment_recommendation(self, input: DeploymentRecommendation) -> Self
pub fn deployment_recommendation(self, input: DeploymentRecommendation) -> Self
A set of recommended deployment configurations for the model.
sourcepub fn set_deployment_recommendation(
self,
input: Option<DeploymentRecommendation>
) -> Self
pub fn set_deployment_recommendation( self, input: Option<DeploymentRecommendation> ) -> Self
A set of recommended deployment configurations for the model.
sourcepub fn get_deployment_recommendation(&self) -> &Option<DeploymentRecommendation>
pub fn get_deployment_recommendation(&self) -> &Option<DeploymentRecommendation>
A set of recommended deployment configurations for the model.
Trait Implementations§
source§impl Clone for ModelBuilder
impl Clone for ModelBuilder
source§fn clone(&self) -> ModelBuilder
fn clone(&self) -> ModelBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ModelBuilder
impl Debug for ModelBuilder
source§impl Default for ModelBuilder
impl Default for ModelBuilder
source§fn default() -> ModelBuilder
fn default() -> ModelBuilder
source§impl PartialEq<ModelBuilder> for ModelBuilder
impl PartialEq<ModelBuilder> for ModelBuilder
source§fn eq(&self, other: &ModelBuilder) -> bool
fn eq(&self, other: &ModelBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.