Struct aws_sdk_ecs::model::platform_device::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for PlatformDevice.
Implementations§
source§impl Builder
impl Builder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The ID for the GPUs on the container instance. The available GPU IDs can also be obtained on the container instance in the /var/lib/ecs/gpu/nvidia_gpu_info.json file.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The ID for the GPUs on the container instance. The available GPU IDs can also be obtained on the container instance in the /var/lib/ecs/gpu/nvidia_gpu_info.json file.
sourcepub fn type(self, input: PlatformDeviceType) -> Self
pub fn type(self, input: PlatformDeviceType) -> Self
The type of device that's available on the container instance. The only supported value is GPU.
sourcepub fn set_type(self, input: Option<PlatformDeviceType>) -> Self
pub fn set_type(self, input: Option<PlatformDeviceType>) -> Self
The type of device that's available on the container instance. The only supported value is GPU.
sourcepub fn build(self) -> PlatformDevice
pub fn build(self) -> PlatformDevice
Consumes the builder and constructs a PlatformDevice.