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

com.azure.resourcemanager.netapp.fluent.models.VolumeGroupProperties Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.6.0-beta.1
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.netapp.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.netapp.models.VolumeGroupMetadata;
import com.azure.resourcemanager.netapp.models.VolumeGroupVolumeProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/**
 * Volume group properties.
 */
@Fluent
public final class VolumeGroupProperties {
    /*
     * Azure lifecycle management
     */
    @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
    private String provisioningState;

    /*
     * Volume group details
     */
    @JsonProperty(value = "groupMetaData")
    private VolumeGroupMetadata groupMetadata;

    /*
     * List of volumes from group
     */
    @JsonProperty(value = "volumes")
    private List volumes;

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

    /**
     * Get the provisioningState property: Azure lifecycle management.
     * 
     * @return the provisioningState value.
     */
    public String provisioningState() {
        return this.provisioningState;
    }

    /**
     * Get the groupMetadata property: Volume group details.
     * 
     * @return the groupMetadata value.
     */
    public VolumeGroupMetadata groupMetadata() {
        return this.groupMetadata;
    }

    /**
     * Set the groupMetadata property: Volume group details.
     * 
     * @param groupMetadata the groupMetadata value to set.
     * @return the VolumeGroupProperties object itself.
     */
    public VolumeGroupProperties withGroupMetadata(VolumeGroupMetadata groupMetadata) {
        this.groupMetadata = groupMetadata;
        return this;
    }

    /**
     * Get the volumes property: List of volumes from group.
     * 
     * @return the volumes value.
     */
    public List volumes() {
        return this.volumes;
    }

    /**
     * Set the volumes property: List of volumes from group.
     * 
     * @param volumes the volumes value to set.
     * @return the VolumeGroupProperties object itself.
     */
    public VolumeGroupProperties withVolumes(List volumes) {
        this.volumes = volumes;
        return this;
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy