com.amazonaws.services.autoscaling.model
Class DisableMetricsCollectionRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.autoscaling.model.DisableMetricsCollectionRequest
All Implemented Interfaces:
java.io.Serializable

public class DisableMetricsCollectionRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

Container for the parameters to the DisableMetricsCollection operation.

Disables monitoring of group metrics for the Auto Scaling group specified in AutoScalingGroupName . You can specify the list of affected metrics with the Metrics parameter.

See Also:
AmazonAutoScaling.disableMetricsCollection(DisableMetricsCollectionRequest), Serialized Form

Constructor Summary
DisableMetricsCollectionRequest()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAutoScalingGroupName()
          The name or ARN of the Auto Scaling Group.
 java.util.List<java.lang.String> getMetrics()
          The list of metrics to disable.
 int hashCode()
           
 void setAutoScalingGroupName(java.lang.String autoScalingGroupName)
          The name or ARN of the Auto Scaling Group.
 void setMetrics(java.util.Collection<java.lang.String> metrics)
          The list of metrics to disable.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DisableMetricsCollectionRequest withAutoScalingGroupName(java.lang.String autoScalingGroupName)
          The name or ARN of the Auto Scaling Group.
 DisableMetricsCollectionRequest withMetrics(java.util.Collection<java.lang.String> metrics)
          The list of metrics to disable.
 DisableMetricsCollectionRequest withMetrics(java.lang.String... metrics)
          The list of metrics to disable.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DisableMetricsCollectionRequest

public DisableMetricsCollectionRequest()
Method Detail

getAutoScalingGroupName

public java.lang.String getAutoScalingGroupName()
The name or ARN of the Auto Scaling Group.

Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
The name or ARN of the Auto Scaling Group.

setAutoScalingGroupName

public void setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name or ARN of the Auto Scaling Group.

Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
autoScalingGroupName - The name or ARN of the Auto Scaling Group.

withAutoScalingGroupName

public DisableMetricsCollectionRequest withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name or ARN of the Auto Scaling Group.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
autoScalingGroupName - The name or ARN of the Auto Scaling Group.
Returns:
A reference to this updated object so that method calls can be chained together.

getMetrics

public java.util.List<java.lang.String> getMetrics()
The list of metrics to disable. If no metrics are specified, all metrics are disabled. The following metrics are supported:

Returns:
The list of metrics to disable. If no metrics are specified, all metrics are disabled. The following metrics are supported:
  • GroupMinSize

  • GroupMaxSize

  • GroupDesiredCapacity

  • GroupInServiceInstances

  • GroupPendingInstances

  • GroupTerminatingInstances

  • GroupTotalInstances


setMetrics

public void setMetrics(java.util.Collection<java.lang.String> metrics)
The list of metrics to disable. If no metrics are specified, all metrics are disabled. The following metrics are supported:

Parameters:
metrics - The list of metrics to disable. If no metrics are specified, all metrics are disabled. The following metrics are supported:
  • GroupMinSize

  • GroupMaxSize

  • GroupDesiredCapacity

  • GroupInServiceInstances

  • GroupPendingInstances

  • GroupTerminatingInstances

  • GroupTotalInstances


withMetrics

public DisableMetricsCollectionRequest withMetrics(java.lang.String... metrics)
The list of metrics to disable. If no metrics are specified, all metrics are disabled. The following metrics are supported:

Returns a reference to this object so that method calls can be chained together.

Parameters:
metrics - The list of metrics to disable. If no metrics are specified, all metrics are disabled. The following metrics are supported:
  • GroupMinSize

  • GroupMaxSize

  • GroupDesiredCapacity

  • GroupInServiceInstances

  • GroupPendingInstances

  • GroupTerminatingInstances

  • GroupTotalInstances

Returns:
A reference to this updated object so that method calls can be chained together.

withMetrics

public DisableMetricsCollectionRequest withMetrics(java.util.Collection<java.lang.String> metrics)
The list of metrics to disable. If no metrics are specified, all metrics are disabled. The following metrics are supported:

Returns a reference to this object so that method calls can be chained together.

Parameters:
metrics - The list of metrics to disable. If no metrics are specified, all metrics are disabled. The following metrics are supported:
  • GroupMinSize

  • GroupMaxSize

  • GroupDesiredCapacity

  • GroupInServiceInstances

  • GroupPendingInstances

  • GroupTerminatingInstances

  • GroupTotalInstances

Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.