#[non_exhaustive]pub struct ResourceSpecificationBuilder { /* private fields */ }
Expand description
A builder for ResourceSpecification
.
Implementations§
source§impl ResourceSpecificationBuilder
impl ResourceSpecificationBuilder
sourcepub fn reserved_bitrate(self, input: i32) -> Self
pub fn reserved_bitrate(self, input: i32) -> Self
The amount of outbound bandwidth that is discounted in the offering.
sourcepub fn set_reserved_bitrate(self, input: Option<i32>) -> Self
pub fn set_reserved_bitrate(self, input: Option<i32>) -> Self
The amount of outbound bandwidth that is discounted in the offering.
sourcepub fn get_reserved_bitrate(&self) -> &Option<i32>
pub fn get_reserved_bitrate(&self) -> &Option<i32>
The amount of outbound bandwidth that is discounted in the offering.
sourcepub fn resource_type(self, input: ResourceType) -> Self
pub fn resource_type(self, input: ResourceType) -> Self
The type of resource and the unit that is being billed for. This field is required.
sourcepub fn set_resource_type(self, input: Option<ResourceType>) -> Self
pub fn set_resource_type(self, input: Option<ResourceType>) -> Self
The type of resource and the unit that is being billed for.
sourcepub fn get_resource_type(&self) -> &Option<ResourceType>
pub fn get_resource_type(&self) -> &Option<ResourceType>
The type of resource and the unit that is being billed for.
sourcepub fn build(self) -> ResourceSpecification
pub fn build(self) -> ResourceSpecification
Consumes the builder and constructs a ResourceSpecification
.
Trait Implementations§
source§impl Clone for ResourceSpecificationBuilder
impl Clone for ResourceSpecificationBuilder
source§fn clone(&self) -> ResourceSpecificationBuilder
fn clone(&self) -> ResourceSpecificationBuilder
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 Debug for ResourceSpecificationBuilder
impl Debug for ResourceSpecificationBuilder
source§impl Default for ResourceSpecificationBuilder
impl Default for ResourceSpecificationBuilder
source§fn default() -> ResourceSpecificationBuilder
fn default() -> ResourceSpecificationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ResourceSpecificationBuilder
impl PartialEq for ResourceSpecificationBuilder
source§fn eq(&self, other: &ResourceSpecificationBuilder) -> bool
fn eq(&self, other: &ResourceSpecificationBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ResourceSpecificationBuilder
Auto Trait Implementations§
impl Freeze for ResourceSpecificationBuilder
impl RefUnwindSafe for ResourceSpecificationBuilder
impl Send for ResourceSpecificationBuilder
impl Sync for ResourceSpecificationBuilder
impl Unpin for ResourceSpecificationBuilder
impl UnwindSafe for ResourceSpecificationBuilder
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>
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.