Struct aws_sdk_sagemaker::operation::create_inference_component::builders::CreateInferenceComponentInputBuilder
source · #[non_exhaustive]pub struct CreateInferenceComponentInputBuilder { /* private fields */ }
Expand description
A builder for CreateInferenceComponentInput
.
Implementations§
source§impl CreateInferenceComponentInputBuilder
impl CreateInferenceComponentInputBuilder
sourcepub fn inference_component_name(self, input: impl Into<String>) -> Self
pub fn inference_component_name(self, input: impl Into<String>) -> Self
A unique name to assign to the inference component.
This field is required.sourcepub fn set_inference_component_name(self, input: Option<String>) -> Self
pub fn set_inference_component_name(self, input: Option<String>) -> Self
A unique name to assign to the inference component.
sourcepub fn get_inference_component_name(&self) -> &Option<String>
pub fn get_inference_component_name(&self) -> &Option<String>
A unique name to assign to the inference component.
sourcepub fn endpoint_name(self, input: impl Into<String>) -> Self
pub fn endpoint_name(self, input: impl Into<String>) -> Self
The name of an existing endpoint where you host the inference component.
This field is required.sourcepub fn set_endpoint_name(self, input: Option<String>) -> Self
pub fn set_endpoint_name(self, input: Option<String>) -> Self
The name of an existing endpoint where you host the inference component.
sourcepub fn get_endpoint_name(&self) -> &Option<String>
pub fn get_endpoint_name(&self) -> &Option<String>
The name of an existing endpoint where you host the inference component.
sourcepub fn variant_name(self, input: impl Into<String>) -> Self
pub fn variant_name(self, input: impl Into<String>) -> Self
The name of an existing production variant where you host the inference component.
This field is required.sourcepub fn set_variant_name(self, input: Option<String>) -> Self
pub fn set_variant_name(self, input: Option<String>) -> Self
The name of an existing production variant where you host the inference component.
sourcepub fn get_variant_name(&self) -> &Option<String>
pub fn get_variant_name(&self) -> &Option<String>
The name of an existing production variant where you host the inference component.
sourcepub fn specification(self, input: InferenceComponentSpecification) -> Self
pub fn specification(self, input: InferenceComponentSpecification) -> Self
Details about the resources to deploy with this inference component, including the model, container, and compute resources.
This field is required.sourcepub fn set_specification(
self,
input: Option<InferenceComponentSpecification>
) -> Self
pub fn set_specification( self, input: Option<InferenceComponentSpecification> ) -> Self
Details about the resources to deploy with this inference component, including the model, container, and compute resources.
sourcepub fn get_specification(&self) -> &Option<InferenceComponentSpecification>
pub fn get_specification(&self) -> &Option<InferenceComponentSpecification>
Details about the resources to deploy with this inference component, including the model, container, and compute resources.
sourcepub fn runtime_config(self, input: InferenceComponentRuntimeConfig) -> Self
pub fn runtime_config(self, input: InferenceComponentRuntimeConfig) -> Self
Runtime settings for a model that is deployed with an inference component.
This field is required.sourcepub fn set_runtime_config(
self,
input: Option<InferenceComponentRuntimeConfig>
) -> Self
pub fn set_runtime_config( self, input: Option<InferenceComponentRuntimeConfig> ) -> Self
Runtime settings for a model that is deployed with an inference component.
sourcepub fn get_runtime_config(&self) -> &Option<InferenceComponentRuntimeConfig>
pub fn get_runtime_config(&self) -> &Option<InferenceComponentRuntimeConfig>
Runtime settings for a model that is deployed with an inference component.
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.
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.
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.
sourcepub fn build(self) -> Result<CreateInferenceComponentInput, BuildError>
pub fn build(self) -> Result<CreateInferenceComponentInput, BuildError>
Consumes the builder and constructs a CreateInferenceComponentInput
.
source§impl CreateInferenceComponentInputBuilder
impl CreateInferenceComponentInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateInferenceComponentOutput, SdkError<CreateInferenceComponentError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateInferenceComponentOutput, SdkError<CreateInferenceComponentError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateInferenceComponentInputBuilder
impl Clone for CreateInferenceComponentInputBuilder
source§fn clone(&self) -> CreateInferenceComponentInputBuilder
fn clone(&self) -> CreateInferenceComponentInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateInferenceComponentInputBuilder
impl Default for CreateInferenceComponentInputBuilder
source§fn default() -> CreateInferenceComponentInputBuilder
fn default() -> CreateInferenceComponentInputBuilder
source§impl PartialEq for CreateInferenceComponentInputBuilder
impl PartialEq for CreateInferenceComponentInputBuilder
source§fn eq(&self, other: &CreateInferenceComponentInputBuilder) -> bool
fn eq(&self, other: &CreateInferenceComponentInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.