Interface GetMetricUsageRequest.Builder

  • Method Details

    • appId

      The ID of the app.

      Parameters:
      appId - The ID of the app.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • userId

      The end user whose usage is read. Do not include personally identifiable or otherwise sensitive data in this value.

      Parameters:
      userId - The end user whose usage is read. Do not include personally identifiable or otherwise sensitive data in this value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • startedAt

      GetMetricUsageRequest.Builder startedAt(Instant startedAt)

      Inclusive start of the reporting window (half-open [startedAt, endedAt)).

      Parameters:
      startedAt - Inclusive start of the reporting window (half-open [startedAt, endedAt)).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endedAt

      Exclusive end of the reporting window. Must be after startedAt; the window may span at most 744 hours (31 days, the longest monthly billing period). Must not be in the future beyond a small clock-skew allowance.

      Parameters:
      endedAt - Exclusive end of the reporting window. Must be after startedAt; the window may span at most 744 hours (31 days, the longest monthly billing period). Must not be in the future beyond a small clock-skew allowance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scope

      Required. The environment: live or sandbox. sandbox reads the app's isolated test environment. Usage is kept separately per environment.

      Parameters:
      scope - Required. The environment: live or sandbox. sandbox reads the app's isolated test environment. Usage is kept separately per environment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • scope

      Required. The environment: live or sandbox. sandbox reads the app's isolated test environment. Usage is kept separately per environment.

      Parameters:
      scope - Required. The environment: live or sandbox. sandbox reads the app's isolated test environment. Usage is kept separately per environment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • maxResults

      GetMetricUsageRequest.Builder maxResults(Integer maxResults)

      Maximum number of per-metric usage entries to return in this page (1-25, default 25).

      Parameters:
      maxResults - Maximum number of per-metric usage entries to return in this page (1-25, default 25).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nextToken

      GetMetricUsageRequest.Builder nextToken(String nextToken)

      Opaque continuation token from a prior response. The window (startedAt/endedAt) must be unchanged across a pagination sequence.

      Parameters:
      nextToken - Opaque continuation token from a prior response. The window (startedAt/endedAt) must be unchanged across a pagination sequence.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      GetMetricUsageRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.