Struct aws_sdk_ec2::types::builders::InstanceTopologyBuilder
source · #[non_exhaustive]pub struct InstanceTopologyBuilder { /* private fields */ }
Expand description
A builder for InstanceTopology
.
Implementations§
source§impl InstanceTopologyBuilder
impl InstanceTopologyBuilder
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The instance ID.
sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The instance ID.
sourcepub fn get_instance_id(&self) -> &Option<String>
pub fn get_instance_id(&self) -> &Option<String>
The instance ID.
sourcepub fn instance_type(self, input: impl Into<String>) -> Self
pub fn instance_type(self, input: impl Into<String>) -> Self
The instance type.
sourcepub fn set_instance_type(self, input: Option<String>) -> Self
pub fn set_instance_type(self, input: Option<String>) -> Self
The instance type.
sourcepub fn get_instance_type(&self) -> &Option<String>
pub fn get_instance_type(&self) -> &Option<String>
The instance type.
sourcepub fn group_name(self, input: impl Into<String>) -> Self
pub fn group_name(self, input: impl Into<String>) -> Self
The name of the placement group that the instance is in.
sourcepub fn set_group_name(self, input: Option<String>) -> Self
pub fn set_group_name(self, input: Option<String>) -> Self
The name of the placement group that the instance is in.
sourcepub fn get_group_name(&self) -> &Option<String>
pub fn get_group_name(&self) -> &Option<String>
The name of the placement group that the instance is in.
sourcepub fn network_nodes(self, input: impl Into<String>) -> Self
pub fn network_nodes(self, input: impl Into<String>) -> Self
Appends an item to network_nodes
.
To override the contents of this collection use set_network_nodes
.
The network nodes. The nodes are hashed based on your account. Instances from different accounts running under the same server will return a different hashed list of strings.
sourcepub fn set_network_nodes(self, input: Option<Vec<String>>) -> Self
pub fn set_network_nodes(self, input: Option<Vec<String>>) -> Self
The network nodes. The nodes are hashed based on your account. Instances from different accounts running under the same server will return a different hashed list of strings.
sourcepub fn get_network_nodes(&self) -> &Option<Vec<String>>
pub fn get_network_nodes(&self) -> &Option<Vec<String>>
The network nodes. The nodes are hashed based on your account. Instances from different accounts running under the same server will return a different hashed list of strings.
sourcepub fn availability_zone(self, input: impl Into<String>) -> Self
pub fn availability_zone(self, input: impl Into<String>) -> Self
The name of the Availability Zone or Local Zone that the instance is in.
sourcepub fn set_availability_zone(self, input: Option<String>) -> Self
pub fn set_availability_zone(self, input: Option<String>) -> Self
The name of the Availability Zone or Local Zone that the instance is in.
sourcepub fn get_availability_zone(&self) -> &Option<String>
pub fn get_availability_zone(&self) -> &Option<String>
The name of the Availability Zone or Local Zone that the instance is in.
sourcepub fn zone_id(self, input: impl Into<String>) -> Self
pub fn zone_id(self, input: impl Into<String>) -> Self
The ID of the Availability Zone or Local Zone that the instance is in.
sourcepub fn set_zone_id(self, input: Option<String>) -> Self
pub fn set_zone_id(self, input: Option<String>) -> Self
The ID of the Availability Zone or Local Zone that the instance is in.
sourcepub fn get_zone_id(&self) -> &Option<String>
pub fn get_zone_id(&self) -> &Option<String>
The ID of the Availability Zone or Local Zone that the instance is in.
sourcepub fn build(self) -> InstanceTopology
pub fn build(self) -> InstanceTopology
Consumes the builder and constructs a InstanceTopology
.
Trait Implementations§
source§impl Clone for InstanceTopologyBuilder
impl Clone for InstanceTopologyBuilder
source§fn clone(&self) -> InstanceTopologyBuilder
fn clone(&self) -> InstanceTopologyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstanceTopologyBuilder
impl Debug for InstanceTopologyBuilder
source§impl Default for InstanceTopologyBuilder
impl Default for InstanceTopologyBuilder
source§fn default() -> InstanceTopologyBuilder
fn default() -> InstanceTopologyBuilder
source§impl PartialEq for InstanceTopologyBuilder
impl PartialEq for InstanceTopologyBuilder
source§fn eq(&self, other: &InstanceTopologyBuilder) -> bool
fn eq(&self, other: &InstanceTopologyBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstanceTopologyBuilder
Auto Trait Implementations§
impl Freeze for InstanceTopologyBuilder
impl RefUnwindSafe for InstanceTopologyBuilder
impl Send for InstanceTopologyBuilder
impl Sync for InstanceTopologyBuilder
impl Unpin for InstanceTopologyBuilder
impl UnwindSafe for InstanceTopologyBuilder
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