BillingPeriods Interface

public interface BillingPeriods

Resource collection API of BillingPeriods.

Method Summary

Modifier and Type Method and Description
abstract BillingPeriod get(String billingPeriodName)

Gets a named billing period.

abstract Response<BillingPeriod> getWithResponse(String billingPeriodName, Context context)

Gets a named billing period.

abstract PagedIterable<BillingPeriod> list()

Lists the available billing periods for a subscription in reverse chronological order.

abstract PagedIterable<BillingPeriod> list(String filter, String skiptoken, Integer top, Context context)

Lists the available billing periods for a subscription in reverse chronological order.

Method Details

get

public abstract BillingPeriod get(String billingPeriodName)

Gets a named billing period. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API.

Parameters:

billingPeriodName - The name of a BillingPeriod resource.

Returns:

a named billing period.

getWithResponse

public abstract Response getWithResponse(String billingPeriodName, Context context)

Gets a named billing period. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API.

Parameters:

billingPeriodName - The name of a BillingPeriod resource.
context - The context to associate with this operation.

Returns:

a named billing period along with Response<T>.

list

public abstract PagedIterable list()

Lists the available billing periods for a subscription in reverse chronological order. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API.

Returns:

result of listing billing periods as paginated response with PagedIterable<T>.

list

public abstract PagedIterable list(String filter, String skiptoken, Integer top, Context context)

Lists the available billing periods for a subscription in reverse chronological order. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API.

Parameters:

filter - May be used to filter billing periods by billingPeriodEndDate. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'.
skiptoken - Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.
top - May be used to limit the number of results to the most recent N billing periods.
context - The context to associate with this operation.

Returns:

result of listing billing periods as paginated response with PagedIterable<T>.

Applies to

Azure SDK for Java

Preview