Interface CreditCode.Builder

  • Method Details

    • awsAccountId

      CreditCode.Builder awsAccountId(String awsAccountId)

      The AWS account ID that the credit code is associated with or can be applied to.

      Parameters:
      awsAccountId - The AWS account ID that the credit code is associated with or can be applied to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • value

      The monetary value of the credit code.

      Parameters:
      value - The monetary value of the credit code.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • value

      The monetary value of the credit code.

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

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

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

      CreditCode.Builder awsCreditCode(String awsCreditCode)

      The actual credit code string that can be redeemed in the AWS billing console.

      Parameters:
      awsCreditCode - The actual credit code string that can be redeemed in the AWS billing console.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      CreditCode.Builder status(String status)

      The current status of the credit code (e.g., active, redeemed, expired).

      Parameters:
      status - The current status of the credit code (e.g., active, redeemed, expired).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The current status of the credit code (e.g., active, redeemed, expired).

      Parameters:
      status - The current status of the credit code (e.g., active, redeemed, expired).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • issuedAt

      CreditCode.Builder issuedAt(Instant issuedAt)

      The timestamp when the credit code was issued.

      Parameters:
      issuedAt - The timestamp when the credit code was issued.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • expiresAt

      CreditCode.Builder expiresAt(Instant expiresAt)

      The timestamp when the credit code expires and can no longer be redeemed.

      Parameters:
      expiresAt - The timestamp when the credit code expires and can no longer be redeemed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.