Struct aws_sdk_ecs::model::inference_accelerator::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for InferenceAccelerator.
Implementations§
source§impl Builder
impl Builder
sourcepub fn device_name(self, input: impl Into<String>) -> Self
pub fn device_name(self, input: impl Into<String>) -> Self
The Elastic Inference accelerator device name. The deviceName must also be referenced in a container definition as a ResourceRequirement.
sourcepub fn set_device_name(self, input: Option<String>) -> Self
pub fn set_device_name(self, input: Option<String>) -> Self
The Elastic Inference accelerator device name. The deviceName must also be referenced in a container definition as a ResourceRequirement.
sourcepub fn device_type(self, input: impl Into<String>) -> Self
pub fn device_type(self, input: impl Into<String>) -> Self
The Elastic Inference accelerator type to use.
sourcepub fn set_device_type(self, input: Option<String>) -> Self
pub fn set_device_type(self, input: Option<String>) -> Self
The Elastic Inference accelerator type to use.
sourcepub fn build(self) -> InferenceAccelerator
pub fn build(self) -> InferenceAccelerator
Consumes the builder and constructs a InferenceAccelerator.