Class CfnDeliveryStreamPropsMixin.OpenXJsonSerDeProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.kinesisfirehose.CfnDeliveryStreamPropsMixin.OpenXJsonSerDeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeliveryStreamPropsMixin.OpenXJsonSerDeProperty>
- Enclosing interface:
CfnDeliveryStreamPropsMixin.OpenXJsonSerDeProperty
@Stability(Stable)
public static final class CfnDeliveryStreamPropsMixin.OpenXJsonSerDeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeliveryStreamPropsMixin.OpenXJsonSerDeProperty>
A builder for
CfnDeliveryStreamPropsMixin.OpenXJsonSerDeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.caseInsensitive(Boolean caseInsensitive) Sets the value ofCfnDeliveryStreamPropsMixin.OpenXJsonSerDeProperty.getCaseInsensitive()caseInsensitive(IResolvable caseInsensitive) Sets the value ofCfnDeliveryStreamPropsMixin.OpenXJsonSerDeProperty.getCaseInsensitive()columnToJsonKeyMappings(Map<String, String> columnToJsonKeyMappings) columnToJsonKeyMappings(IResolvable columnToJsonKeyMappings) convertDotsInJsonKeysToUnderscores(Boolean convertDotsInJsonKeysToUnderscores) convertDotsInJsonKeysToUnderscores(IResolvable convertDotsInJsonKeysToUnderscores)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
caseInsensitive
@Stability(Stable) public CfnDeliveryStreamPropsMixin.OpenXJsonSerDeProperty.Builder caseInsensitive(Boolean caseInsensitive) Sets the value ofCfnDeliveryStreamPropsMixin.OpenXJsonSerDeProperty.getCaseInsensitive()- Parameters:
caseInsensitive- When set totrue, which is the default, Firehose converts JSON keys to lowercase before deserializing them.- Returns:
this
-
caseInsensitive
@Stability(Stable) public CfnDeliveryStreamPropsMixin.OpenXJsonSerDeProperty.Builder caseInsensitive(IResolvable caseInsensitive) Sets the value ofCfnDeliveryStreamPropsMixin.OpenXJsonSerDeProperty.getCaseInsensitive()- Parameters:
caseInsensitive- When set totrue, which is the default, Firehose converts JSON keys to lowercase before deserializing them.- Returns:
this
-
columnToJsonKeyMappings
@Stability(Stable) public CfnDeliveryStreamPropsMixin.OpenXJsonSerDeProperty.Builder columnToJsonKeyMappings(Map<String, String> columnToJsonKeyMappings) - 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
-
columnToJsonKeyMappings
@Stability(Stable) public CfnDeliveryStreamPropsMixin.OpenXJsonSerDeProperty.Builder columnToJsonKeyMappings(IResolvable columnToJsonKeyMappings) - 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 CfnDeliveryStreamPropsMixin.OpenXJsonSerDeProperty.Builder convertDotsInJsonKeysToUnderscores(Boolean convertDotsInJsonKeysToUnderscores) Sets the value ofCfnDeliveryStreamPropsMixin.OpenXJsonSerDeProperty.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.The default is
false.- Returns:
this
-
convertDotsInJsonKeysToUnderscores
@Stability(Stable) public CfnDeliveryStreamPropsMixin.OpenXJsonSerDeProperty.Builder convertDotsInJsonKeysToUnderscores(IResolvable convertDotsInJsonKeysToUnderscores) Sets the value ofCfnDeliveryStreamPropsMixin.OpenXJsonSerDeProperty.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.The default is
false.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDeliveryStreamPropsMixin.OpenXJsonSerDeProperty>- Returns:
- a new instance of
CfnDeliveryStreamPropsMixin.OpenXJsonSerDeProperty - Throws:
NullPointerException- if any required attribute was not provided
-