Interface BatchMeterUsageResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CopyableBuilder<BatchMeterUsageResponse.Builder,BatchMeterUsageResponse>, MarketplaceMeteringResponse.Builder, SdkBuilder<BatchMeterUsageResponse.Builder,BatchMeterUsageResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
BatchMeterUsageResponse

  • Method Details

    • results

      Contains all UsageRecords processed by BatchMeterUsage. These records were either honored by AWS Marketplace Metering Service or were invalid. Invalid records should be fixed before being resubmitted.

      Parameters:
      results - Contains all UsageRecords processed by BatchMeterUsage. These records were either honored by AWS Marketplace Metering Service or were invalid. Invalid records should be fixed before being resubmitted.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • results

      Contains all UsageRecords processed by BatchMeterUsage. These records were either honored by AWS Marketplace Metering Service or were invalid. Invalid records should be fixed before being resubmitted.

      Parameters:
      results - Contains all UsageRecords processed by BatchMeterUsage. These records were either honored by AWS Marketplace Metering Service or were invalid. Invalid records should be fixed before being resubmitted.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • results

      Contains all UsageRecords processed by BatchMeterUsage. These records were either honored by AWS Marketplace Metering Service or were invalid. Invalid records should be fixed before being resubmitted.

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

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

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

      BatchMeterUsageResponse.Builder unprocessedRecords(Collection<UsageRecord> unprocessedRecords)

      Contains all UsageRecords that were not processed by BatchMeterUsage. This is a list of UsageRecords. You can retry the failed request by making another BatchMeterUsage call with this list as input in the BatchMeterUsageRequest.

      Parameters:
      unprocessedRecords - Contains all UsageRecords that were not processed by BatchMeterUsage. This is a list of UsageRecords. You can retry the failed request by making another BatchMeterUsage call with this list as input in the BatchMeterUsageRequest.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • unprocessedRecords

      BatchMeterUsageResponse.Builder unprocessedRecords(UsageRecord... unprocessedRecords)

      Contains all UsageRecords that were not processed by BatchMeterUsage. This is a list of UsageRecords. You can retry the failed request by making another BatchMeterUsage call with this list as input in the BatchMeterUsageRequest.

      Parameters:
      unprocessedRecords - Contains all UsageRecords that were not processed by BatchMeterUsage. This is a list of UsageRecords. You can retry the failed request by making another BatchMeterUsage call with this list as input in the BatchMeterUsageRequest.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • unprocessedRecords

      BatchMeterUsageResponse.Builder unprocessedRecords(Consumer<UsageRecord.Builder>... unprocessedRecords)

      Contains all UsageRecords that were not processed by BatchMeterUsage. This is a list of UsageRecords. You can retry the failed request by making another BatchMeterUsage call with this list as input in the BatchMeterUsageRequest.

      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 unprocessedRecords(List<UsageRecord>).

      Parameters:
      unprocessedRecords - 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: