#[non_exhaustive]pub struct LicenseConfiguration {
pub number_of_cores: i32,
pub instance_type: Option<String>,
pub operating_system: Option<String>,
pub license_edition: Option<LicenseEdition>,
pub license_name: Option<LicenseName>,
pub license_model: Option<LicenseModel>,
pub license_version: Option<String>,
pub metrics_source: Option<Vec<MetricSource>>,
}
Expand description
Describes the configuration of a license for an Amazon EC2 instance.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.number_of_cores: i32
The current number of cores associated with the instance.
instance_type: Option<String>
The instance type used in the license.
operating_system: Option<String>
The operating system of the instance.
license_edition: Option<LicenseEdition>
The edition of the license for the application that runs on the instance.
license_name: Option<LicenseName>
The name of the license for the application that runs on the instance.
license_model: Option<LicenseModel>
The license type associated with the instance.
license_version: Option<String>
The version of the license for the application that runs on the instance.
metrics_source: Option<Vec<MetricSource>>
The list of metric sources required to generate recommendations for commercial software licenses.
Implementations§
source§impl LicenseConfiguration
impl LicenseConfiguration
sourcepub fn number_of_cores(&self) -> i32
pub fn number_of_cores(&self) -> i32
The current number of cores associated with the instance.
sourcepub fn instance_type(&self) -> Option<&str>
pub fn instance_type(&self) -> Option<&str>
The instance type used in the license.
sourcepub fn operating_system(&self) -> Option<&str>
pub fn operating_system(&self) -> Option<&str>
The operating system of the instance.
sourcepub fn license_edition(&self) -> Option<&LicenseEdition>
pub fn license_edition(&self) -> Option<&LicenseEdition>
The edition of the license for the application that runs on the instance.
sourcepub fn license_name(&self) -> Option<&LicenseName>
pub fn license_name(&self) -> Option<&LicenseName>
The name of the license for the application that runs on the instance.
sourcepub fn license_model(&self) -> Option<&LicenseModel>
pub fn license_model(&self) -> Option<&LicenseModel>
The license type associated with the instance.
sourcepub fn license_version(&self) -> Option<&str>
pub fn license_version(&self) -> Option<&str>
The version of the license for the application that runs on the instance.
sourcepub fn metrics_source(&self) -> &[MetricSource]
pub fn metrics_source(&self) -> &[MetricSource]
The list of metric sources required to generate recommendations for commercial software licenses.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .metrics_source.is_none()
.
source§impl LicenseConfiguration
impl LicenseConfiguration
sourcepub fn builder() -> LicenseConfigurationBuilder
pub fn builder() -> LicenseConfigurationBuilder
Creates a new builder-style object to manufacture LicenseConfiguration
.
Trait Implementations§
source§impl Clone for LicenseConfiguration
impl Clone for LicenseConfiguration
source§fn clone(&self) -> LicenseConfiguration
fn clone(&self) -> LicenseConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LicenseConfiguration
impl Debug for LicenseConfiguration
source§impl PartialEq for LicenseConfiguration
impl PartialEq for LicenseConfiguration
source§fn eq(&self, other: &LicenseConfiguration) -> bool
fn eq(&self, other: &LicenseConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.