Class JsonFormat
java.lang.Object
com.azure.resourcemanager.datafactory.models.DatasetStorageFormat
com.azure.resourcemanager.datafactory.models.JsonFormat
The data stored in JSON format.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the encodingName property: The code page name of the preferred encoding.Get the filePattern property: File pattern of JSON.Get the jsonNodeReference property: The JSONPath of the JSON array element to be flattened.Get the jsonPathDefinition property: The JSONPath definition for each column mapping with a customized column name to extract data from JSON file.Get the nestingSeparator property: The character used to separate nesting levels.void
validate()
Validates the instance.withDeserializer
(Object deserializer) Set the deserializer property: Deserializer.withEncodingName
(Object encodingName) Set the encodingName property: The code page name of the preferred encoding.withFilePattern
(Object filePattern) Set the filePattern property: File pattern of JSON.withJsonNodeReference
(Object jsonNodeReference) Set the jsonNodeReference property: The JSONPath of the JSON array element to be flattened.withJsonPathDefinition
(Object jsonPathDefinition) Set the jsonPathDefinition property: The JSONPath definition for each column mapping with a customized column name to extract data from JSON file.withNestingSeparator
(Object nestingSeparator) Set the nestingSeparator property: The character used to separate nesting levels.withSerializer
(Object serializer) Set the serializer property: Serializer.Methods inherited from class com.azure.resourcemanager.datafactory.models.DatasetStorageFormat
additionalProperties, deserializer, serializer, withAdditionalProperties
-
Constructor Details
-
JsonFormat
public JsonFormat()Creates an instance of JsonFormat class.
-
-
Method Details
-
filePattern
Get the filePattern property: File pattern of JSON. To be more specific, the way of separating a collection of JSON objects. The default value is 'setOfObjects'. It is case-sensitive.- Returns:
- the filePattern value.
-
withFilePattern
Set the filePattern property: File pattern of JSON. To be more specific, the way of separating a collection of JSON objects. The default value is 'setOfObjects'. It is case-sensitive.- Parameters:
filePattern
- the filePattern value to set.- Returns:
- the JsonFormat object itself.
-
nestingSeparator
Get the nestingSeparator property: The character used to separate nesting levels. Default value is '.' (dot). Type: string (or Expression with resultType string).- Returns:
- the nestingSeparator value.
-
withNestingSeparator
Set the nestingSeparator property: The character used to separate nesting levels. Default value is '.' (dot). Type: string (or Expression with resultType string).- Parameters:
nestingSeparator
- the nestingSeparator value to set.- Returns:
- the JsonFormat object itself.
-
encodingName
Get the encodingName property: The code page name of the preferred encoding. If not provided, the default value is 'utf-8', unless the byte order mark (BOM) denotes another Unicode encoding. The full list of supported values can be found in the 'Name' column of the table of encodings in the following reference: https://go.microsoft.com/fwlink/?linkid=861078. Type: string (or Expression with resultType string).- Returns:
- the encodingName value.
-
withEncodingName
Set the encodingName property: The code page name of the preferred encoding. If not provided, the default value is 'utf-8', unless the byte order mark (BOM) denotes another Unicode encoding. The full list of supported values can be found in the 'Name' column of the table of encodings in the following reference: https://go.microsoft.com/fwlink/?linkid=861078. Type: string (or Expression with resultType string).- Parameters:
encodingName
- the encodingName value to set.- Returns:
- the JsonFormat object itself.
-
jsonNodeReference
Get the jsonNodeReference property: The JSONPath of the JSON array element to be flattened. Example: "$.ArrayPath". Type: string (or Expression with resultType string).- Returns:
- the jsonNodeReference value.
-
withJsonNodeReference
Set the jsonNodeReference property: The JSONPath of the JSON array element to be flattened. Example: "$.ArrayPath". Type: string (or Expression with resultType string).- Parameters:
jsonNodeReference
- the jsonNodeReference value to set.- Returns:
- the JsonFormat object itself.
-
jsonPathDefinition
Get the jsonPathDefinition property: The JSONPath definition for each column mapping with a customized column name to extract data from JSON file. For fields under root object, start with "$"; for fields inside the array chosen by jsonNodeReference property, start from the array element. Example: {"Column1": "$.Column1Path", "Column2": "Column2PathInArray"}. Type: object (or Expression with resultType object).- Returns:
- the jsonPathDefinition value.
-
withJsonPathDefinition
Set the jsonPathDefinition property: The JSONPath definition for each column mapping with a customized column name to extract data from JSON file. For fields under root object, start with "$"; for fields inside the array chosen by jsonNodeReference property, start from the array element. Example: {"Column1": "$.Column1Path", "Column2": "Column2PathInArray"}. Type: object (or Expression with resultType object).- Parameters:
jsonPathDefinition
- the jsonPathDefinition value to set.- Returns:
- the JsonFormat object itself.
-
withSerializer
Set the serializer property: Serializer. Type: string (or Expression with resultType string).- Overrides:
withSerializer
in classDatasetStorageFormat
- Parameters:
serializer
- the serializer value to set.- Returns:
- the DatasetStorageFormat object itself.
-
withDeserializer
Set the deserializer property: Deserializer. Type: string (or Expression with resultType string).- Overrides:
withDeserializer
in classDatasetStorageFormat
- Parameters:
deserializer
- the deserializer value to set.- Returns:
- the DatasetStorageFormat object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classDatasetStorageFormat
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-