Struct aws_sdk_elasticinference::operation::describe_accelerator_offerings::builders::DescribeAcceleratorOfferingsInputBuilder
source · #[non_exhaustive]pub struct DescribeAcceleratorOfferingsInputBuilder { /* private fields */ }
Expand description
A builder for DescribeAcceleratorOfferingsInput
.
Implementations§
source§impl DescribeAcceleratorOfferingsInputBuilder
impl DescribeAcceleratorOfferingsInputBuilder
sourcepub fn location_type(self, input: LocationType) -> Self
pub fn location_type(self, input: LocationType) -> Self
The location type that you want to describe accelerator type offerings for. It can assume the following values: region: will return the accelerator type offering at the regional level. availability-zone: will return the accelerator type offering at the availability zone level. availability-zone-id: will return the accelerator type offering at the availability zone level returning the availability zone id.
This field is required.sourcepub fn set_location_type(self, input: Option<LocationType>) -> Self
pub fn set_location_type(self, input: Option<LocationType>) -> Self
The location type that you want to describe accelerator type offerings for. It can assume the following values: region: will return the accelerator type offering at the regional level. availability-zone: will return the accelerator type offering at the availability zone level. availability-zone-id: will return the accelerator type offering at the availability zone level returning the availability zone id.
sourcepub fn get_location_type(&self) -> &Option<LocationType>
pub fn get_location_type(&self) -> &Option<LocationType>
The location type that you want to describe accelerator type offerings for. It can assume the following values: region: will return the accelerator type offering at the regional level. availability-zone: will return the accelerator type offering at the availability zone level. availability-zone-id: will return the accelerator type offering at the availability zone level returning the availability zone id.
sourcepub fn accelerator_types(self, input: impl Into<String>) -> Self
pub fn accelerator_types(self, input: impl Into<String>) -> Self
Appends an item to accelerator_types
.
To override the contents of this collection use set_accelerator_types
.
The list of accelerator types to describe.
sourcepub fn set_accelerator_types(self, input: Option<Vec<String>>) -> Self
pub fn set_accelerator_types(self, input: Option<Vec<String>>) -> Self
The list of accelerator types to describe.
sourcepub fn get_accelerator_types(&self) -> &Option<Vec<String>>
pub fn get_accelerator_types(&self) -> &Option<Vec<String>>
The list of accelerator types to describe.
sourcepub fn build(self) -> Result<DescribeAcceleratorOfferingsInput, BuildError>
pub fn build(self) -> Result<DescribeAcceleratorOfferingsInput, BuildError>
Consumes the builder and constructs a DescribeAcceleratorOfferingsInput
.
source§impl DescribeAcceleratorOfferingsInputBuilder
impl DescribeAcceleratorOfferingsInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<DescribeAcceleratorOfferingsOutput, SdkError<DescribeAcceleratorOfferingsError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<DescribeAcceleratorOfferingsOutput, SdkError<DescribeAcceleratorOfferingsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for DescribeAcceleratorOfferingsInputBuilder
impl Clone for DescribeAcceleratorOfferingsInputBuilder
source§fn clone(&self) -> DescribeAcceleratorOfferingsInputBuilder
fn clone(&self) -> DescribeAcceleratorOfferingsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DescribeAcceleratorOfferingsInputBuilder
impl Default for DescribeAcceleratorOfferingsInputBuilder
source§fn default() -> DescribeAcceleratorOfferingsInputBuilder
fn default() -> DescribeAcceleratorOfferingsInputBuilder
source§impl PartialEq for DescribeAcceleratorOfferingsInputBuilder
impl PartialEq for DescribeAcceleratorOfferingsInputBuilder
source§fn eq(&self, other: &DescribeAcceleratorOfferingsInputBuilder) -> bool
fn eq(&self, other: &DescribeAcceleratorOfferingsInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DescribeAcceleratorOfferingsInputBuilder
Auto Trait Implementations§
impl Freeze for DescribeAcceleratorOfferingsInputBuilder
impl RefUnwindSafe for DescribeAcceleratorOfferingsInputBuilder
impl Send for DescribeAcceleratorOfferingsInputBuilder
impl Sync for DescribeAcceleratorOfferingsInputBuilder
impl Unpin for DescribeAcceleratorOfferingsInputBuilder
impl UnwindSafe for DescribeAcceleratorOfferingsInputBuilder
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