Class OpenXJsonInputFormatProps.Builder
java.lang.Object
software.amazon.awscdk.services.kinesisfirehose.OpenXJsonInputFormatProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<OpenXJsonInputFormatProps>
- Enclosing interface:
OpenXJsonInputFormatProps
@Stability(Stable)
public static final class OpenXJsonInputFormatProps.Builder
extends Object
implements software.amazon.jsii.Builder<OpenXJsonInputFormatProps>
A builder for
OpenXJsonInputFormatProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.columnToJsonKeyMappings(Map<String, String> columnToJsonKeyMappings) Sets the value ofOpenXJsonInputFormatProps.getColumnToJsonKeyMappings()convertDotsInJsonKeysToUnderscores(Boolean convertDotsInJsonKeysToUnderscores) Sets the value ofOpenXJsonInputFormatProps.getConvertDotsInJsonKeysToUnderscores()lowercaseColumnNames(Boolean lowercaseColumnNames) Sets the value ofOpenXJsonInputFormatProps.getLowercaseColumnNames()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
columnToJsonKeyMappings
@Stability(Stable) public OpenXJsonInputFormatProps.Builder columnToJsonKeyMappings(Map<String, String> columnToJsonKeyMappings) Sets the value ofOpenXJsonInputFormatProps.getColumnToJsonKeyMappings()- Parameters:
columnToJsonKeyMappings- Maps column names to JSON keys that aren't identical to the column names. This is useful when the JSON contains keys that are Hive keywords. For example,timestampis a Hive keyword. If you have a JSON key namedtimestamp, set this parameter to{"ts": "timestamp"}to map this key to a column namedts- Returns:
this
-
convertDotsInJsonKeysToUnderscores
@Stability(Stable) public OpenXJsonInputFormatProps.Builder convertDotsInJsonKeysToUnderscores(Boolean convertDotsInJsonKeysToUnderscores) Sets the value ofOpenXJsonInputFormatProps.getConvertDotsInJsonKeysToUnderscores()- Parameters:
convertDotsInJsonKeysToUnderscores- When set totrue, specifies that the names of the keys include dots and that you want Firehose to replace them with underscores. This is useful because Apache Hive does not allow dots in column names. For example, if the JSON contains a key whose name is "a.b", you can define the column name to be "a_b" when using this option.- Returns:
this
-
lowercaseColumnNames
@Stability(Stable) public OpenXJsonInputFormatProps.Builder lowercaseColumnNames(Boolean lowercaseColumnNames) Sets the value ofOpenXJsonInputFormatProps.getLowercaseColumnNames()- Parameters:
lowercaseColumnNames- Whether the JSON keys should be lowercased when written as column names.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<OpenXJsonInputFormatProps>- Returns:
- a new instance of
OpenXJsonInputFormatProps - Throws:
NullPointerException- if any required attribute was not provided
-