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

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

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.powerbidedicated.models.VCoreProvisioningState;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Properties of an auto scale v-core resource. */
@Fluent
public final class AutoScaleVCoreProperties extends AutoScaleVCoreMutableProperties {
    /*
     * The object ID of the capacity resource associated with the auto scale v-core resource.
     */
    @JsonProperty(value = "capacityObjectId")
    private String capacityObjectId;

    /*
     * The current deployment state of an auto scale v-core resource. The provisioningState is to indicate states for
     * resource provisioning.
     */
    @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
    private VCoreProvisioningState provisioningState;

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

    /**
     * Get the capacityObjectId property: The object ID of the capacity resource associated with the auto scale v-core
     * resource.
     *
     * @return the capacityObjectId value.
     */
    public String capacityObjectId() {
        return this.capacityObjectId;
    }

    /**
     * Set the capacityObjectId property: The object ID of the capacity resource associated with the auto scale v-core
     * resource.
     *
     * @param capacityObjectId the capacityObjectId value to set.
     * @return the AutoScaleVCoreProperties object itself.
     */
    public AutoScaleVCoreProperties withCapacityObjectId(String capacityObjectId) {
        this.capacityObjectId = capacityObjectId;
        return this;
    }

    /**
     * Get the provisioningState property: The current deployment state of an auto scale v-core resource. The
     * provisioningState is to indicate states for resource provisioning.
     *
     * @return the provisioningState value.
     */
    public VCoreProvisioningState provisioningState() {
        return this.provisioningState;
    }

    /** {@inheritDoc} */
    @Override
    public AutoScaleVCoreProperties withCapacityLimit(Integer capacityLimit) {
        super.withCapacityLimit(capacityLimit);
        return this;
    }

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