Struct aws_sdk_sagemaker::operation::update_endpoint_weights_and_capacities::builders::UpdateEndpointWeightsAndCapacitiesInputBuilder
source · #[non_exhaustive]pub struct UpdateEndpointWeightsAndCapacitiesInputBuilder { /* private fields */ }Expand description
A builder for UpdateEndpointWeightsAndCapacitiesInput.
Implementations§
source§impl UpdateEndpointWeightsAndCapacitiesInputBuilder
impl UpdateEndpointWeightsAndCapacitiesInputBuilder
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 SageMaker endpoint.
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 SageMaker endpoint.
sourcepub fn get_endpoint_name(&self) -> &Option<String>
pub fn get_endpoint_name(&self) -> &Option<String>
The name of an existing SageMaker endpoint.
sourcepub fn desired_weights_and_capacities(
self,
input: DesiredWeightAndCapacity,
) -> Self
pub fn desired_weights_and_capacities( self, input: DesiredWeightAndCapacity, ) -> Self
Appends an item to desired_weights_and_capacities.
To override the contents of this collection use set_desired_weights_and_capacities.
An object that provides new capacity and weight values for a variant.
sourcepub fn set_desired_weights_and_capacities(
self,
input: Option<Vec<DesiredWeightAndCapacity>>,
) -> Self
pub fn set_desired_weights_and_capacities( self, input: Option<Vec<DesiredWeightAndCapacity>>, ) -> Self
An object that provides new capacity and weight values for a variant.
sourcepub fn get_desired_weights_and_capacities(
&self,
) -> &Option<Vec<DesiredWeightAndCapacity>>
pub fn get_desired_weights_and_capacities( &self, ) -> &Option<Vec<DesiredWeightAndCapacity>>
An object that provides new capacity and weight values for a variant.
sourcepub fn build(
self,
) -> Result<UpdateEndpointWeightsAndCapacitiesInput, BuildError>
pub fn build( self, ) -> Result<UpdateEndpointWeightsAndCapacitiesInput, BuildError>
Consumes the builder and constructs a UpdateEndpointWeightsAndCapacitiesInput.
source§impl UpdateEndpointWeightsAndCapacitiesInputBuilder
impl UpdateEndpointWeightsAndCapacitiesInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<UpdateEndpointWeightsAndCapacitiesOutput, SdkError<UpdateEndpointWeightsAndCapacitiesError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<UpdateEndpointWeightsAndCapacitiesOutput, SdkError<UpdateEndpointWeightsAndCapacitiesError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateEndpointWeightsAndCapacitiesInputBuilder
impl Clone for UpdateEndpointWeightsAndCapacitiesInputBuilder
source§fn clone(&self) -> UpdateEndpointWeightsAndCapacitiesInputBuilder
fn clone(&self) -> UpdateEndpointWeightsAndCapacitiesInputBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for UpdateEndpointWeightsAndCapacitiesInputBuilder
impl Default for UpdateEndpointWeightsAndCapacitiesInputBuilder
source§fn default() -> UpdateEndpointWeightsAndCapacitiesInputBuilder
fn default() -> UpdateEndpointWeightsAndCapacitiesInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for UpdateEndpointWeightsAndCapacitiesInputBuilder
impl PartialEq for UpdateEndpointWeightsAndCapacitiesInputBuilder
source§fn eq(&self, other: &UpdateEndpointWeightsAndCapacitiesInputBuilder) -> bool
fn eq(&self, other: &UpdateEndpointWeightsAndCapacitiesInputBuilder) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateEndpointWeightsAndCapacitiesInputBuilder
Auto Trait Implementations§
impl Freeze for UpdateEndpointWeightsAndCapacitiesInputBuilder
impl RefUnwindSafe for UpdateEndpointWeightsAndCapacitiesInputBuilder
impl Send for UpdateEndpointWeightsAndCapacitiesInputBuilder
impl Sync for UpdateEndpointWeightsAndCapacitiesInputBuilder
impl Unpin for UpdateEndpointWeightsAndCapacitiesInputBuilder
impl UnwindSafe for UpdateEndpointWeightsAndCapacitiesInputBuilder
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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.