Struct aws_sdk_ec2::operation::get_host_reservation_purchase_preview::builders::GetHostReservationPurchasePreviewInputBuilder
source · #[non_exhaustive]pub struct GetHostReservationPurchasePreviewInputBuilder { /* private fields */ }Expand description
A builder for GetHostReservationPurchasePreviewInput.
Implementations§
source§impl GetHostReservationPurchasePreviewInputBuilder
impl GetHostReservationPurchasePreviewInputBuilder
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 is 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 is 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 is associated.
sourcepub fn offering_id(self, input: impl Into<String>) -> Self
pub fn offering_id(self, input: impl Into<String>) -> Self
The offering ID of the reservation.
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 offering ID of the reservation.
sourcepub fn get_offering_id(&self) -> &Option<String>
pub fn get_offering_id(&self) -> &Option<String>
The offering ID of the reservation.
sourcepub fn build(self) -> Result<GetHostReservationPurchasePreviewInput, BuildError>
pub fn build(self) -> Result<GetHostReservationPurchasePreviewInput, BuildError>
Consumes the builder and constructs a GetHostReservationPurchasePreviewInput.
source§impl GetHostReservationPurchasePreviewInputBuilder
impl GetHostReservationPurchasePreviewInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<GetHostReservationPurchasePreviewOutput, SdkError<GetHostReservationPurchasePreviewError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<GetHostReservationPurchasePreviewOutput, SdkError<GetHostReservationPurchasePreviewError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for GetHostReservationPurchasePreviewInputBuilder
impl Clone for GetHostReservationPurchasePreviewInputBuilder
source§fn clone(&self) -> GetHostReservationPurchasePreviewInputBuilder
fn clone(&self) -> GetHostReservationPurchasePreviewInputBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for GetHostReservationPurchasePreviewInputBuilder
impl Default for GetHostReservationPurchasePreviewInputBuilder
source§fn default() -> GetHostReservationPurchasePreviewInputBuilder
fn default() -> GetHostReservationPurchasePreviewInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for GetHostReservationPurchasePreviewInputBuilder
impl PartialEq for GetHostReservationPurchasePreviewInputBuilder
source§fn eq(&self, other: &GetHostReservationPurchasePreviewInputBuilder) -> bool
fn eq(&self, other: &GetHostReservationPurchasePreviewInputBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for GetHostReservationPurchasePreviewInputBuilder
Auto Trait Implementations§
impl RefUnwindSafe for GetHostReservationPurchasePreviewInputBuilder
impl Send for GetHostReservationPurchasePreviewInputBuilder
impl Sync for GetHostReservationPurchasePreviewInputBuilder
impl Unpin for GetHostReservationPurchasePreviewInputBuilder
impl UnwindSafe for GetHostReservationPurchasePreviewInputBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.