Class CustomizableMetricParameters
- java.lang.Object
-
- software.amazon.awssdk.services.computeoptimizer.model.CustomizableMetricParameters
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CustomizableMetricParameters.Builder,CustomizableMetricParameters>
@Generated("software.amazon.awssdk:codegen") public final class CustomizableMetricParameters extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CustomizableMetricParameters.Builder,CustomizableMetricParameters>
Defines the various metric parameters that can be customized, such as threshold and headroom.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCustomizableMetricParameters.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CustomizableMetricParameters.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()CustomizableMetricHeadroomheadroom()The headroom value in percentage used for the specified metric parameter.StringheadroomAsString()The headroom value in percentage used for the specified metric parameter.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends CustomizableMetricParameters.Builder>serializableBuilderClass()CustomizableMetricThresholdthreshold()The threshold value used for the specified metric parameter.StringthresholdAsString()The threshold value used for the specified metric parameter.CustomizableMetricParameters.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
-
threshold
public final CustomizableMetricThreshold threshold()
The threshold value used for the specified metric parameter.
You can only specify the threshold value for CPU utilization.
If the service returns an enum value that is not available in the current SDK version,
thresholdwill returnCustomizableMetricThreshold.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromthresholdAsString().- Returns:
- The threshold value used for the specified metric parameter.
You can only specify the threshold value for CPU utilization.
- See Also:
CustomizableMetricThreshold
-
thresholdAsString
public final String thresholdAsString()
The threshold value used for the specified metric parameter.
You can only specify the threshold value for CPU utilization.
If the service returns an enum value that is not available in the current SDK version,
thresholdwill returnCustomizableMetricThreshold.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromthresholdAsString().- Returns:
- The threshold value used for the specified metric parameter.
You can only specify the threshold value for CPU utilization.
- See Also:
CustomizableMetricThreshold
-
headroom
public final CustomizableMetricHeadroom headroom()
The headroom value in percentage used for the specified metric parameter.
The following lists the valid values for CPU and memory utilization.
-
CPU utilization:
PERCENT_30 | PERCENT_20 | PERCENT_0 -
Memory utilization:
PERCENT_30 | PERCENT_20 | PERCENT_10
If the service returns an enum value that is not available in the current SDK version,
headroomwill returnCustomizableMetricHeadroom.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromheadroomAsString().- Returns:
- The headroom value in percentage used for the specified metric parameter.
The following lists the valid values for CPU and memory utilization.
-
CPU utilization:
PERCENT_30 | PERCENT_20 | PERCENT_0 -
Memory utilization:
PERCENT_30 | PERCENT_20 | PERCENT_10
-
- See Also:
CustomizableMetricHeadroom
-
-
headroomAsString
public final String headroomAsString()
The headroom value in percentage used for the specified metric parameter.
The following lists the valid values for CPU and memory utilization.
-
CPU utilization:
PERCENT_30 | PERCENT_20 | PERCENT_0 -
Memory utilization:
PERCENT_30 | PERCENT_20 | PERCENT_10
If the service returns an enum value that is not available in the current SDK version,
headroomwill returnCustomizableMetricHeadroom.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromheadroomAsString().- Returns:
- The headroom value in percentage used for the specified metric parameter.
The following lists the valid values for CPU and memory utilization.
-
CPU utilization:
PERCENT_30 | PERCENT_20 | PERCENT_0 -
Memory utilization:
PERCENT_30 | PERCENT_20 | PERCENT_10
-
- See Also:
CustomizableMetricHeadroom
-
-
toBuilder
public CustomizableMetricParameters.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CustomizableMetricParameters.Builder,CustomizableMetricParameters>
-
builder
public static CustomizableMetricParameters.Builder builder()
-
serializableBuilderClass
public static Class<? extends CustomizableMetricParameters.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-