Struct aws_sdk_ec2::types::builders::HostInstanceBuilder
source · #[non_exhaustive]pub struct HostInstanceBuilder { /* private fields */ }
Expand description
A builder for HostInstance
.
Implementations§
source§impl HostInstanceBuilder
impl HostInstanceBuilder
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The ID of instance that is running on the Dedicated Host.
sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The ID of instance that is running on the Dedicated Host.
sourcepub fn get_instance_id(&self) -> &Option<String>
pub fn get_instance_id(&self) -> &Option<String>
The ID of instance that is running on the Dedicated Host.
sourcepub fn instance_type(self, input: impl Into<String>) -> Self
pub fn instance_type(self, input: impl Into<String>) -> Self
The instance type (for example, m3.medium
) of the running instance.
sourcepub fn set_instance_type(self, input: Option<String>) -> Self
pub fn set_instance_type(self, input: Option<String>) -> Self
The instance type (for example, m3.medium
) of the running instance.
sourcepub fn get_instance_type(&self) -> &Option<String>
pub fn get_instance_type(&self) -> &Option<String>
The instance type (for example, m3.medium
) of the running instance.
sourcepub fn owner_id(self, input: impl Into<String>) -> Self
pub fn owner_id(self, input: impl Into<String>) -> Self
The ID of the Amazon Web Services account that owns the instance.
sourcepub fn set_owner_id(self, input: Option<String>) -> Self
pub fn set_owner_id(self, input: Option<String>) -> Self
The ID of the Amazon Web Services account that owns the instance.
sourcepub fn get_owner_id(&self) -> &Option<String>
pub fn get_owner_id(&self) -> &Option<String>
The ID of the Amazon Web Services account that owns the instance.
sourcepub fn build(self) -> HostInstance
pub fn build(self) -> HostInstance
Consumes the builder and constructs a HostInstance
.
Trait Implementations§
source§impl Clone for HostInstanceBuilder
impl Clone for HostInstanceBuilder
source§fn clone(&self) -> HostInstanceBuilder
fn clone(&self) -> HostInstanceBuilder
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 HostInstanceBuilder
impl Debug for HostInstanceBuilder
source§impl Default for HostInstanceBuilder
impl Default for HostInstanceBuilder
source§fn default() -> HostInstanceBuilder
fn default() -> HostInstanceBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for HostInstanceBuilder
impl PartialEq for HostInstanceBuilder
source§fn eq(&self, other: &HostInstanceBuilder) -> bool
fn eq(&self, other: &HostInstanceBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for HostInstanceBuilder
Auto Trait Implementations§
impl Freeze for HostInstanceBuilder
impl RefUnwindSafe for HostInstanceBuilder
impl Send for HostInstanceBuilder
impl Sync for HostInstanceBuilder
impl Unpin for HostInstanceBuilder
impl UnwindSafe for HostInstanceBuilder
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.