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

package com.azure.resourcemanager.support.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.support.fluent.models.ProblemClassificationInner;

/** An instance of this class provides access to all the operations defined in ProblemClassificationsClient. */
public interface ProblemClassificationsClient {
    /**
     * Lists all the problem classifications (categories) available for a specific Azure service. Always use the service
     * and problem classifications obtained programmatically. This practice ensures that you always have the most recent
     * set of service and problem classification Ids.
     *
     * @param serviceName Name of the Azure service for which the problem classifications need to be retrieved.
     * @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 collection of ProblemClassification resources as paginated response with {@link PagedIterable}.
     */
    @ServiceMethod(returns = ReturnType.COLLECTION)
    PagedIterable<ProblemClassificationInner> list(String serviceName);

    /**
     * Lists all the problem classifications (categories) available for a specific Azure service. Always use the service
     * and problem classifications obtained programmatically. This practice ensures that you always have the most recent
     * set of service and problem classification Ids.
     *
     * @param serviceName Name of the Azure service for which the problem classifications need to be retrieved.
     * @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 collection of ProblemClassification resources as paginated response with {@link PagedIterable}.
     */
    @ServiceMethod(returns = ReturnType.COLLECTION)
    PagedIterable<ProblemClassificationInner> list(String serviceName, Context context);

    /**
     * Get problem classification details for a specific Azure service.
     *
     * @param serviceName Name of the Azure service available for support.
     * @param problemClassificationName Name of problem classification.
     * @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 problem classification details for a specific Azure service along with {@link Response}.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    Response<ProblemClassificationInner> getWithResponse(
        String serviceName, String problemClassificationName, Context context);

    /**
     * Get problem classification details for a specific Azure service.
     *
     * @param serviceName Name of the Azure service available for support.
     * @param problemClassificationName Name of problem classification.
     * @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 problem classification details for a specific Azure service.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    ProblemClassificationInner get(String serviceName, String problemClassificationName);
}
