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

package com.azure.resourcemanager.recoveryservicessiterecovery.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.recoveryservicessiterecovery.fluent.models.ReplicationProtectionIntentInner;
import com.azure.resourcemanager.recoveryservicessiterecovery.models.CreateProtectionIntentInput;

/** An instance of this class provides access to all the operations defined in ReplicationProtectionIntentsClient. */
public interface ReplicationProtectionIntentsClient {
    /**
     * Gets the list of replication protection intent objects.
     *
     * <p>Gets the list of ASR replication protection intent objects in the vault.
     *
     * @param resourceName The name of the recovery services vault.
     * @param resourceGroupName The name of the resource group where the recovery services vault is present.
     * @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 ASR replication protection intent objects in the vault as paginated response with {@link
     *     PagedIterable}.
     */
    @ServiceMethod(returns = ReturnType.COLLECTION)
    PagedIterable<ReplicationProtectionIntentInner> list(String resourceName, String resourceGroupName);

    /**
     * Gets the list of replication protection intent objects.
     *
     * <p>Gets the list of ASR replication protection intent objects in the vault.
     *
     * @param resourceName The name of the recovery services vault.
     * @param resourceGroupName The name of the resource group where the recovery services vault is present.
     * @param skipToken The pagination token.
     * @param takeToken The page size.
     * @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 ASR replication protection intent objects in the vault as paginated response with {@link
     *     PagedIterable}.
     */
    @ServiceMethod(returns = ReturnType.COLLECTION)
    PagedIterable<ReplicationProtectionIntentInner> list(
        String resourceName, String resourceGroupName, String skipToken, String takeToken, Context context);

    /**
     * Gets the details of a Replication protection intent item.
     *
     * <p>Gets the details of an ASR replication protection intent.
     *
     * @param resourceName The name of the recovery services vault.
     * @param resourceGroupName The name of the resource group where the recovery services vault is present.
     * @param intentObjectName Replication protection intent name.
     * @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 details of an ASR replication protection intent along with {@link Response}.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    Response<ReplicationProtectionIntentInner> getWithResponse(
        String resourceName, String resourceGroupName, String intentObjectName, Context context);

    /**
     * Gets the details of a Replication protection intent item.
     *
     * <p>Gets the details of an ASR replication protection intent.
     *
     * @param resourceName The name of the recovery services vault.
     * @param resourceGroupName The name of the resource group where the recovery services vault is present.
     * @param intentObjectName Replication protection intent name.
     * @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 details of an ASR replication protection intent.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    ReplicationProtectionIntentInner get(String resourceName, String resourceGroupName, String intentObjectName);

    /**
     * Create protection intent Resource.
     *
     * <p>The operation to create an ASR replication protection intent item.
     *
     * @param resourceName The name of the recovery services vault.
     * @param resourceGroupName The name of the resource group where the recovery services vault is present.
     * @param intentObjectName A name for the replication protection item.
     * @param input Create Protection Intent Input.
     * @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 replication protection intent along with {@link Response}.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    Response<ReplicationProtectionIntentInner> createWithResponse(
        String resourceName,
        String resourceGroupName,
        String intentObjectName,
        CreateProtectionIntentInput input,
        Context context);

    /**
     * Create protection intent Resource.
     *
     * <p>The operation to create an ASR replication protection intent item.
     *
     * @param resourceName The name of the recovery services vault.
     * @param resourceGroupName The name of the resource group where the recovery services vault is present.
     * @param intentObjectName A name for the replication protection item.
     * @param input Create Protection Intent Input.
     * @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 replication protection intent.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    ReplicationProtectionIntentInner create(
        String resourceName, String resourceGroupName, String intentObjectName, CreateProtectionIntentInput input);
}
