@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PublishMetricAction extends Object implements Serializable, Cloneable, StructuredPojo
Stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet. This setting defines a CloudWatch dimension value to be published.
Constructor and Description |
---|
PublishMetricAction() |
Modifier and Type | Method and Description |
---|---|
PublishMetricAction |
clone() |
boolean |
equals(Object obj) |
List<Dimension> |
getDimensions()
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDimensions(Collection<Dimension> dimensions)
|
String |
toString()
Returns a string representation of this object.
|
PublishMetricAction |
withDimensions(Collection<Dimension> dimensions)
|
PublishMetricAction |
withDimensions(Dimension... dimensions)
|
public void setDimensions(Collection<Dimension> dimensions)
dimensions
- public PublishMetricAction withDimensions(Dimension... dimensions)
NOTE: This method appends the values to the existing list (if any). Use
setDimensions(java.util.Collection)
or withDimensions(java.util.Collection)
if you want to
override the existing values.
dimensions
- public PublishMetricAction withDimensions(Collection<Dimension> dimensions)
dimensions
- public String toString()
toString
in class Object
Object.toString()
public PublishMetricAction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.