Struct aws_sdk_autoscalingplans::operation::update_scaling_plan::builders::UpdateScalingPlanFluentBuilder
source · pub struct UpdateScalingPlanFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateScalingPlan
.
Updates the specified scaling plan.
You cannot update a scaling plan if it is in the process of being created, updated, or deleted.
Implementations§
source§impl UpdateScalingPlanFluentBuilder
impl UpdateScalingPlanFluentBuilder
sourcepub fn as_input(&self) -> &UpdateScalingPlanInputBuilder
pub fn as_input(&self) -> &UpdateScalingPlanInputBuilder
Access the UpdateScalingPlan as a reference.
sourcepub async fn send(
self
) -> Result<UpdateScalingPlanOutput, SdkError<UpdateScalingPlanError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateScalingPlanOutput, SdkError<UpdateScalingPlanError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<UpdateScalingPlanOutput, UpdateScalingPlanError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateScalingPlanOutput, UpdateScalingPlanError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn scaling_plan_name(self, input: impl Into<String>) -> Self
pub fn scaling_plan_name(self, input: impl Into<String>) -> Self
The name of the scaling plan.
sourcepub fn set_scaling_plan_name(self, input: Option<String>) -> Self
pub fn set_scaling_plan_name(self, input: Option<String>) -> Self
The name of the scaling plan.
sourcepub fn get_scaling_plan_name(&self) -> &Option<String>
pub fn get_scaling_plan_name(&self) -> &Option<String>
The name of the scaling plan.
sourcepub fn scaling_plan_version(self, input: i64) -> Self
pub fn scaling_plan_version(self, input: i64) -> Self
The version number of the scaling plan. The only valid value is 1
. Currently, you cannot have multiple scaling plan versions.
sourcepub fn set_scaling_plan_version(self, input: Option<i64>) -> Self
pub fn set_scaling_plan_version(self, input: Option<i64>) -> Self
The version number of the scaling plan. The only valid value is 1
. Currently, you cannot have multiple scaling plan versions.
sourcepub fn get_scaling_plan_version(&self) -> &Option<i64>
pub fn get_scaling_plan_version(&self) -> &Option<i64>
The version number of the scaling plan. The only valid value is 1
. Currently, you cannot have multiple scaling plan versions.
sourcepub fn application_source(self, input: ApplicationSource) -> Self
pub fn application_source(self, input: ApplicationSource) -> Self
A CloudFormation stack or set of tags.
For more information, see ApplicationSource in the AWS Auto Scaling API Reference.
sourcepub fn set_application_source(self, input: Option<ApplicationSource>) -> Self
pub fn set_application_source(self, input: Option<ApplicationSource>) -> Self
A CloudFormation stack or set of tags.
For more information, see ApplicationSource in the AWS Auto Scaling API Reference.
sourcepub fn get_application_source(&self) -> &Option<ApplicationSource>
pub fn get_application_source(&self) -> &Option<ApplicationSource>
A CloudFormation stack or set of tags.
For more information, see ApplicationSource in the AWS Auto Scaling API Reference.
sourcepub fn scaling_instructions(self, input: ScalingInstruction) -> Self
pub fn scaling_instructions(self, input: ScalingInstruction) -> Self
Appends an item to ScalingInstructions
.
To override the contents of this collection use set_scaling_instructions
.
The scaling instructions.
For more information, see ScalingInstruction in the AWS Auto Scaling API Reference.
sourcepub fn set_scaling_instructions(
self,
input: Option<Vec<ScalingInstruction>>
) -> Self
pub fn set_scaling_instructions( self, input: Option<Vec<ScalingInstruction>> ) -> Self
The scaling instructions.
For more information, see ScalingInstruction in the AWS Auto Scaling API Reference.
sourcepub fn get_scaling_instructions(&self) -> &Option<Vec<ScalingInstruction>>
pub fn get_scaling_instructions(&self) -> &Option<Vec<ScalingInstruction>>
The scaling instructions.
For more information, see ScalingInstruction in the AWS Auto Scaling API Reference.
Trait Implementations§
source§impl Clone for UpdateScalingPlanFluentBuilder
impl Clone for UpdateScalingPlanFluentBuilder
source§fn clone(&self) -> UpdateScalingPlanFluentBuilder
fn clone(&self) -> UpdateScalingPlanFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for UpdateScalingPlanFluentBuilder
impl !RefUnwindSafe for UpdateScalingPlanFluentBuilder
impl Send for UpdateScalingPlanFluentBuilder
impl Sync for UpdateScalingPlanFluentBuilder
impl Unpin for UpdateScalingPlanFluentBuilder
impl !UnwindSafe for UpdateScalingPlanFluentBuilder
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> 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