
com.azure.resourcemanager.netapp.models.VolumePatchPropertiesDataProtection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-netapp Show documentation
Show all versions of azure-resourcemanager-netapp Show documentation
This package contains Microsoft Azure SDK for NetAppFiles Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-preview-2024-07-01-preview.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.netapp.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* DataProtection
*
* DataProtection type volumes include an object containing details of the replication.
*/
@Fluent
public final class VolumePatchPropertiesDataProtection {
/*
* Backup Properties
*/
@JsonProperty(value = "backup")
private VolumeBackupProperties backup;
/*
* Snapshot properties.
*/
@JsonProperty(value = "snapshot")
private VolumeSnapshotProperties snapshot;
/**
* Creates an instance of VolumePatchPropertiesDataProtection class.
*/
public VolumePatchPropertiesDataProtection() {
}
/**
* Get the backup property: Backup Properties.
*
* @return the backup value.
*/
public VolumeBackupProperties backup() {
return this.backup;
}
/**
* Set the backup property: Backup Properties.
*
* @param backup the backup value to set.
* @return the VolumePatchPropertiesDataProtection object itself.
*/
public VolumePatchPropertiesDataProtection withBackup(VolumeBackupProperties backup) {
this.backup = backup;
return this;
}
/**
* Get the snapshot property: Snapshot properties.
*
* @return the snapshot value.
*/
public VolumeSnapshotProperties snapshot() {
return this.snapshot;
}
/**
* Set the snapshot property: Snapshot properties.
*
* @param snapshot the snapshot value to set.
* @return the VolumePatchPropertiesDataProtection object itself.
*/
public VolumePatchPropertiesDataProtection withSnapshot(VolumeSnapshotProperties snapshot) {
this.snapshot = snapshot;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (backup() != null) {
backup().validate();
}
if (snapshot() != null) {
snapshot().validate();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy