@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PerformanceInsightsMetric extends Object implements Serializable, Cloneable, StructuredPojo
This data type helps to determine Performance Insights metric to render for the insight.
Constructor and Description |
---|
PerformanceInsightsMetric() |
Modifier and Type | Method and Description |
---|---|
PerformanceInsightsMetric |
addDimensionsEntry(String key,
String value)
Add a single Dimensions entry
|
PerformanceInsightsMetric |
clearDimensionsEntries()
Removes all the entries added into Dimensions.
|
PerformanceInsightsMetric |
clone() |
boolean |
equals(Object obj) |
Map<String,String> |
getDimensions()
A dimension map that contains the dimensions for this partition.
|
String |
getDisplayName()
The Performance Insights metric name.
|
String |
getMetric()
The Performance Insights metric.
|
Double |
getValue()
The value of the metric.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDimensions(Map<String,String> dimensions)
A dimension map that contains the dimensions for this partition.
|
void |
setDisplayName(String displayName)
The Performance Insights metric name.
|
void |
setMetric(String metric)
The Performance Insights metric.
|
void |
setValue(Double value)
The value of the metric.
|
String |
toString()
Returns a string representation of this object.
|
PerformanceInsightsMetric |
withDimensions(Map<String,String> dimensions)
A dimension map that contains the dimensions for this partition.
|
PerformanceInsightsMetric |
withDisplayName(String displayName)
The Performance Insights metric name.
|
PerformanceInsightsMetric |
withMetric(String metric)
The Performance Insights metric.
|
PerformanceInsightsMetric |
withValue(Double value)
The value of the metric.
|
public void setMetric(String metric)
The Performance Insights metric.
metric
- The Performance Insights metric.public String getMetric()
The Performance Insights metric.
public PerformanceInsightsMetric withMetric(String metric)
The Performance Insights metric.
metric
- The Performance Insights metric.public void setDisplayName(String displayName)
The Performance Insights metric name.
displayName
- The Performance Insights metric name.public String getDisplayName()
The Performance Insights metric name.
public PerformanceInsightsMetric withDisplayName(String displayName)
The Performance Insights metric name.
displayName
- The Performance Insights metric name.public Map<String,String> getDimensions()
A dimension map that contains the dimensions for this partition.
public void setDimensions(Map<String,String> dimensions)
A dimension map that contains the dimensions for this partition.
dimensions
- A dimension map that contains the dimensions for this partition.public PerformanceInsightsMetric withDimensions(Map<String,String> dimensions)
A dimension map that contains the dimensions for this partition.
dimensions
- A dimension map that contains the dimensions for this partition.public PerformanceInsightsMetric addDimensionsEntry(String key, String value)
public PerformanceInsightsMetric clearDimensionsEntries()
public void setValue(Double value)
The value of the metric. For example, 9
for db.load.avg
.
value
- The value of the metric. For example, 9
for db.load.avg
.public Double getValue()
The value of the metric. For example, 9
for db.load.avg
.
9
for db.load.avg
.public PerformanceInsightsMetric withValue(Double value)
The value of the metric. For example, 9
for db.load.avg
.
value
- The value of the metric. For example, 9
for db.load.avg
.public String toString()
toString
in class Object
Object.toString()
public PerformanceInsightsMetric clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.