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.
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<UpdateEndpointWeightsAndCapacitiesInputBuilder> for UpdateEndpointWeightsAndCapacitiesInputBuilder
impl PartialEq<UpdateEndpointWeightsAndCapacitiesInputBuilder> for UpdateEndpointWeightsAndCapacitiesInputBuilder
source§fn eq(&self, other: &UpdateEndpointWeightsAndCapacitiesInputBuilder) -> bool
fn eq(&self, other: &UpdateEndpointWeightsAndCapacitiesInputBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateEndpointWeightsAndCapacitiesInputBuilder
Auto Trait Implementations§
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