Interface BatchMeterUsageResponse.Builder

    • Method Detail

      • results

        BatchMeterUsageResponse.Builder results​(Collection<UsageRecordResult> 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

        BatchMeterUsageResponse.Builder results​(UsageRecordResult... 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.
      • 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).

        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:
        #unprocessedRecords(java.util.Collection)