@Generated(value="software.amazon.awssdk:codegen") public class UsageRecordResult extends Object implements StructuredPojo, 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) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
meteringRecordId()
The MeteringRecordId is a unique identifier for this metering event.
|
static Class<? extends UsageRecordResult.Builder> |
serializableBuilderClass() |
UsageRecordResultStatus |
status()
The UsageRecordResult Status indicates the status of an individual UsageRecord processed by BatchMeterUsage.
|
String |
statusString()
The UsageRecordResult Status indicates the status of an individual UsageRecord processed by BatchMeterUsage.
|
UsageRecordResult.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
UsageRecord |
usageRecord()
The UsageRecord that was part of the BatchMeterUsage request.
|
copy
public UsageRecord usageRecord()
The UsageRecord that was part of the BatchMeterUsage request.
public String meteringRecordId()
The MeteringRecordId is a unique identifier for this metering event.
public 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 subscribed to your product. The UsageRecord was not honored. Future UsageRecords for this customer will fail until the customer subscribes to your product.
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 statusString()
.
Success- The UsageRecord was accepted and honored by BatchMeterUsage.
CustomerNotSubscribed- The CustomerIdentifier specified is not subscribed to your product. The UsageRecord was not honored. Future UsageRecords for this customer will fail until the customer subscribes to your product.
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.
UsageRecordResultStatus
public String statusString()
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 subscribed to your product. The UsageRecord was not honored. Future UsageRecords for this customer will fail until the customer subscribes to your product.
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 statusString()
.
Success- The UsageRecord was accepted and honored by BatchMeterUsage.
CustomerNotSubscribed- The CustomerIdentifier specified is not subscribed to your product. The UsageRecord was not honored. Future UsageRecords for this customer will fail until the customer subscribes to your product.
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.
UsageRecordResultStatus
public UsageRecordResult.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<UsageRecordResult.Builder,UsageRecordResult>
public static UsageRecordResult.Builder builder()
public static Class<? extends UsageRecordResult.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.