@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UsageRecordResult extends Object implements Serializable, Cloneable, StructuredPojo
A UsageRecordResult indicates the status of a given UsageRecord processed by BatchMeterUsage.
Constructor and Description |
---|
UsageRecordResult() |
Modifier and Type | Method and Description |
---|---|
UsageRecordResult |
clone() |
boolean |
equals(Object obj) |
String |
getMeteringRecordId()
The MeteringRecordId is a unique identifier for this metering event.
|
String |
getStatus()
The UsageRecordResult Status indicates the status of an individual UsageRecord processed by BatchMeterUsage.
|
UsageRecord |
getUsageRecord()
The UsageRecord that was part of the BatchMeterUsage request.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMeteringRecordId(String meteringRecordId)
The MeteringRecordId is a unique identifier for this metering event.
|
void |
setStatus(String status)
The UsageRecordResult Status indicates the status of an individual UsageRecord processed by BatchMeterUsage.
|
void |
setStatus(UsageRecordResultStatus status)
The UsageRecordResult Status indicates the status of an individual UsageRecord processed by BatchMeterUsage.
|
void |
setUsageRecord(UsageRecord usageRecord)
The UsageRecord that was part of the BatchMeterUsage request.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
UsageRecordResult |
withMeteringRecordId(String meteringRecordId)
The MeteringRecordId is a unique identifier for this metering event.
|
UsageRecordResult |
withStatus(String status)
The UsageRecordResult Status indicates the status of an individual UsageRecord processed by BatchMeterUsage.
|
UsageRecordResult |
withStatus(UsageRecordResultStatus status)
The UsageRecordResult Status indicates the status of an individual UsageRecord processed by BatchMeterUsage.
|
UsageRecordResult |
withUsageRecord(UsageRecord usageRecord)
The UsageRecord that was part of the BatchMeterUsage request.
|
public void setUsageRecord(UsageRecord usageRecord)
The UsageRecord that was part of the BatchMeterUsage request.
usageRecord
- The UsageRecord that was part of the BatchMeterUsage request.public UsageRecord getUsageRecord()
The UsageRecord that was part of the BatchMeterUsage request.
public UsageRecordResult withUsageRecord(UsageRecord usageRecord)
The UsageRecord that was part of the BatchMeterUsage request.
usageRecord
- The UsageRecord that was part of the BatchMeterUsage request.public void setMeteringRecordId(String meteringRecordId)
The MeteringRecordId is a unique identifier for this metering event.
meteringRecordId
- The MeteringRecordId is a unique identifier for this metering event.public String getMeteringRecordId()
The MeteringRecordId is a unique identifier for this metering event.
public UsageRecordResult withMeteringRecordId(String meteringRecordId)
The MeteringRecordId is a unique identifier for this metering event.
meteringRecordId
- The MeteringRecordId is a unique identifier for this metering event.public void setStatus(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.
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.
UsageRecordResultStatus
public String getStatus()
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 withStatus(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.
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.
UsageRecordResultStatus
public void setStatus(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.
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.
UsageRecordResultStatus
public UsageRecordResult withStatus(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.
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.
UsageRecordResultStatus
public String toString()
toString
in class Object
Object.toString()
public UsageRecordResult clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.