SubscriptionUsageRecordCollectionOperations Class

Implements

public class SubscriptionUsageRecordCollectionOperations extends BasePartnerComponent<Tuple<String,String>> implements ISubscriptionUsageRecordCollection

Implements the operations to get a customer's subscription usage records.

Constructor Summary

Constructor Description
SubscriptionUsageRecordCollectionOperations(IPartner rootPartnerOperations, String customerId, String subscriptionId)

Initializes a new instance of the SubscriptionUsageRecordCollectionOperations class.

Method Summary

Modifier and Type Method and Description
IUsageRecordByMeterCollection byMeter()

Gets the subscription usage records grouped by meter.

IUsageRecordByResourceCollection byResource()

Gets the subscription usage records grouped by resource.

Inherited Members

BasePartnerComponent<TContext>.getContext() BasePartnerComponent<TContext>.getPartner() java.lang.Object.clone() java.lang.Object.equals(java.lang.Object) java.lang.Object.finalize() java.lang.Object.getClass() java.lang.Object.hashCode() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.toString() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int)

Constructor Details

SubscriptionUsageRecordCollectionOperations

public SubscriptionUsageRecordCollectionOperations(IPartner rootPartnerOperations, String customerId, String subscriptionId)

Initializes a new instance of the SubscriptionUsageRecordCollectionOperations class.

Parameters:

rootPartnerOperations - The root partner operations instance.
customerId - The customer identifier.
subscriptionId - The subscription identifier.

Method Details

byMeter

public IUsageRecordByMeterCollection byMeter()

Gets the subscription usage records grouped by meter.

Returns:

The subscription usage records grouped by meter operations.

byResource

public IUsageRecordByResourceCollection byResource()

Gets the subscription usage records grouped by resource.

Returns:

The subscription usage records grouped by resource operations.

Applies to