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

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

// 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;
import java.util.List;

/**
 * Disk configuration.
 */
@Fluent
public final class RecoveryPointDiskConfiguration {
    /*
     * Number of disks included in backup
     */
    @JsonProperty(value = "numberOfDisksIncludedInBackup")
    private Integer numberOfDisksIncludedInBackup;

    /*
     * Number of disks attached to the VM
     */
    @JsonProperty(value = "numberOfDisksAttachedToVm")
    private Integer numberOfDisksAttachedToVm;

    /*
     * Information of disks included in backup
     */
    @JsonProperty(value = "includedDiskList")
    private List includedDiskList;

    /*
     * Information of disks excluded from backup
     */
    @JsonProperty(value = "excludedDiskList")
    private List excludedDiskList;

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

    /**
     * Get the numberOfDisksIncludedInBackup property: Number of disks included in backup.
     * 
     * @return the numberOfDisksIncludedInBackup value.
     */
    public Integer numberOfDisksIncludedInBackup() {
        return this.numberOfDisksIncludedInBackup;
    }

    /**
     * Set the numberOfDisksIncludedInBackup property: Number of disks included in backup.
     * 
     * @param numberOfDisksIncludedInBackup the numberOfDisksIncludedInBackup value to set.
     * @return the RecoveryPointDiskConfiguration object itself.
     */
    public RecoveryPointDiskConfiguration withNumberOfDisksIncludedInBackup(Integer numberOfDisksIncludedInBackup) {
        this.numberOfDisksIncludedInBackup = numberOfDisksIncludedInBackup;
        return this;
    }

    /**
     * Get the numberOfDisksAttachedToVm property: Number of disks attached to the VM.
     * 
     * @return the numberOfDisksAttachedToVm value.
     */
    public Integer numberOfDisksAttachedToVm() {
        return this.numberOfDisksAttachedToVm;
    }

    /**
     * Set the numberOfDisksAttachedToVm property: Number of disks attached to the VM.
     * 
     * @param numberOfDisksAttachedToVm the numberOfDisksAttachedToVm value to set.
     * @return the RecoveryPointDiskConfiguration object itself.
     */
    public RecoveryPointDiskConfiguration withNumberOfDisksAttachedToVm(Integer numberOfDisksAttachedToVm) {
        this.numberOfDisksAttachedToVm = numberOfDisksAttachedToVm;
        return this;
    }

    /**
     * Get the includedDiskList property: Information of disks included in backup.
     * 
     * @return the includedDiskList value.
     */
    public List includedDiskList() {
        return this.includedDiskList;
    }

    /**
     * Set the includedDiskList property: Information of disks included in backup.
     * 
     * @param includedDiskList the includedDiskList value to set.
     * @return the RecoveryPointDiskConfiguration object itself.
     */
    public RecoveryPointDiskConfiguration withIncludedDiskList(List includedDiskList) {
        this.includedDiskList = includedDiskList;
        return this;
    }

    /**
     * Get the excludedDiskList property: Information of disks excluded from backup.
     * 
     * @return the excludedDiskList value.
     */
    public List excludedDiskList() {
        return this.excludedDiskList;
    }

    /**
     * Set the excludedDiskList property: Information of disks excluded from backup.
     * 
     * @param excludedDiskList the excludedDiskList value to set.
     * @return the RecoveryPointDiskConfiguration object itself.
     */
    public RecoveryPointDiskConfiguration withExcludedDiskList(List excludedDiskList) {
        this.excludedDiskList = excludedDiskList;
        return this;
    }

    /**
     * Validates the instance.
     * 
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (includedDiskList() != null) {
            includedDiskList().forEach(e -> e.validate());
        }
        if (excludedDiskList() != null) {
            excludedDiskList().forEach(e -> e.validate());
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy