@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LensMetric extends Object implements Serializable, Cloneable, StructuredPojo
A metric for a particular lens in a workload.
| Constructor and Description |
|---|
LensMetric() |
| Modifier and Type | Method and Description |
|---|---|
LensMetric |
addRiskCountsEntry(String key,
Integer value)
Add a single RiskCounts entry
|
LensMetric |
clearRiskCountsEntries()
Removes all the entries added into RiskCounts.
|
LensMetric |
clone() |
boolean |
equals(Object obj) |
String |
getLensArn()
The lens ARN.
|
List<PillarMetric> |
getPillars()
The metrics for the pillars in a lens.
|
Map<String,Integer> |
getRiskCounts() |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setLensArn(String lensArn)
The lens ARN.
|
void |
setPillars(Collection<PillarMetric> pillars)
The metrics for the pillars in a lens.
|
void |
setRiskCounts(Map<String,Integer> riskCounts) |
String |
toString()
Returns a string representation of this object.
|
LensMetric |
withLensArn(String lensArn)
The lens ARN.
|
LensMetric |
withPillars(Collection<PillarMetric> pillars)
The metrics for the pillars in a lens.
|
LensMetric |
withPillars(PillarMetric... pillars)
The metrics for the pillars in a lens.
|
LensMetric |
withRiskCounts(Map<String,Integer> riskCounts) |
public void setLensArn(String lensArn)
The lens ARN.
lensArn - The lens ARN.public String getLensArn()
The lens ARN.
public LensMetric withLensArn(String lensArn)
The lens ARN.
lensArn - The lens ARN.public List<PillarMetric> getPillars()
The metrics for the pillars in a lens.
public void setPillars(Collection<PillarMetric> pillars)
The metrics for the pillars in a lens.
pillars - The metrics for the pillars in a lens.public LensMetric withPillars(PillarMetric... pillars)
The metrics for the pillars in a lens.
NOTE: This method appends the values to the existing list (if any). Use
setPillars(java.util.Collection) or withPillars(java.util.Collection) if you want to override
the existing values.
pillars - The metrics for the pillars in a lens.public LensMetric withPillars(Collection<PillarMetric> pillars)
The metrics for the pillars in a lens.
pillars - The metrics for the pillars in a lens.public LensMetric withRiskCounts(Map<String,Integer> riskCounts)
riskCounts - public LensMetric addRiskCountsEntry(String key, Integer value)
public LensMetric clearRiskCountsEntries()
public String toString()
toString in class ObjectObject.toString()public LensMetric clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.