Interface BillScenarioSummary.Builder

  • Method Details

    • id

      The unique identifier of the bill scenario.

      Parameters:
      id - The unique identifier of the bill scenario.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the bill scenario.

      Parameters:
      name - The name of the bill scenario.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • billInterval

      BillScenarioSummary.Builder billInterval(BillInterval billInterval)

      The time period covered by the bill scenario.

      Parameters:
      billInterval - The time period covered by the bill scenario.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • billInterval

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

      The time period covered by the bill scenario.

      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:
    • status

      The current status of the bill scenario.

      Parameters:
      status - The current status of the bill scenario.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The current status of the bill scenario.

      Parameters:
      status - The current status of the bill scenario.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • createdAt

      BillScenarioSummary.Builder createdAt(Instant createdAt)

      The timestamp when the bill scenario was created.

      Parameters:
      createdAt - The timestamp when the bill scenario was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • expiresAt

      BillScenarioSummary.Builder expiresAt(Instant expiresAt)

      The timestamp when the bill scenario will expire.

      Parameters:
      expiresAt - The timestamp when the bill scenario will expire.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • failureMessage

      BillScenarioSummary.Builder failureMessage(String failureMessage)

      An error message if the bill scenario creation or processing failed.

      Parameters:
      failureMessage - An error message if the bill scenario creation or processing failed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.