
com.azure.resourcemanager.netapp.fluent.models.BackupInner 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.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.BackupType;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/**
* Backup under a Backup Vault.
*/
@Fluent
public final class BackupInner extends ProxyResource {
/*
* Backup Properties
*/
@JsonProperty(value = "properties", required = true)
private BackupProperties innerProperties = new BackupProperties();
/*
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
/**
* Creates an instance of BackupInner class.
*/
public BackupInner() {
}
/**
* Get the innerProperties property: Backup Properties.
*
* @return the innerProperties value.
*/
private BackupProperties innerProperties() {
return this.innerProperties;
}
/**
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
* @return the systemData value.
*/
public SystemData systemData() {
return this.systemData;
}
/**
* Get the backupId property: backupId
*
* UUID v4 used to identify the Backup.
*
* @return the backupId value.
*/
public String backupId() {
return this.innerProperties() == null ? null : this.innerProperties().backupId();
}
/**
* Get the creationDate property: creationDate
*
* The creation date of the backup.
*
* @return the creationDate value.
*/
public OffsetDateTime creationDate() {
return this.innerProperties() == null ? null : this.innerProperties().creationDate();
}
/**
* Get the provisioningState property: Azure lifecycle management.
*
* @return the provisioningState value.
*/
public String provisioningState() {
return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}
/**
* Get the size property: Size of backup in bytes.
*
* @return the size value.
*/
public Long size() {
return this.innerProperties() == null ? null : this.innerProperties().size();
}
/**
* Get the label property: Label for backup.
*
* @return the label value.
*/
public String label() {
return this.innerProperties() == null ? null : this.innerProperties().label();
}
/**
* Set the label property: Label for backup.
*
* @param label the label value to set.
* @return the BackupInner object itself.
*/
public BackupInner withLabel(String label) {
if (this.innerProperties() == null) {
this.innerProperties = new BackupProperties();
}
this.innerProperties().withLabel(label);
return this;
}
/**
* Get the backupType property: backupType
*
* Type of backup Manual or Scheduled.
*
* @return the backupType value.
*/
public BackupType backupType() {
return this.innerProperties() == null ? null : this.innerProperties().backupType();
}
/**
* Get the failureReason property: Failure reason.
*
* @return the failureReason value.
*/
public String failureReason() {
return this.innerProperties() == null ? null : this.innerProperties().failureReason();
}
/**
* Get the volumeResourceId property: ResourceId used to identify the Volume.
*
* @return the volumeResourceId value.
*/
public String volumeResourceId() {
return this.innerProperties() == null ? null : this.innerProperties().volumeResourceId();
}
/**
* Set the volumeResourceId property: ResourceId used to identify the Volume.
*
* @param volumeResourceId the volumeResourceId value to set.
* @return the BackupInner object itself.
*/
public BackupInner withVolumeResourceId(String volumeResourceId) {
if (this.innerProperties() == null) {
this.innerProperties = new BackupProperties();
}
this.innerProperties().withVolumeResourceId(volumeResourceId);
return this;
}
/**
* Get the useExistingSnapshot property: Manual backup an already existing snapshot. This will always be false for
* scheduled backups and true/false for manual backups.
*
* @return the useExistingSnapshot value.
*/
public Boolean useExistingSnapshot() {
return this.innerProperties() == null ? null : this.innerProperties().useExistingSnapshot();
}
/**
* Set the useExistingSnapshot property: Manual backup an already existing snapshot. This will always be false for
* scheduled backups and true/false for manual backups.
*
* @param useExistingSnapshot the useExistingSnapshot value to set.
* @return the BackupInner object itself.
*/
public BackupInner withUseExistingSnapshot(Boolean useExistingSnapshot) {
if (this.innerProperties() == null) {
this.innerProperties = new BackupProperties();
}
this.innerProperties().withUseExistingSnapshot(useExistingSnapshot);
return this;
}
/**
* Get the snapshotName property: The name of the snapshot.
*
* @return the snapshotName value.
*/
public String snapshotName() {
return this.innerProperties() == null ? null : this.innerProperties().snapshotName();
}
/**
* Set the snapshotName property: The name of the snapshot.
*
* @param snapshotName the snapshotName value to set.
* @return the BackupInner object itself.
*/
public BackupInner withSnapshotName(String snapshotName) {
if (this.innerProperties() == null) {
this.innerProperties = new BackupProperties();
}
this.innerProperties().withSnapshotName(snapshotName);
return this;
}
/**
* Get the backupPolicyResourceId property: ResourceId used to identify the backup policy.
*
* @return the backupPolicyResourceId value.
*/
public String backupPolicyResourceId() {
return this.innerProperties() == null ? null : this.innerProperties().backupPolicyResourceId();
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (innerProperties() == null) {
throw LOGGER.logExceptionAsError(
new IllegalArgumentException("Missing required property innerProperties in model BackupInner"));
} else {
innerProperties().validate();
}
}
private static final ClientLogger LOGGER = new ClientLogger(BackupInner.class);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy