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<HostPropertiesBuilder> for HostPropertiesBuilder
impl PartialEq<HostPropertiesBuilder> 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 ==
.