Class TypeConversionSettings
- java.lang.Object
-
- com.azure.resourcemanager.datafactory.models.TypeConversionSettings
-
public final class TypeConversionSettings extends Object
Type conversion settings.
-
-
Constructor Summary
Constructors Constructor Description TypeConversionSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
allowDataTruncation()
Get the allowDataTruncation property: Whether to allow data truncation when converting the data.Object
culture()
Get the culture property: The culture used to convert data from/to string.Object
dateTimeFormat()
Get the dateTimeFormat property: The format for DateTime values.Object
dateTimeOffsetFormat()
Get the dateTimeOffsetFormat property: The format for DateTimeOffset values.Object
timeSpanFormat()
Get the timeSpanFormat property: The format for TimeSpan values.Object
treatBooleanAsNumber()
Get the treatBooleanAsNumber property: Whether to treat boolean values as numbers.void
validate()
Validates the instance.TypeConversionSettings
withAllowDataTruncation(Object allowDataTruncation)
Set the allowDataTruncation property: Whether to allow data truncation when converting the data.TypeConversionSettings
withCulture(Object culture)
Set the culture property: The culture used to convert data from/to string.TypeConversionSettings
withDateTimeFormat(Object dateTimeFormat)
Set the dateTimeFormat property: The format for DateTime values.TypeConversionSettings
withDateTimeOffsetFormat(Object dateTimeOffsetFormat)
Set the dateTimeOffsetFormat property: The format for DateTimeOffset values.TypeConversionSettings
withTimeSpanFormat(Object timeSpanFormat)
Set the timeSpanFormat property: The format for TimeSpan values.TypeConversionSettings
withTreatBooleanAsNumber(Object treatBooleanAsNumber)
Set the treatBooleanAsNumber property: Whether to treat boolean values as numbers.
-
-
-
Method Detail
-
allowDataTruncation
public Object allowDataTruncation()
Get the allowDataTruncation property: Whether to allow data truncation when converting the data. Type: boolean (or Expression with resultType boolean).- Returns:
- the allowDataTruncation value.
-
withAllowDataTruncation
public TypeConversionSettings withAllowDataTruncation(Object allowDataTruncation)
Set the allowDataTruncation property: Whether to allow data truncation when converting the data. Type: boolean (or Expression with resultType boolean).- Parameters:
allowDataTruncation
- the allowDataTruncation value to set.- Returns:
- the TypeConversionSettings object itself.
-
treatBooleanAsNumber
public Object treatBooleanAsNumber()
Get the treatBooleanAsNumber property: Whether to treat boolean values as numbers. Type: boolean (or Expression with resultType boolean).- Returns:
- the treatBooleanAsNumber value.
-
withTreatBooleanAsNumber
public TypeConversionSettings withTreatBooleanAsNumber(Object treatBooleanAsNumber)
Set the treatBooleanAsNumber property: Whether to treat boolean values as numbers. Type: boolean (or Expression with resultType boolean).- Parameters:
treatBooleanAsNumber
- the treatBooleanAsNumber value to set.- Returns:
- the TypeConversionSettings object itself.
-
dateTimeFormat
public Object dateTimeFormat()
Get the dateTimeFormat property: The format for DateTime values. Type: string (or Expression with resultType string).- Returns:
- the dateTimeFormat value.
-
withDateTimeFormat
public TypeConversionSettings withDateTimeFormat(Object dateTimeFormat)
Set the dateTimeFormat property: The format for DateTime values. Type: string (or Expression with resultType string).- Parameters:
dateTimeFormat
- the dateTimeFormat value to set.- Returns:
- the TypeConversionSettings object itself.
-
dateTimeOffsetFormat
public Object dateTimeOffsetFormat()
Get the dateTimeOffsetFormat property: The format for DateTimeOffset values. Type: string (or Expression with resultType string).- Returns:
- the dateTimeOffsetFormat value.
-
withDateTimeOffsetFormat
public TypeConversionSettings withDateTimeOffsetFormat(Object dateTimeOffsetFormat)
Set the dateTimeOffsetFormat property: The format for DateTimeOffset values. Type: string (or Expression with resultType string).- Parameters:
dateTimeOffsetFormat
- the dateTimeOffsetFormat value to set.- Returns:
- the TypeConversionSettings object itself.
-
timeSpanFormat
public Object timeSpanFormat()
Get the timeSpanFormat property: The format for TimeSpan values. Type: string (or Expression with resultType string).- Returns:
- the timeSpanFormat value.
-
withTimeSpanFormat
public TypeConversionSettings withTimeSpanFormat(Object timeSpanFormat)
Set the timeSpanFormat property: The format for TimeSpan values. Type: string (or Expression with resultType string).- Parameters:
timeSpanFormat
- the timeSpanFormat value to set.- Returns:
- the TypeConversionSettings object itself.
-
culture
public Object culture()
Get the culture property: The culture used to convert data from/to string. Type: string (or Expression with resultType string).- Returns:
- the culture value.
-
withCulture
public TypeConversionSettings withCulture(Object culture)
Set the culture property: The culture used to convert data from/to string. Type: string (or Expression with resultType string).- Parameters:
culture
- the culture value to set.- Returns:
- the TypeConversionSettings object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-