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

package com.azure.resourcemanager.quota.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.resourcemanager.quota.models.UsagesProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Resource usage. */
@Fluent
public final class CurrentUsagesBaseInner extends ProxyResource {
    /*
     * Usage properties for the specified resource.
     */
    @JsonProperty(value = "properties")
    private UsagesProperties properties;

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

    /**
     * Get the properties property: Usage properties for the specified resource.
     *
     * @return the properties value.
     */
    public UsagesProperties properties() {
        return this.properties;
    }

    /**
     * Set the properties property: Usage properties for the specified resource.
     *
     * @param properties the properties value to set.
     * @return the CurrentUsagesBaseInner object itself.
     */
    public CurrentUsagesBaseInner withProperties(UsagesProperties properties) {
        this.properties = properties;
        return this;
    }

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