pub struct CapacityConfig {
pub capacity_config_name: Option<String>,
pub supported_capabilities: Option<SupportedCapabilities>,
pub is_default: Option<bool>,
pub capacity_bins: Option<Vec<CapacityBinPreview>>,
}Expand description
Specifies the capacity configs that the Dedicated Virtual Machine Host (DVMH) Shape could support.
Fields§
§capacity_config_name: Option<String>The name of each capacity config.
supported_capabilities: Option<SupportedCapabilities>§is_default: Option<bool>Whether this capacity config is the default config.
capacity_bins: Option<Vec<CapacityBinPreview>>A list of total CPU and memory per capacity bucket.
Implementations§
Source§impl CapacityConfig
impl CapacityConfig
Sourcepub fn set_capacity_config_name(self, value: Option<String>) -> Self
pub fn set_capacity_config_name(self, value: Option<String>) -> Self
Set capacity_config_name
Sourcepub fn set_supported_capabilities(
self,
value: Option<SupportedCapabilities>,
) -> Self
pub fn set_supported_capabilities( self, value: Option<SupportedCapabilities>, ) -> Self
Set supported_capabilities
Sourcepub fn set_is_default(self, value: Option<bool>) -> Self
pub fn set_is_default(self, value: Option<bool>) -> Self
Set is_default
Sourcepub fn set_capacity_bins(self, value: Option<Vec<CapacityBinPreview>>) -> Self
pub fn set_capacity_bins(self, value: Option<Vec<CapacityBinPreview>>) -> Self
Set capacity_bins
Sourcepub fn with_capacity_config_name(self, value: impl Into<String>) -> Self
pub fn with_capacity_config_name(self, value: impl Into<String>) -> Self
Set capacity_config_name (unwraps Option)
Sourcepub fn with_supported_capabilities(self, value: SupportedCapabilities) -> Self
pub fn with_supported_capabilities(self, value: SupportedCapabilities) -> Self
Set supported_capabilities (unwraps Option)
Sourcepub fn with_is_default(self, value: bool) -> Self
pub fn with_is_default(self, value: bool) -> Self
Set is_default (unwraps Option)
Sourcepub fn with_capacity_bins(self, value: Vec<CapacityBinPreview>) -> Self
pub fn with_capacity_bins(self, value: Vec<CapacityBinPreview>) -> Self
Set capacity_bins (unwraps Option)
Trait Implementations§
Source§impl Clone for CapacityConfig
impl Clone for CapacityConfig
Source§fn clone(&self) -> CapacityConfig
fn clone(&self) -> CapacityConfig
Returns a duplicate 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 CapacityConfig
impl Debug for CapacityConfig
Source§impl Default for CapacityConfig
impl Default for CapacityConfig
Source§impl<'de> Deserialize<'de> for CapacityConfig
impl<'de> Deserialize<'de> for CapacityConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CapacityConfig
impl RefUnwindSafe for CapacityConfig
impl Send for CapacityConfig
impl Sync for CapacityConfig
impl Unpin for CapacityConfig
impl UnsafeUnpin for CapacityConfig
impl UnwindSafe for CapacityConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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