Interface LicenseRecommendation.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<LicenseRecommendation.Builder,LicenseRecommendation>,SdkBuilder<LicenseRecommendation.Builder,LicenseRecommendation>,SdkPojo
- Enclosing class:
- LicenseRecommendation
public static interface LicenseRecommendation.Builder extends SdkPojo, CopyableBuilder<LicenseRecommendation.Builder,LicenseRecommendation>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description LicenseRecommendation.BuilderaccountId(String accountId)The 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.LicenseRecommendation.BuildercurrentLicenseConfiguration(LicenseConfiguration currentLicenseConfiguration)An object that describes the current configuration of an instance that runs on a license.LicenseRecommendation.Builderfinding(String finding)The finding classification for an instance that runs on a license.LicenseRecommendation.Builderfinding(LicenseFinding finding)The finding classification for an instance that runs on a license.LicenseRecommendation.BuilderfindingReasonCodes(Collection<LicenseFindingReasonCode> findingReasonCodes)The reason for the finding classification for an instance that runs on a license.LicenseRecommendation.BuilderfindingReasonCodes(LicenseFindingReasonCode... findingReasonCodes)The reason for the finding classification for an instance that runs on a license.LicenseRecommendation.BuilderfindingReasonCodesWithStrings(String... findingReasonCodes)The reason for the finding classification for an instance that runs on a license.LicenseRecommendation.BuilderfindingReasonCodesWithStrings(Collection<String> findingReasonCodes)The reason for the finding classification for an instance that runs on a license.LicenseRecommendation.BuilderlastRefreshTimestamp(Instant lastRefreshTimestamp)The timestamp of when the license recommendation was last generated.LicenseRecommendation.BuilderlicenseRecommendationOptions(Collection<LicenseRecommendationOption> licenseRecommendationOptions)An array of objects that describe the license recommendation options.LicenseRecommendation.BuilderlicenseRecommendationOptions(Consumer<LicenseRecommendationOption.Builder>... licenseRecommendationOptions)An array of objects that describe the license recommendation options.LicenseRecommendation.BuilderlicenseRecommendationOptions(LicenseRecommendationOption... licenseRecommendationOptions)An array of objects that describe the license recommendation options.LicenseRecommendation.BuilderlookbackPeriodInDays(Double lookbackPeriodInDays)The number of days for which utilization metrics were analyzed for an instance that runs on a license.LicenseRecommendation.BuilderresourceArn(String resourceArn)The ARN that identifies the Amazon EC2 instance.LicenseRecommendation.Buildertags(Collection<Tag> tags)A list of tags assigned to an EC2 instance.LicenseRecommendation.Buildertags(Consumer<Tag.Builder>... tags)A list of tags assigned to an EC2 instance.LicenseRecommendation.Buildertags(Tag... tags)A list of tags assigned to an EC2 instance.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
resourceArn
LicenseRecommendation.Builder resourceArn(String 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
LicenseRecommendation.Builder accountId(String 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:
currentLicenseConfiguration(LicenseConfiguration)
-
lookbackPeriodInDays
LicenseRecommendation.Builder lookbackPeriodInDays(Double 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
LicenseRecommendation.Builder lastRefreshTimestamp(Instant 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
LicenseRecommendation.Builder finding(String 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:
LicenseFinding,LicenseFinding
-
-
finding
LicenseRecommendation.Builder finding(LicenseFinding 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:
LicenseFinding,LicenseFinding
-
-
findingReasonCodesWithStrings
LicenseRecommendation.Builder findingReasonCodesWithStrings(Collection<String> 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.
-
-
findingReasonCodesWithStrings
LicenseRecommendation.Builder findingReasonCodesWithStrings(String... 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
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
LicenseRecommendation.Builder findingReasonCodes(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.
-
-
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 to#licenseRecommendationOptions(List.) - 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:
#licenseRecommendationOptions(java.util.Collection)
-
tags
LicenseRecommendation.Builder tags(Collection<Tag> 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
LicenseRecommendation.Builder tags(Tag... 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
LicenseRecommendation.Builder tags(Consumer<Tag.Builder>... 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 to#tags(List.) - 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:
#tags(java.util.Collection)
-
-