Interface HistoricalUsageEntity.Builder

  • Method Details

    • serviceCode

      HistoricalUsageEntity.Builder serviceCode(String serviceCode)

      The Amazon Web Services service code associated with the usage.

      Parameters:
      serviceCode - The Amazon Web Services service code associated with the usage.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • usageType

      HistoricalUsageEntity.Builder usageType(String usageType)

      The type of usage.

      Parameters:
      usageType - The type of usage.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • operation

      HistoricalUsageEntity.Builder operation(String operation)

      The specific operation associated with the usage.

      Parameters:
      operation - The specific operation associated with the usage.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • location

      The location associated with the usage.

      Parameters:
      location - The location associated with the usage.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • usageAccountId

      HistoricalUsageEntity.Builder usageAccountId(String usageAccountId)

      The Amazon Web Services account ID associated with the usage.

      Parameters:
      usageAccountId - The Amazon Web Services account ID associated with the usage.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • billInterval

      HistoricalUsageEntity.Builder billInterval(BillInterval billInterval)

      The time interval for the historical usage data.

      Parameters:
      billInterval - The time interval for the historical usage data.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • billInterval

      default HistoricalUsageEntity.Builder billInterval(Consumer<BillInterval.Builder> billInterval)

      The time interval for the historical usage data.

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

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

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

      HistoricalUsageEntity.Builder filterExpression(Expression filterExpression)

      An optional filter expression to apply to the historical usage data.

      Parameters:
      filterExpression - An optional filter expression to apply to the historical usage data.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filterExpression

      default HistoricalUsageEntity.Builder filterExpression(Consumer<Expression.Builder> filterExpression)

      An optional filter expression to apply to the historical usage data.

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

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

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