@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.
|
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.
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.
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 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.
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.
UsageRecordResultStatuspublic 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 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.
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 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 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.
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.
UsageRecordResultStatuspublic 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 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.
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.
UsageRecordResultStatuspublic 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 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.
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.
UsageRecordResultStatuspublic String toString()
toString in class ObjectObject.toString()public UsageRecordResult clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.