Interface UsageRecordResult.Builder

All Superinterfaces:
Buildable, CopyableBuilder<UsageRecordResult.Builder,UsageRecordResult>, SdkBuilder<UsageRecordResult.Builder,UsageRecordResult>, SdkPojo
Enclosing class:
UsageRecordResult

public static interface UsageRecordResult.Builder extends SdkPojo, CopyableBuilder<UsageRecordResult.Builder,UsageRecordResult>
  • Method Details

    • usageRecord

      UsageRecordResult.Builder usageRecord(UsageRecord usageRecord)

      The UsageRecord that was part of the BatchMeterUsage request.

      Parameters:
      usageRecord - The UsageRecord that was part of the BatchMeterUsage request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • usageRecord

      default UsageRecordResult.Builder usageRecord(Consumer<UsageRecord.Builder> usageRecord)

      The UsageRecord that was part of the BatchMeterUsage request.

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

      Parameters:
      usageRecord - 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:
    • meteringRecordId

      UsageRecordResult.Builder meteringRecordId(String meteringRecordId)

      The MeteringRecordId is a unique identifier for this metering event.

      Parameters:
      meteringRecordId - The MeteringRecordId is a unique identifier for this metering event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The UsageRecordResult Status indicates the status of an individual UsageRecord processed by BatchMeterUsage.

      • Success- The UsageRecord was accepted and honored by BatchMeterUsage.

      • CustomerNotSubscribed- The CustomerIdentifier specified is not able to use your product. The UsageRecord was not honored. There are three causes for this result:

        • The customer identifier is invalid.

        • The customer identifier provided in the metering record does not have an active agreement or subscription with this product. Future UsageRecords for this customer will fail until the customer subscribes to your product.

        • The customer's AWS account was suspended.

      • DuplicateRecord- Indicates that the UsageRecord was invalid and not honored. A previously metered UsageRecord had the same customer, dimension, and time, but a different quantity.

      Parameters:
      status - The UsageRecordResult Status indicates the status of an individual UsageRecord processed by BatchMeterUsage.

      • Success- The UsageRecord was accepted and honored by BatchMeterUsage.

      • CustomerNotSubscribed- The CustomerIdentifier specified is not able to use your product. The UsageRecord was not honored. There are three causes for this result:

        • The customer identifier is invalid.

        • The customer identifier provided in the metering record does not have an active agreement or subscription with this product. Future UsageRecords for this customer will fail until the customer subscribes to your product.

        • The customer's AWS account was suspended.

      • DuplicateRecord- Indicates that the UsageRecord was invalid and not honored. A previously metered UsageRecord had the same customer, dimension, and time, but a different quantity.

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

      The UsageRecordResult Status indicates the status of an individual UsageRecord processed by BatchMeterUsage.

      • Success- The UsageRecord was accepted and honored by BatchMeterUsage.

      • CustomerNotSubscribed- The CustomerIdentifier specified is not able to use your product. The UsageRecord was not honored. There are three causes for this result:

        • The customer identifier is invalid.

        • The customer identifier provided in the metering record does not have an active agreement or subscription with this product. Future UsageRecords for this customer will fail until the customer subscribes to your product.

        • The customer's AWS account was suspended.

      • DuplicateRecord- Indicates that the UsageRecord was invalid and not honored. A previously metered UsageRecord had the same customer, dimension, and time, but a different quantity.

      Parameters:
      status - The UsageRecordResult Status indicates the status of an individual UsageRecord processed by BatchMeterUsage.

      • Success- The UsageRecord was accepted and honored by BatchMeterUsage.

      • CustomerNotSubscribed- The CustomerIdentifier specified is not able to use your product. The UsageRecord was not honored. There are three causes for this result:

        • The customer identifier is invalid.

        • The customer identifier provided in the metering record does not have an active agreement or subscription with this product. Future UsageRecords for this customer will fail until the customer subscribes to your product.

        • The customer's AWS account was suspended.

      • DuplicateRecord- Indicates that the UsageRecord was invalid and not honored. A previously metered UsageRecord had the same customer, dimension, and time, but a different quantity.

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