@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetResourceMetricsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetResourceMetricsResult() |
Modifier and Type | Method and Description |
---|---|
GetResourceMetricsResult |
clone() |
boolean |
equals(Object obj) |
Date |
getAlignedEndTime()
The end time for the returned metrics, after alignment to a granular boundary (as specified by
PeriodInSeconds ). |
Date |
getAlignedStartTime()
The start time for the returned metrics, after alignment to a granular boundary (as specified by
PeriodInSeconds ). |
String |
getIdentifier()
An immutable, AWS Region-unique identifier for a data source.
|
List<MetricKeyDataPoints> |
getMetricList()
An array of metric results,, where each array element contains all of the data points for a particular dimension.
|
String |
getNextToken()
An optional pagination token provided by a previous request.
|
int |
hashCode() |
void |
setAlignedEndTime(Date alignedEndTime)
The end time for the returned metrics, after alignment to a granular boundary (as specified by
PeriodInSeconds ). |
void |
setAlignedStartTime(Date alignedStartTime)
The start time for the returned metrics, after alignment to a granular boundary (as specified by
PeriodInSeconds ). |
void |
setIdentifier(String identifier)
An immutable, AWS Region-unique identifier for a data source.
|
void |
setMetricList(Collection<MetricKeyDataPoints> metricList)
An array of metric results,, where each array element contains all of the data points for a particular dimension.
|
void |
setNextToken(String nextToken)
An optional pagination token provided by a previous request.
|
String |
toString()
Returns a string representation of this object.
|
GetResourceMetricsResult |
withAlignedEndTime(Date alignedEndTime)
The end time for the returned metrics, after alignment to a granular boundary (as specified by
PeriodInSeconds ). |
GetResourceMetricsResult |
withAlignedStartTime(Date alignedStartTime)
The start time for the returned metrics, after alignment to a granular boundary (as specified by
PeriodInSeconds ). |
GetResourceMetricsResult |
withIdentifier(String identifier)
An immutable, AWS Region-unique identifier for a data source.
|
GetResourceMetricsResult |
withMetricList(Collection<MetricKeyDataPoints> metricList)
An array of metric results,, where each array element contains all of the data points for a particular dimension.
|
GetResourceMetricsResult |
withMetricList(MetricKeyDataPoints... metricList)
An array of metric results,, where each array element contains all of the data points for a particular dimension.
|
GetResourceMetricsResult |
withNextToken(String nextToken)
An optional pagination token provided by a previous request.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setAlignedStartTime(Date alignedStartTime)
The start time for the returned metrics, after alignment to a granular boundary (as specified by
PeriodInSeconds
). AlignedStartTime
will be less than or equal to the value of the
user-specified StartTime
.
alignedStartTime
- The start time for the returned metrics, after alignment to a granular boundary (as specified by
PeriodInSeconds
). AlignedStartTime
will be less than or equal to the value of
the user-specified StartTime
.public Date getAlignedStartTime()
The start time for the returned metrics, after alignment to a granular boundary (as specified by
PeriodInSeconds
). AlignedStartTime
will be less than or equal to the value of the
user-specified StartTime
.
PeriodInSeconds
). AlignedStartTime
will be less than or equal to the value of
the user-specified StartTime
.public GetResourceMetricsResult withAlignedStartTime(Date alignedStartTime)
The start time for the returned metrics, after alignment to a granular boundary (as specified by
PeriodInSeconds
). AlignedStartTime
will be less than or equal to the value of the
user-specified StartTime
.
alignedStartTime
- The start time for the returned metrics, after alignment to a granular boundary (as specified by
PeriodInSeconds
). AlignedStartTime
will be less than or equal to the value of
the user-specified StartTime
.public void setAlignedEndTime(Date alignedEndTime)
The end time for the returned metrics, after alignment to a granular boundary (as specified by
PeriodInSeconds
). AlignedEndTime
will be greater than or equal to the value of the
user-specified Endtime
.
alignedEndTime
- The end time for the returned metrics, after alignment to a granular boundary (as specified by
PeriodInSeconds
). AlignedEndTime
will be greater than or equal to the value of
the user-specified Endtime
.public Date getAlignedEndTime()
The end time for the returned metrics, after alignment to a granular boundary (as specified by
PeriodInSeconds
). AlignedEndTime
will be greater than or equal to the value of the
user-specified Endtime
.
PeriodInSeconds
). AlignedEndTime
will be greater than or equal to the value of
the user-specified Endtime
.public GetResourceMetricsResult withAlignedEndTime(Date alignedEndTime)
The end time for the returned metrics, after alignment to a granular boundary (as specified by
PeriodInSeconds
). AlignedEndTime
will be greater than or equal to the value of the
user-specified Endtime
.
alignedEndTime
- The end time for the returned metrics, after alignment to a granular boundary (as specified by
PeriodInSeconds
). AlignedEndTime
will be greater than or equal to the value of
the user-specified Endtime
.public void setIdentifier(String identifier)
An immutable, AWS Region-unique identifier for a data source. Performance Insights gathers metrics from this data source.
To use an Amazon RDS instance as a data source, you specify its DbiResourceId
value - for example:
db-FAIHNTYBKTGAUSUZQYPDS2GW4A
identifier
- An immutable, AWS Region-unique identifier for a data source. Performance Insights gathers metrics from
this data source.
To use an Amazon RDS instance as a data source, you specify its DbiResourceId
value - for
example: db-FAIHNTYBKTGAUSUZQYPDS2GW4A
public String getIdentifier()
An immutable, AWS Region-unique identifier for a data source. Performance Insights gathers metrics from this data source.
To use an Amazon RDS instance as a data source, you specify its DbiResourceId
value - for example:
db-FAIHNTYBKTGAUSUZQYPDS2GW4A
To use an Amazon RDS instance as a data source, you specify its DbiResourceId
value - for
example: db-FAIHNTYBKTGAUSUZQYPDS2GW4A
public GetResourceMetricsResult withIdentifier(String identifier)
An immutable, AWS Region-unique identifier for a data source. Performance Insights gathers metrics from this data source.
To use an Amazon RDS instance as a data source, you specify its DbiResourceId
value - for example:
db-FAIHNTYBKTGAUSUZQYPDS2GW4A
identifier
- An immutable, AWS Region-unique identifier for a data source. Performance Insights gathers metrics from
this data source.
To use an Amazon RDS instance as a data source, you specify its DbiResourceId
value - for
example: db-FAIHNTYBKTGAUSUZQYPDS2GW4A
public List<MetricKeyDataPoints> getMetricList()
An array of metric results,, where each array element contains all of the data points for a particular dimension.
public void setMetricList(Collection<MetricKeyDataPoints> metricList)
An array of metric results,, where each array element contains all of the data points for a particular dimension.
metricList
- An array of metric results,, where each array element contains all of the data points for a particular
dimension.public GetResourceMetricsResult withMetricList(MetricKeyDataPoints... metricList)
An array of metric results,, where each array element contains all of the data points for a particular dimension.
NOTE: This method appends the values to the existing list (if any). Use
setMetricList(java.util.Collection)
or withMetricList(java.util.Collection)
if you want to
override the existing values.
metricList
- An array of metric results,, where each array element contains all of the data points for a particular
dimension.public GetResourceMetricsResult withMetricList(Collection<MetricKeyDataPoints> metricList)
An array of metric results,, where each array element contains all of the data points for a particular dimension.
metricList
- An array of metric results,, where each array element contains all of the data points for a particular
dimension.public void setNextToken(String nextToken)
An optional pagination token provided by a previous request. If this parameter is specified, the response
includes only records beyond the token, up to the value specified by MaxRecords
.
nextToken
- An optional pagination token provided by a previous request. If this parameter is specified, the response
includes only records beyond the token, up to the value specified by MaxRecords
.public String getNextToken()
An optional pagination token provided by a previous request. If this parameter is specified, the response
includes only records beyond the token, up to the value specified by MaxRecords
.
MaxRecords
.public GetResourceMetricsResult withNextToken(String nextToken)
An optional pagination token provided by a previous request. If this parameter is specified, the response
includes only records beyond the token, up to the value specified by MaxRecords
.
nextToken
- An optional pagination token provided by a previous request. If this parameter is specified, the response
includes only records beyond the token, up to the value specified by MaxRecords
.public String toString()
toString
in class Object
Object.toString()
public GetResourceMetricsResult clone()