Interface GetCreditsRequest.Builder

  • Method Details

    • accountId

      GetCreditsRequest.Builder accountId(String accountId)

      The Amazon Web Services account ID. Must be a 12-digit numeric string.

      Parameters:
      accountId - The Amazon Web Services account ID. Must be a 12-digit numeric string.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • startDate

      GetCreditsRequest.Builder startDate(Instant startDate)

      The start date for the credit period as Unix epoch seconds. Must be a past date that is not more than one year before the current date.

      Parameters:
      startDate - The start date for the credit period as Unix epoch seconds. Must be a past date that is not more than one year before the current date.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endDate

      The end date for the credit period as Unix epoch seconds. Must not be a future date and must be on or after startDate. Defaults to the current date when omitted.

      Parameters:
      endDate - The end date for the credit period as Unix epoch seconds. Must not be a future date and must be on or after startDate. Defaults to the current date when omitted.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • payerAccountFlag

      GetCreditsRequest.Builder payerAccountFlag(Boolean payerAccountFlag)

      When true and the caller is the management account, the response aggregates credits across the entire consolidated billing family. When false or omitted, returns only credits for the specified accountId.

      Parameters:
      payerAccountFlag - When true and the caller is the management account, the response aggregates credits across the entire consolidated billing family. When false or omitted, returns only credits for the specified accountId.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      GetCreditsRequest.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.