@Generated(value="software.amazon.awssdk:codegen") public final class UsageRecordResult extends Object implements SdkPojo, Serializable, ToCopyableBuilder<UsageRecordResult.Builder,UsageRecordResult>
A UsageRecordResult indicates the status of a given UsageRecord processed by
BatchMeterUsage.
| Modifier and Type | Class and Description |
|---|---|
static interface |
UsageRecordResult.Builder |
| Modifier and Type | Method and Description |
|---|---|
static UsageRecordResult.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
meteringRecordId()
The
MeteringRecordId is a unique identifier for this metering event. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends UsageRecordResult.Builder> |
serializableBuilderClass() |
UsageRecordResultStatus |
status()
The
UsageRecordResult Status indicates the status of an individual
UsageRecord processed by BatchMeterUsage. |
String |
statusAsString()
The
UsageRecordResult Status indicates the status of an individual
UsageRecord processed by BatchMeterUsage. |
UsageRecordResult.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
UsageRecord |
usageRecord()
The
UsageRecord that was part of the BatchMeterUsage request. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final UsageRecord usageRecord()
The UsageRecord that was part of the BatchMeterUsage request.
UsageRecord that was part of the BatchMeterUsage request.public final String meteringRecordId()
The MeteringRecordId is a unique identifier for this metering event.
MeteringRecordId is a unique identifier for this metering event.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().
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.
UsageRecordResultStatuspublic 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().
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.
UsageRecordResultStatuspublic UsageRecordResult.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<UsageRecordResult.Builder,UsageRecordResult>public static UsageRecordResult.Builder builder()
public static Class<? extends UsageRecordResult.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.