com.amazonaws.services.autoscaling.model

## クラス EnableMetricsCollectionRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.autoscaling.model.EnableMetricsCollectionRequest

- すべての実装されたインタフェース:
    java.io.Serializable

      public class EnableMetricsCollectionRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `EnableMetricsCollection operation`.

  Enables monitoring of group metrics for the Auto Scaling group specified in `AutoScalingGroupName` . You can specify the list of enabled metrics with the `Metrics` parameter.

  Auto scaling metrics collection can be turned on only if the `InstanceMonitoring` flag, in the Auto Scaling group's launch configuration, is set to `True` .

  関連項目:
    `AmazonAutoScaling.enableMetricsCollection(EnableMetricsCollectionRequest)`, 直列化された形式

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `EnableMetricsCollectionRequest()`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getAutoScalingGroupName()` The name or ARN of the Auto Scaling group.
    `java.lang.String` | `getGranularity()` The granularity to associate with the metrics to collect.
    `java.util.List<java.lang.String>` | `getMetrics()` The list of metrics to collect.
    `int` | `hashCode()`
    `void` | `setAutoScalingGroupName(java.lang.String autoScalingGroupName)` The name or ARN of the Auto Scaling group.
    `void` | `setGranularity(java.lang.String granularity)` The granularity to associate with the metrics to collect.
    `void` | `setMetrics(java.util.Collection<java.lang.String> metrics)` The list of metrics to collect.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `EnableMetricsCollectionRequest` | `withAutoScalingGroupName(java.lang.String autoScalingGroupName)` The name or ARN of the Auto Scaling group.
    `EnableMetricsCollectionRequest` | `withGranularity(java.lang.String granularity)` The granularity to associate with the metrics to collect.
    `EnableMetricsCollectionRequest` | `withMetrics(java.util.Collection<java.lang.String> metrics)` The list of metrics to collect.
    `EnableMetricsCollectionRequest` | `withMetrics(java.lang.String... metrics)` The list of metrics to collect.

    - ### クラスから継承されたメソッド com.amazonaws.AmazonWebServiceRequest

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### EnableMetricsCollectionRequest

          public EnableMetricsCollectionRequest()

  - ### メソッドの詳細

    - #### getAutoScalingGroupName

          public java.lang.String getAutoScalingGroupName()

      The name or ARN of the Auto Scaling group.

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

      戻り値:
        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: [ -퟿-�𐀀-􏿿\r\n\t]*

      パラメータ:
        `autoScalingGroupName` - The name or ARN of the Auto Scaling group.

    - #### withAutoScalingGroupName

          public EnableMetricsCollectionRequest 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: [ -퟿-�𐀀-􏿿\r\n\t]*

      パラメータ:
        `autoScalingGroupName` - The name or ARN of the Auto Scaling group.

    - #### getMetrics

          public java.util.List<java.lang.String> getMetrics()

      The list of metrics to collect. If no metrics are specified, all metrics are enabled. The following metrics are supported:

      - GroupMinSize

      - GroupMaxSize

      - GroupDesiredCapacity

      - GroupInServiceInstances

      - GroupPendingInstances

      - GroupTerminatingInstances

      - GroupTotalInstances

      戻り値:
        The list of metrics to collect. If no metrics are specified, all metrics are enabled. 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 collect. If no metrics are specified, all metrics are enabled. The following metrics are supported:

      - GroupMinSize

      - GroupMaxSize

      - GroupDesiredCapacity

      - GroupInServiceInstances

      - GroupPendingInstances

      - GroupTerminatingInstances

      - GroupTotalInstances

      パラメータ:
        `metrics` - The list of metrics to collect. If no metrics are specified, all metrics are enabled. The following metrics are supported:

        - GroupMinSize

        - GroupMaxSize

        - GroupDesiredCapacity

        - GroupInServiceInstances

        - GroupPendingInstances

        - GroupTerminatingInstances

        - GroupTotalInstances

    - #### withMetrics

          public EnableMetricsCollectionRequest withMetrics(java.lang.String... metrics)

      The list of metrics to collect. If no metrics are specified, all metrics are enabled. The following metrics are supported:

      - GroupMinSize

      - GroupMaxSize

      - GroupDesiredCapacity

      - GroupInServiceInstances

      - GroupPendingInstances

      - GroupTerminatingInstances

      - GroupTotalInstances

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

      パラメータ:
        `metrics` - The list of metrics to collect. If no metrics are specified, all metrics are enabled. The following metrics are supported:

        - GroupMinSize

        - GroupMaxSize

        - GroupDesiredCapacity

        - GroupInServiceInstances

        - GroupPendingInstances

        - GroupTerminatingInstances

        - GroupTotalInstances

    - #### withMetrics

          public EnableMetricsCollectionRequest withMetrics(java.util.Collection<java.lang.String> metrics)

      The list of metrics to collect. If no metrics are specified, all metrics are enabled. The following metrics are supported:

      - GroupMinSize

      - GroupMaxSize

      - GroupDesiredCapacity

      - GroupInServiceInstances

      - GroupPendingInstances

      - GroupTerminatingInstances

      - GroupTotalInstances

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

      パラメータ:
        `metrics` - The list of metrics to collect. If no metrics are specified, all metrics are enabled. The following metrics are supported:

        - GroupMinSize

        - GroupMaxSize

        - GroupDesiredCapacity

        - GroupInServiceInstances

        - GroupPendingInstances

        - GroupTerminatingInstances

        - GroupTotalInstances

    - #### getGranularity

          public java.lang.String getGranularity()

      The granularity to associate with the metrics to collect. Currently, the only legal granularity is "1Minute".

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

      戻り値:
        The granularity to associate with the metrics to collect. Currently, the only legal granularity is "1Minute".

    - #### setGranularity

          public void setGranularity(java.lang.String granularity)

      The granularity to associate with the metrics to collect. Currently, the only legal granularity is "1Minute".

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

      パラメータ:
        `granularity` - The granularity to associate with the metrics to collect. Currently, the only legal granularity is "1Minute".

    - #### withGranularity

          public EnableMetricsCollectionRequest withGranularity(java.lang.String granularity)

      The granularity to associate with the metrics to collect. Currently, the only legal granularity is "1Minute".

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

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

      パラメータ:
        `granularity` - The granularity to associate with the metrics to collect. Currently, the only legal granularity is "1Minute".

    - #### toString

          public java.lang.String toString()

      Returns a string representation of this object; useful for testing and debugging.
      オーバーライド:
        `toString` クラス内 `java.lang.Object`
      戻り値:
        A string representation of this object.
      関連項目:
        `Object.toString()`

    - #### hashCode

          public int hashCode()

      オーバーライド:
        `hashCode` クラス内 `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object obj)

      オーバーライド:
        `equals` クラス内 `java.lang.Object`