
com.azure.resourcemanager.billing.fluent.TransfersClient 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.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.billing.fluent.models.TransferDetailsInner;
import com.azure.resourcemanager.billing.models.InitiateTransferRequest;
/**
* An instance of this class provides access to all the operations defined in TransfersClient.
*/
public interface TransfersClient {
/**
* Gets a transfer request by ID. The operation is supported only for billing accounts with agreement type Microsoft
* Customer Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param invoiceSectionName The ID that uniquely identifies an invoice section.
* @param transferName The ID that uniquely identifies a transfer request.
* @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 transfer request by ID along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String billingAccountName, String billingProfileName,
String invoiceSectionName, String transferName, Context context);
/**
* Gets a transfer request by ID. The operation is supported only for billing accounts with agreement type Microsoft
* Customer Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param invoiceSectionName The ID that uniquely identifies an invoice section.
* @param transferName The ID that uniquely identifies a transfer request.
* @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 transfer request by ID.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
TransferDetailsInner get(String billingAccountName, String billingProfileName, String invoiceSectionName,
String transferName);
/**
* Sends a request to a user in another billing account to transfer billing ownership of their subscriptions. The
* operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param invoiceSectionName The ID that uniquely identifies an invoice section.
* @param transferName The ID that uniquely identifies a transfer request.
* @param parameters Request parameters that are provided to the initiate transfer operation.
* @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 details of the transfer along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response initiateWithResponse(String billingAccountName, String billingProfileName,
String invoiceSectionName, String transferName, InitiateTransferRequest parameters, Context context);
/**
* Sends a request to a user in another billing account to transfer billing ownership of their subscriptions. The
* operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param invoiceSectionName The ID that uniquely identifies an invoice section.
* @param transferName The ID that uniquely identifies a transfer request.
* @param parameters Request parameters that are provided to the initiate transfer 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 details of the transfer.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
TransferDetailsInner initiate(String billingAccountName, String billingProfileName, String invoiceSectionName,
String transferName, InitiateTransferRequest parameters);
/**
* Cancels a transfer request. The operation is supported only for billing accounts with agreement type Microsoft
* Customer Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param invoiceSectionName The ID that uniquely identifies an invoice section.
* @param transferName The ID that uniquely identifies a transfer request.
* @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 details of the transfer along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response cancelWithResponse(String billingAccountName, String billingProfileName,
String invoiceSectionName, String transferName, Context context);
/**
* Cancels a transfer request. The operation is supported only for billing accounts with agreement type Microsoft
* Customer Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param invoiceSectionName The ID that uniquely identifies an invoice section.
* @param transferName The ID that uniquely identifies a transfer request.
* @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 details of the transfer.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
TransferDetailsInner cancel(String billingAccountName, String billingProfileName, String invoiceSectionName,
String transferName);
/**
* Lists the transfer requests for an invoice section. The operation is supported only for billing accounts with
* agreement type Microsoft Customer Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param invoiceSectionName The ID that uniquely identifies an invoice section.
* @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 list of transfers initiated by caller as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String billingAccountName, String billingProfileName,
String invoiceSectionName);
/**
* Lists the transfer requests for an invoice section. The operation is supported only for billing accounts with
* agreement type Microsoft Customer Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param invoiceSectionName The ID that uniquely identifies an invoice section.
* @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 list of transfers initiated by caller as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String billingAccountName, String billingProfileName,
String invoiceSectionName, Context context);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy