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

package com.azure.resourcemanager.recoveryservicesbackup.models;

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

/** Specifies target network access settings for disks of VM to be restored. */
@Fluent
public final class TargetDiskNetworkAccessSettings {
    /*
     * Network access settings to be used for restored disks
     */
    @JsonProperty(value = "targetDiskNetworkAccessOption")
    private TargetDiskNetworkAccessOption targetDiskNetworkAccessOption;

    /*
     * Gets or sets the ARM resource ID of the target disk access to be used when TargetDiskNetworkAccessOption is set
     * to TargetDiskNetworkAccessOption.UseNew
     */
    @JsonProperty(value = "targetDiskAccessId")
    private String targetDiskAccessId;

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

    /**
     * Get the targetDiskNetworkAccessOption property: Network access settings to be used for restored disks.
     *
     * @return the targetDiskNetworkAccessOption value.
     */
    public TargetDiskNetworkAccessOption targetDiskNetworkAccessOption() {
        return this.targetDiskNetworkAccessOption;
    }

    /**
     * Set the targetDiskNetworkAccessOption property: Network access settings to be used for restored disks.
     *
     * @param targetDiskNetworkAccessOption the targetDiskNetworkAccessOption value to set.
     * @return the TargetDiskNetworkAccessSettings object itself.
     */
    public TargetDiskNetworkAccessSettings withTargetDiskNetworkAccessOption(
        TargetDiskNetworkAccessOption targetDiskNetworkAccessOption) {
        this.targetDiskNetworkAccessOption = targetDiskNetworkAccessOption;
        return this;
    }

    /**
     * Get the targetDiskAccessId property: Gets or sets the ARM resource ID of the target disk access to be used when
     * TargetDiskNetworkAccessOption is set to TargetDiskNetworkAccessOption.UseNew.
     *
     * @return the targetDiskAccessId value.
     */
    public String targetDiskAccessId() {
        return this.targetDiskAccessId;
    }

    /**
     * Set the targetDiskAccessId property: Gets or sets the ARM resource ID of the target disk access to be used when
     * TargetDiskNetworkAccessOption is set to TargetDiskNetworkAccessOption.UseNew.
     *
     * @param targetDiskAccessId the targetDiskAccessId value to set.
     * @return the TargetDiskNetworkAccessSettings object itself.
     */
    public TargetDiskNetworkAccessSettings withTargetDiskAccessId(String targetDiskAccessId) {
        this.targetDiskAccessId = targetDiskAccessId;
        return this;
    }

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