Interface BatchMeterUsageRequest.Builder

  • Method Details

    • usageRecords

      The set of UsageRecords to submit. BatchMeterUsage accepts up to 25 UsageRecords at a time.

      Parameters:
      usageRecords - The set of UsageRecords to submit. BatchMeterUsage accepts up to 25 UsageRecords at a time.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • usageRecords

      BatchMeterUsageRequest.Builder usageRecords(UsageRecord... usageRecords)

      The set of UsageRecords to submit. BatchMeterUsage accepts up to 25 UsageRecords at a time.

      Parameters:
      usageRecords - The set of UsageRecords to submit. BatchMeterUsage accepts up to 25 UsageRecords at a time.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • usageRecords

      The set of UsageRecords to submit. BatchMeterUsage accepts up to 25 UsageRecords at a time.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to usageRecords(List<UsageRecord>).

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

      BatchMeterUsageRequest.Builder productCode(String productCode)

      Product code is used to uniquely identify a product in Amazon Web Services Marketplace. The product code should be the same as the one used during the publishing of a new product.

      ProductCode is required only for legacy integrations that use CustomerIdentifier. For new integrations using LicenseArn (Concurrent Agreements), do NOT include ProductCode at the request level. The LicenseArn in each UsageRecord identifies both the product and the specific agreement.

      Sending metering records with both ProductCode and LicenseArn for the same customer within the same hour will result in duplicate billing. If you are migrating from product-based metering to license-based metering, stop sending ProductCode before you start sending LicenseArn.

      Parameters:
      productCode - Product code is used to uniquely identify a product in Amazon Web Services Marketplace. The product code should be the same as the one used during the publishing of a new product.

      ProductCode is required only for legacy integrations that use CustomerIdentifier. For new integrations using LicenseArn (Concurrent Agreements), do NOT include ProductCode at the request level. The LicenseArn in each UsageRecord identifies both the product and the specific agreement.

      Sending metering records with both ProductCode and LicenseArn for the same customer within the same hour will result in duplicate billing. If you are migrating from product-based metering to license-based metering, stop sending ProductCode before you start sending LicenseArn.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

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