Struct aws_sdk_ec2::types::builders::HostPropertiesBuilder
source · #[non_exhaustive]pub struct HostPropertiesBuilder { /* private fields */ }
Expand description
A builder for HostProperties
.
Implementations§
source§impl HostPropertiesBuilder
impl HostPropertiesBuilder
sourcepub fn instance_type(self, input: impl Into<String>) -> Self
pub fn instance_type(self, input: impl Into<String>) -> Self
The instance type supported by the Dedicated Host. For example, m5.large
. If the host supports multiple instance types, no instanceType is returned.
sourcepub fn set_instance_type(self, input: Option<String>) -> Self
pub fn set_instance_type(self, input: Option<String>) -> Self
The instance type supported by the Dedicated Host. For example, m5.large
. If the host supports multiple instance types, no instanceType is returned.
sourcepub fn get_instance_type(&self) -> &Option<String>
pub fn get_instance_type(&self) -> &Option<String>
The instance type supported by the Dedicated Host. For example, m5.large
. If the host supports multiple instance types, no instanceType is returned.
sourcepub fn instance_family(self, input: impl Into<String>) -> Self
pub fn instance_family(self, input: impl Into<String>) -> Self
The instance family supported by the Dedicated Host. For example, m5
.
sourcepub fn set_instance_family(self, input: Option<String>) -> Self
pub fn set_instance_family(self, input: Option<String>) -> Self
The instance family supported by the Dedicated Host. For example, m5
.
sourcepub fn get_instance_family(&self) -> &Option<String>
pub fn get_instance_family(&self) -> &Option<String>
The instance family supported by the Dedicated Host. For example, m5
.
sourcepub fn set_sockets(self, input: Option<i32>) -> Self
pub fn set_sockets(self, input: Option<i32>) -> Self
The number of sockets on the Dedicated Host.
sourcepub fn get_sockets(&self) -> &Option<i32>
pub fn get_sockets(&self) -> &Option<i32>
The number of sockets on the Dedicated Host.
sourcepub fn total_v_cpus(self, input: i32) -> Self
pub fn total_v_cpus(self, input: i32) -> Self
The total number of vCPUs on the Dedicated Host.
sourcepub fn set_total_v_cpus(self, input: Option<i32>) -> Self
pub fn set_total_v_cpus(self, input: Option<i32>) -> Self
The total number of vCPUs on the Dedicated Host.
sourcepub fn get_total_v_cpus(&self) -> &Option<i32>
pub fn get_total_v_cpus(&self) -> &Option<i32>
The total number of vCPUs on the Dedicated Host.
sourcepub fn build(self) -> HostProperties
pub fn build(self) -> HostProperties
Consumes the builder and constructs a HostProperties
.
Trait Implementations§
source§impl Clone for HostPropertiesBuilder
impl Clone for HostPropertiesBuilder
source§fn clone(&self) -> HostPropertiesBuilder
fn clone(&self) -> HostPropertiesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HostPropertiesBuilder
impl Debug for HostPropertiesBuilder
source§impl Default for HostPropertiesBuilder
impl Default for HostPropertiesBuilder
source§fn default() -> HostPropertiesBuilder
fn default() -> HostPropertiesBuilder
source§impl PartialEq for HostPropertiesBuilder
impl PartialEq for HostPropertiesBuilder
source§fn eq(&self, other: &HostPropertiesBuilder) -> bool
fn eq(&self, other: &HostPropertiesBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for HostPropertiesBuilder
Auto Trait Implementations§
impl Freeze for HostPropertiesBuilder
impl RefUnwindSafe for HostPropertiesBuilder
impl Send for HostPropertiesBuilder
impl Sync for HostPropertiesBuilder
impl Unpin for HostPropertiesBuilder
impl UnwindSafe for HostPropertiesBuilder
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