#[non_exhaustive]pub struct CreateQueueInputBuilder { /* private fields */ }
Expand description
A builder for CreateQueueInput
.
Implementations§
source§impl CreateQueueInputBuilder
impl CreateQueueInputBuilder
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
Optional. A description of the queue that you are creating.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
Optional. A description of the queue that you are creating.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
Optional. A description of the queue that you are creating.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the queue that you are creating. This field is required.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the queue that you are creating.
sourcepub fn pricing_plan(self, input: PricingPlan) -> Self
pub fn pricing_plan(self, input: PricingPlan) -> Self
Specifies whether the pricing plan for the queue is on-demand or reserved. For on-demand, you pay per minute, billed in increments of .01 minute. For reserved, you pay for the transcoding capacity of the entire queue, regardless of how much or how little you use it. Reserved pricing requires a 12-month commitment. When you use the API to create a queue, the default is on-demand.
sourcepub fn set_pricing_plan(self, input: Option<PricingPlan>) -> Self
pub fn set_pricing_plan(self, input: Option<PricingPlan>) -> Self
Specifies whether the pricing plan for the queue is on-demand or reserved. For on-demand, you pay per minute, billed in increments of .01 minute. For reserved, you pay for the transcoding capacity of the entire queue, regardless of how much or how little you use it. Reserved pricing requires a 12-month commitment. When you use the API to create a queue, the default is on-demand.
sourcepub fn get_pricing_plan(&self) -> &Option<PricingPlan>
pub fn get_pricing_plan(&self) -> &Option<PricingPlan>
Specifies whether the pricing plan for the queue is on-demand or reserved. For on-demand, you pay per minute, billed in increments of .01 minute. For reserved, you pay for the transcoding capacity of the entire queue, regardless of how much or how little you use it. Reserved pricing requires a 12-month commitment. When you use the API to create a queue, the default is on-demand.
sourcepub fn reservation_plan_settings(self, input: ReservationPlanSettings) -> Self
pub fn reservation_plan_settings(self, input: ReservationPlanSettings) -> Self
Details about the pricing plan for your reserved queue. Required for reserved queues and not applicable to on-demand queues.
sourcepub fn set_reservation_plan_settings(
self,
input: Option<ReservationPlanSettings>
) -> Self
pub fn set_reservation_plan_settings( self, input: Option<ReservationPlanSettings> ) -> Self
Details about the pricing plan for your reserved queue. Required for reserved queues and not applicable to on-demand queues.
sourcepub fn get_reservation_plan_settings(&self) -> &Option<ReservationPlanSettings>
pub fn get_reservation_plan_settings(&self) -> &Option<ReservationPlanSettings>
Details about the pricing plan for your reserved queue. Required for reserved queues and not applicable to on-demand queues.
sourcepub fn status(self, input: QueueStatus) -> Self
pub fn status(self, input: QueueStatus) -> Self
Initial state of the queue. If you create a paused queue, then jobs in that queue won’t begin.
sourcepub fn set_status(self, input: Option<QueueStatus>) -> Self
pub fn set_status(self, input: Option<QueueStatus>) -> Self
Initial state of the queue. If you create a paused queue, then jobs in that queue won’t begin.
sourcepub fn get_status(&self) -> &Option<QueueStatus>
pub fn get_status(&self) -> &Option<QueueStatus>
Initial state of the queue. If you create a paused queue, then jobs in that queue won’t begin.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key.
The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key.
The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key.
sourcepub fn build(self) -> Result<CreateQueueInput, BuildError>
pub fn build(self) -> Result<CreateQueueInput, BuildError>
Consumes the builder and constructs a CreateQueueInput
.
source§impl CreateQueueInputBuilder
impl CreateQueueInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateQueueOutput, SdkError<CreateQueueError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateQueueOutput, SdkError<CreateQueueError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateQueueInputBuilder
impl Clone for CreateQueueInputBuilder
source§fn clone(&self) -> CreateQueueInputBuilder
fn clone(&self) -> CreateQueueInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateQueueInputBuilder
impl Debug for CreateQueueInputBuilder
source§impl Default for CreateQueueInputBuilder
impl Default for CreateQueueInputBuilder
source§fn default() -> CreateQueueInputBuilder
fn default() -> CreateQueueInputBuilder
source§impl PartialEq for CreateQueueInputBuilder
impl PartialEq for CreateQueueInputBuilder
source§fn eq(&self, other: &CreateQueueInputBuilder) -> bool
fn eq(&self, other: &CreateQueueInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateQueueInputBuilder
Auto Trait Implementations§
impl Freeze for CreateQueueInputBuilder
impl RefUnwindSafe for CreateQueueInputBuilder
impl Send for CreateQueueInputBuilder
impl Sync for CreateQueueInputBuilder
impl Unpin for CreateQueueInputBuilder
impl UnwindSafe for CreateQueueInputBuilder
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