Struct aws_sdk_outposts::types::builders::ComputeAttributesBuilder
source · #[non_exhaustive]pub struct ComputeAttributesBuilder { /* private fields */ }
Expand description
A builder for ComputeAttributes
.
Implementations§
source§impl ComputeAttributesBuilder
impl ComputeAttributesBuilder
sourcepub fn host_id(self, input: impl Into<String>) -> Self
pub fn host_id(self, input: impl Into<String>) -> Self
The host ID of the Dedicated Host on the asset.
sourcepub fn set_host_id(self, input: Option<String>) -> Self
pub fn set_host_id(self, input: Option<String>) -> Self
The host ID of the Dedicated Host on the asset.
sourcepub fn get_host_id(&self) -> &Option<String>
pub fn get_host_id(&self) -> &Option<String>
The host ID of the Dedicated Host on the asset.
sourcepub fn state(self, input: ComputeAssetState) -> Self
pub fn state(self, input: ComputeAssetState) -> Self
The state.
-
ACTIVE - The asset is available and can provide capacity for new compute resources.
-
ISOLATED - The asset is undergoing maintenance and can't provide capacity for new compute resources. Existing compute resources on the asset are not affected.
-
RETIRING - The underlying hardware for the asset is degraded. Capacity for new compute resources is reduced. Amazon Web Services sends notifications for resources that must be stopped before the asset can be replaced.
sourcepub fn set_state(self, input: Option<ComputeAssetState>) -> Self
pub fn set_state(self, input: Option<ComputeAssetState>) -> Self
The state.
-
ACTIVE - The asset is available and can provide capacity for new compute resources.
-
ISOLATED - The asset is undergoing maintenance and can't provide capacity for new compute resources. Existing compute resources on the asset are not affected.
-
RETIRING - The underlying hardware for the asset is degraded. Capacity for new compute resources is reduced. Amazon Web Services sends notifications for resources that must be stopped before the asset can be replaced.
sourcepub fn get_state(&self) -> &Option<ComputeAssetState>
pub fn get_state(&self) -> &Option<ComputeAssetState>
The state.
-
ACTIVE - The asset is available and can provide capacity for new compute resources.
-
ISOLATED - The asset is undergoing maintenance and can't provide capacity for new compute resources. Existing compute resources on the asset are not affected.
-
RETIRING - The underlying hardware for the asset is degraded. Capacity for new compute resources is reduced. Amazon Web Services sends notifications for resources that must be stopped before the asset can be replaced.
sourcepub fn instance_families(self, input: impl Into<String>) -> Self
pub fn instance_families(self, input: impl Into<String>) -> Self
Appends an item to instance_families
.
To override the contents of this collection use set_instance_families
.
A list of the names of instance families that are currently associated with a given asset.
sourcepub fn set_instance_families(self, input: Option<Vec<String>>) -> Self
pub fn set_instance_families(self, input: Option<Vec<String>>) -> Self
A list of the names of instance families that are currently associated with a given asset.
sourcepub fn get_instance_families(&self) -> &Option<Vec<String>>
pub fn get_instance_families(&self) -> &Option<Vec<String>>
A list of the names of instance families that are currently associated with a given asset.
sourcepub fn build(self) -> ComputeAttributes
pub fn build(self) -> ComputeAttributes
Consumes the builder and constructs a ComputeAttributes
.
Trait Implementations§
source§impl Clone for ComputeAttributesBuilder
impl Clone for ComputeAttributesBuilder
source§fn clone(&self) -> ComputeAttributesBuilder
fn clone(&self) -> ComputeAttributesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ComputeAttributesBuilder
impl Debug for ComputeAttributesBuilder
source§impl Default for ComputeAttributesBuilder
impl Default for ComputeAttributesBuilder
source§fn default() -> ComputeAttributesBuilder
fn default() -> ComputeAttributesBuilder
source§impl PartialEq for ComputeAttributesBuilder
impl PartialEq for ComputeAttributesBuilder
source§fn eq(&self, other: &ComputeAttributesBuilder) -> bool
fn eq(&self, other: &ComputeAttributesBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ComputeAttributesBuilder
Auto Trait Implementations§
impl Freeze for ComputeAttributesBuilder
impl RefUnwindSafe for ComputeAttributesBuilder
impl Send for ComputeAttributesBuilder
impl Sync for ComputeAttributesBuilder
impl Unpin for ComputeAttributesBuilder
impl UnwindSafe for ComputeAttributesBuilder
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
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>
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>
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 more