Interface ResourceMetricsConfiguration.Builder

  • Method Details

    • resourceArn

      ResourceMetricsConfiguration.Builder resourceArn(String resourceArn)

      The Amazon Resource Name (ARN) of the Amazon Web Services resource that this configuration applies to.

      Parameters:
      resourceArn - The Amazon Resource Name (ARN) of the Amazon Web Services resource that this configuration applies to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      The date and time that the resource metrics configuration was created.

      Parameters:
      createdAt - The date and time that the resource metrics configuration was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      The date and time that the resource metrics configuration was last updated. When the configuration is first created, this value is the same as CreatedAt.

      Parameters:
      updatedAt - The date and time that the resource metrics configuration was last updated. When the configuration is first created, this value is the same as CreatedAt.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricSelections

      The metrics that Amazon CloudWatch collects for the resource. If this field is not present, Amazon CloudWatch collects all available detailed metrics for the resource.

      Parameters:
      metricSelections - The metrics that Amazon CloudWatch collects for the resource. If this field is not present, Amazon CloudWatch collects all available detailed metrics for the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricSelections

      ResourceMetricsConfiguration.Builder metricSelections(ResourceMetricSelection... metricSelections)

      The metrics that Amazon CloudWatch collects for the resource. If this field is not present, Amazon CloudWatch collects all available detailed metrics for the resource.

      Parameters:
      metricSelections - The metrics that Amazon CloudWatch collects for the resource. If this field is not present, Amazon CloudWatch collects all available detailed metrics for the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricSelections

      The metrics that Amazon CloudWatch collects for the resource. If this field is not present, Amazon CloudWatch collects all available detailed metrics for the resource.

      This is a convenience method that creates an instance of the ResourceMetricSelection.Builder avoiding the need to create one manually via ResourceMetricSelection.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to metricSelections(List<ResourceMetricSelection>).

      Parameters:
      metricSelections - a consumer that will call methods on ResourceMetricSelection.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: