Struct aws_sdk_ec2::types::builders::NeuronDeviceInfoBuilder
source · #[non_exhaustive]pub struct NeuronDeviceInfoBuilder { /* private fields */ }
Expand description
A builder for NeuronDeviceInfo
.
Implementations§
source§impl NeuronDeviceInfoBuilder
impl NeuronDeviceInfoBuilder
sourcepub fn count(self, input: i32) -> Self
pub fn count(self, input: i32) -> Self
The number of neuron accelerators for the instance type.
sourcepub fn set_count(self, input: Option<i32>) -> Self
pub fn set_count(self, input: Option<i32>) -> Self
The number of neuron accelerators for the instance type.
sourcepub fn get_count(&self) -> &Option<i32>
pub fn get_count(&self) -> &Option<i32>
The number of neuron accelerators for the instance type.
sourcepub fn core_info(self, input: NeuronDeviceCoreInfo) -> Self
pub fn core_info(self, input: NeuronDeviceCoreInfo) -> Self
Describes the cores available to each neuron accelerator.
sourcepub fn set_core_info(self, input: Option<NeuronDeviceCoreInfo>) -> Self
pub fn set_core_info(self, input: Option<NeuronDeviceCoreInfo>) -> Self
Describes the cores available to each neuron accelerator.
sourcepub fn get_core_info(&self) -> &Option<NeuronDeviceCoreInfo>
pub fn get_core_info(&self) -> &Option<NeuronDeviceCoreInfo>
Describes the cores available to each neuron accelerator.
sourcepub fn memory_info(self, input: NeuronDeviceMemoryInfo) -> Self
pub fn memory_info(self, input: NeuronDeviceMemoryInfo) -> Self
Describes the memory available to each neuron accelerator.
sourcepub fn set_memory_info(self, input: Option<NeuronDeviceMemoryInfo>) -> Self
pub fn set_memory_info(self, input: Option<NeuronDeviceMemoryInfo>) -> Self
Describes the memory available to each neuron accelerator.
sourcepub fn get_memory_info(&self) -> &Option<NeuronDeviceMemoryInfo>
pub fn get_memory_info(&self) -> &Option<NeuronDeviceMemoryInfo>
Describes the memory available to each neuron accelerator.
sourcepub fn build(self) -> NeuronDeviceInfo
pub fn build(self) -> NeuronDeviceInfo
Consumes the builder and constructs a NeuronDeviceInfo
.
Trait Implementations§
source§impl Clone for NeuronDeviceInfoBuilder
impl Clone for NeuronDeviceInfoBuilder
source§fn clone(&self) -> NeuronDeviceInfoBuilder
fn clone(&self) -> NeuronDeviceInfoBuilder
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 NeuronDeviceInfoBuilder
impl Debug for NeuronDeviceInfoBuilder
source§impl Default for NeuronDeviceInfoBuilder
impl Default for NeuronDeviceInfoBuilder
source§fn default() -> NeuronDeviceInfoBuilder
fn default() -> NeuronDeviceInfoBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for NeuronDeviceInfoBuilder
impl PartialEq for NeuronDeviceInfoBuilder
source§fn eq(&self, other: &NeuronDeviceInfoBuilder) -> bool
fn eq(&self, other: &NeuronDeviceInfoBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NeuronDeviceInfoBuilder
Auto Trait Implementations§
impl Freeze for NeuronDeviceInfoBuilder
impl RefUnwindSafe for NeuronDeviceInfoBuilder
impl Send for NeuronDeviceInfoBuilder
impl Sync for NeuronDeviceInfoBuilder
impl Unpin for NeuronDeviceInfoBuilder
impl UnwindSafe for NeuronDeviceInfoBuilder
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.