#[non_exhaustive]pub struct RecommendationJobStoppingConditionsBuilder { /* private fields */ }
Expand description
A builder for RecommendationJobStoppingConditions
.
Implementations§
source§impl RecommendationJobStoppingConditionsBuilder
impl RecommendationJobStoppingConditionsBuilder
sourcepub fn max_invocations(self, input: i32) -> Self
pub fn max_invocations(self, input: i32) -> Self
The maximum number of requests per minute expected for the endpoint.
sourcepub fn set_max_invocations(self, input: Option<i32>) -> Self
pub fn set_max_invocations(self, input: Option<i32>) -> Self
The maximum number of requests per minute expected for the endpoint.
sourcepub fn get_max_invocations(&self) -> &Option<i32>
pub fn get_max_invocations(&self) -> &Option<i32>
The maximum number of requests per minute expected for the endpoint.
sourcepub fn model_latency_thresholds(self, input: ModelLatencyThreshold) -> Self
pub fn model_latency_thresholds(self, input: ModelLatencyThreshold) -> Self
Appends an item to model_latency_thresholds
.
To override the contents of this collection use set_model_latency_thresholds
.
The interval of time taken by a model to respond as viewed from SageMaker. The interval includes the local communication time taken to send the request and to fetch the response from the container of a model and the time taken to complete the inference in the container.
sourcepub fn set_model_latency_thresholds(
self,
input: Option<Vec<ModelLatencyThreshold>>,
) -> Self
pub fn set_model_latency_thresholds( self, input: Option<Vec<ModelLatencyThreshold>>, ) -> Self
The interval of time taken by a model to respond as viewed from SageMaker. The interval includes the local communication time taken to send the request and to fetch the response from the container of a model and the time taken to complete the inference in the container.
sourcepub fn get_model_latency_thresholds(
&self,
) -> &Option<Vec<ModelLatencyThreshold>>
pub fn get_model_latency_thresholds( &self, ) -> &Option<Vec<ModelLatencyThreshold>>
The interval of time taken by a model to respond as viewed from SageMaker. The interval includes the local communication time taken to send the request and to fetch the response from the container of a model and the time taken to complete the inference in the container.
sourcepub fn flat_invocations(self, input: FlatInvocations) -> Self
pub fn flat_invocations(self, input: FlatInvocations) -> Self
Stops a load test when the number of invocations (TPS) peaks and flattens, which means that the instance has reached capacity. The default value is Stop
. If you want the load test to continue after invocations have flattened, set the value to Continue
.
sourcepub fn set_flat_invocations(self, input: Option<FlatInvocations>) -> Self
pub fn set_flat_invocations(self, input: Option<FlatInvocations>) -> Self
Stops a load test when the number of invocations (TPS) peaks and flattens, which means that the instance has reached capacity. The default value is Stop
. If you want the load test to continue after invocations have flattened, set the value to Continue
.
sourcepub fn get_flat_invocations(&self) -> &Option<FlatInvocations>
pub fn get_flat_invocations(&self) -> &Option<FlatInvocations>
Stops a load test when the number of invocations (TPS) peaks and flattens, which means that the instance has reached capacity. The default value is Stop
. If you want the load test to continue after invocations have flattened, set the value to Continue
.
sourcepub fn build(self) -> RecommendationJobStoppingConditions
pub fn build(self) -> RecommendationJobStoppingConditions
Consumes the builder and constructs a RecommendationJobStoppingConditions
.
Trait Implementations§
source§impl Clone for RecommendationJobStoppingConditionsBuilder
impl Clone for RecommendationJobStoppingConditionsBuilder
source§fn clone(&self) -> RecommendationJobStoppingConditionsBuilder
fn clone(&self) -> RecommendationJobStoppingConditionsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for RecommendationJobStoppingConditionsBuilder
impl Default for RecommendationJobStoppingConditionsBuilder
source§fn default() -> RecommendationJobStoppingConditionsBuilder
fn default() -> RecommendationJobStoppingConditionsBuilder
source§impl PartialEq for RecommendationJobStoppingConditionsBuilder
impl PartialEq for RecommendationJobStoppingConditionsBuilder
source§fn eq(&self, other: &RecommendationJobStoppingConditionsBuilder) -> bool
fn eq(&self, other: &RecommendationJobStoppingConditionsBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RecommendationJobStoppingConditionsBuilder
Auto Trait Implementations§
impl Freeze for RecommendationJobStoppingConditionsBuilder
impl RefUnwindSafe for RecommendationJobStoppingConditionsBuilder
impl Send for RecommendationJobStoppingConditionsBuilder
impl Sync for RecommendationJobStoppingConditionsBuilder
impl Unpin for RecommendationJobStoppingConditionsBuilder
impl UnwindSafe for RecommendationJobStoppingConditionsBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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