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

/** Recovery plan protected item. */
@Fluent
public final class RecoveryPlanProtectedItem {
    /*
     * The ARM Id of the recovery plan protected item.
     */
    @JsonProperty(value = "id")
    private String id;

    /*
     * The virtual machine Id.
     */
    @JsonProperty(value = "virtualMachineId")
    private String virtualMachineId;

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

    /**
     * Get the id property: The ARM Id of the recovery plan protected item.
     *
     * @return the id value.
     */
    public String id() {
        return this.id;
    }

    /**
     * Set the id property: The ARM Id of the recovery plan protected item.
     *
     * @param id the id value to set.
     * @return the RecoveryPlanProtectedItem object itself.
     */
    public RecoveryPlanProtectedItem withId(String id) {
        this.id = id;
        return this;
    }

    /**
     * Get the virtualMachineId property: The virtual machine Id.
     *
     * @return the virtualMachineId value.
     */
    public String virtualMachineId() {
        return this.virtualMachineId;
    }

    /**
     * Set the virtualMachineId property: The virtual machine Id.
     *
     * @param virtualMachineId the virtualMachineId value to set.
     * @return the RecoveryPlanProtectedItem object itself.
     */
    public RecoveryPlanProtectedItem withVirtualMachineId(String virtualMachineId) {
        this.virtualMachineId = virtualMachineId;
        return this;
    }

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