Struct aws_sdk_ec2::model::elastic_inference_accelerator::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ElasticInferenceAccelerator
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn type(self, input: impl Into<String>) -> Self
pub fn type(self, input: impl Into<String>) -> Self
The type of elastic inference accelerator. The possible values are eia1.medium
, eia1.large
, eia1.xlarge
, eia2.medium
, eia2.large
, and eia2.xlarge
.
sourcepub fn set_type(self, input: Option<String>) -> Self
pub fn set_type(self, input: Option<String>) -> Self
The type of elastic inference accelerator. The possible values are eia1.medium
, eia1.large
, eia1.xlarge
, eia2.medium
, eia2.large
, and eia2.xlarge
.
sourcepub fn count(self, input: i32) -> Self
pub fn count(self, input: i32) -> Self
The number of elastic inference accelerators to attach to the instance.
Default: 1
sourcepub fn set_count(self, input: Option<i32>) -> Self
pub fn set_count(self, input: Option<i32>) -> Self
The number of elastic inference accelerators to attach to the instance.
Default: 1
sourcepub fn build(self) -> ElasticInferenceAccelerator
pub fn build(self) -> ElasticInferenceAccelerator
Consumes the builder and constructs a ElasticInferenceAccelerator
.