Struct aws_sdk_ec2::operation::purchase_reserved_instances_offering::builders::PurchaseReservedInstancesOfferingInputBuilder
source · #[non_exhaustive]pub struct PurchaseReservedInstancesOfferingInputBuilder { /* private fields */ }Expand description
A builder for PurchaseReservedInstancesOfferingInput.
Implementations§
source§impl PurchaseReservedInstancesOfferingInputBuilder
impl PurchaseReservedInstancesOfferingInputBuilder
sourcepub fn instance_count(self, input: i32) -> Self
pub fn instance_count(self, input: i32) -> Self
The number of Reserved Instances to purchase.
sourcepub fn set_instance_count(self, input: Option<i32>) -> Self
pub fn set_instance_count(self, input: Option<i32>) -> Self
The number of Reserved Instances to purchase.
sourcepub fn get_instance_count(&self) -> &Option<i32>
pub fn get_instance_count(&self) -> &Option<i32>
The number of Reserved Instances to purchase.
sourcepub fn reserved_instances_offering_id(self, input: impl Into<String>) -> Self
pub fn reserved_instances_offering_id(self, input: impl Into<String>) -> Self
The ID of the Reserved Instance offering to purchase.
sourcepub fn set_reserved_instances_offering_id(self, input: Option<String>) -> Self
pub fn set_reserved_instances_offering_id(self, input: Option<String>) -> Self
The ID of the Reserved Instance offering to purchase.
sourcepub fn get_reserved_instances_offering_id(&self) -> &Option<String>
pub fn get_reserved_instances_offering_id(&self) -> &Option<String>
The ID of the Reserved Instance offering to purchase.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
sourcepub fn get_dry_run(&self) -> &Option<bool>
pub fn get_dry_run(&self) -> &Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
sourcepub fn limit_price(self, input: ReservedInstanceLimitPrice) -> Self
pub fn limit_price(self, input: ReservedInstanceLimitPrice) -> Self
Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices.
sourcepub fn set_limit_price(self, input: Option<ReservedInstanceLimitPrice>) -> Self
pub fn set_limit_price(self, input: Option<ReservedInstanceLimitPrice>) -> Self
Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices.
sourcepub fn get_limit_price(&self) -> &Option<ReservedInstanceLimitPrice>
pub fn get_limit_price(&self) -> &Option<ReservedInstanceLimitPrice>
Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices.
sourcepub fn purchase_time(self, input: DateTime) -> Self
pub fn purchase_time(self, input: DateTime) -> Self
The time at which to purchase the Reserved Instance, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
sourcepub fn set_purchase_time(self, input: Option<DateTime>) -> Self
pub fn set_purchase_time(self, input: Option<DateTime>) -> Self
The time at which to purchase the Reserved Instance, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
sourcepub fn get_purchase_time(&self) -> &Option<DateTime>
pub fn get_purchase_time(&self) -> &Option<DateTime>
The time at which to purchase the Reserved Instance, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
sourcepub fn build(self) -> Result<PurchaseReservedInstancesOfferingInput, BuildError>
pub fn build(self) -> Result<PurchaseReservedInstancesOfferingInput, BuildError>
Consumes the builder and constructs a PurchaseReservedInstancesOfferingInput.
source§impl PurchaseReservedInstancesOfferingInputBuilder
impl PurchaseReservedInstancesOfferingInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<PurchaseReservedInstancesOfferingOutput, SdkError<PurchaseReservedInstancesOfferingError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<PurchaseReservedInstancesOfferingOutput, SdkError<PurchaseReservedInstancesOfferingError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for PurchaseReservedInstancesOfferingInputBuilder
impl Clone for PurchaseReservedInstancesOfferingInputBuilder
source§fn clone(&self) -> PurchaseReservedInstancesOfferingInputBuilder
fn clone(&self) -> PurchaseReservedInstancesOfferingInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for PurchaseReservedInstancesOfferingInputBuilder
impl Default for PurchaseReservedInstancesOfferingInputBuilder
source§fn default() -> PurchaseReservedInstancesOfferingInputBuilder
fn default() -> PurchaseReservedInstancesOfferingInputBuilder
source§impl PartialEq<PurchaseReservedInstancesOfferingInputBuilder> for PurchaseReservedInstancesOfferingInputBuilder
impl PartialEq<PurchaseReservedInstancesOfferingInputBuilder> for PurchaseReservedInstancesOfferingInputBuilder
source§fn eq(&self, other: &PurchaseReservedInstancesOfferingInputBuilder) -> bool
fn eq(&self, other: &PurchaseReservedInstancesOfferingInputBuilder) -> bool
self and other values to be equal, and is used
by ==.