Class UsageRecordResult
- java.lang.Object
-
- software.amazon.awssdk.services.marketplacemetering.model.UsageRecordResult
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<UsageRecordResult.Builder,UsageRecordResult>
@Generated("software.amazon.awssdk:codegen") public final class UsageRecordResult extends Object implements SdkPojo, Serializable, ToCopyableBuilder<UsageRecordResult.Builder,UsageRecordResult>
A
UsageRecordResultindicates the status of a givenUsageRecordprocessed byBatchMeterUsage.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUsageRecordResult.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UsageRecordResult.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringmeteringRecordId()TheMeteringRecordIdis a unique identifier for this metering event.List<SdkField<?>>sdkFields()static Class<? extends UsageRecordResult.Builder>serializableBuilderClass()UsageRecordResultStatusstatus()TheUsageRecordResultStatusindicates the status of an individualUsageRecordprocessed byBatchMeterUsage.StringstatusAsString()TheUsageRecordResultStatusindicates the status of an individualUsageRecordprocessed byBatchMeterUsage.UsageRecordResult.BuildertoBuilder()StringtoString()Returns a string representation of this object.UsageRecordusageRecord()TheUsageRecordthat was part of theBatchMeterUsagerequest.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
usageRecord
public final UsageRecord usageRecord()
The
UsageRecordthat was part of theBatchMeterUsagerequest.- Returns:
- The
UsageRecordthat was part of theBatchMeterUsagerequest.
-
meteringRecordId
public final String meteringRecordId()
The
MeteringRecordIdis a unique identifier for this metering event.- Returns:
- The
MeteringRecordIdis a unique identifier for this metering event.
-
status
public final UsageRecordResultStatus status()
The
UsageRecordResultStatusindicates the status of an individualUsageRecordprocessed byBatchMeterUsage.-
Success- The
UsageRecordwas accepted and honored byBatchMeterUsage. -
CustomerNotSubscribed- The
CustomerIdentifierspecified is not able to use your product. TheUsageRecordwas 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
UsageRecordsfor this customer will fail until the customer subscribes to your product. -
The customer's AWS account was suspended.
-
-
DuplicateRecord- Indicates that the
UsageRecordwas invalid and not honored. A previously meteredUsageRecordhad 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,
statuswill returnUsageRecordResultStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The
UsageRecordResultStatusindicates the status of an individualUsageRecordprocessed byBatchMeterUsage.-
Success- The
UsageRecordwas accepted and honored byBatchMeterUsage. -
CustomerNotSubscribed- The
CustomerIdentifierspecified is not able to use your product. TheUsageRecordwas 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
UsageRecordsfor this customer will fail until the customer subscribes to your product. -
The customer's AWS account was suspended.
-
-
DuplicateRecord- Indicates that the
UsageRecordwas invalid and not honored. A previously meteredUsageRecordhad the same customer, dimension, and time, but a different quantity.
-
- See Also:
UsageRecordResultStatus
-
-
statusAsString
public final String statusAsString()
The
UsageRecordResultStatusindicates the status of an individualUsageRecordprocessed byBatchMeterUsage.-
Success- The
UsageRecordwas accepted and honored byBatchMeterUsage. -
CustomerNotSubscribed- The
CustomerIdentifierspecified is not able to use your product. TheUsageRecordwas 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
UsageRecordsfor this customer will fail until the customer subscribes to your product. -
The customer's AWS account was suspended.
-
-
DuplicateRecord- Indicates that the
UsageRecordwas invalid and not honored. A previously meteredUsageRecordhad 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,
statuswill returnUsageRecordResultStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The
UsageRecordResultStatusindicates the status of an individualUsageRecordprocessed byBatchMeterUsage.-
Success- The
UsageRecordwas accepted and honored byBatchMeterUsage. -
CustomerNotSubscribed- The
CustomerIdentifierspecified is not able to use your product. TheUsageRecordwas 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
UsageRecordsfor this customer will fail until the customer subscribes to your product. -
The customer's AWS account was suspended.
-
-
DuplicateRecord- Indicates that the
UsageRecordwas invalid and not honored. A previously meteredUsageRecordhad the same customer, dimension, and time, but a different quantity.
-
- See Also:
UsageRecordResultStatus
-
-
toBuilder
public UsageRecordResult.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<UsageRecordResult.Builder,UsageRecordResult>
-
builder
public static UsageRecordResult.Builder builder()
-
serializableBuilderClass
public static Class<? extends UsageRecordResult.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-