@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetInstanceMetricDataResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetInstanceMetricDataResult() |
Modifier and Type | Method and Description |
---|---|
GetInstanceMetricDataResult |
clone() |
boolean |
equals(Object obj) |
List<MetricDatapoint> |
getMetricData()
An array of key-value pairs containing information about the results of your get instance metric data request.
|
String |
getMetricName()
The metric name to return data for.
|
int |
hashCode() |
void |
setMetricData(Collection<MetricDatapoint> metricData)
An array of key-value pairs containing information about the results of your get instance metric data request.
|
void |
setMetricName(InstanceMetricName metricName)
The metric name to return data for.
|
void |
setMetricName(String metricName)
The metric name to return data for.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
GetInstanceMetricDataResult |
withMetricData(Collection<MetricDatapoint> metricData)
An array of key-value pairs containing information about the results of your get instance metric data request.
|
GetInstanceMetricDataResult |
withMetricData(MetricDatapoint... metricData)
An array of key-value pairs containing information about the results of your get instance metric data request.
|
GetInstanceMetricDataResult |
withMetricName(InstanceMetricName metricName)
The metric name to return data for.
|
GetInstanceMetricDataResult |
withMetricName(String metricName)
The metric name to return data for.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setMetricName(String metricName)
The metric name to return data for.
metricName
- The metric name to return data for.InstanceMetricName
public String getMetricName()
The metric name to return data for.
InstanceMetricName
public GetInstanceMetricDataResult withMetricName(String metricName)
The metric name to return data for.
metricName
- The metric name to return data for.InstanceMetricName
public void setMetricName(InstanceMetricName metricName)
The metric name to return data for.
metricName
- The metric name to return data for.InstanceMetricName
public GetInstanceMetricDataResult withMetricName(InstanceMetricName metricName)
The metric name to return data for.
metricName
- The metric name to return data for.InstanceMetricName
public List<MetricDatapoint> getMetricData()
An array of key-value pairs containing information about the results of your get instance metric data request.
public void setMetricData(Collection<MetricDatapoint> metricData)
An array of key-value pairs containing information about the results of your get instance metric data request.
metricData
- An array of key-value pairs containing information about the results of your get instance metric data
request.public GetInstanceMetricDataResult withMetricData(MetricDatapoint... metricData)
An array of key-value pairs containing information about the results of your get instance metric data request.
NOTE: This method appends the values to the existing list (if any). Use
setMetricData(java.util.Collection)
or withMetricData(java.util.Collection)
if you want to
override the existing values.
metricData
- An array of key-value pairs containing information about the results of your get instance metric data
request.public GetInstanceMetricDataResult withMetricData(Collection<MetricDatapoint> metricData)
An array of key-value pairs containing information about the results of your get instance metric data request.
metricData
- An array of key-value pairs containing information about the results of your get instance metric data
request.public String toString()
toString
in class Object
Object.toString()
public GetInstanceMetricDataResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.