#[non_exhaustive]pub struct ModelConfigurationBuilder { /* private fields */ }
Expand description
A builder for ModelConfiguration
.
Implementations§
source§impl ModelConfigurationBuilder
impl ModelConfigurationBuilder
sourcepub fn inference_specification_name(self, input: impl Into<String>) -> Self
pub fn inference_specification_name(self, input: impl Into<String>) -> Self
The inference specification name in the model package version.
sourcepub fn set_inference_specification_name(self, input: Option<String>) -> Self
pub fn set_inference_specification_name(self, input: Option<String>) -> Self
The inference specification name in the model package version.
sourcepub fn get_inference_specification_name(&self) -> &Option<String>
pub fn get_inference_specification_name(&self) -> &Option<String>
The inference specification name in the model package version.
sourcepub fn environment_parameters(self, input: EnvironmentParameter) -> Self
pub fn environment_parameters(self, input: EnvironmentParameter) -> Self
Appends an item to environment_parameters
.
To override the contents of this collection use set_environment_parameters
.
Defines the environment parameters that includes key, value types, and values.
sourcepub fn set_environment_parameters(
self,
input: Option<Vec<EnvironmentParameter>>,
) -> Self
pub fn set_environment_parameters( self, input: Option<Vec<EnvironmentParameter>>, ) -> Self
Defines the environment parameters that includes key, value types, and values.
sourcepub fn get_environment_parameters(&self) -> &Option<Vec<EnvironmentParameter>>
pub fn get_environment_parameters(&self) -> &Option<Vec<EnvironmentParameter>>
Defines the environment parameters that includes key, value types, and values.
sourcepub fn compilation_job_name(self, input: impl Into<String>) -> Self
pub fn compilation_job_name(self, input: impl Into<String>) -> Self
The name of the compilation job used to create the recommended model artifacts.
sourcepub fn set_compilation_job_name(self, input: Option<String>) -> Self
pub fn set_compilation_job_name(self, input: Option<String>) -> Self
The name of the compilation job used to create the recommended model artifacts.
sourcepub fn get_compilation_job_name(&self) -> &Option<String>
pub fn get_compilation_job_name(&self) -> &Option<String>
The name of the compilation job used to create the recommended model artifacts.
sourcepub fn build(self) -> ModelConfiguration
pub fn build(self) -> ModelConfiguration
Consumes the builder and constructs a ModelConfiguration
.
Trait Implementations§
source§impl Clone for ModelConfigurationBuilder
impl Clone for ModelConfigurationBuilder
source§fn clone(&self) -> ModelConfigurationBuilder
fn clone(&self) -> ModelConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ModelConfigurationBuilder
impl Debug for ModelConfigurationBuilder
source§impl Default for ModelConfigurationBuilder
impl Default for ModelConfigurationBuilder
source§fn default() -> ModelConfigurationBuilder
fn default() -> ModelConfigurationBuilder
source§impl PartialEq for ModelConfigurationBuilder
impl PartialEq for ModelConfigurationBuilder
source§fn eq(&self, other: &ModelConfigurationBuilder) -> bool
fn eq(&self, other: &ModelConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ModelConfigurationBuilder
Auto Trait Implementations§
impl Freeze for ModelConfigurationBuilder
impl RefUnwindSafe for ModelConfigurationBuilder
impl Send for ModelConfigurationBuilder
impl Sync for ModelConfigurationBuilder
impl Unpin for ModelConfigurationBuilder
impl UnwindSafe for ModelConfigurationBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more