Class ListMetricsRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.cloudwatch.model.ListMetricsRequest
All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable

public class ListMetricsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
See Also:
  • Constructor Details

    • ListMetricsRequest

      public ListMetricsRequest()
  • Method Details

    • setNamespace

      public void setNamespace(String namespace)

      The namespace to filter against.

      Parameters:
      namespace - The namespace to filter against.
    • getNamespace

      public String getNamespace()

      The namespace to filter against.

      Returns:
      The namespace to filter against.
    • withNamespace

      public ListMetricsRequest withNamespace(String namespace)

      The namespace to filter against.

      Parameters:
      namespace - The namespace to filter against.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setMetricName

      public void setMetricName(String metricName)

      The name of the metric to filter against.

      Parameters:
      metricName - The name of the metric to filter against.
    • getMetricName

      public String getMetricName()

      The name of the metric to filter against.

      Returns:
      The name of the metric to filter against.
    • withMetricName

      public ListMetricsRequest withMetricName(String metricName)

      The name of the metric to filter against.

      Parameters:
      metricName - The name of the metric to filter against.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getDimensions

      public List<DimensionFilter> getDimensions()

      A list of dimensions to filter against.

      Returns:
      A list of dimensions to filter against.
    • setDimensions

      public void setDimensions(Collection<DimensionFilter> dimensions)

      A list of dimensions to filter against.

      Parameters:
      dimensions - A list of dimensions to filter against.
    • withDimensions

      public ListMetricsRequest withDimensions(DimensionFilter... dimensions)

      A list of dimensions to filter against.

      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.

      Parameters:
      dimensions - A list of dimensions to filter against.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withDimensions

      public ListMetricsRequest withDimensions(Collection<DimensionFilter> dimensions)

      A list of dimensions to filter against.

      Parameters:
      dimensions - A list of dimensions to filter against.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setNextToken

      public void setNextToken(String nextToken)

      The token returned by a previous call to indicate that there is more data available.

      Parameters:
      nextToken - The token returned by a previous call to indicate that there is more data available.
    • getNextToken

      public String getNextToken()

      The token returned by a previous call to indicate that there is more data available.

      Returns:
      The token returned by a previous call to indicate that there is more data available.
    • withNextToken

      public ListMetricsRequest withNextToken(String nextToken)

      The token returned by a previous call to indicate that there is more data available.

      Parameters:
      nextToken - The token returned by a previous call to indicate that there is more data available.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public ListMetricsRequest clone()
      Description copied from class: AmazonWebServiceRequest
      Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.
      Overrides:
      clone in class AmazonWebServiceRequest
      See Also: