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 ==
.