public class DeleteCustomMetricRequest extends AmazonWebServiceRequest implements java.io.Serializable
Before you can delete a custom metric, you must first remove the custom
metric from all security profiles it's a part of. The security profile
associated with the custom metric can be found using the ListSecurityProfiles API with metricName
set to your custom
metric name.
Deletes a Device Defender detect custom metric.
Constructor and Description |
---|
DeleteCustomMetricRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getMetricName()
The name of the custom metric.
|
int |
hashCode() |
void |
setMetricName(java.lang.String metricName)
The name of the custom metric.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteCustomMetricRequest |
withMetricName(java.lang.String metricName)
The name of the custom metric.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getMetricName()
The name of the custom metric.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
The name of the custom metric.
public void setMetricName(java.lang.String metricName)
The name of the custom metric.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
metricName
- The name of the custom metric.
public DeleteCustomMetricRequest withMetricName(java.lang.String metricName)
The name of the custom metric.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
metricName
- The name of the custom metric.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.