Interface MetricDataResult.Builder

  • Method Details

    • id

      Sets the value of the Id property for this object.
      Parameters:
      id - The new value for the Id property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • label

      Sets the value of the Label property for this object.
      Parameters:
      label - The new value for the Label property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • timestamps

      MetricDataResult.Builder timestamps(Collection<Instant> timestamps)
      Sets the value of the Timestamps property for this object.
      Parameters:
      timestamps - The new value for the Timestamps property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • timestamps

      MetricDataResult.Builder timestamps(Instant... timestamps)
      Sets the value of the Timestamps property for this object.
      Parameters:
      timestamps - The new value for the Timestamps property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • values

      Sets the value of the Values property for this object.
      Parameters:
      values - The new value for the Values property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • values

      MetricDataResult.Builder values(Double... values)
      Sets the value of the Values property for this object.
      Parameters:
      values - The new value for the Values property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • statusCode

      MetricDataResult.Builder statusCode(String statusCode)
      Sets the value of the StatusCode property for this object.
      Parameters:
      statusCode - The new value for the StatusCode property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • statusCode

      MetricDataResult.Builder statusCode(StatusCode statusCode)
      Sets the value of the StatusCode property for this object.
      Parameters:
      statusCode - The new value for the StatusCode property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • messages

      Sets the value of the Messages property for this object.
      Parameters:
      messages - The new value for the Messages property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • messages

      MetricDataResult.Builder messages(MessageData... messages)
      Sets the value of the Messages property for this object.
      Parameters:
      messages - The new value for the Messages property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • messages

      Sets the value of the Messages property for this object. This is a convenience method that creates an instance of the MessageData.Builder avoiding the need to create one manually via MessageData.builder().

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

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