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

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

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.postgresqlflexibleserver.models.ConfigurationDataType;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The properties of a configuration. */
@Fluent
public final class ConfigurationProperties {
    /*
     * Value of the configuration.
     */
    @JsonProperty(value = "value")
    private String value;

    /*
     * Description of the configuration.
     */
    @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY)
    private String description;

    /*
     * Default value of the configuration.
     */
    @JsonProperty(value = "defaultValue", access = JsonProperty.Access.WRITE_ONLY)
    private String defaultValue;

    /*
     * Data type of the configuration.
     */
    @JsonProperty(value = "dataType", access = JsonProperty.Access.WRITE_ONLY)
    private ConfigurationDataType dataType;

    /*
     * Allowed values of the configuration.
     */
    @JsonProperty(value = "allowedValues", access = JsonProperty.Access.WRITE_ONLY)
    private String allowedValues;

    /*
     * Source of the configuration.
     */
    @JsonProperty(value = "source")
    private String source;

    /*
     * Configuration dynamic or static.
     */
    @JsonProperty(value = "isDynamicConfig", access = JsonProperty.Access.WRITE_ONLY)
    private Boolean isDynamicConfig;

    /*
     * Configuration read-only or not.
     */
    @JsonProperty(value = "isReadOnly", access = JsonProperty.Access.WRITE_ONLY)
    private Boolean isReadOnly;

    /*
     * Configuration is pending restart or not.
     */
    @JsonProperty(value = "isConfigPendingRestart", access = JsonProperty.Access.WRITE_ONLY)
    private Boolean isConfigPendingRestart;

    /*
     * Configuration unit.
     */
    @JsonProperty(value = "unit", access = JsonProperty.Access.WRITE_ONLY)
    private String unit;

    /*
     * Configuration documentation link.
     */
    @JsonProperty(value = "documentationLink", access = JsonProperty.Access.WRITE_ONLY)
    private String documentationLink;

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

    /**
     * Get the value property: Value of the configuration.
     *
     * @return the value value.
     */
    public String value() {
        return this.value;
    }

    /**
     * Set the value property: Value of the configuration.
     *
     * @param value the value value to set.
     * @return the ConfigurationProperties object itself.
     */
    public ConfigurationProperties withValue(String value) {
        this.value = value;
        return this;
    }

    /**
     * Get the description property: Description of the configuration.
     *
     * @return the description value.
     */
    public String description() {
        return this.description;
    }

    /**
     * Get the defaultValue property: Default value of the configuration.
     *
     * @return the defaultValue value.
     */
    public String defaultValue() {
        return this.defaultValue;
    }

    /**
     * Get the dataType property: Data type of the configuration.
     *
     * @return the dataType value.
     */
    public ConfigurationDataType dataType() {
        return this.dataType;
    }

    /**
     * Get the allowedValues property: Allowed values of the configuration.
     *
     * @return the allowedValues value.
     */
    public String allowedValues() {
        return this.allowedValues;
    }

    /**
     * Get the source property: Source of the configuration.
     *
     * @return the source value.
     */
    public String source() {
        return this.source;
    }

    /**
     * Set the source property: Source of the configuration.
     *
     * @param source the source value to set.
     * @return the ConfigurationProperties object itself.
     */
    public ConfigurationProperties withSource(String source) {
        this.source = source;
        return this;
    }

    /**
     * Get the isDynamicConfig property: Configuration dynamic or static.
     *
     * @return the isDynamicConfig value.
     */
    public Boolean isDynamicConfig() {
        return this.isDynamicConfig;
    }

    /**
     * Get the isReadOnly property: Configuration read-only or not.
     *
     * @return the isReadOnly value.
     */
    public Boolean isReadOnly() {
        return this.isReadOnly;
    }

    /**
     * Get the isConfigPendingRestart property: Configuration is pending restart or not.
     *
     * @return the isConfigPendingRestart value.
     */
    public Boolean isConfigPendingRestart() {
        return this.isConfigPendingRestart;
    }

    /**
     * Get the unit property: Configuration unit.
     *
     * @return the unit value.
     */
    public String unit() {
        return this.unit;
    }

    /**
     * Get the documentationLink property: Configuration documentation link.
     *
     * @return the documentationLink value.
     */
    public String documentationLink() {
        return this.documentationLink;
    }

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