@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResponseResourceMetric extends Object implements Serializable, Cloneable, StructuredPojo
An object that contains the full name, description, and unit of a metric.
Constructor and Description |
---|
ResponseResourceMetric() |
Modifier and Type | Method and Description |
---|---|
ResponseResourceMetric |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
The description of the metric.
|
String |
getMetric()
The full name of the metric.
|
String |
getUnit()
The unit of the metric.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDescription(String description)
The description of the metric.
|
void |
setMetric(String metric)
The full name of the metric.
|
void |
setUnit(String unit)
The unit of the metric.
|
String |
toString()
Returns a string representation of this object.
|
ResponseResourceMetric |
withDescription(String description)
The description of the metric.
|
ResponseResourceMetric |
withMetric(String metric)
The full name of the metric.
|
ResponseResourceMetric |
withUnit(String unit)
The unit of the metric.
|
public void setMetric(String metric)
The full name of the metric.
metric
- The full name of the metric.public String getMetric()
The full name of the metric.
public ResponseResourceMetric withMetric(String metric)
The full name of the metric.
metric
- The full name of the metric.public void setDescription(String description)
The description of the metric.
description
- The description of the metric.public String getDescription()
The description of the metric.
public ResponseResourceMetric withDescription(String description)
The description of the metric.
description
- The description of the metric.public void setUnit(String unit)
The unit of the metric.
unit
- The unit of the metric.public String getUnit()
The unit of the metric.
public ResponseResourceMetric withUnit(String unit)
The unit of the metric.
unit
- The unit of the metric.public String toString()
toString
in class Object
Object.toString()
public ResponseResourceMetric clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.