Class EnableMetricsCollectionRequest
- All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable
- See Also:
-
Field Summary
Fields inherited from class AmazonWebServiceRequest
NOOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a shallow clone of this request.booleanThe name or ARN of the Auto Scaling group.The granularity to associate with the metrics to collect.One or more of the following metrics.inthashCode()voidsetAutoScalingGroupName(String autoScalingGroupName) The name or ARN of the Auto Scaling group.voidsetGranularity(String granularity) The granularity to associate with the metrics to collect.voidsetMetrics(Collection<String> metrics) One or more of the following metrics.toString()Returns a string representation of this object; useful for testing and debugging.withAutoScalingGroupName(String autoScalingGroupName) The name or ARN of the Auto Scaling group.withGranularity(String granularity) The granularity to associate with the metrics to collect.withMetrics(String... metrics) One or more of the following metrics.withMetrics(Collection<String> metrics) One or more of the following metrics.Methods inherited from class AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
EnableMetricsCollectionRequest
public EnableMetricsCollectionRequest()
-
-
Method Details
-
setAutoScalingGroupName
The name or ARN of the Auto Scaling group.
- Parameters:
autoScalingGroupName- The name or ARN of the Auto Scaling group.
-
getAutoScalingGroupName
The name or ARN of the Auto Scaling group.
- Returns:
- The name or ARN of the Auto Scaling group.
-
withAutoScalingGroupName
The name or ARN of the Auto Scaling group.
- Parameters:
autoScalingGroupName- The name or ARN of the Auto Scaling group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getMetrics
One or more of the following metrics. If you omit this parameter, all metrics are enabled.
-
GroupMinSize -
GroupMaxSize -
GroupDesiredCapacity -
GroupInServiceInstances -
GroupPendingInstances -
GroupStandbyInstances -
GroupTerminatingInstances -
GroupTotalInstances
Note that the
GroupStandbyInstancesmetric is not enabled by default. You must explicitly request this metric.- Returns:
- One or more of the following metrics. If you omit this parameter,
all metrics are enabled.
-
GroupMinSize -
GroupMaxSize -
GroupDesiredCapacity -
GroupInServiceInstances -
GroupPendingInstances -
GroupStandbyInstances -
GroupTerminatingInstances -
GroupTotalInstances
Note that the
GroupStandbyInstancesmetric is not enabled by default. You must explicitly request this metric. -
-
-
setMetrics
One or more of the following metrics. If you omit this parameter, all metrics are enabled.
-
GroupMinSize -
GroupMaxSize -
GroupDesiredCapacity -
GroupInServiceInstances -
GroupPendingInstances -
GroupStandbyInstances -
GroupTerminatingInstances -
GroupTotalInstances
Note that the
GroupStandbyInstancesmetric is not enabled by default. You must explicitly request this metric.- Parameters:
metrics- One or more of the following metrics. If you omit this parameter, all metrics are enabled.-
GroupMinSize -
GroupMaxSize -
GroupDesiredCapacity -
GroupInServiceInstances -
GroupPendingInstances -
GroupStandbyInstances -
GroupTerminatingInstances -
GroupTotalInstances
Note that the
GroupStandbyInstancesmetric is not enabled by default. You must explicitly request this metric.-
-
-
withMetrics
One or more of the following metrics. If you omit this parameter, all metrics are enabled.
-
GroupMinSize -
GroupMaxSize -
GroupDesiredCapacity -
GroupInServiceInstances -
GroupPendingInstances -
GroupStandbyInstances -
GroupTerminatingInstances -
GroupTotalInstances
Note that the
GroupStandbyInstancesmetric is not enabled by default. You must explicitly request this metric.NOTE: This method appends the values to the existing list (if any). Use
setMetrics(java.util.Collection)orwithMetrics(java.util.Collection)if you want to override the existing values.- Parameters:
metrics- One or more of the following metrics. If you omit this parameter, all metrics are enabled.-
GroupMinSize -
GroupMaxSize -
GroupDesiredCapacity -
GroupInServiceInstances -
GroupPendingInstances -
GroupStandbyInstances -
GroupTerminatingInstances -
GroupTotalInstances
Note that the
GroupStandbyInstancesmetric is not enabled by default. You must explicitly request this metric.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
withMetrics
One or more of the following metrics. If you omit this parameter, all metrics are enabled.
-
GroupMinSize -
GroupMaxSize -
GroupDesiredCapacity -
GroupInServiceInstances -
GroupPendingInstances -
GroupStandbyInstances -
GroupTerminatingInstances -
GroupTotalInstances
Note that the
GroupStandbyInstancesmetric is not enabled by default. You must explicitly request this metric.- Parameters:
metrics- One or more of the following metrics. If you omit this parameter, all metrics are enabled.-
GroupMinSize -
GroupMaxSize -
GroupDesiredCapacity -
GroupInServiceInstances -
GroupPendingInstances -
GroupStandbyInstances -
GroupTerminatingInstances -
GroupTotalInstances
Note that the
GroupStandbyInstancesmetric is not enabled by default. You must explicitly request this metric.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
setGranularity
The granularity to associate with the metrics to collect. The only valid value is
1Minute.- Parameters:
granularity- The granularity to associate with the metrics to collect. The only valid value is1Minute.
-
getGranularity
The granularity to associate with the metrics to collect. The only valid value is
1Minute.- Returns:
- The granularity to associate with the metrics to collect. The
only valid value is
1Minute.
-
withGranularity
The granularity to associate with the metrics to collect. The only valid value is
1Minute.- Parameters:
granularity- The granularity to associate with the metrics to collect. The only valid value is1Minute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
-
equals
-
hashCode
-
clone
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
-