Interface GetEffectiveRecommendationPreferencesResponse.Builder

    • Method Detail

      • enhancedInfrastructureMetrics

        GetEffectiveRecommendationPreferencesResponse.Builder enhancedInfrastructureMetrics​(String enhancedInfrastructureMetrics)

        The status of the enhanced infrastructure metrics recommendation preference. Considers all applicable preferences that you might have set at the resource, account, and organization level.

        A status of Active confirms that the preference is applied in the latest recommendation refresh, and a status of Inactive confirms that it's not yet applied to recommendations.

        To validate whether the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations actions.

        For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.

        Parameters:
        enhancedInfrastructureMetrics - The status of the enhanced infrastructure metrics recommendation preference. Considers all applicable preferences that you might have set at the resource, account, and organization level.

        A status of Active confirms that the preference is applied in the latest recommendation refresh, and a status of Inactive confirms that it's not yet applied to recommendations.

        To validate whether the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations actions.

        For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        EnhancedInfrastructureMetrics, EnhancedInfrastructureMetrics
      • enhancedInfrastructureMetrics

        GetEffectiveRecommendationPreferencesResponse.Builder enhancedInfrastructureMetrics​(EnhancedInfrastructureMetrics enhancedInfrastructureMetrics)

        The status of the enhanced infrastructure metrics recommendation preference. Considers all applicable preferences that you might have set at the resource, account, and organization level.

        A status of Active confirms that the preference is applied in the latest recommendation refresh, and a status of Inactive confirms that it's not yet applied to recommendations.

        To validate whether the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations actions.

        For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.

        Parameters:
        enhancedInfrastructureMetrics - The status of the enhanced infrastructure metrics recommendation preference. Considers all applicable preferences that you might have set at the resource, account, and organization level.

        A status of Active confirms that the preference is applied in the latest recommendation refresh, and a status of Inactive confirms that it's not yet applied to recommendations.

        To validate whether the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations actions.

        For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        EnhancedInfrastructureMetrics, EnhancedInfrastructureMetrics
      • externalMetricsPreference

        GetEffectiveRecommendationPreferencesResponse.Builder externalMetricsPreference​(ExternalMetricsPreference externalMetricsPreference)

        The provider of the external metrics recommendation preference. Considers all applicable preferences that you might have set at the account and organization level.

        If the preference is applied in the latest recommendation refresh, an object with a valid source value appears in the response. If the preference isn't applied to the recommendations already, then this object doesn't appear in the response.

        To validate whether the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetEC2InstanceRecommendations actions.

        For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.

        Parameters:
        externalMetricsPreference - The provider of the external metrics recommendation preference. Considers all applicable preferences that you might have set at the account and organization level.

        If the preference is applied in the latest recommendation refresh, an object with a valid source value appears in the response. If the preference isn't applied to the recommendations already, then this object doesn't appear in the response.

        To validate whether the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetEC2InstanceRecommendations actions.

        For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • lookBackPeriod

        GetEffectiveRecommendationPreferencesResponse.Builder lookBackPeriod​(String lookBackPeriod)

        The number of days the utilization metrics of the Amazon Web Services resource are analyzed.

        To validate that the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetAutoScalingGroupRecommendations or GetEC2InstanceRecommendations actions.

        Parameters:
        lookBackPeriod - The number of days the utilization metrics of the Amazon Web Services resource are analyzed.

        To validate that the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetAutoScalingGroupRecommendations or GetEC2InstanceRecommendations actions.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        LookBackPeriodPreference, LookBackPeriodPreference
      • lookBackPeriod

        GetEffectiveRecommendationPreferencesResponse.Builder lookBackPeriod​(LookBackPeriodPreference lookBackPeriod)

        The number of days the utilization metrics of the Amazon Web Services resource are analyzed.

        To validate that the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetAutoScalingGroupRecommendations or GetEC2InstanceRecommendations actions.

        Parameters:
        lookBackPeriod - The number of days the utilization metrics of the Amazon Web Services resource are analyzed.

        To validate that the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetAutoScalingGroupRecommendations or GetEC2InstanceRecommendations actions.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        LookBackPeriodPreference, LookBackPeriodPreference
      • utilizationPreferences

        GetEffectiveRecommendationPreferencesResponse.Builder utilizationPreferences​(Collection<UtilizationPreference> utilizationPreferences)

        The resource’s CPU utilization threshold preferences, such as threshold and headroom, that were used to generate rightsizing recommendations. It considers all applicable preferences that you set at the resource, account, and organization level.

        To validate that the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetAutoScalingGroupRecommendations or GetEC2InstanceRecommendations actions.

        Parameters:
        utilizationPreferences - The resource’s CPU utilization threshold preferences, such as threshold and headroom, that were used to generate rightsizing recommendations. It considers all applicable preferences that you set at the resource, account, and organization level.

        To validate that the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetAutoScalingGroupRecommendations or GetEC2InstanceRecommendations actions.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • utilizationPreferences

        GetEffectiveRecommendationPreferencesResponse.Builder utilizationPreferences​(UtilizationPreference... utilizationPreferences)

        The resource’s CPU utilization threshold preferences, such as threshold and headroom, that were used to generate rightsizing recommendations. It considers all applicable preferences that you set at the resource, account, and organization level.

        To validate that the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetAutoScalingGroupRecommendations or GetEC2InstanceRecommendations actions.

        Parameters:
        utilizationPreferences - The resource’s CPU utilization threshold preferences, such as threshold and headroom, that were used to generate rightsizing recommendations. It considers all applicable preferences that you set at the resource, account, and organization level.

        To validate that the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetAutoScalingGroupRecommendations or GetEC2InstanceRecommendations actions.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • utilizationPreferences

        GetEffectiveRecommendationPreferencesResponse.Builder utilizationPreferences​(Consumer<UtilizationPreference.Builder>... utilizationPreferences)

        The resource’s CPU utilization threshold preferences, such as threshold and headroom, that were used to generate rightsizing recommendations. It considers all applicable preferences that you set at the resource, account, and organization level.

        To validate that the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetAutoScalingGroupRecommendations or GetEC2InstanceRecommendations actions.

        This is a convenience method that creates an instance of the UtilizationPreference.Builder avoiding the need to create one manually via UtilizationPreference.builder().

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

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

        GetEffectiveRecommendationPreferencesResponse.Builder preferredResources​(Collection<EffectivePreferredResource> preferredResources)

        The resource type values that are considered as candidates when generating rightsizing recommendations. This object resolves any wildcard expressions and returns the effective list of candidate resource type values. It also considers all applicable preferences that you set at the resource, account, and organization level.

        To validate that the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetAutoScalingGroupRecommendations or GetEC2InstanceRecommendations actions.

        Parameters:
        preferredResources - The resource type values that are considered as candidates when generating rightsizing recommendations. This object resolves any wildcard expressions and returns the effective list of candidate resource type values. It also considers all applicable preferences that you set at the resource, account, and organization level.

        To validate that the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetAutoScalingGroupRecommendations or GetEC2InstanceRecommendations actions.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • preferredResources

        GetEffectiveRecommendationPreferencesResponse.Builder preferredResources​(EffectivePreferredResource... preferredResources)

        The resource type values that are considered as candidates when generating rightsizing recommendations. This object resolves any wildcard expressions and returns the effective list of candidate resource type values. It also considers all applicable preferences that you set at the resource, account, and organization level.

        To validate that the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetAutoScalingGroupRecommendations or GetEC2InstanceRecommendations actions.

        Parameters:
        preferredResources - The resource type values that are considered as candidates when generating rightsizing recommendations. This object resolves any wildcard expressions and returns the effective list of candidate resource type values. It also considers all applicable preferences that you set at the resource, account, and organization level.

        To validate that the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetAutoScalingGroupRecommendations or GetEC2InstanceRecommendations actions.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • preferredResources

        GetEffectiveRecommendationPreferencesResponse.Builder preferredResources​(Consumer<EffectivePreferredResource.Builder>... preferredResources)

        The resource type values that are considered as candidates when generating rightsizing recommendations. This object resolves any wildcard expressions and returns the effective list of candidate resource type values. It also considers all applicable preferences that you set at the resource, account, and organization level.

        To validate that the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetAutoScalingGroupRecommendations or GetEC2InstanceRecommendations actions.

        This is a convenience method that creates an instance of the EffectivePreferredResource.Builder avoiding the need to create one manually via EffectivePreferredResource.builder().

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

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