// 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.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/** InMageRcm provider specific input for test failover. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "instanceType")
@JsonTypeName("InMageRcm")
@Fluent
public final class InMageRcmTestFailoverInput extends TestFailoverProviderSpecificInput {
    /*
     * The test network Id.
     */
    @JsonProperty(value = "networkId")
    private String networkId;

    /*
     * The recovery point id to be passed to test failover to a particular recovery point. In case of latest recovery
     * point, null should be passed.
     */
    @JsonProperty(value = "recoveryPointId")
    private String recoveryPointId;

    /** Creates an instance of InMageRcmTestFailoverInput class. */
    public InMageRcmTestFailoverInput() {
    }

    /**
     * Get the networkId property: The test network Id.
     *
     * @return the networkId value.
     */
    public String networkId() {
        return this.networkId;
    }

    /**
     * Set the networkId property: The test network Id.
     *
     * @param networkId the networkId value to set.
     * @return the InMageRcmTestFailoverInput object itself.
     */
    public InMageRcmTestFailoverInput withNetworkId(String networkId) {
        this.networkId = networkId;
        return this;
    }

    /**
     * Get the recoveryPointId property: The recovery point id to be passed to test failover to a particular recovery
     * point. In case of latest recovery point, null should be passed.
     *
     * @return the recoveryPointId value.
     */
    public String recoveryPointId() {
        return this.recoveryPointId;
    }

    /**
     * Set the recoveryPointId property: The recovery point id to be passed to test failover to a particular recovery
     * point. In case of latest recovery point, null should be passed.
     *
     * @param recoveryPointId the recoveryPointId value to set.
     * @return the InMageRcmTestFailoverInput object itself.
     */
    public InMageRcmTestFailoverInput withRecoveryPointId(String recoveryPointId) {
        this.recoveryPointId = recoveryPointId;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    @Override
    public void validate() {
        super.validate();
    }
}
