Interface UsageRecordResult.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<UsageRecordResult.Builder,UsageRecordResult>,SdkBuilder<UsageRecordResult.Builder,UsageRecordResult>,SdkPojo
- Enclosing class:
- UsageRecordResult
public static interface UsageRecordResult.Builder extends SdkPojo, CopyableBuilder<UsageRecordResult.Builder,UsageRecordResult>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description UsageRecordResult.BuildermeteringRecordId(String meteringRecordId)TheMeteringRecordIdis a unique identifier for this metering event.UsageRecordResult.Builderstatus(String status)TheUsageRecordResultStatusindicates the status of an individualUsageRecordprocessed byBatchMeterUsage.UsageRecordResult.Builderstatus(UsageRecordResultStatus status)TheUsageRecordResultStatusindicates the status of an individualUsageRecordprocessed byBatchMeterUsage.default UsageRecordResult.BuilderusageRecord(Consumer<UsageRecord.Builder> usageRecord)TheUsageRecordthat was part of theBatchMeterUsagerequest.UsageRecordResult.BuilderusageRecord(UsageRecord usageRecord)TheUsageRecordthat was part of theBatchMeterUsagerequest.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
usageRecord
UsageRecordResult.Builder usageRecord(UsageRecord usageRecord)
The
UsageRecordthat was part of theBatchMeterUsagerequest.- Parameters:
usageRecord- TheUsageRecordthat was part of theBatchMeterUsagerequest.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usageRecord
default UsageRecordResult.Builder usageRecord(Consumer<UsageRecord.Builder> usageRecord)
The
This is a convenience method that creates an instance of theUsageRecordthat was part of theBatchMeterUsagerequest.UsageRecord.Builderavoiding the need to create one manually viaUsageRecord.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tousageRecord(UsageRecord).- Parameters:
usageRecord- a consumer that will call methods onUsageRecord.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
usageRecord(UsageRecord)
-
meteringRecordId
UsageRecordResult.Builder meteringRecordId(String meteringRecordId)
The
MeteringRecordIdis a unique identifier for this metering event.- Parameters:
meteringRecordId- TheMeteringRecordIdis a unique identifier for this metering event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
UsageRecordResult.Builder status(String 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.
- Parameters:
status- TheUsageRecordResultStatusindicates 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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
UsageRecordResultStatus,UsageRecordResultStatus
-
-
status
UsageRecordResult.Builder status(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.
- Parameters:
status- TheUsageRecordResultStatusindicates 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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
UsageRecordResultStatus,UsageRecordResultStatus
-
-
-