Struct aws_sdk_gamelift::operation::start_fleet_actions::builders::StartFleetActionsFluentBuilder
source · pub struct StartFleetActionsFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to StartFleetActions
.
Resumes certain types of activity on fleet instances that were suspended with StopFleetActions. For multi-location fleets, fleet actions are managed separately for each location. Currently, this operation is used to restart a fleet's auto-scaling activity.
This operation can be used in the following ways:
-
To restart actions on instances in the fleet's home Region, provide a fleet ID and the type of actions to resume.
-
To restart actions on instances in one of the fleet's remote locations, provide a fleet ID, a location name, and the type of actions to resume.
If successful, Amazon GameLift once again initiates scaling events as triggered by the fleet's scaling policies. If actions on the fleet location were never stopped, this operation will have no effect.
Learn more
Implementations§
source§impl StartFleetActionsFluentBuilder
impl StartFleetActionsFluentBuilder
sourcepub fn as_input(&self) -> &StartFleetActionsInputBuilder
pub fn as_input(&self) -> &StartFleetActionsInputBuilder
Access the StartFleetActions as a reference.
sourcepub async fn send(
self
) -> Result<StartFleetActionsOutput, SdkError<StartFleetActionsError, HttpResponse>>
pub async fn send( self ) -> Result<StartFleetActionsOutput, SdkError<StartFleetActionsError, 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<StartFleetActionsOutput, StartFleetActionsError, Self>
pub fn customize( self ) -> CustomizableOperation<StartFleetActionsOutput, StartFleetActionsError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn fleet_id(self, input: impl Into<String>) -> Self
pub fn fleet_id(self, input: impl Into<String>) -> Self
A unique identifier for the fleet to restart actions on. You can use either the fleet ID or ARN value.
sourcepub fn set_fleet_id(self, input: Option<String>) -> Self
pub fn set_fleet_id(self, input: Option<String>) -> Self
A unique identifier for the fleet to restart actions on. You can use either the fleet ID or ARN value.
sourcepub fn get_fleet_id(&self) -> &Option<String>
pub fn get_fleet_id(&self) -> &Option<String>
A unique identifier for the fleet to restart actions on. You can use either the fleet ID or ARN value.
sourcepub fn actions(self, input: FleetAction) -> Self
pub fn actions(self, input: FleetAction) -> Self
Appends an item to Actions
.
To override the contents of this collection use set_actions
.
List of actions to restart on the fleet.
sourcepub fn set_actions(self, input: Option<Vec<FleetAction>>) -> Self
pub fn set_actions(self, input: Option<Vec<FleetAction>>) -> Self
List of actions to restart on the fleet.
sourcepub fn get_actions(&self) -> &Option<Vec<FleetAction>>
pub fn get_actions(&self) -> &Option<Vec<FleetAction>>
List of actions to restart on the fleet.
sourcepub fn location(self, input: impl Into<String>) -> Self
pub fn location(self, input: impl Into<String>) -> Self
The fleet location to restart fleet actions for. Specify a location in the form of an Amazon Web Services Region code, such as us-west-2
.
sourcepub fn set_location(self, input: Option<String>) -> Self
pub fn set_location(self, input: Option<String>) -> Self
The fleet location to restart fleet actions for. Specify a location in the form of an Amazon Web Services Region code, such as us-west-2
.
sourcepub fn get_location(&self) -> &Option<String>
pub fn get_location(&self) -> &Option<String>
The fleet location to restart fleet actions for. Specify a location in the form of an Amazon Web Services Region code, such as us-west-2
.
Trait Implementations§
source§impl Clone for StartFleetActionsFluentBuilder
impl Clone for StartFleetActionsFluentBuilder
source§fn clone(&self) -> StartFleetActionsFluentBuilder
fn clone(&self) -> StartFleetActionsFluentBuilder
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 StartFleetActionsFluentBuilder
impl !RefUnwindSafe for StartFleetActionsFluentBuilder
impl Send for StartFleetActionsFluentBuilder
impl Sync for StartFleetActionsFluentBuilder
impl Unpin for StartFleetActionsFluentBuilder
impl !UnwindSafe for StartFleetActionsFluentBuilder
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