Class TypeConversionSettings
java.lang.Object
com.azure.resourcemanager.datafactory.models.TypeConversionSettings
Type conversion settings.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the allowDataTruncation property: Whether to allow data truncation when converting the data.culture()
Get the culture property: The culture used to convert data from/to string.Get the dateTimeFormat property: The format for DateTime values.Get the dateTimeOffsetFormat property: The format for DateTimeOffset values.Get the timeSpanFormat property: The format for TimeSpan values.Get the treatBooleanAsNumber property: Whether to treat boolean values as numbers.void
validate()
Validates the instance.withAllowDataTruncation
(Object allowDataTruncation) Set the allowDataTruncation property: Whether to allow data truncation when converting the data.withCulture
(Object culture) Set the culture property: The culture used to convert data from/to string.withDateTimeFormat
(Object dateTimeFormat) Set the dateTimeFormat property: The format for DateTime values.withDateTimeOffsetFormat
(Object dateTimeOffsetFormat) Set the dateTimeOffsetFormat property: The format for DateTimeOffset values.withTimeSpanFormat
(Object timeSpanFormat) Set the timeSpanFormat property: The format for TimeSpan values.withTreatBooleanAsNumber
(Object treatBooleanAsNumber) Set the treatBooleanAsNumber property: Whether to treat boolean values as numbers.
-
Constructor Details
-
TypeConversionSettings
public TypeConversionSettings()
-
-
Method Details
-
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
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
Get the treatBooleanAsNumber property: Whether to treat boolean values as numbers. Type: boolean (or Expression with resultType boolean).- Returns:
- the treatBooleanAsNumber value.
-
withTreatBooleanAsNumber
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
Get the dateTimeFormat property: The format for DateTime values. Type: string (or Expression with resultType string).- Returns:
- the dateTimeFormat value.
-
withDateTimeFormat
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
Get the dateTimeOffsetFormat property: The format for DateTimeOffset values. Type: string (or Expression with resultType string).- Returns:
- the dateTimeOffsetFormat value.
-
withDateTimeOffsetFormat
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
Get the timeSpanFormat property: The format for TimeSpan values. Type: string (or Expression with resultType string).- Returns:
- the timeSpanFormat value.
-
withTimeSpanFormat
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
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
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.
-