Interface DescribeFleetMetricResponse.Builder

  • Method Details

    • metricName

      The name of the fleet metric to describe.

      Parameters:
      metricName - The name of the fleet metric to describe.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • queryString

      DescribeFleetMetricResponse.Builder queryString(String queryString)

      The search query string.

      Parameters:
      queryString - The search query string.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • aggregationType

      DescribeFleetMetricResponse.Builder aggregationType(AggregationType aggregationType)

      The type of the aggregation query.

      Parameters:
      aggregationType - The type of the aggregation query.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • aggregationType

      default DescribeFleetMetricResponse.Builder aggregationType(Consumer<AggregationType.Builder> aggregationType)

      The type of the aggregation query.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to aggregationType(AggregationType).

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

      The time in seconds between fleet metric emissions. Range [60(1 min), 86400(1 day)] and must be multiple of 60.

      Parameters:
      period - The time in seconds between fleet metric emissions. Range [60(1 min), 86400(1 day)] and must be multiple of 60.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • aggregationField

      DescribeFleetMetricResponse.Builder aggregationField(String aggregationField)

      The field to aggregate.

      Parameters:
      aggregationField - The field to aggregate.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      DescribeFleetMetricResponse.Builder description(String description)

      The fleet metric description.

      Parameters:
      description - The fleet metric description.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • queryVersion

      DescribeFleetMetricResponse.Builder queryVersion(String queryVersion)

      The query version.

      Parameters:
      queryVersion - The query version.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • indexName

      The name of the index to search.

      Parameters:
      indexName - The name of the index to search.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • creationDate

      DescribeFleetMetricResponse.Builder creationDate(Instant creationDate)

      The date when the fleet metric is created.

      Parameters:
      creationDate - The date when the fleet metric is created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastModifiedDate

      DescribeFleetMetricResponse.Builder lastModifiedDate(Instant lastModifiedDate)

      The date when the fleet metric is last modified.

      Parameters:
      lastModifiedDate - The date when the fleet metric is last modified.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • unit

      Used to support unit transformation such as milliseconds to seconds. The unit must be supported by CW metric.

      Parameters:
      unit - Used to support unit transformation such as milliseconds to seconds. The unit must be supported by CW metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • unit

      Used to support unit transformation such as milliseconds to seconds. The unit must be supported by CW metric.

      Parameters:
      unit - Used to support unit transformation such as milliseconds to seconds. The unit must be supported by CW metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • version

      The version of the fleet metric.

      Parameters:
      version - The version of the fleet metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricArn

      The ARN of the fleet metric to describe.

      Parameters:
      metricArn - The ARN of the fleet metric to describe.
      Returns:
      Returns a reference to this object so that method calls can be chained together.