Interface LicenseRecommendation.Builder

    • 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.
      • 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.
      • 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 the Tag.Builder avoiding the need to create one manually via Tag.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #tags(List).

        Parameters:
        tags - a consumer that will call methods on Tag.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #tags(java.util.Collection)