Struct aws_sdk_ec2::types::builders::SpotPriceBuilder
source · #[non_exhaustive]pub struct SpotPriceBuilder { /* private fields */ }
Expand description
A builder for SpotPrice
.
Implementations§
source§impl SpotPriceBuilder
impl SpotPriceBuilder
sourcepub fn availability_zone(self, input: impl Into<String>) -> Self
pub fn availability_zone(self, input: impl Into<String>) -> Self
The Availability Zone.
sourcepub fn set_availability_zone(self, input: Option<String>) -> Self
pub fn set_availability_zone(self, input: Option<String>) -> Self
The Availability Zone.
sourcepub fn get_availability_zone(&self) -> &Option<String>
pub fn get_availability_zone(&self) -> &Option<String>
The Availability Zone.
sourcepub fn instance_type(self, input: InstanceType) -> Self
pub fn instance_type(self, input: InstanceType) -> Self
The instance type.
sourcepub fn set_instance_type(self, input: Option<InstanceType>) -> Self
pub fn set_instance_type(self, input: Option<InstanceType>) -> Self
The instance type.
sourcepub fn get_instance_type(&self) -> &Option<InstanceType>
pub fn get_instance_type(&self) -> &Option<InstanceType>
The instance type.
sourcepub fn product_description(self, input: RiProductDescription) -> Self
pub fn product_description(self, input: RiProductDescription) -> Self
A general description of the AMI.
sourcepub fn set_product_description(
self,
input: Option<RiProductDescription>
) -> Self
pub fn set_product_description( self, input: Option<RiProductDescription> ) -> Self
A general description of the AMI.
sourcepub fn get_product_description(&self) -> &Option<RiProductDescription>
pub fn get_product_description(&self) -> &Option<RiProductDescription>
A general description of the AMI.
sourcepub fn spot_price(self, input: impl Into<String>) -> Self
pub fn spot_price(self, input: impl Into<String>) -> Self
The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
sourcepub fn set_spot_price(self, input: Option<String>) -> Self
pub fn set_spot_price(self, input: Option<String>) -> Self
The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
sourcepub fn get_spot_price(&self) -> &Option<String>
pub fn get_spot_price(&self) -> &Option<String>
The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
sourcepub fn timestamp(self, input: DateTime) -> Self
pub fn timestamp(self, input: DateTime) -> Self
The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
sourcepub fn set_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_timestamp(self, input: Option<DateTime>) -> Self
The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
sourcepub fn get_timestamp(&self) -> &Option<DateTime>
pub fn get_timestamp(&self) -> &Option<DateTime>
The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
Trait Implementations§
source§impl Clone for SpotPriceBuilder
impl Clone for SpotPriceBuilder
source§fn clone(&self) -> SpotPriceBuilder
fn clone(&self) -> SpotPriceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SpotPriceBuilder
impl Debug for SpotPriceBuilder
source§impl Default for SpotPriceBuilder
impl Default for SpotPriceBuilder
source§fn default() -> SpotPriceBuilder
fn default() -> SpotPriceBuilder
source§impl PartialEq<SpotPriceBuilder> for SpotPriceBuilder
impl PartialEq<SpotPriceBuilder> for SpotPriceBuilder
source§fn eq(&self, other: &SpotPriceBuilder) -> bool
fn eq(&self, other: &SpotPriceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.