@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ExternalMetricsPreference extends Object implements Serializable, Cloneable, StructuredPojo
Describes the external metrics preferences for EC2 rightsizing recommendations.
| Constructor and Description |
|---|
ExternalMetricsPreference() |
| Modifier and Type | Method and Description |
|---|---|
ExternalMetricsPreference |
clone() |
boolean |
equals(Object obj) |
String |
getSource()
Contains the source options for external metrics preferences.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setSource(String source)
Contains the source options for external metrics preferences.
|
String |
toString()
Returns a string representation of this object.
|
ExternalMetricsPreference |
withSource(ExternalMetricsSource source)
Contains the source options for external metrics preferences.
|
ExternalMetricsPreference |
withSource(String source)
Contains the source options for external metrics preferences.
|
public void setSource(String source)
Contains the source options for external metrics preferences.
source - Contains the source options for external metrics preferences.ExternalMetricsSourcepublic String getSource()
Contains the source options for external metrics preferences.
ExternalMetricsSourcepublic ExternalMetricsPreference withSource(String source)
Contains the source options for external metrics preferences.
source - Contains the source options for external metrics preferences.ExternalMetricsSourcepublic ExternalMetricsPreference withSource(ExternalMetricsSource source)
Contains the source options for external metrics preferences.
source - Contains the source options for external metrics preferences.ExternalMetricsSourcepublic String toString()
toString in class ObjectObject.toString()public ExternalMetricsPreference clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.