BillingProperties Interface

public interface BillingProperties

Resource collection API of BillingProperties.

Method Summary

Modifier and Type Method and Description
abstract BillingProperty get()

Get the billing properties for a subscription.

abstract Response<BillingProperty> getWithResponse(Context context)

Get the billing properties for a subscription.

abstract BillingProperty update(BillingPropertyInner parameters)

Updates the billing property of a subscription.

abstract Response<BillingProperty> updateWithResponse(BillingPropertyInner parameters, Context context)

Updates the billing property of a subscription.

Method Details

get

public abstract BillingProperty get()

Get the billing properties for a subscription. This operation is not supported for billing accounts with agreement type Enterprise Agreement.

Returns:

the billing properties for a subscription.

getWithResponse

public abstract Response getWithResponse(Context context)

Get the billing properties for a subscription. This operation is not supported for billing accounts with agreement type Enterprise Agreement.

Parameters:

context - The context to associate with this operation.

Returns:

the billing properties for a subscription along with Response<T>.

update

public abstract BillingProperty update(BillingPropertyInner parameters)

Updates the billing property of a subscription. Currently, cost center can be updated. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

Parameters:

parameters - Request parameters that are provided to the update billing property operation.

Returns:

a billing property.

updateWithResponse

public abstract Response updateWithResponse(BillingPropertyInner parameters, Context context)

Updates the billing property of a subscription. Currently, cost center can be updated. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

Parameters:

parameters - Request parameters that are provided to the update billing property operation.
context - The context to associate with this operation.

Returns:

a billing property along with Response<T>.

Applies to

Azure SDK for Java

Preview