Class CustomerUsageSpendingBudgetOperations
java.lang.Object
com.microsoft.store.partnercenter.BasePartnerComponent<String>
com.microsoft.store.partnercenter.BasePartnerComponentString
com.microsoft.store.partnercenter.usage.CustomerUsageSpendingBudgetOperations
- All Implemented Interfaces:
IEntityGetOperations<SpendingBudget>,IEntityPatchOperations<SpendingBudget>,IPartnerComponent<String>,IPartnerComponentString,ICustomerUsageSpendingBudget
public class CustomerUsageSpendingBudgetOperations extends BasePartnerComponentString implements ICustomerUsageSpendingBudget
This class implements the operations available on a customer's usage spending budget.
-
Constructor Summary
Constructors Constructor Description CustomerUsageSpendingBudgetOperations(IPartner rootPartnerOperations, String customerId)Initializes a new instance of the CustomerUsageSpendingBudgetOperations class. -
Method Summary
Modifier and Type Method Description SpendingBudgetget()Gets the usage spending budget allocated to a customer by the partner.SpendingBudgetpatch(SpendingBudget usageSpendingBudget)Patches the usage spending budget allocated to a customer by the partner.Methods inherited from class com.microsoft.store.partnercenter.BasePartnerComponent
getContext, getPartnerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.microsoft.store.partnercenter.IPartnerComponent
getContext, getPartner
-
Constructor Details
-
CustomerUsageSpendingBudgetOperations
Initializes a new instance of the CustomerUsageSpendingBudgetOperations class.- Parameters:
rootPartnerOperations- The root partner operations instance.customerId- The customer identifier.
-
-
Method Details
-
get
Gets the usage spending budget allocated to a customer by the partner.- Specified by:
getin interfaceICustomerUsageSpendingBudget- Specified by:
getin interfaceIEntityGetOperations<SpendingBudget>- Returns:
- The customer usage spending budget.
-
patch
Patches the usage spending budget allocated to a customer by the partner.- Specified by:
patchin interfaceICustomerUsageSpendingBudget- Specified by:
patchin interfaceIEntityPatchOperations<SpendingBudget>- Parameters:
usageSpendingBudget- The new customer usage spending budget.- Returns:
- The updated customer usage spending budget.
-