@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UtilizationPreference extends Object implements Serializable, Cloneable, StructuredPojo
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.
| Constructor and Description |
|---|
UtilizationPreference() |
| Modifier and Type | Method and Description |
|---|---|
UtilizationPreference |
clone() |
boolean |
equals(Object obj) |
String |
getMetricName()
The name of the resource utilization metric name to customize.
|
CustomizableMetricParameters |
getMetricParameters()
The parameters to set when customizing the resource utilization thresholds.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setMetricName(String metricName)
The name of the resource utilization metric name to customize.
|
void |
setMetricParameters(CustomizableMetricParameters metricParameters)
The parameters to set when customizing the resource utilization thresholds.
|
String |
toString()
Returns a string representation of this object.
|
UtilizationPreference |
withMetricName(CustomizableMetricName metricName)
The name of the resource utilization metric name to customize.
|
UtilizationPreference |
withMetricName(String metricName)
The name of the resource utilization metric name to customize.
|
UtilizationPreference |
withMetricParameters(CustomizableMetricParameters metricParameters)
The parameters to set when customizing the resource utilization thresholds.
|
public void setMetricName(String metricName)
The name of the resource utilization metric name to customize.
metricName - The name of the resource utilization metric name to customize.CustomizableMetricNamepublic String getMetricName()
The name of the resource utilization metric name to customize.
CustomizableMetricNamepublic UtilizationPreference withMetricName(String metricName)
The name of the resource utilization metric name to customize.
metricName - The name of the resource utilization metric name to customize.CustomizableMetricNamepublic UtilizationPreference withMetricName(CustomizableMetricName metricName)
The name of the resource utilization metric name to customize.
metricName - The name of the resource utilization metric name to customize.CustomizableMetricNamepublic void setMetricParameters(CustomizableMetricParameters metricParameters)
The parameters to set when customizing the resource utilization thresholds.
metricParameters - The parameters to set when customizing the resource utilization thresholds.public CustomizableMetricParameters getMetricParameters()
The parameters to set when customizing the resource utilization thresholds.
public UtilizationPreference withMetricParameters(CustomizableMetricParameters metricParameters)
The parameters to set when customizing the resource utilization thresholds.
metricParameters - The parameters to set when customizing the resource utilization thresholds.public String toString()
toString in class ObjectObject.toString()public UtilizationPreference clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.