public class MetricDimension
extends java.lang.Object
implements java.io.Serializable
The dimension of a metric.
Constructor and Description |
---|
MetricDimension() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDimensionName()
A unique identifier for the dimension.
|
java.lang.String |
getOperator()
Defines how the
dimensionValues of a dimension are
interpreted. |
int |
hashCode() |
void |
setDimensionName(java.lang.String dimensionName)
A unique identifier for the dimension.
|
void |
setOperator(DimensionValueOperator operator)
Defines how the
dimensionValues of a dimension are
interpreted. |
void |
setOperator(java.lang.String operator)
Defines how the
dimensionValues of a dimension are
interpreted. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MetricDimension |
withDimensionName(java.lang.String dimensionName)
A unique identifier for the dimension.
|
MetricDimension |
withOperator(DimensionValueOperator operator)
Defines how the
dimensionValues of a dimension are
interpreted. |
MetricDimension |
withOperator(java.lang.String operator)
Defines how the
dimensionValues of a dimension are
interpreted. |
public java.lang.String getDimensionName()
A unique identifier for the dimension.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
A unique identifier for the dimension.
public void setDimensionName(java.lang.String dimensionName)
A unique identifier for the dimension.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
dimensionName
- A unique identifier for the dimension.
public MetricDimension withDimensionName(java.lang.String dimensionName)
A unique identifier for the dimension.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
dimensionName
- A unique identifier for the dimension.
public java.lang.String getOperator()
Defines how the dimensionValues
of a dimension are
interpreted. For example, for dimension type TOPIC_FILTER, the
IN
operator, a message will be counted only if its topic
matches one of the topic filters. With NOT_IN
operator, a
message will be counted only if it doesn't match any of the topic
filters. The operator is optional: if it's not provided (is
null
), it will be interpreted as IN
.
Constraints:
Allowed Values: IN, NOT_IN
Defines how the dimensionValues
of a dimension are
interpreted. For example, for dimension type TOPIC_FILTER, the
IN
operator, a message will be counted only if its
topic matches one of the topic filters. With NOT_IN
operator, a message will be counted only if it doesn't match any
of the topic filters. The operator is optional: if it's not
provided (is null
), it will be interpreted as
IN
.
DimensionValueOperator
public void setOperator(java.lang.String operator)
Defines how the dimensionValues
of a dimension are
interpreted. For example, for dimension type TOPIC_FILTER, the
IN
operator, a message will be counted only if its topic
matches one of the topic filters. With NOT_IN
operator, a
message will be counted only if it doesn't match any of the topic
filters. The operator is optional: if it's not provided (is
null
), it will be interpreted as IN
.
Constraints:
Allowed Values: IN, NOT_IN
operator
-
Defines how the dimensionValues
of a dimension
are interpreted. For example, for dimension type TOPIC_FILTER,
the IN
operator, a message will be counted only
if its topic matches one of the topic filters. With
NOT_IN
operator, a message will be counted only
if it doesn't match any of the topic filters. The operator is
optional: if it's not provided (is null
), it will
be interpreted as IN
.
DimensionValueOperator
public MetricDimension withOperator(java.lang.String operator)
Defines how the dimensionValues
of a dimension are
interpreted. For example, for dimension type TOPIC_FILTER, the
IN
operator, a message will be counted only if its topic
matches one of the topic filters. With NOT_IN
operator, a
message will be counted only if it doesn't match any of the topic
filters. The operator is optional: if it's not provided (is
null
), it will be interpreted as IN
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: IN, NOT_IN
operator
-
Defines how the dimensionValues
of a dimension
are interpreted. For example, for dimension type TOPIC_FILTER,
the IN
operator, a message will be counted only
if its topic matches one of the topic filters. With
NOT_IN
operator, a message will be counted only
if it doesn't match any of the topic filters. The operator is
optional: if it's not provided (is null
), it will
be interpreted as IN
.
DimensionValueOperator
public void setOperator(DimensionValueOperator operator)
Defines how the dimensionValues
of a dimension are
interpreted. For example, for dimension type TOPIC_FILTER, the
IN
operator, a message will be counted only if its topic
matches one of the topic filters. With NOT_IN
operator, a
message will be counted only if it doesn't match any of the topic
filters. The operator is optional: if it's not provided (is
null
), it will be interpreted as IN
.
Constraints:
Allowed Values: IN, NOT_IN
operator
-
Defines how the dimensionValues
of a dimension
are interpreted. For example, for dimension type TOPIC_FILTER,
the IN
operator, a message will be counted only
if its topic matches one of the topic filters. With
NOT_IN
operator, a message will be counted only
if it doesn't match any of the topic filters. The operator is
optional: if it's not provided (is null
), it will
be interpreted as IN
.
DimensionValueOperator
public MetricDimension withOperator(DimensionValueOperator operator)
Defines how the dimensionValues
of a dimension are
interpreted. For example, for dimension type TOPIC_FILTER, the
IN
operator, a message will be counted only if its topic
matches one of the topic filters. With NOT_IN
operator, a
message will be counted only if it doesn't match any of the topic
filters. The operator is optional: if it's not provided (is
null
), it will be interpreted as IN
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: IN, NOT_IN
operator
-
Defines how the dimensionValues
of a dimension
are interpreted. For example, for dimension type TOPIC_FILTER,
the IN
operator, a message will be counted only
if its topic matches one of the topic filters. With
NOT_IN
operator, a message will be counted only
if it doesn't match any of the topic filters. The operator is
optional: if it's not provided (is null
), it will
be interpreted as IN
.
DimensionValueOperator
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.