@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.ExternalMetricsSource
public String getSource()
Contains the source options for external metrics preferences.
ExternalMetricsSource
public ExternalMetricsPreference withSource(String source)
Contains the source options for external metrics preferences.
source
- Contains the source options for external metrics preferences.ExternalMetricsSource
public ExternalMetricsPreference withSource(ExternalMetricsSource source)
Contains the source options for external metrics preferences.
source
- Contains the source options for external metrics preferences.ExternalMetricsSource
public String toString()
toString
in class Object
Object.toString()
public ExternalMetricsPreference clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.