@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MetricStreamFilter extends Object implements Serializable, Cloneable
This structure contains a metric namespace and optionally, a list of metric names, to either include in a metric stream or exclude from a metric stream.
A metric stream's filters can include up to 1000 total names. This limit applies to the sum of namespace names and metric names in the filters. For example, this could include 10 metric namespace filters with 99 metrics each, or 20 namespace filters with 49 metrics specified in each filter.
Constructor and Description |
---|
MetricStreamFilter() |
Modifier and Type | Method and Description |
---|---|
MetricStreamFilter |
clone() |
boolean |
equals(Object obj) |
List<String> |
getMetricNames()
The names of the metrics to either include or exclude from the metric stream.
|
String |
getNamespace()
The name of the metric namespace for this filter.
|
int |
hashCode() |
void |
setMetricNames(Collection<String> metricNames)
The names of the metrics to either include or exclude from the metric stream.
|
void |
setNamespace(String namespace)
The name of the metric namespace for this filter.
|
String |
toString()
Returns a string representation of this object.
|
MetricStreamFilter |
withMetricNames(Collection<String> metricNames)
The names of the metrics to either include or exclude from the metric stream.
|
MetricStreamFilter |
withMetricNames(String... metricNames)
The names of the metrics to either include or exclude from the metric stream.
|
MetricStreamFilter |
withNamespace(String namespace)
The name of the metric namespace for this filter.
|
public void setNamespace(String namespace)
The name of the metric namespace for this filter.
The namespace can contain only ASCII printable characters (ASCII range 32 through 126). It must contain at least one non-whitespace character.
namespace
- The name of the metric namespace for this filter.
The namespace can contain only ASCII printable characters (ASCII range 32 through 126). It must contain at least one non-whitespace character.
public String getNamespace()
The name of the metric namespace for this filter.
The namespace can contain only ASCII printable characters (ASCII range 32 through 126). It must contain at least one non-whitespace character.
The namespace can contain only ASCII printable characters (ASCII range 32 through 126). It must contain at least one non-whitespace character.
public MetricStreamFilter withNamespace(String namespace)
The name of the metric namespace for this filter.
The namespace can contain only ASCII printable characters (ASCII range 32 through 126). It must contain at least one non-whitespace character.
namespace
- The name of the metric namespace for this filter.
The namespace can contain only ASCII printable characters (ASCII range 32 through 126). It must contain at least one non-whitespace character.
public List<String> getMetricNames()
The names of the metrics to either include or exclude from the metric stream.
If you omit this parameter, all metrics in the namespace are included or excluded, depending on whether this filter is specified as an exclude filter or an include filter.
Each metric name can contain only ASCII printable characters (ASCII range 32 through 126). Each metric name must contain at least one non-whitespace character.
If you omit this parameter, all metrics in the namespace are included or excluded, depending on whether this filter is specified as an exclude filter or an include filter.
Each metric name can contain only ASCII printable characters (ASCII range 32 through 126). Each metric name must contain at least one non-whitespace character.
public void setMetricNames(Collection<String> metricNames)
The names of the metrics to either include or exclude from the metric stream.
If you omit this parameter, all metrics in the namespace are included or excluded, depending on whether this filter is specified as an exclude filter or an include filter.
Each metric name can contain only ASCII printable characters (ASCII range 32 through 126). Each metric name must contain at least one non-whitespace character.
metricNames
- The names of the metrics to either include or exclude from the metric stream.
If you omit this parameter, all metrics in the namespace are included or excluded, depending on whether this filter is specified as an exclude filter or an include filter.
Each metric name can contain only ASCII printable characters (ASCII range 32 through 126). Each metric name must contain at least one non-whitespace character.
public MetricStreamFilter withMetricNames(String... metricNames)
The names of the metrics to either include or exclude from the metric stream.
If you omit this parameter, all metrics in the namespace are included or excluded, depending on whether this filter is specified as an exclude filter or an include filter.
Each metric name can contain only ASCII printable characters (ASCII range 32 through 126). Each metric name must contain at least one non-whitespace character.
NOTE: This method appends the values to the existing list (if any). Use
setMetricNames(java.util.Collection)
or withMetricNames(java.util.Collection)
if you want to
override the existing values.
metricNames
- The names of the metrics to either include or exclude from the metric stream.
If you omit this parameter, all metrics in the namespace are included or excluded, depending on whether this filter is specified as an exclude filter or an include filter.
Each metric name can contain only ASCII printable characters (ASCII range 32 through 126). Each metric name must contain at least one non-whitespace character.
public MetricStreamFilter withMetricNames(Collection<String> metricNames)
The names of the metrics to either include or exclude from the metric stream.
If you omit this parameter, all metrics in the namespace are included or excluded, depending on whether this filter is specified as an exclude filter or an include filter.
Each metric name can contain only ASCII printable characters (ASCII range 32 through 126). Each metric name must contain at least one non-whitespace character.
metricNames
- The names of the metrics to either include or exclude from the metric stream.
If you omit this parameter, all metrics in the namespace are included or excluded, depending on whether this filter is specified as an exclude filter or an include filter.
Each metric name can contain only ASCII printable characters (ASCII range 32 through 126). Each metric name must contain at least one non-whitespace character.
public String toString()
toString
in class Object
Object.toString()
public MetricStreamFilter clone()