// 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.fasterxml.jackson.annotation.JsonProperty;

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

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

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

    /**
     * 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 VolumeGroupListProperties object itself.
     */
    public VolumeGroupListProperties withGroupMetadata(VolumeGroupMetadata groupMetadata) {
        this.groupMetadata = groupMetadata;
        return this;
    }

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