Struct aws_sdk_mediaconnect::operation::purchase_offering::builders::PurchaseOfferingFluentBuilder
source · pub struct PurchaseOfferingFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to PurchaseOffering
.
Submits a request to purchase an offering. If you already have an active reservation, you can’t purchase another offering.
Implementations§
source§impl PurchaseOfferingFluentBuilder
impl PurchaseOfferingFluentBuilder
sourcepub fn as_input(&self) -> &PurchaseOfferingInputBuilder
pub fn as_input(&self) -> &PurchaseOfferingInputBuilder
Access the PurchaseOffering as a reference.
sourcepub async fn send(
self,
) -> Result<PurchaseOfferingOutput, SdkError<PurchaseOfferingError, HttpResponse>>
pub async fn send( self, ) -> Result<PurchaseOfferingOutput, SdkError<PurchaseOfferingError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self,
) -> CustomizableOperation<PurchaseOfferingOutput, PurchaseOfferingError, Self>
pub fn customize( self, ) -> CustomizableOperation<PurchaseOfferingOutput, PurchaseOfferingError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn offering_arn(self, input: impl Into<String>) -> Self
pub fn offering_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the offering.
sourcepub fn set_offering_arn(self, input: Option<String>) -> Self
pub fn set_offering_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the offering.
sourcepub fn get_offering_arn(&self) -> &Option<String>
pub fn get_offering_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the offering.
sourcepub fn reservation_name(self, input: impl Into<String>) -> Self
pub fn reservation_name(self, input: impl Into<String>) -> Self
The name that you want to use for the reservation.
sourcepub fn set_reservation_name(self, input: Option<String>) -> Self
pub fn set_reservation_name(self, input: Option<String>) -> Self
The name that you want to use for the reservation.
sourcepub fn get_reservation_name(&self) -> &Option<String>
pub fn get_reservation_name(&self) -> &Option<String>
The name that you want to use for the reservation.
sourcepub fn start(self, input: impl Into<String>) -> Self
pub fn start(self, input: impl Into<String>) -> Self
The date and time that you want the reservation to begin, in Coordinated Universal Time (UTC). You can specify any date and time between 12:00am on the first day of the current month to the current time on today’s date, inclusive. Specify the start in a 24-hour notation. Use the following format: YYYY-MM-DDTHH:mm:SSZ, where T and Z are literal characters. For example, to specify 11:30pm on March 5, 2020, enter 2020-03-05T23:30:00Z.
sourcepub fn set_start(self, input: Option<String>) -> Self
pub fn set_start(self, input: Option<String>) -> Self
The date and time that you want the reservation to begin, in Coordinated Universal Time (UTC). You can specify any date and time between 12:00am on the first day of the current month to the current time on today’s date, inclusive. Specify the start in a 24-hour notation. Use the following format: YYYY-MM-DDTHH:mm:SSZ, where T and Z are literal characters. For example, to specify 11:30pm on March 5, 2020, enter 2020-03-05T23:30:00Z.
sourcepub fn get_start(&self) -> &Option<String>
pub fn get_start(&self) -> &Option<String>
The date and time that you want the reservation to begin, in Coordinated Universal Time (UTC). You can specify any date and time between 12:00am on the first day of the current month to the current time on today’s date, inclusive. Specify the start in a 24-hour notation. Use the following format: YYYY-MM-DDTHH:mm:SSZ, where T and Z are literal characters. For example, to specify 11:30pm on March 5, 2020, enter 2020-03-05T23:30:00Z.
Trait Implementations§
source§impl Clone for PurchaseOfferingFluentBuilder
impl Clone for PurchaseOfferingFluentBuilder
source§fn clone(&self) -> PurchaseOfferingFluentBuilder
fn clone(&self) -> PurchaseOfferingFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for PurchaseOfferingFluentBuilder
impl !RefUnwindSafe for PurchaseOfferingFluentBuilder
impl Send for PurchaseOfferingFluentBuilder
impl Sync for PurchaseOfferingFluentBuilder
impl Unpin for PurchaseOfferingFluentBuilder
impl !UnwindSafe for PurchaseOfferingFluentBuilder
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