All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.resourcemanager.billing.fluent.BillingPropertiesClient Maven / Gradle / Ivy

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.billing.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.billing.fluent.models.BillingPropertyInner;

/**
 * An instance of this class provides access to all the operations defined in BillingPropertiesClient.
 */
public interface BillingPropertiesClient {
    /**
     * Gets the billing properties for a subscription.
     * 
     * @param includeBillingCountry A flag that specifies whether or not to include billing country.
     * @param includeTransitionStatus A flag that specifies whether or not to include transition status for billing
     * accounts with agreement type Microsoft Customer Agreement.
     * @param context The context to associate with this operation.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return the billing properties for a subscription along with {@link Response}.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    Response getWithResponse(Boolean includeBillingCountry, Boolean includeTransitionStatus,
        Context context);

    /**
     * Gets the billing properties for a subscription.
     * 
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return the billing properties for a subscription.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    BillingPropertyInner get();

    /**
     * Updates the billing property of a subscription. Currently, cost center can be updated for billing accounts with
     * agreement type Microsoft Customer Agreement and subscription service usage address can be updated for billing
     * accounts with agreement type Microsoft Online Service Program.
     * 
     * @param parameters A billing property.
     * @param context The context to associate with this operation.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return a billing property along with {@link Response}.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    Response updateWithResponse(BillingPropertyInner parameters, Context context);

    /**
     * Updates the billing property of a subscription. Currently, cost center can be updated for billing accounts with
     * agreement type Microsoft Customer Agreement and subscription service usage address can be updated for billing
     * accounts with agreement type Microsoft Online Service Program.
     * 
     * @param parameters A billing property.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return a billing property.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    BillingPropertyInner update(BillingPropertyInner parameters);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy