@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetInstanceMetricDataRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
GetInstanceMetricDataRequest() |
Modifier and Type | Method and Description |
---|---|
GetInstanceMetricDataRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Date |
getEndTime()
The end time of the time period.
|
String |
getInstanceName()
The name of the instance for which you want to get metrics data.
|
String |
getMetricName()
The metric name to get data about.
|
Integer |
getPeriod()
The time period for which you are requesting data.
|
Date |
getStartTime()
The start time of the time period.
|
List<String> |
getStatistics()
The instance statistics.
|
String |
getUnit()
The unit.
|
int |
hashCode() |
void |
setEndTime(Date endTime)
The end time of the time period.
|
void |
setInstanceName(String instanceName)
The name of the instance for which you want to get metrics data.
|
void |
setMetricName(InstanceMetricName metricName)
The metric name to get data about.
|
void |
setMetricName(String metricName)
The metric name to get data about.
|
void |
setPeriod(Integer period)
The time period for which you are requesting data.
|
void |
setStartTime(Date startTime)
The start time of the time period.
|
void |
setStatistics(Collection<String> statistics)
The instance statistics.
|
void |
setUnit(MetricUnit unit)
The unit.
|
void |
setUnit(String unit)
The unit.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
GetInstanceMetricDataRequest |
withEndTime(Date endTime)
The end time of the time period.
|
GetInstanceMetricDataRequest |
withInstanceName(String instanceName)
The name of the instance for which you want to get metrics data.
|
GetInstanceMetricDataRequest |
withMetricName(InstanceMetricName metricName)
The metric name to get data about.
|
GetInstanceMetricDataRequest |
withMetricName(String metricName)
The metric name to get data about.
|
GetInstanceMetricDataRequest |
withPeriod(Integer period)
The time period for which you are requesting data.
|
GetInstanceMetricDataRequest |
withStartTime(Date startTime)
The start time of the time period.
|
GetInstanceMetricDataRequest |
withStatistics(Collection<String> statistics)
The instance statistics.
|
GetInstanceMetricDataRequest |
withStatistics(MetricStatistic... statistics)
The instance statistics.
|
GetInstanceMetricDataRequest |
withStatistics(String... statistics)
The instance statistics.
|
GetInstanceMetricDataRequest |
withUnit(MetricUnit unit)
The unit.
|
GetInstanceMetricDataRequest |
withUnit(String unit)
The unit.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setInstanceName(String instanceName)
The name of the instance for which you want to get metrics data.
instanceName
- The name of the instance for which you want to get metrics data.public String getInstanceName()
The name of the instance for which you want to get metrics data.
public GetInstanceMetricDataRequest withInstanceName(String instanceName)
The name of the instance for which you want to get metrics data.
instanceName
- The name of the instance for which you want to get metrics data.public void setMetricName(String metricName)
The metric name to get data about.
metricName
- The metric name to get data about.InstanceMetricName
public String getMetricName()
The metric name to get data about.
InstanceMetricName
public GetInstanceMetricDataRequest withMetricName(String metricName)
The metric name to get data about.
metricName
- The metric name to get data about.InstanceMetricName
public void setMetricName(InstanceMetricName metricName)
The metric name to get data about.
metricName
- The metric name to get data about.InstanceMetricName
public GetInstanceMetricDataRequest withMetricName(InstanceMetricName metricName)
The metric name to get data about.
metricName
- The metric name to get data about.InstanceMetricName
public void setPeriod(Integer period)
The time period for which you are requesting data.
period
- The time period for which you are requesting data.public Integer getPeriod()
The time period for which you are requesting data.
public GetInstanceMetricDataRequest withPeriod(Integer period)
The time period for which you are requesting data.
period
- The time period for which you are requesting data.public void setStartTime(Date startTime)
The start time of the time period.
startTime
- The start time of the time period.public Date getStartTime()
The start time of the time period.
public GetInstanceMetricDataRequest withStartTime(Date startTime)
The start time of the time period.
startTime
- The start time of the time period.public void setEndTime(Date endTime)
The end time of the time period.
endTime
- The end time of the time period.public Date getEndTime()
The end time of the time period.
public GetInstanceMetricDataRequest withEndTime(Date endTime)
The end time of the time period.
endTime
- The end time of the time period.public void setUnit(String unit)
The unit. The list of valid values is below.
unit
- The unit. The list of valid values is below.MetricUnit
public String getUnit()
The unit. The list of valid values is below.
MetricUnit
public GetInstanceMetricDataRequest withUnit(String unit)
The unit. The list of valid values is below.
unit
- The unit. The list of valid values is below.MetricUnit
public void setUnit(MetricUnit unit)
The unit. The list of valid values is below.
unit
- The unit. The list of valid values is below.MetricUnit
public GetInstanceMetricDataRequest withUnit(MetricUnit unit)
The unit. The list of valid values is below.
unit
- The unit. The list of valid values is below.MetricUnit
public List<String> getStatistics()
The instance statistics.
MetricStatistic
public void setStatistics(Collection<String> statistics)
The instance statistics.
statistics
- The instance statistics.MetricStatistic
public GetInstanceMetricDataRequest withStatistics(String... statistics)
The instance statistics.
NOTE: This method appends the values to the existing list (if any). Use
setStatistics(java.util.Collection)
or withStatistics(java.util.Collection)
if you want to
override the existing values.
statistics
- The instance statistics.MetricStatistic
public GetInstanceMetricDataRequest withStatistics(Collection<String> statistics)
The instance statistics.
statistics
- The instance statistics.MetricStatistic
public GetInstanceMetricDataRequest withStatistics(MetricStatistic... statistics)
The instance statistics.
statistics
- The instance statistics.MetricStatistic
public String toString()
toString
in class Object
Object.toString()
public GetInstanceMetricDataRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.