Interface LicenseRecommendation.Builder
- All Superinterfaces:
 Buildable,CopyableBuilder<LicenseRecommendation.Builder,,LicenseRecommendation> SdkBuilder<LicenseRecommendation.Builder,,LicenseRecommendation> SdkPojo
- Enclosing class:
 LicenseRecommendation
- 
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Web Services account ID of the license.default LicenseRecommendation.BuildercurrentLicenseConfiguration(Consumer<LicenseConfiguration.Builder> currentLicenseConfiguration) An object that describes the current configuration of an instance that runs on a license.currentLicenseConfiguration(LicenseConfiguration currentLicenseConfiguration) An object that describes the current configuration of an instance that runs on a license.The finding classification for an instance that runs on a license.finding(LicenseFinding finding) The finding classification for an instance that runs on a license.findingReasonCodes(Collection<LicenseFindingReasonCode> findingReasonCodes) The reason for the finding classification for an instance that runs on a license.findingReasonCodes(LicenseFindingReasonCode... findingReasonCodes) The reason for the finding classification for an instance that runs on a license.findingReasonCodesWithStrings(String... findingReasonCodes) The reason for the finding classification for an instance that runs on a license.findingReasonCodesWithStrings(Collection<String> findingReasonCodes) The reason for the finding classification for an instance that runs on a license.lastRefreshTimestamp(Instant lastRefreshTimestamp) The timestamp of when the license recommendation was last generated.licenseRecommendationOptions(Collection<LicenseRecommendationOption> licenseRecommendationOptions) An array of objects that describe the license recommendation options.licenseRecommendationOptions(Consumer<LicenseRecommendationOption.Builder>... licenseRecommendationOptions) An array of objects that describe the license recommendation options.licenseRecommendationOptions(LicenseRecommendationOption... licenseRecommendationOptions) An array of objects that describe the license recommendation options.lookbackPeriodInDays(Double lookbackPeriodInDays) The number of days for which utilization metrics were analyzed for an instance that runs on a license.resourceArn(String resourceArn) The ARN that identifies the Amazon EC2 instance.tags(Collection<Tag> tags) A list of tags assigned to an EC2 instance.tags(Consumer<Tag.Builder>... tags) A list of tags assigned to an EC2 instance.A list of tags assigned to an EC2 instance.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields 
- 
Method Details
- 
resourceArn
The ARN that identifies the Amazon EC2 instance.
- Parameters:
 resourceArn- The ARN that identifies the Amazon EC2 instance.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
accountId
The Amazon Web Services account ID of the license.
- Parameters:
 accountId- The Amazon Web Services account ID of the license.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
currentLicenseConfiguration
LicenseRecommendation.Builder currentLicenseConfiguration(LicenseConfiguration currentLicenseConfiguration) An object that describes the current configuration of an instance that runs on a license.
- Parameters:
 currentLicenseConfiguration- An object that describes the current configuration of an instance that runs on a license.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
currentLicenseConfiguration
default LicenseRecommendation.Builder currentLicenseConfiguration(Consumer<LicenseConfiguration.Builder> currentLicenseConfiguration) An object that describes the current configuration of an instance that runs on a license.
This is a convenience method that creates an instance of theLicenseConfiguration.Builderavoiding the need to create one manually viaLicenseConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocurrentLicenseConfiguration(LicenseConfiguration).- Parameters:
 currentLicenseConfiguration- a consumer that will call methods onLicenseConfiguration.Builder- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 - 
lookbackPeriodInDays
The number of days for which utilization metrics were analyzed for an instance that runs on a license.
- Parameters:
 lookbackPeriodInDays- The number of days for which utilization metrics were analyzed for an instance that runs on a license.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
lastRefreshTimestamp
The timestamp of when the license recommendation was last generated.
- Parameters:
 lastRefreshTimestamp- The timestamp of when the license recommendation was last generated.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
finding
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. 
- Parameters:
 finding- 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. 
- 
        
 - Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 - 
 
 - 
finding
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. 
- Parameters:
 finding- 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. 
- 
        
 - Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 - 
 
 - 
findingReasonCodesWithStrings
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. 
- Parameters:
 findingReasonCodes- 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. 
- 
        
 - Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
 
 - 
findingReasonCodesWithStrings
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. 
- Parameters:
 findingReasonCodes- 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. 
- 
        
 - Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
 
 - 
findingReasonCodes
LicenseRecommendation.Builder findingReasonCodes(Collection<LicenseFindingReasonCode> findingReasonCodes) 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. 
- Parameters:
 findingReasonCodes- 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. 
- 
        
 - Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
 
 - 
findingReasonCodes
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. 
- Parameters:
 findingReasonCodes- 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. 
- 
        
 - Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
 
 - 
licenseRecommendationOptions
LicenseRecommendation.Builder licenseRecommendationOptions(Collection<LicenseRecommendationOption> licenseRecommendationOptions) An array of objects that describe the license recommendation options.
- Parameters:
 licenseRecommendationOptions- An array of objects that describe the license recommendation options.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
licenseRecommendationOptions
LicenseRecommendation.Builder licenseRecommendationOptions(LicenseRecommendationOption... licenseRecommendationOptions) An array of objects that describe the license recommendation options.
- Parameters:
 licenseRecommendationOptions- An array of objects that describe the license recommendation options.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
licenseRecommendationOptions
LicenseRecommendation.Builder licenseRecommendationOptions(Consumer<LicenseRecommendationOption.Builder>... licenseRecommendationOptions) An array of objects that describe the license recommendation options.
This is a convenience method that creates an instance of theLicenseRecommendationOption.Builderavoiding the need to create one manually viaLicenseRecommendationOption.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolicenseRecommendationOptions(List<LicenseRecommendationOption>).- Parameters:
 licenseRecommendationOptions- a consumer that will call methods onLicenseRecommendationOption.Builder- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 - 
tags
A list of tags assigned to an EC2 instance.
- Parameters:
 tags- A list of tags assigned to an EC2 instance.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
tags
A list of tags assigned to an EC2 instance.
- Parameters:
 tags- A list of tags assigned to an EC2 instance.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
tags
A list of tags assigned to an EC2 instance.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
 tags- a consumer that will call methods onTag.Builder- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 
 -