// 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.models;

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

/** The resource usages value. */
@Fluent
public final class UsagesObject {
    /*
     * The usages value.
     */
    @JsonProperty(value = "value", required = true)
    private int value;

    /*
     * The quota or usages limit types.
     */
    @JsonProperty(value = "usagesType")
    private UsagesTypes usagesType;

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

    /**
     * Get the value property: The usages value.
     *
     * @return the value value.
     */
    public int value() {
        return this.value;
    }

    /**
     * Set the value property: The usages value.
     *
     * @param value the value value to set.
     * @return the UsagesObject object itself.
     */
    public UsagesObject withValue(int value) {
        this.value = value;
        return this;
    }

    /**
     * Get the usagesType property: The quota or usages limit types.
     *
     * @return the usagesType value.
     */
    public UsagesTypes usagesType() {
        return this.usagesType;
    }

    /**
     * Set the usagesType property: The quota or usages limit types.
     *
     * @param usagesType the usagesType value to set.
     * @return the UsagesObject object itself.
     */
    public UsagesObject withUsagesType(UsagesTypes usagesType) {
        this.usagesType = usagesType;
        return this;
    }

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