com.azure.resourcemanager.recoveryservicesbackup.models.TargetDiskNetworkAccessSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-recoveryservicesbackup Show documentation
Show all versions of azure-resourcemanager-recoveryservicesbackup Show documentation
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.
// 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