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

package com.azure.analytics.synapse.artifacts.models;

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

/** Type conversion settings. */
@Fluent
public final class TypeConversionSettings {
    /*
     * Whether to allow data truncation when converting the data. Type: boolean (or Expression with resultType
     * boolean).
     */
    @JsonProperty(value = "allowDataTruncation")
    private Object allowDataTruncation;

    /*
     * Whether to treat boolean values as numbers. Type: boolean (or Expression with resultType boolean).
     */
    @JsonProperty(value = "treatBooleanAsNumber")
    private Object treatBooleanAsNumber;

    /*
     * The format for DateTime values. Type: string (or Expression with resultType string).
     */
    @JsonProperty(value = "dateTimeFormat")
    private Object dateTimeFormat;

    /*
     * The format for DateTimeOffset values. Type: string (or Expression with resultType string).
     */
    @JsonProperty(value = "dateTimeOffsetFormat")
    private Object dateTimeOffsetFormat;

    /*
     * The format for TimeSpan values. Type: string (or Expression with resultType string).
     */
    @JsonProperty(value = "timeSpanFormat")
    private Object timeSpanFormat;

    /*
     * The culture used to convert data from/to string. Type: string (or Expression with resultType string).
     */
    @JsonProperty(value = "culture")
    private Object culture;

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

    /**
     * Get the allowDataTruncation property: Whether to allow data truncation when converting the data. Type: boolean
     * (or Expression with resultType boolean).
     *
     * @return the allowDataTruncation value.
     */
    public Object getAllowDataTruncation() {
        return this.allowDataTruncation;
    }

    /**
     * Set the allowDataTruncation property: Whether to allow data truncation when converting the data. Type: boolean
     * (or Expression with resultType boolean).
     *
     * @param allowDataTruncation the allowDataTruncation value to set.
     * @return the TypeConversionSettings object itself.
     */
    public TypeConversionSettings setAllowDataTruncation(Object allowDataTruncation) {
        this.allowDataTruncation = allowDataTruncation;
        return this;
    }

    /**
     * Get the treatBooleanAsNumber property: Whether to treat boolean values as numbers. Type: boolean (or Expression
     * with resultType boolean).
     *
     * @return the treatBooleanAsNumber value.
     */
    public Object getTreatBooleanAsNumber() {
        return this.treatBooleanAsNumber;
    }

    /**
     * Set the treatBooleanAsNumber property: Whether to treat boolean values as numbers. Type: boolean (or Expression
     * with resultType boolean).
     *
     * @param treatBooleanAsNumber the treatBooleanAsNumber value to set.
     * @return the TypeConversionSettings object itself.
     */
    public TypeConversionSettings setTreatBooleanAsNumber(Object treatBooleanAsNumber) {
        this.treatBooleanAsNumber = treatBooleanAsNumber;
        return this;
    }

    /**
     * Get the dateTimeFormat property: The format for DateTime values. Type: string (or Expression with resultType
     * string).
     *
     * @return the dateTimeFormat value.
     */
    public Object getDateTimeFormat() {
        return this.dateTimeFormat;
    }

    /**
     * Set the dateTimeFormat property: The format for DateTime values. Type: string (or Expression with resultType
     * string).
     *
     * @param dateTimeFormat the dateTimeFormat value to set.
     * @return the TypeConversionSettings object itself.
     */
    public TypeConversionSettings setDateTimeFormat(Object dateTimeFormat) {
        this.dateTimeFormat = dateTimeFormat;
        return this;
    }

    /**
     * Get the dateTimeOffsetFormat property: The format for DateTimeOffset values. Type: string (or Expression with
     * resultType string).
     *
     * @return the dateTimeOffsetFormat value.
     */
    public Object getDateTimeOffsetFormat() {
        return this.dateTimeOffsetFormat;
    }

    /**
     * Set the dateTimeOffsetFormat property: The format for DateTimeOffset values. Type: string (or Expression with
     * resultType string).
     *
     * @param dateTimeOffsetFormat the dateTimeOffsetFormat value to set.
     * @return the TypeConversionSettings object itself.
     */
    public TypeConversionSettings setDateTimeOffsetFormat(Object dateTimeOffsetFormat) {
        this.dateTimeOffsetFormat = dateTimeOffsetFormat;
        return this;
    }

    /**
     * Get the timeSpanFormat property: The format for TimeSpan values. Type: string (or Expression with resultType
     * string).
     *
     * @return the timeSpanFormat value.
     */
    public Object getTimeSpanFormat() {
        return this.timeSpanFormat;
    }

    /**
     * Set the timeSpanFormat property: The format for TimeSpan values. Type: string (or Expression with resultType
     * string).
     *
     * @param timeSpanFormat the timeSpanFormat value to set.
     * @return the TypeConversionSettings object itself.
     */
    public TypeConversionSettings setTimeSpanFormat(Object timeSpanFormat) {
        this.timeSpanFormat = timeSpanFormat;
        return this;
    }

    /**
     * Get the culture property: The culture used to convert data from/to string. Type: string (or Expression with
     * resultType string).
     *
     * @return the culture value.
     */
    public Object getCulture() {
        return this.culture;
    }

    /**
     * Set the culture property: The culture used to convert data from/to string. Type: string (or Expression with
     * resultType string).
     *
     * @param culture the culture value to set.
     * @return the TypeConversionSettings object itself.
     */
    public TypeConversionSettings setCulture(Object culture) {
        this.culture = culture;
        return this;
    }
}
