StructuredPojo
, ToCopyableBuilder<UsageRecordResult.Builder,UsageRecordResult>
@Generated("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 | Description |
---|---|---|
static interface |
UsageRecordResult.Builder |
Modifier and Type | Method | Description |
---|---|---|
static UsageRecordResult.Builder |
builder() |
|
boolean |
equals(Object obj) |
|
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() |
|
String |
status() |
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.
|
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 String 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.
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.