// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.hybridcontainerservice.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** HybridAKSNetworkStatus defines the observed state of HybridAKSNetwork. */
@Fluent
public final class VirtualNetworksPropertiesStatus {
    /*
     * Contains Provisioning errors
     */
    @JsonProperty(value = "provisioningStatus")
    private VirtualNetworksPropertiesStatusProvisioningStatus provisioningStatus;

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

    /**
     * Get the provisioningStatus property: Contains Provisioning errors.
     *
     * @return the provisioningStatus value.
     */
    public VirtualNetworksPropertiesStatusProvisioningStatus provisioningStatus() {
        return this.provisioningStatus;
    }

    /**
     * Set the provisioningStatus property: Contains Provisioning errors.
     *
     * @param provisioningStatus the provisioningStatus value to set.
     * @return the VirtualNetworksPropertiesStatus object itself.
     */
    public VirtualNetworksPropertiesStatus withProvisioningStatus(
        VirtualNetworksPropertiesStatusProvisioningStatus provisioningStatus) {
        this.provisioningStatus = provisioningStatus;
        return this;
    }

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