#[non_exhaustive]pub struct ReservationPlanBuilder { /* private fields */ }
Expand description
A builder for ReservationPlan
.
Implementations§
source§impl ReservationPlanBuilder
impl ReservationPlanBuilder
sourcepub fn commitment(self, input: Commitment) -> Self
pub fn commitment(self, input: Commitment) -> Self
The length of the term of your reserved queue pricing plan commitment.
sourcepub fn set_commitment(self, input: Option<Commitment>) -> Self
pub fn set_commitment(self, input: Option<Commitment>) -> Self
The length of the term of your reserved queue pricing plan commitment.
sourcepub fn get_commitment(&self) -> &Option<Commitment>
pub fn get_commitment(&self) -> &Option<Commitment>
The length of the term of your reserved queue pricing plan commitment.
sourcepub fn expires_at(self, input: DateTime) -> Self
pub fn expires_at(self, input: DateTime) -> Self
The timestamp in epoch seconds for when the current pricing plan term for this reserved queue expires.
sourcepub fn set_expires_at(self, input: Option<DateTime>) -> Self
pub fn set_expires_at(self, input: Option<DateTime>) -> Self
The timestamp in epoch seconds for when the current pricing plan term for this reserved queue expires.
sourcepub fn get_expires_at(&self) -> &Option<DateTime>
pub fn get_expires_at(&self) -> &Option<DateTime>
The timestamp in epoch seconds for when the current pricing plan term for this reserved queue expires.
sourcepub fn purchased_at(self, input: DateTime) -> Self
pub fn purchased_at(self, input: DateTime) -> Self
The timestamp in epoch seconds for when you set up the current pricing plan for this reserved queue.
sourcepub fn set_purchased_at(self, input: Option<DateTime>) -> Self
pub fn set_purchased_at(self, input: Option<DateTime>) -> Self
The timestamp in epoch seconds for when you set up the current pricing plan for this reserved queue.
sourcepub fn get_purchased_at(&self) -> &Option<DateTime>
pub fn get_purchased_at(&self) -> &Option<DateTime>
The timestamp in epoch seconds for when you set up the current pricing plan for this reserved queue.
sourcepub fn renewal_type(self, input: RenewalType) -> Self
pub fn renewal_type(self, input: RenewalType) -> Self
Specifies whether the term of your reserved queue pricing plan is automatically extended (AUTO_RENEW) or expires (EXPIRE) at the end of the term.
sourcepub fn set_renewal_type(self, input: Option<RenewalType>) -> Self
pub fn set_renewal_type(self, input: Option<RenewalType>) -> Self
Specifies whether the term of your reserved queue pricing plan is automatically extended (AUTO_RENEW) or expires (EXPIRE) at the end of the term.
sourcepub fn get_renewal_type(&self) -> &Option<RenewalType>
pub fn get_renewal_type(&self) -> &Option<RenewalType>
Specifies whether the term of your reserved queue pricing plan is automatically extended (AUTO_RENEW) or expires (EXPIRE) at the end of the term.
sourcepub fn reserved_slots(self, input: i32) -> Self
pub fn reserved_slots(self, input: i32) -> Self
Specifies the number of reserved transcode slots (RTS) for this queue. The number of RTS determines how many jobs the queue can process in parallel; each RTS can process one job at a time. When you increase this number, you extend your existing commitment with a new 12-month commitment for a larger number of RTS. The new commitment begins when you purchase the additional capacity. You can’t decrease the number of RTS in your reserved queue.
sourcepub fn set_reserved_slots(self, input: Option<i32>) -> Self
pub fn set_reserved_slots(self, input: Option<i32>) -> Self
Specifies the number of reserved transcode slots (RTS) for this queue. The number of RTS determines how many jobs the queue can process in parallel; each RTS can process one job at a time. When you increase this number, you extend your existing commitment with a new 12-month commitment for a larger number of RTS. The new commitment begins when you purchase the additional capacity. You can’t decrease the number of RTS in your reserved queue.
sourcepub fn get_reserved_slots(&self) -> &Option<i32>
pub fn get_reserved_slots(&self) -> &Option<i32>
Specifies the number of reserved transcode slots (RTS) for this queue. The number of RTS determines how many jobs the queue can process in parallel; each RTS can process one job at a time. When you increase this number, you extend your existing commitment with a new 12-month commitment for a larger number of RTS. The new commitment begins when you purchase the additional capacity. You can’t decrease the number of RTS in your reserved queue.
sourcepub fn status(self, input: ReservationPlanStatus) -> Self
pub fn status(self, input: ReservationPlanStatus) -> Self
Specifies whether the pricing plan for your reserved queue is ACTIVE or EXPIRED.
sourcepub fn set_status(self, input: Option<ReservationPlanStatus>) -> Self
pub fn set_status(self, input: Option<ReservationPlanStatus>) -> Self
Specifies whether the pricing plan for your reserved queue is ACTIVE or EXPIRED.
sourcepub fn get_status(&self) -> &Option<ReservationPlanStatus>
pub fn get_status(&self) -> &Option<ReservationPlanStatus>
Specifies whether the pricing plan for your reserved queue is ACTIVE or EXPIRED.
sourcepub fn build(self) -> ReservationPlan
pub fn build(self) -> ReservationPlan
Consumes the builder and constructs a ReservationPlan
.
Trait Implementations§
source§impl Clone for ReservationPlanBuilder
impl Clone for ReservationPlanBuilder
source§fn clone(&self) -> ReservationPlanBuilder
fn clone(&self) -> ReservationPlanBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ReservationPlanBuilder
impl Debug for ReservationPlanBuilder
source§impl Default for ReservationPlanBuilder
impl Default for ReservationPlanBuilder
source§fn default() -> ReservationPlanBuilder
fn default() -> ReservationPlanBuilder
source§impl PartialEq for ReservationPlanBuilder
impl PartialEq for ReservationPlanBuilder
source§fn eq(&self, other: &ReservationPlanBuilder) -> bool
fn eq(&self, other: &ReservationPlanBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ReservationPlanBuilder
Auto Trait Implementations§
impl Freeze for ReservationPlanBuilder
impl RefUnwindSafe for ReservationPlanBuilder
impl Send for ReservationPlanBuilder
impl Sync for ReservationPlanBuilder
impl Unpin for ReservationPlanBuilder
impl UnwindSafe for ReservationPlanBuilder
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