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

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

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.synapse.models.ColumnDataType;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Sql pool column properties. */
@Fluent
public final class SqlPoolColumnProperties {
    /*
     * The column data type.
     */
    @JsonProperty(value = "columnType")
    private ColumnDataType columnType;

    /*
     * Indicates whether column value is computed or not
     */
    @JsonProperty(value = "isComputed", access = JsonProperty.Access.WRITE_ONLY)
    private Boolean isComputed;

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

    /**
     * Get the columnType property: The column data type.
     *
     * @return the columnType value.
     */
    public ColumnDataType columnType() {
        return this.columnType;
    }

    /**
     * Set the columnType property: The column data type.
     *
     * @param columnType the columnType value to set.
     * @return the SqlPoolColumnProperties object itself.
     */
    public SqlPoolColumnProperties withColumnType(ColumnDataType columnType) {
        this.columnType = columnType;
        return this;
    }

    /**
     * Get the isComputed property: Indicates whether column value is computed or not.
     *
     * @return the isComputed value.
     */
    public Boolean isComputed() {
        return this.isComputed;
    }

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