@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MetricToRetain extends Object implements Serializable, Cloneable, StructuredPojo
The metric you want to retain. Dimensions are optional.
| Constructor and Description |
|---|
MetricToRetain() |
| Modifier and Type | Method and Description |
|---|---|
MetricToRetain |
clone() |
boolean |
equals(Object obj) |
Boolean |
getExportMetric()
Value added in both Behavior and AdditionalMetricsToRetainV2 to indicate if Device Defender Detect should export
the corresponding metrics.
|
String |
getMetric()
What is measured by the behavior.
|
MetricDimension |
getMetricDimension()
The dimension of a metric.
|
int |
hashCode() |
Boolean |
isExportMetric()
Value added in both Behavior and AdditionalMetricsToRetainV2 to indicate if Device Defender Detect should export
the corresponding metrics.
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setExportMetric(Boolean exportMetric)
Value added in both Behavior and AdditionalMetricsToRetainV2 to indicate if Device Defender Detect should export
the corresponding metrics.
|
void |
setMetric(String metric)
What is measured by the behavior.
|
void |
setMetricDimension(MetricDimension metricDimension)
The dimension of a metric.
|
String |
toString()
Returns a string representation of this object.
|
MetricToRetain |
withExportMetric(Boolean exportMetric)
Value added in both Behavior and AdditionalMetricsToRetainV2 to indicate if Device Defender Detect should export
the corresponding metrics.
|
MetricToRetain |
withMetric(String metric)
What is measured by the behavior.
|
MetricToRetain |
withMetricDimension(MetricDimension metricDimension)
The dimension of a metric.
|
public void setMetric(String metric)
What is measured by the behavior.
metric - What is measured by the behavior.public String getMetric()
What is measured by the behavior.
public MetricToRetain withMetric(String metric)
What is measured by the behavior.
metric - What is measured by the behavior.public void setMetricDimension(MetricDimension metricDimension)
The dimension of a metric. This can't be used with custom metrics.
metricDimension - The dimension of a metric. This can't be used with custom metrics.public MetricDimension getMetricDimension()
The dimension of a metric. This can't be used with custom metrics.
public MetricToRetain withMetricDimension(MetricDimension metricDimension)
The dimension of a metric. This can't be used with custom metrics.
metricDimension - The dimension of a metric. This can't be used with custom metrics.public void setExportMetric(Boolean exportMetric)
Value added in both Behavior and AdditionalMetricsToRetainV2 to indicate if Device Defender Detect should export the corresponding metrics.
exportMetric - Value added in both Behavior and AdditionalMetricsToRetainV2 to indicate if Device Defender Detect should
export the corresponding metrics.public Boolean getExportMetric()
Value added in both Behavior and AdditionalMetricsToRetainV2 to indicate if Device Defender Detect should export the corresponding metrics.
public MetricToRetain withExportMetric(Boolean exportMetric)
Value added in both Behavior and AdditionalMetricsToRetainV2 to indicate if Device Defender Detect should export the corresponding metrics.
exportMetric - Value added in both Behavior and AdditionalMetricsToRetainV2 to indicate if Device Defender Detect should
export the corresponding metrics.public Boolean isExportMetric()
Value added in both Behavior and AdditionalMetricsToRetainV2 to indicate if Device Defender Detect should export the corresponding metrics.
public String toString()
toString in class ObjectObject.toString()public MetricToRetain clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2023. All rights reserved.