#[non_exhaustive]pub struct ScalingPolicyObjectiveBuilder { /* private fields */ }
Expand description
A builder for ScalingPolicyObjective
.
Implementations§
source§impl ScalingPolicyObjectiveBuilder
impl ScalingPolicyObjectiveBuilder
sourcepub fn min_invocations_per_minute(self, input: i32) -> Self
pub fn min_invocations_per_minute(self, input: i32) -> Self
The minimum number of expected requests to your endpoint per minute.
sourcepub fn set_min_invocations_per_minute(self, input: Option<i32>) -> Self
pub fn set_min_invocations_per_minute(self, input: Option<i32>) -> Self
The minimum number of expected requests to your endpoint per minute.
sourcepub fn get_min_invocations_per_minute(&self) -> &Option<i32>
pub fn get_min_invocations_per_minute(&self) -> &Option<i32>
The minimum number of expected requests to your endpoint per minute.
sourcepub fn max_invocations_per_minute(self, input: i32) -> Self
pub fn max_invocations_per_minute(self, input: i32) -> Self
The maximum number of expected requests to your endpoint per minute.
sourcepub fn set_max_invocations_per_minute(self, input: Option<i32>) -> Self
pub fn set_max_invocations_per_minute(self, input: Option<i32>) -> Self
The maximum number of expected requests to your endpoint per minute.
sourcepub fn get_max_invocations_per_minute(&self) -> &Option<i32>
pub fn get_max_invocations_per_minute(&self) -> &Option<i32>
The maximum number of expected requests to your endpoint per minute.
sourcepub fn build(self) -> ScalingPolicyObjective
pub fn build(self) -> ScalingPolicyObjective
Consumes the builder and constructs a ScalingPolicyObjective
.
Trait Implementations§
source§impl Clone for ScalingPolicyObjectiveBuilder
impl Clone for ScalingPolicyObjectiveBuilder
source§fn clone(&self) -> ScalingPolicyObjectiveBuilder
fn clone(&self) -> ScalingPolicyObjectiveBuilder
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 ScalingPolicyObjectiveBuilder
impl Default for ScalingPolicyObjectiveBuilder
source§fn default() -> ScalingPolicyObjectiveBuilder
fn default() -> ScalingPolicyObjectiveBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ScalingPolicyObjectiveBuilder
impl PartialEq for ScalingPolicyObjectiveBuilder
source§fn eq(&self, other: &ScalingPolicyObjectiveBuilder) -> bool
fn eq(&self, other: &ScalingPolicyObjectiveBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ScalingPolicyObjectiveBuilder
Auto Trait Implementations§
impl RefUnwindSafe for ScalingPolicyObjectiveBuilder
impl Send for ScalingPolicyObjectiveBuilder
impl Sync for ScalingPolicyObjectiveBuilder
impl Unpin for ScalingPolicyObjectiveBuilder
impl UnwindSafe for ScalingPolicyObjectiveBuilder
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> 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>
Creates a shared type from an unshared type.