Struct aws_sdk_ec2::types::builders::SpotFleetRequestConfigBuilder
source · #[non_exhaustive]pub struct SpotFleetRequestConfigBuilder { /* private fields */ }
Expand description
A builder for SpotFleetRequestConfig
.
Implementations§
source§impl SpotFleetRequestConfigBuilder
impl SpotFleetRequestConfigBuilder
sourcepub fn activity_status(self, input: ActivityStatus) -> Self
pub fn activity_status(self, input: ActivityStatus) -> Self
The progress of the Spot Fleet request. If there is an error, the status is error
. After all requests are placed, the status is pending_fulfillment
. If the size of the fleet is equal to or greater than its target capacity, the status is fulfilled
. If the size of the fleet is decreased, the status is pending_termination
while Spot Instances are terminating.
sourcepub fn set_activity_status(self, input: Option<ActivityStatus>) -> Self
pub fn set_activity_status(self, input: Option<ActivityStatus>) -> Self
The progress of the Spot Fleet request. If there is an error, the status is error
. After all requests are placed, the status is pending_fulfillment
. If the size of the fleet is equal to or greater than its target capacity, the status is fulfilled
. If the size of the fleet is decreased, the status is pending_termination
while Spot Instances are terminating.
sourcepub fn get_activity_status(&self) -> &Option<ActivityStatus>
pub fn get_activity_status(&self) -> &Option<ActivityStatus>
The progress of the Spot Fleet request. If there is an error, the status is error
. After all requests are placed, the status is pending_fulfillment
. If the size of the fleet is equal to or greater than its target capacity, the status is fulfilled
. If the size of the fleet is decreased, the status is pending_termination
while Spot Instances are terminating.
sourcepub fn create_time(self, input: DateTime) -> Self
pub fn create_time(self, input: DateTime) -> Self
The creation date and time of the request.
sourcepub fn set_create_time(self, input: Option<DateTime>) -> Self
pub fn set_create_time(self, input: Option<DateTime>) -> Self
The creation date and time of the request.
sourcepub fn get_create_time(&self) -> &Option<DateTime>
pub fn get_create_time(&self) -> &Option<DateTime>
The creation date and time of the request.
sourcepub fn spot_fleet_request_config(
self,
input: SpotFleetRequestConfigData,
) -> Self
pub fn spot_fleet_request_config( self, input: SpotFleetRequestConfigData, ) -> Self
The configuration of the Spot Fleet request.
sourcepub fn set_spot_fleet_request_config(
self,
input: Option<SpotFleetRequestConfigData>,
) -> Self
pub fn set_spot_fleet_request_config( self, input: Option<SpotFleetRequestConfigData>, ) -> Self
The configuration of the Spot Fleet request.
sourcepub fn get_spot_fleet_request_config(
&self,
) -> &Option<SpotFleetRequestConfigData>
pub fn get_spot_fleet_request_config( &self, ) -> &Option<SpotFleetRequestConfigData>
The configuration of the Spot Fleet request.
sourcepub fn spot_fleet_request_id(self, input: impl Into<String>) -> Self
pub fn spot_fleet_request_id(self, input: impl Into<String>) -> Self
The ID of the Spot Fleet request.
sourcepub fn set_spot_fleet_request_id(self, input: Option<String>) -> Self
pub fn set_spot_fleet_request_id(self, input: Option<String>) -> Self
The ID of the Spot Fleet request.
sourcepub fn get_spot_fleet_request_id(&self) -> &Option<String>
pub fn get_spot_fleet_request_id(&self) -> &Option<String>
The ID of the Spot Fleet request.
sourcepub fn spot_fleet_request_state(self, input: BatchState) -> Self
pub fn spot_fleet_request_state(self, input: BatchState) -> Self
The state of the Spot Fleet request.
sourcepub fn set_spot_fleet_request_state(self, input: Option<BatchState>) -> Self
pub fn set_spot_fleet_request_state(self, input: Option<BatchState>) -> Self
The state of the Spot Fleet request.
sourcepub fn get_spot_fleet_request_state(&self) -> &Option<BatchState>
pub fn get_spot_fleet_request_state(&self) -> &Option<BatchState>
The state of the Spot Fleet request.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tags for a Spot Fleet resource.
The tags for a Spot Fleet resource.
The tags for a Spot Fleet resource.
sourcepub fn build(self) -> SpotFleetRequestConfig
pub fn build(self) -> SpotFleetRequestConfig
Consumes the builder and constructs a SpotFleetRequestConfig
.
Trait Implementations§
source§impl Clone for SpotFleetRequestConfigBuilder
impl Clone for SpotFleetRequestConfigBuilder
source§fn clone(&self) -> SpotFleetRequestConfigBuilder
fn clone(&self) -> SpotFleetRequestConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for SpotFleetRequestConfigBuilder
impl Default for SpotFleetRequestConfigBuilder
source§fn default() -> SpotFleetRequestConfigBuilder
fn default() -> SpotFleetRequestConfigBuilder
source§impl PartialEq for SpotFleetRequestConfigBuilder
impl PartialEq for SpotFleetRequestConfigBuilder
source§fn eq(&self, other: &SpotFleetRequestConfigBuilder) -> bool
fn eq(&self, other: &SpotFleetRequestConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SpotFleetRequestConfigBuilder
Auto Trait Implementations§
impl Freeze for SpotFleetRequestConfigBuilder
impl RefUnwindSafe for SpotFleetRequestConfigBuilder
impl Send for SpotFleetRequestConfigBuilder
impl Sync for SpotFleetRequestConfigBuilder
impl Unpin for SpotFleetRequestConfigBuilder
impl UnwindSafe for SpotFleetRequestConfigBuilder
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