Struct aws_sdk_ec2::types::builders::NeuronInfoBuilder
source · #[non_exhaustive]pub struct NeuronInfoBuilder { /* private fields */ }
Expand description
A builder for NeuronInfo
.
Implementations§
source§impl NeuronInfoBuilder
impl NeuronInfoBuilder
sourcepub fn neuron_devices(self, input: NeuronDeviceInfo) -> Self
pub fn neuron_devices(self, input: NeuronDeviceInfo) -> Self
Appends an item to neuron_devices
.
To override the contents of this collection use set_neuron_devices
.
Describes the neuron accelerators for the instance type.
sourcepub fn set_neuron_devices(self, input: Option<Vec<NeuronDeviceInfo>>) -> Self
pub fn set_neuron_devices(self, input: Option<Vec<NeuronDeviceInfo>>) -> Self
Describes the neuron accelerators for the instance type.
sourcepub fn get_neuron_devices(&self) -> &Option<Vec<NeuronDeviceInfo>>
pub fn get_neuron_devices(&self) -> &Option<Vec<NeuronDeviceInfo>>
Describes the neuron accelerators for the instance type.
sourcepub fn total_neuron_device_memory_in_mib(self, input: i32) -> Self
pub fn total_neuron_device_memory_in_mib(self, input: i32) -> Self
The total size of the memory for the neuron accelerators for the instance type, in MiB.
sourcepub fn set_total_neuron_device_memory_in_mib(self, input: Option<i32>) -> Self
pub fn set_total_neuron_device_memory_in_mib(self, input: Option<i32>) -> Self
The total size of the memory for the neuron accelerators for the instance type, in MiB.
sourcepub fn get_total_neuron_device_memory_in_mib(&self) -> &Option<i32>
pub fn get_total_neuron_device_memory_in_mib(&self) -> &Option<i32>
The total size of the memory for the neuron accelerators for the instance type, in MiB.
sourcepub fn build(self) -> NeuronInfo
pub fn build(self) -> NeuronInfo
Consumes the builder and constructs a NeuronInfo
.
Trait Implementations§
source§impl Clone for NeuronInfoBuilder
impl Clone for NeuronInfoBuilder
source§fn clone(&self) -> NeuronInfoBuilder
fn clone(&self) -> NeuronInfoBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NeuronInfoBuilder
impl Debug for NeuronInfoBuilder
source§impl Default for NeuronInfoBuilder
impl Default for NeuronInfoBuilder
source§fn default() -> NeuronInfoBuilder
fn default() -> NeuronInfoBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for NeuronInfoBuilder
impl PartialEq for NeuronInfoBuilder
source§fn eq(&self, other: &NeuronInfoBuilder) -> bool
fn eq(&self, other: &NeuronInfoBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NeuronInfoBuilder
Auto Trait Implementations§
impl Freeze for NeuronInfoBuilder
impl RefUnwindSafe for NeuronInfoBuilder
impl Send for NeuronInfoBuilder
impl Sync for NeuronInfoBuilder
impl Unpin for NeuronInfoBuilder
impl UnwindSafe for NeuronInfoBuilder
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.