// 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.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.RecoveryPlanInner;
import com.azure.resourcemanager.recoveryservicessiterecovery.models.CreateRecoveryPlanInput;
import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanPlannedFailoverInput;
import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanTestFailoverCleanupInput;
import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanTestFailoverInput;
import com.azure.resourcemanager.recoveryservicessiterecovery.models.RecoveryPlanUnplannedFailoverInput;
import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateRecoveryPlanInput;

/** An instance of this class provides access to all the operations defined in ReplicationRecoveryPlansClient. */
public interface ReplicationRecoveryPlansClient {
    /**
     * Gets the list of recovery plans.
     *
     * <p>Lists the recovery plans 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 recovery plan collection details as paginated response with {@link PagedIterable}.
     */
    @ServiceMethod(returns = ReturnType.COLLECTION)
    PagedIterable<RecoveryPlanInner> list(String resourceName, String resourceGroupName);

    /**
     * Gets the list of recovery plans.
     *
     * <p>Lists the recovery plans 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 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 recovery plan collection details as paginated response with {@link PagedIterable}.
     */
    @ServiceMethod(returns = ReturnType.COLLECTION)
    PagedIterable<RecoveryPlanInner> list(String resourceName, String resourceGroupName, Context context);

    /**
     * Gets the requested recovery plan.
     *
     * <p>Gets the details of the recovery plan.
     *
     * @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 recoveryPlanName Name of the recovery plan.
     * @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 the recovery plan along with {@link Response}.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    Response<RecoveryPlanInner> getWithResponse(
        String resourceName, String resourceGroupName, String recoveryPlanName, Context context);

    /**
     * Gets the requested recovery plan.
     *
     * <p>Gets the details of the recovery plan.
     *
     * @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 recoveryPlanName Name of the recovery plan.
     * @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 the recovery plan.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    RecoveryPlanInner get(String resourceName, String resourceGroupName, String recoveryPlanName);

    /**
     * Creates a recovery plan with the given details.
     *
     * <p>The operation to create a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan name.
     * @param input Recovery Plan creation 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 the {@link SyncPoller} for polling of recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    SyncPoller<PollResult<RecoveryPlanInner>, RecoveryPlanInner> beginCreate(
        String resourceName, String resourceGroupName, String recoveryPlanName, CreateRecoveryPlanInput input);

    /**
     * Creates a recovery plan with the given details.
     *
     * <p>The operation to create a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan name.
     * @param input Recovery Plan creation 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 the {@link SyncPoller} for polling of recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    SyncPoller<PollResult<RecoveryPlanInner>, RecoveryPlanInner> beginCreate(
        String resourceName,
        String resourceGroupName,
        String recoveryPlanName,
        CreateRecoveryPlanInput input,
        Context context);

    /**
     * Creates a recovery plan with the given details.
     *
     * <p>The operation to create a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan name.
     * @param input Recovery Plan creation 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 recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    RecoveryPlanInner create(
        String resourceName, String resourceGroupName, String recoveryPlanName, CreateRecoveryPlanInput input);

    /**
     * Creates a recovery plan with the given details.
     *
     * <p>The operation to create a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan name.
     * @param input Recovery Plan creation 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 recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    RecoveryPlanInner create(
        String resourceName,
        String resourceGroupName,
        String recoveryPlanName,
        CreateRecoveryPlanInput input,
        Context context);

    /**
     * Deletes the specified recovery plan.
     *
     * <p>Delete a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan 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 {@link SyncPoller} for polling of long-running operation.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    SyncPoller<PollResult<Void>, Void> beginDelete(
        String resourceName, String resourceGroupName, String recoveryPlanName);

    /**
     * Deletes the specified recovery plan.
     *
     * <p>Delete a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan 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 {@link SyncPoller} for polling of long-running operation.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    SyncPoller<PollResult<Void>, Void> beginDelete(
        String resourceName, String resourceGroupName, String recoveryPlanName, Context context);

    /**
     * Deletes the specified recovery plan.
     *
     * <p>Delete a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan 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.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    void delete(String resourceName, String resourceGroupName, String recoveryPlanName);

    /**
     * Deletes the specified recovery plan.
     *
     * <p>Delete a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan 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.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    void delete(String resourceName, String resourceGroupName, String recoveryPlanName, Context context);

    /**
     * Updates the given recovery plan.
     *
     * <p>The operation to update a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan name.
     * @param input Update recovery plan 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 the {@link SyncPoller} for polling of recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    SyncPoller<PollResult<RecoveryPlanInner>, RecoveryPlanInner> beginUpdate(
        String resourceName, String resourceGroupName, String recoveryPlanName, UpdateRecoveryPlanInput input);

    /**
     * Updates the given recovery plan.
     *
     * <p>The operation to update a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan name.
     * @param input Update recovery plan 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 the {@link SyncPoller} for polling of recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    SyncPoller<PollResult<RecoveryPlanInner>, RecoveryPlanInner> beginUpdate(
        String resourceName,
        String resourceGroupName,
        String recoveryPlanName,
        UpdateRecoveryPlanInput input,
        Context context);

    /**
     * Updates the given recovery plan.
     *
     * <p>The operation to update a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan name.
     * @param input Update recovery plan 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 recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    RecoveryPlanInner update(
        String resourceName, String resourceGroupName, String recoveryPlanName, UpdateRecoveryPlanInput input);

    /**
     * Updates the given recovery plan.
     *
     * <p>The operation to update a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan name.
     * @param input Update recovery plan 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 recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    RecoveryPlanInner update(
        String resourceName,
        String resourceGroupName,
        String recoveryPlanName,
        UpdateRecoveryPlanInput input,
        Context context);

    /**
     * Execute cancel failover of the recovery plan.
     *
     * <p>The operation to cancel the failover of a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan 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 {@link SyncPoller} for polling of recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    SyncPoller<PollResult<RecoveryPlanInner>, RecoveryPlanInner> beginFailoverCancel(
        String resourceName, String resourceGroupName, String recoveryPlanName);

    /**
     * Execute cancel failover of the recovery plan.
     *
     * <p>The operation to cancel the failover of a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan 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 {@link SyncPoller} for polling of recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    SyncPoller<PollResult<RecoveryPlanInner>, RecoveryPlanInner> beginFailoverCancel(
        String resourceName, String resourceGroupName, String recoveryPlanName, Context context);

    /**
     * Execute cancel failover of the recovery plan.
     *
     * <p>The operation to cancel the failover of a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan 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 recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    RecoveryPlanInner failoverCancel(String resourceName, String resourceGroupName, String recoveryPlanName);

    /**
     * Execute cancel failover of the recovery plan.
     *
     * <p>The operation to cancel the failover of a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan 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 recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    RecoveryPlanInner failoverCancel(
        String resourceName, String resourceGroupName, String recoveryPlanName, Context context);

    /**
     * Execute commit failover of the recovery plan.
     *
     * <p>The operation to commit the failover of a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan 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 {@link SyncPoller} for polling of recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    SyncPoller<PollResult<RecoveryPlanInner>, RecoveryPlanInner> beginFailoverCommit(
        String resourceName, String resourceGroupName, String recoveryPlanName);

    /**
     * Execute commit failover of the recovery plan.
     *
     * <p>The operation to commit the failover of a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan 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 {@link SyncPoller} for polling of recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    SyncPoller<PollResult<RecoveryPlanInner>, RecoveryPlanInner> beginFailoverCommit(
        String resourceName, String resourceGroupName, String recoveryPlanName, Context context);

    /**
     * Execute commit failover of the recovery plan.
     *
     * <p>The operation to commit the failover of a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan 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 recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    RecoveryPlanInner failoverCommit(String resourceName, String resourceGroupName, String recoveryPlanName);

    /**
     * Execute commit failover of the recovery plan.
     *
     * <p>The operation to commit the failover of a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan 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 recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    RecoveryPlanInner failoverCommit(
        String resourceName, String resourceGroupName, String recoveryPlanName, Context context);

    /**
     * Execute planned failover of the recovery plan.
     *
     * <p>The operation to start the planned failover of a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan name.
     * @param input Failover 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 the {@link SyncPoller} for polling of recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    SyncPoller<PollResult<RecoveryPlanInner>, RecoveryPlanInner> beginPlannedFailover(
        String resourceName, String resourceGroupName, String recoveryPlanName, RecoveryPlanPlannedFailoverInput input);

    /**
     * Execute planned failover of the recovery plan.
     *
     * <p>The operation to start the planned failover of a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan name.
     * @param input Failover 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 the {@link SyncPoller} for polling of recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    SyncPoller<PollResult<RecoveryPlanInner>, RecoveryPlanInner> beginPlannedFailover(
        String resourceName,
        String resourceGroupName,
        String recoveryPlanName,
        RecoveryPlanPlannedFailoverInput input,
        Context context);

    /**
     * Execute planned failover of the recovery plan.
     *
     * <p>The operation to start the planned failover of a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan name.
     * @param input Failover 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 recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    RecoveryPlanInner plannedFailover(
        String resourceName, String resourceGroupName, String recoveryPlanName, RecoveryPlanPlannedFailoverInput input);

    /**
     * Execute planned failover of the recovery plan.
     *
     * <p>The operation to start the planned failover of a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan name.
     * @param input Failover 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 recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    RecoveryPlanInner plannedFailover(
        String resourceName,
        String resourceGroupName,
        String recoveryPlanName,
        RecoveryPlanPlannedFailoverInput input,
        Context context);

    /**
     * Execute reprotect of the recovery plan.
     *
     * <p>The operation to reprotect(reverse replicate) a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan 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 {@link SyncPoller} for polling of recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    SyncPoller<PollResult<RecoveryPlanInner>, RecoveryPlanInner> beginReprotect(
        String resourceName, String resourceGroupName, String recoveryPlanName);

    /**
     * Execute reprotect of the recovery plan.
     *
     * <p>The operation to reprotect(reverse replicate) a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan 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 {@link SyncPoller} for polling of recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    SyncPoller<PollResult<RecoveryPlanInner>, RecoveryPlanInner> beginReprotect(
        String resourceName, String resourceGroupName, String recoveryPlanName, Context context);

    /**
     * Execute reprotect of the recovery plan.
     *
     * <p>The operation to reprotect(reverse replicate) a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan 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 recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    RecoveryPlanInner reprotect(String resourceName, String resourceGroupName, String recoveryPlanName);

    /**
     * Execute reprotect of the recovery plan.
     *
     * <p>The operation to reprotect(reverse replicate) a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan 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 recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    RecoveryPlanInner reprotect(
        String resourceName, String resourceGroupName, String recoveryPlanName, Context context);

    /**
     * Execute test failover of the recovery plan.
     *
     * <p>The operation to start the test failover of a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan name.
     * @param input Recovery plan test failover 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 the {@link SyncPoller} for polling of recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    SyncPoller<PollResult<RecoveryPlanInner>, RecoveryPlanInner> beginTestFailover(
        String resourceName, String resourceGroupName, String recoveryPlanName, RecoveryPlanTestFailoverInput input);

    /**
     * Execute test failover of the recovery plan.
     *
     * <p>The operation to start the test failover of a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan name.
     * @param input Recovery plan test failover 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 the {@link SyncPoller} for polling of recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    SyncPoller<PollResult<RecoveryPlanInner>, RecoveryPlanInner> beginTestFailover(
        String resourceName,
        String resourceGroupName,
        String recoveryPlanName,
        RecoveryPlanTestFailoverInput input,
        Context context);

    /**
     * Execute test failover of the recovery plan.
     *
     * <p>The operation to start the test failover of a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan name.
     * @param input Recovery plan test failover 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 recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    RecoveryPlanInner testFailover(
        String resourceName, String resourceGroupName, String recoveryPlanName, RecoveryPlanTestFailoverInput input);

    /**
     * Execute test failover of the recovery plan.
     *
     * <p>The operation to start the test failover of a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan name.
     * @param input Recovery plan test failover 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 recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    RecoveryPlanInner testFailover(
        String resourceName,
        String resourceGroupName,
        String recoveryPlanName,
        RecoveryPlanTestFailoverInput input,
        Context context);

    /**
     * Execute test failover cleanup of the recovery plan.
     *
     * <p>The operation to cleanup test failover of a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan name.
     * @param input Recovery plan test failover cleanup 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 the {@link SyncPoller} for polling of recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    SyncPoller<PollResult<RecoveryPlanInner>, RecoveryPlanInner> beginTestFailoverCleanup(
        String resourceName,
        String resourceGroupName,
        String recoveryPlanName,
        RecoveryPlanTestFailoverCleanupInput input);

    /**
     * Execute test failover cleanup of the recovery plan.
     *
     * <p>The operation to cleanup test failover of a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan name.
     * @param input Recovery plan test failover cleanup 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 the {@link SyncPoller} for polling of recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    SyncPoller<PollResult<RecoveryPlanInner>, RecoveryPlanInner> beginTestFailoverCleanup(
        String resourceName,
        String resourceGroupName,
        String recoveryPlanName,
        RecoveryPlanTestFailoverCleanupInput input,
        Context context);

    /**
     * Execute test failover cleanup of the recovery plan.
     *
     * <p>The operation to cleanup test failover of a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan name.
     * @param input Recovery plan test failover cleanup 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 recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    RecoveryPlanInner testFailoverCleanup(
        String resourceName,
        String resourceGroupName,
        String recoveryPlanName,
        RecoveryPlanTestFailoverCleanupInput input);

    /**
     * Execute test failover cleanup of the recovery plan.
     *
     * <p>The operation to cleanup test failover of a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan name.
     * @param input Recovery plan test failover cleanup 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 recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    RecoveryPlanInner testFailoverCleanup(
        String resourceName,
        String resourceGroupName,
        String recoveryPlanName,
        RecoveryPlanTestFailoverCleanupInput input,
        Context context);

    /**
     * Execute unplanned failover of the recovery plan.
     *
     * <p>The operation to start the unplanned failover of a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan name.
     * @param input Recovery plan unplanned failover 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 the {@link SyncPoller} for polling of recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    SyncPoller<PollResult<RecoveryPlanInner>, RecoveryPlanInner> beginUnplannedFailover(
        String resourceName,
        String resourceGroupName,
        String recoveryPlanName,
        RecoveryPlanUnplannedFailoverInput input);

    /**
     * Execute unplanned failover of the recovery plan.
     *
     * <p>The operation to start the unplanned failover of a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan name.
     * @param input Recovery plan unplanned failover 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 the {@link SyncPoller} for polling of recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    SyncPoller<PollResult<RecoveryPlanInner>, RecoveryPlanInner> beginUnplannedFailover(
        String resourceName,
        String resourceGroupName,
        String recoveryPlanName,
        RecoveryPlanUnplannedFailoverInput input,
        Context context);

    /**
     * Execute unplanned failover of the recovery plan.
     *
     * <p>The operation to start the unplanned failover of a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan name.
     * @param input Recovery plan unplanned failover 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 recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    RecoveryPlanInner unplannedFailover(
        String resourceName,
        String resourceGroupName,
        String recoveryPlanName,
        RecoveryPlanUnplannedFailoverInput input);

    /**
     * Execute unplanned failover of the recovery plan.
     *
     * <p>The operation to start the unplanned failover of a recovery plan.
     *
     * @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 recoveryPlanName Recovery plan name.
     * @param input Recovery plan unplanned failover 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 recovery plan details.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    RecoveryPlanInner unplannedFailover(
        String resourceName,
        String resourceGroupName,
        String recoveryPlanName,
        RecoveryPlanUnplannedFailoverInput input,
        Context context);
}
