com.amazonaws.services.autoscaling.model
Class DisableMetricsCollectionRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.autoscaling.model.DisableMetricsCollectionRequest

public class DisableMetricsCollectionRequest
extends AmazonWebServiceRequest

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)

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

Constructor Detail

DisableMetricsCollectionRequest

public DisableMetricsCollectionRequest()
Method Detail

getAutoScalingGroupName

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

Constraints:
Length: 1 - 1600
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

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

setAutoScalingGroupName

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

Constraints:
Length: 1 - 1600
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

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

withAutoScalingGroupName

public DisableMetricsCollectionRequest withAutoScalingGroupName(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: [ -퟿-�𐀀-􏿿\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 List<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(Collection<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(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(Collection<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 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:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


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