Struct aws_sdk_ec2::model::host_properties::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for HostProperties
.
Implementations§
source§impl Builder
impl Builder
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 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 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 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 build(self) -> HostProperties
pub fn build(self) -> HostProperties
Consumes the builder and constructs a HostProperties
.