@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EnableMetricsCollectionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
EnableMetricsCollectionRequest() |
Modifier and Type | Method and Description |
---|---|
EnableMetricsCollectionRequest |
clone() |
boolean |
equals(Object obj) |
String |
getAutoScalingGroupName()
The name of the Auto Scaling group.
|
String |
getGranularity()
The granularity to associate with the metrics to collect.
|
List<String> |
getMetrics()
Specifies which group-level metrics to start collecting.
|
int |
hashCode() |
void |
setAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
|
void |
setGranularity(String granularity)
The granularity to associate with the metrics to collect.
|
void |
setMetrics(Collection<String> metrics)
Specifies which group-level metrics to start collecting.
|
String |
toString()
Returns a string representation of this object.
|
EnableMetricsCollectionRequest |
withAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
|
EnableMetricsCollectionRequest |
withGranularity(String granularity)
The granularity to associate with the metrics to collect.
|
EnableMetricsCollectionRequest |
withMetrics(Collection<String> metrics)
Specifies which group-level metrics to start collecting.
|
EnableMetricsCollectionRequest |
withMetrics(String... metrics)
Specifies which group-level metrics to start collecting.
|
addHandlerContext, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
autoScalingGroupName
- The name of the Auto Scaling group.public String getAutoScalingGroupName()
The name of the Auto Scaling group.
public EnableMetricsCollectionRequest withAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
autoScalingGroupName
- The name of the Auto Scaling group.public List<String> getMetrics()
Specifies which group-level metrics to start collecting. You can specify one or more of the following metrics:
GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
The instance weighting feature supports the following additional metrics:
GroupInServiceCapacity
GroupPendingCapacity
GroupStandbyCapacity
GroupTerminatingCapacity
GroupTotalCapacity
If you omit this parameter, all metrics are enabled.
GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
The instance weighting feature supports the following additional metrics:
GroupInServiceCapacity
GroupPendingCapacity
GroupStandbyCapacity
GroupTerminatingCapacity
GroupTotalCapacity
If you omit this parameter, all metrics are enabled.
public void setMetrics(Collection<String> metrics)
Specifies which group-level metrics to start collecting. You can specify one or more of the following metrics:
GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
The instance weighting feature supports the following additional metrics:
GroupInServiceCapacity
GroupPendingCapacity
GroupStandbyCapacity
GroupTerminatingCapacity
GroupTotalCapacity
If you omit this parameter, all metrics are enabled.
metrics
- Specifies which group-level metrics to start collecting. You can specify one or more of the following
metrics:
GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
The instance weighting feature supports the following additional metrics:
GroupInServiceCapacity
GroupPendingCapacity
GroupStandbyCapacity
GroupTerminatingCapacity
GroupTotalCapacity
If you omit this parameter, all metrics are enabled.
public EnableMetricsCollectionRequest withMetrics(String... metrics)
Specifies which group-level metrics to start collecting. You can specify one or more of the following metrics:
GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
The instance weighting feature supports the following additional metrics:
GroupInServiceCapacity
GroupPendingCapacity
GroupStandbyCapacity
GroupTerminatingCapacity
GroupTotalCapacity
If you omit this parameter, all metrics are enabled.
NOTE: This method appends the values to the existing list (if any). Use
setMetrics(java.util.Collection)
or withMetrics(java.util.Collection)
if you want to override
the existing values.
metrics
- Specifies which group-level metrics to start collecting. You can specify one or more of the following
metrics:
GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
The instance weighting feature supports the following additional metrics:
GroupInServiceCapacity
GroupPendingCapacity
GroupStandbyCapacity
GroupTerminatingCapacity
GroupTotalCapacity
If you omit this parameter, all metrics are enabled.
public EnableMetricsCollectionRequest withMetrics(Collection<String> metrics)
Specifies which group-level metrics to start collecting. You can specify one or more of the following metrics:
GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
The instance weighting feature supports the following additional metrics:
GroupInServiceCapacity
GroupPendingCapacity
GroupStandbyCapacity
GroupTerminatingCapacity
GroupTotalCapacity
If you omit this parameter, all metrics are enabled.
metrics
- Specifies which group-level metrics to start collecting. You can specify one or more of the following
metrics:
GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
The instance weighting feature supports the following additional metrics:
GroupInServiceCapacity
GroupPendingCapacity
GroupStandbyCapacity
GroupTerminatingCapacity
GroupTotalCapacity
If you omit this parameter, all metrics are enabled.
public void setGranularity(String granularity)
The granularity to associate with the metrics to collect. The only valid value is 1Minute
.
granularity
- The granularity to associate with the metrics to collect. The only valid value is 1Minute
.public String getGranularity()
The granularity to associate with the metrics to collect. The only valid value is 1Minute
.
1Minute
.public EnableMetricsCollectionRequest withGranularity(String granularity)
The granularity to associate with the metrics to collect. The only valid value is 1Minute
.
granularity
- The granularity to associate with the metrics to collect. The only valid value is 1Minute
.public String toString()
toString
in class Object
Object.toString()
public EnableMetricsCollectionRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2020. All rights reserved.