@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ConsolidatedReportMetric extends Object implements Serializable, Cloneable, StructuredPojo
A metric that contributes to the consolidated report.
Constructor and Description |
---|
ConsolidatedReportMetric() |
Modifier and Type | Method and Description |
---|---|
ConsolidatedReportMetric |
addRiskCountsEntry(String key,
Integer value)
Add a single RiskCounts entry
|
ConsolidatedReportMetric |
clearRiskCountsEntries()
Removes all the entries added into RiskCounts.
|
ConsolidatedReportMetric |
clone() |
boolean |
equals(Object obj) |
List<LensMetric> |
getLenses()
The metrics for the lenses in the workload.
|
Integer |
getLensesAppliedCount()
The total number of lenses applied to the workload.
|
String |
getMetricType()
The metric type of a metric in the consolidated report.
|
Map<String,Integer> |
getRiskCounts() |
Date |
getUpdatedAt() |
String |
getWorkloadArn() |
String |
getWorkloadId() |
String |
getWorkloadName() |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setLenses(Collection<LensMetric> lenses)
The metrics for the lenses in the workload.
|
void |
setLensesAppliedCount(Integer lensesAppliedCount)
The total number of lenses applied to the workload.
|
void |
setMetricType(String metricType)
The metric type of a metric in the consolidated report.
|
void |
setRiskCounts(Map<String,Integer> riskCounts) |
void |
setUpdatedAt(Date updatedAt) |
void |
setWorkloadArn(String workloadArn) |
void |
setWorkloadId(String workloadId) |
void |
setWorkloadName(String workloadName) |
String |
toString()
Returns a string representation of this object.
|
ConsolidatedReportMetric |
withLenses(Collection<LensMetric> lenses)
The metrics for the lenses in the workload.
|
ConsolidatedReportMetric |
withLenses(LensMetric... lenses)
The metrics for the lenses in the workload.
|
ConsolidatedReportMetric |
withLensesAppliedCount(Integer lensesAppliedCount)
The total number of lenses applied to the workload.
|
ConsolidatedReportMetric |
withMetricType(MetricType metricType)
The metric type of a metric in the consolidated report.
|
ConsolidatedReportMetric |
withMetricType(String metricType)
The metric type of a metric in the consolidated report.
|
ConsolidatedReportMetric |
withRiskCounts(Map<String,Integer> riskCounts) |
ConsolidatedReportMetric |
withUpdatedAt(Date updatedAt) |
ConsolidatedReportMetric |
withWorkloadArn(String workloadArn) |
ConsolidatedReportMetric |
withWorkloadId(String workloadId) |
ConsolidatedReportMetric |
withWorkloadName(String workloadName) |
public void setMetricType(String metricType)
The metric type of a metric in the consolidated report. Currently only WORKLOAD metric types are supported.
metricType
- The metric type of a metric in the consolidated report. Currently only WORKLOAD metric types are
supported.MetricType
public String getMetricType()
The metric type of a metric in the consolidated report. Currently only WORKLOAD metric types are supported.
MetricType
public ConsolidatedReportMetric withMetricType(String metricType)
The metric type of a metric in the consolidated report. Currently only WORKLOAD metric types are supported.
metricType
- The metric type of a metric in the consolidated report. Currently only WORKLOAD metric types are
supported.MetricType
public ConsolidatedReportMetric withMetricType(MetricType metricType)
The metric type of a metric in the consolidated report. Currently only WORKLOAD metric types are supported.
metricType
- The metric type of a metric in the consolidated report. Currently only WORKLOAD metric types are
supported.MetricType
public ConsolidatedReportMetric withRiskCounts(Map<String,Integer> riskCounts)
riskCounts
- public ConsolidatedReportMetric addRiskCountsEntry(String key, Integer value)
public ConsolidatedReportMetric clearRiskCountsEntries()
public void setWorkloadId(String workloadId)
workloadId
- public String getWorkloadId()
public ConsolidatedReportMetric withWorkloadId(String workloadId)
workloadId
- public void setWorkloadName(String workloadName)
workloadName
- public String getWorkloadName()
public ConsolidatedReportMetric withWorkloadName(String workloadName)
workloadName
- public void setWorkloadArn(String workloadArn)
workloadArn
- public String getWorkloadArn()
public ConsolidatedReportMetric withWorkloadArn(String workloadArn)
workloadArn
- public void setUpdatedAt(Date updatedAt)
updatedAt
- public Date getUpdatedAt()
public ConsolidatedReportMetric withUpdatedAt(Date updatedAt)
updatedAt
- public List<LensMetric> getLenses()
The metrics for the lenses in the workload.
public void setLenses(Collection<LensMetric> lenses)
The metrics for the lenses in the workload.
lenses
- The metrics for the lenses in the workload.public ConsolidatedReportMetric withLenses(LensMetric... lenses)
The metrics for the lenses in the workload.
NOTE: This method appends the values to the existing list (if any). Use
setLenses(java.util.Collection)
or withLenses(java.util.Collection)
if you want to override the
existing values.
lenses
- The metrics for the lenses in the workload.public ConsolidatedReportMetric withLenses(Collection<LensMetric> lenses)
The metrics for the lenses in the workload.
lenses
- The metrics for the lenses in the workload.public void setLensesAppliedCount(Integer lensesAppliedCount)
The total number of lenses applied to the workload.
lensesAppliedCount
- The total number of lenses applied to the workload.public Integer getLensesAppliedCount()
The total number of lenses applied to the workload.
public ConsolidatedReportMetric withLensesAppliedCount(Integer lensesAppliedCount)
The total number of lenses applied to the workload.
lensesAppliedCount
- The total number of lenses applied to the workload.public String toString()
toString
in class Object
Object.toString()
public ConsolidatedReportMetric clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.