All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.resourcemanager.recoveryservicesbackup.models.TargetDiskNetworkAccessSettings Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure SDK for RecoveryServicesBackup Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Open API 2.0 Specs for Azure RecoveryServices Backup service. Package tag package-2024-04.

There is a newer version: 1.5.0
Show newest version
// 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() {
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy