#[non_exhaustive]pub struct LicenseRecommendationBuilder { /* private fields */ }
Expand description
A builder for LicenseRecommendation
.
Implementations§
source§impl LicenseRecommendationBuilder
impl LicenseRecommendationBuilder
sourcepub fn resource_arn(self, input: impl Into<String>) -> Self
pub fn resource_arn(self, input: impl Into<String>) -> Self
The ARN that identifies the Amazon EC2 instance.
sourcepub fn set_resource_arn(self, input: Option<String>) -> Self
pub fn set_resource_arn(self, input: Option<String>) -> Self
The ARN that identifies the Amazon EC2 instance.
sourcepub fn get_resource_arn(&self) -> &Option<String>
pub fn get_resource_arn(&self) -> &Option<String>
The ARN that identifies the Amazon EC2 instance.
sourcepub fn account_id(self, input: impl Into<String>) -> Self
pub fn account_id(self, input: impl Into<String>) -> Self
The Amazon Web Services account ID of the license.
sourcepub fn set_account_id(self, input: Option<String>) -> Self
pub fn set_account_id(self, input: Option<String>) -> Self
The Amazon Web Services account ID of the license.
sourcepub fn get_account_id(&self) -> &Option<String>
pub fn get_account_id(&self) -> &Option<String>
The Amazon Web Services account ID of the license.
sourcepub fn current_license_configuration(self, input: LicenseConfiguration) -> Self
pub fn current_license_configuration(self, input: LicenseConfiguration) -> Self
An object that describes the current configuration of an instance that runs on a license.
sourcepub fn set_current_license_configuration(
self,
input: Option<LicenseConfiguration>
) -> Self
pub fn set_current_license_configuration( self, input: Option<LicenseConfiguration> ) -> Self
An object that describes the current configuration of an instance that runs on a license.
sourcepub fn get_current_license_configuration(&self) -> &Option<LicenseConfiguration>
pub fn get_current_license_configuration(&self) -> &Option<LicenseConfiguration>
An object that describes the current configuration of an instance that runs on a license.
sourcepub fn lookback_period_in_days(self, input: f64) -> Self
pub fn lookback_period_in_days(self, input: f64) -> Self
The number of days for which utilization metrics were analyzed for an instance that runs on a license.
sourcepub fn set_lookback_period_in_days(self, input: Option<f64>) -> Self
pub fn set_lookback_period_in_days(self, input: Option<f64>) -> Self
The number of days for which utilization metrics were analyzed for an instance that runs on a license.
sourcepub fn get_lookback_period_in_days(&self) -> &Option<f64>
pub fn get_lookback_period_in_days(&self) -> &Option<f64>
The number of days for which utilization metrics were analyzed for an instance that runs on a license.
sourcepub fn last_refresh_timestamp(self, input: DateTime) -> Self
pub fn last_refresh_timestamp(self, input: DateTime) -> Self
The timestamp of when the license recommendation was last generated.
sourcepub fn set_last_refresh_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_last_refresh_timestamp(self, input: Option<DateTime>) -> Self
The timestamp of when the license recommendation was last generated.
sourcepub fn get_last_refresh_timestamp(&self) -> &Option<DateTime>
pub fn get_last_refresh_timestamp(&self) -> &Option<DateTime>
The timestamp of when the license recommendation was last generated.
sourcepub fn finding(self, input: LicenseFinding) -> Self
pub fn finding(self, input: LicenseFinding) -> Self
The finding classification for an instance that runs on a license.
Findings include:
-
InsufficentMetrics
— When Compute Optimizer detects that your CloudWatch Application Insights isn't enabled or is enabled with insufficient permissions. -
NotOptimized
— When Compute Optimizer detects that your EC2 infrastructure isn't using any of the SQL server license features you're paying for, a license is considered not optimized. -
Optimized
— When Compute Optimizer detects that all specifications of your license meet the performance requirements of your workload.
sourcepub fn set_finding(self, input: Option<LicenseFinding>) -> Self
pub fn set_finding(self, input: Option<LicenseFinding>) -> Self
The finding classification for an instance that runs on a license.
Findings include:
-
InsufficentMetrics
— When Compute Optimizer detects that your CloudWatch Application Insights isn't enabled or is enabled with insufficient permissions. -
NotOptimized
— When Compute Optimizer detects that your EC2 infrastructure isn't using any of the SQL server license features you're paying for, a license is considered not optimized. -
Optimized
— When Compute Optimizer detects that all specifications of your license meet the performance requirements of your workload.
sourcepub fn get_finding(&self) -> &Option<LicenseFinding>
pub fn get_finding(&self) -> &Option<LicenseFinding>
The finding classification for an instance that runs on a license.
Findings include:
-
InsufficentMetrics
— When Compute Optimizer detects that your CloudWatch Application Insights isn't enabled or is enabled with insufficient permissions. -
NotOptimized
— When Compute Optimizer detects that your EC2 infrastructure isn't using any of the SQL server license features you're paying for, a license is considered not optimized. -
Optimized
— When Compute Optimizer detects that all specifications of your license meet the performance requirements of your workload.
sourcepub fn finding_reason_codes(self, input: LicenseFindingReasonCode) -> Self
pub fn finding_reason_codes(self, input: LicenseFindingReasonCode) -> Self
Appends an item to finding_reason_codes
.
To override the contents of this collection use set_finding_reason_codes
.
The reason for the finding classification for an instance that runs on a license.
Finding reason codes include:
-
Optimized
— All specifications of your license meet the performance requirements of your workload. -
LicenseOverprovisioned
— A license is considered over-provisioned when your license can be downgraded while still meeting the performance requirements of your workload. -
InvalidCloudwatchApplicationInsights
— CloudWatch Application Insights isn't configured properly. -
CloudwatchApplicationInsightsError
— There is a CloudWatch Application Insights error.
sourcepub fn set_finding_reason_codes(
self,
input: Option<Vec<LicenseFindingReasonCode>>
) -> Self
pub fn set_finding_reason_codes( self, input: Option<Vec<LicenseFindingReasonCode>> ) -> Self
The reason for the finding classification for an instance that runs on a license.
Finding reason codes include:
-
Optimized
— All specifications of your license meet the performance requirements of your workload. -
LicenseOverprovisioned
— A license is considered over-provisioned when your license can be downgraded while still meeting the performance requirements of your workload. -
InvalidCloudwatchApplicationInsights
— CloudWatch Application Insights isn't configured properly. -
CloudwatchApplicationInsightsError
— There is a CloudWatch Application Insights error.
sourcepub fn get_finding_reason_codes(&self) -> &Option<Vec<LicenseFindingReasonCode>>
pub fn get_finding_reason_codes(&self) -> &Option<Vec<LicenseFindingReasonCode>>
The reason for the finding classification for an instance that runs on a license.
Finding reason codes include:
-
Optimized
— All specifications of your license meet the performance requirements of your workload. -
LicenseOverprovisioned
— A license is considered over-provisioned when your license can be downgraded while still meeting the performance requirements of your workload. -
InvalidCloudwatchApplicationInsights
— CloudWatch Application Insights isn't configured properly. -
CloudwatchApplicationInsightsError
— There is a CloudWatch Application Insights error.
sourcepub fn license_recommendation_options(
self,
input: LicenseRecommendationOption
) -> Self
pub fn license_recommendation_options( self, input: LicenseRecommendationOption ) -> Self
Appends an item to license_recommendation_options
.
To override the contents of this collection use set_license_recommendation_options
.
An array of objects that describe the license recommendation options.
sourcepub fn set_license_recommendation_options(
self,
input: Option<Vec<LicenseRecommendationOption>>
) -> Self
pub fn set_license_recommendation_options( self, input: Option<Vec<LicenseRecommendationOption>> ) -> Self
An array of objects that describe the license recommendation options.
sourcepub fn get_license_recommendation_options(
&self
) -> &Option<Vec<LicenseRecommendationOption>>
pub fn get_license_recommendation_options( &self ) -> &Option<Vec<LicenseRecommendationOption>>
An array of objects that describe the license recommendation options.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
A list of tags assigned to an EC2 instance.
A list of tags assigned to an EC2 instance.
A list of tags assigned to an EC2 instance.
sourcepub fn build(self) -> LicenseRecommendation
pub fn build(self) -> LicenseRecommendation
Consumes the builder and constructs a LicenseRecommendation
.
Trait Implementations§
source§impl Clone for LicenseRecommendationBuilder
impl Clone for LicenseRecommendationBuilder
source§fn clone(&self) -> LicenseRecommendationBuilder
fn clone(&self) -> LicenseRecommendationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LicenseRecommendationBuilder
impl Debug for LicenseRecommendationBuilder
source§impl Default for LicenseRecommendationBuilder
impl Default for LicenseRecommendationBuilder
source§fn default() -> LicenseRecommendationBuilder
fn default() -> LicenseRecommendationBuilder
source§impl PartialEq for LicenseRecommendationBuilder
impl PartialEq for LicenseRecommendationBuilder
source§fn eq(&self, other: &LicenseRecommendationBuilder) -> bool
fn eq(&self, other: &LicenseRecommendationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.