Struct aws_sdk_ec2::operation::purchase_host_reservation::builders::PurchaseHostReservationInputBuilder
source · #[non_exhaustive]pub struct PurchaseHostReservationInputBuilder { /* private fields */ }
Expand description
A builder for PurchaseHostReservationInput
.
Implementations§
source§impl PurchaseHostReservationInputBuilder
impl PurchaseHostReservationInputBuilder
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
sourcepub fn currency_code(self, input: CurrencyCodeValues) -> Self
pub fn currency_code(self, input: CurrencyCodeValues) -> Self
The currency in which the totalUpfrontPrice
, LimitPrice
, and totalHourlyPrice
amounts are specified. At this time, the only supported currency is USD
.
sourcepub fn set_currency_code(self, input: Option<CurrencyCodeValues>) -> Self
pub fn set_currency_code(self, input: Option<CurrencyCodeValues>) -> Self
The currency in which the totalUpfrontPrice
, LimitPrice
, and totalHourlyPrice
amounts are specified. At this time, the only supported currency is USD
.
sourcepub fn get_currency_code(&self) -> &Option<CurrencyCodeValues>
pub fn get_currency_code(&self) -> &Option<CurrencyCodeValues>
The currency in which the totalUpfrontPrice
, LimitPrice
, and totalHourlyPrice
amounts are specified. At this time, the only supported currency is USD
.
sourcepub fn host_id_set(self, input: impl Into<String>) -> Self
pub fn host_id_set(self, input: impl Into<String>) -> Self
Appends an item to host_id_set
.
To override the contents of this collection use set_host_id_set
.
The IDs of the Dedicated Hosts with which the reservation will be associated.
sourcepub fn set_host_id_set(self, input: Option<Vec<String>>) -> Self
pub fn set_host_id_set(self, input: Option<Vec<String>>) -> Self
The IDs of the Dedicated Hosts with which the reservation will be associated.
sourcepub fn get_host_id_set(&self) -> &Option<Vec<String>>
pub fn get_host_id_set(&self) -> &Option<Vec<String>>
The IDs of the Dedicated Hosts with which the reservation will be associated.
sourcepub fn limit_price(self, input: impl Into<String>) -> Self
pub fn limit_price(self, input: impl Into<String>) -> Self
The specified limit is checked against the total upfront cost of the reservation (calculated as the offering's upfront cost multiplied by the host count). If the total upfront cost is greater than the specified price limit, the request fails. This is used to ensure that the purchase does not exceed the expected upfront cost of the purchase. At this time, the only supported currency is USD
. For example, to indicate a limit price of USD 100, specify 100.00.
sourcepub fn set_limit_price(self, input: Option<String>) -> Self
pub fn set_limit_price(self, input: Option<String>) -> Self
The specified limit is checked against the total upfront cost of the reservation (calculated as the offering's upfront cost multiplied by the host count). If the total upfront cost is greater than the specified price limit, the request fails. This is used to ensure that the purchase does not exceed the expected upfront cost of the purchase. At this time, the only supported currency is USD
. For example, to indicate a limit price of USD 100, specify 100.00.
sourcepub fn get_limit_price(&self) -> &Option<String>
pub fn get_limit_price(&self) -> &Option<String>
The specified limit is checked against the total upfront cost of the reservation (calculated as the offering's upfront cost multiplied by the host count). If the total upfront cost is greater than the specified price limit, the request fails. This is used to ensure that the purchase does not exceed the expected upfront cost of the purchase. At this time, the only supported currency is USD
. For example, to indicate a limit price of USD 100, specify 100.00.
sourcepub fn offering_id(self, input: impl Into<String>) -> Self
pub fn offering_id(self, input: impl Into<String>) -> Self
The ID of the offering.
This field is required.sourcepub fn set_offering_id(self, input: Option<String>) -> Self
pub fn set_offering_id(self, input: Option<String>) -> Self
The ID of the offering.
sourcepub fn get_offering_id(&self) -> &Option<String>
pub fn get_offering_id(&self) -> &Option<String>
The ID of the offering.
sourcepub fn tag_specifications(self, input: TagSpecification) -> Self
pub fn tag_specifications(self, input: TagSpecification) -> Self
Appends an item to tag_specifications
.
To override the contents of this collection use set_tag_specifications
.
The tags to apply to the Dedicated Host Reservation during purchase.
sourcepub fn set_tag_specifications(
self,
input: Option<Vec<TagSpecification>>
) -> Self
pub fn set_tag_specifications( self, input: Option<Vec<TagSpecification>> ) -> Self
The tags to apply to the Dedicated Host Reservation during purchase.
sourcepub fn get_tag_specifications(&self) -> &Option<Vec<TagSpecification>>
pub fn get_tag_specifications(&self) -> &Option<Vec<TagSpecification>>
The tags to apply to the Dedicated Host Reservation during purchase.
sourcepub fn build(self) -> Result<PurchaseHostReservationInput, BuildError>
pub fn build(self) -> Result<PurchaseHostReservationInput, BuildError>
Consumes the builder and constructs a PurchaseHostReservationInput
.
source§impl PurchaseHostReservationInputBuilder
impl PurchaseHostReservationInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<PurchaseHostReservationOutput, SdkError<PurchaseHostReservationError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<PurchaseHostReservationOutput, SdkError<PurchaseHostReservationError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for PurchaseHostReservationInputBuilder
impl Clone for PurchaseHostReservationInputBuilder
source§fn clone(&self) -> PurchaseHostReservationInputBuilder
fn clone(&self) -> PurchaseHostReservationInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for PurchaseHostReservationInputBuilder
impl Default for PurchaseHostReservationInputBuilder
source§fn default() -> PurchaseHostReservationInputBuilder
fn default() -> PurchaseHostReservationInputBuilder
source§impl PartialEq for PurchaseHostReservationInputBuilder
impl PartialEq for PurchaseHostReservationInputBuilder
source§fn eq(&self, other: &PurchaseHostReservationInputBuilder) -> bool
fn eq(&self, other: &PurchaseHostReservationInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.