Class UtilizationPreference
- java.lang.Object
-
- software.amazon.awssdk.services.computeoptimizer.model.UtilizationPreference
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<UtilizationPreference.Builder,UtilizationPreference>
@Generated("software.amazon.awssdk:codegen") public final class UtilizationPreference extends Object implements SdkPojo, Serializable, ToCopyableBuilder<UtilizationPreference.Builder,UtilizationPreference>
The preference to control the resource’s CPU utilization thresholds - threshold and headroom.
This preference is only available for the Amazon EC2 instance resource type.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUtilizationPreference.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UtilizationPreference.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()CustomizableMetricNamemetricName()The name of the resource utilization metric name to customize.StringmetricNameAsString()The name of the resource utilization metric name to customize.CustomizableMetricParametersmetricParameters()The parameters to set when customizing the resource utilization thresholds.List<SdkField<?>>sdkFields()static Class<? extends UtilizationPreference.Builder>serializableBuilderClass()UtilizationPreference.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
metricName
public final CustomizableMetricName metricName()
The name of the resource utilization metric name to customize.
Compute Optimizer only supports
CpuUtilization.If the service returns an enum value that is not available in the current SDK version,
metricNamewill returnCustomizableMetricName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommetricNameAsString().- Returns:
- The name of the resource utilization metric name to customize.
Compute Optimizer only supports
CpuUtilization. - See Also:
CustomizableMetricName
-
metricNameAsString
public final String metricNameAsString()
The name of the resource utilization metric name to customize.
Compute Optimizer only supports
CpuUtilization.If the service returns an enum value that is not available in the current SDK version,
metricNamewill returnCustomizableMetricName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommetricNameAsString().- Returns:
- The name of the resource utilization metric name to customize.
Compute Optimizer only supports
CpuUtilization. - See Also:
CustomizableMetricName
-
metricParameters
public final CustomizableMetricParameters metricParameters()
The parameters to set when customizing the resource utilization thresholds.
- Returns:
- The parameters to set when customizing the resource utilization thresholds.
-
toBuilder
public UtilizationPreference.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<UtilizationPreference.Builder,UtilizationPreference>
-
builder
public static UtilizationPreference.Builder builder()
-
serializableBuilderClass
public static Class<? extends UtilizationPreference.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-