Class UsageRecordResult

    • Method Detail

      • usageRecord

        public final UsageRecord usageRecord()

        The UsageRecord that was part of the BatchMeterUsage request.

        Returns:
        The UsageRecord that was part of the BatchMeterUsage request.
      • meteringRecordId

        public final String meteringRecordId()

        The MeteringRecordId is a unique identifier for this metering event.

        Returns:
        The MeteringRecordId is a unique identifier for this metering event.
      • status

        public final UsageRecordResultStatus 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.

        If the service returns an enum value that is not available in the current SDK version, status will return UsageRecordResultStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

        Returns:
        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.

        See Also:
        UsageRecordResultStatus
      • statusAsString

        public final String statusAsString()

        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.

        If the service returns an enum value that is not available in the current SDK version, status will return UsageRecordResultStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

        Returns:
        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.

        See Also:
        UsageRecordResultStatus
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)