Struct aws_sdk_ec2::model::host_properties::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for HostProperties
.
Implementations
sourceimpl 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
.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more