Class CfnDeliveryStream.OpenXJsonSerDeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.OpenXJsonSerDeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeliveryStream.OpenXJsonSerDeProperty>
- Enclosing interface:
CfnDeliveryStream.OpenXJsonSerDeProperty
@Stability(Stable)
public static final class CfnDeliveryStream.OpenXJsonSerDeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeliveryStream.OpenXJsonSerDeProperty>
A builder for
CfnDeliveryStream.OpenXJsonSerDeProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.caseInsensitive
(Boolean caseInsensitive) Sets the value ofCfnDeliveryStream.OpenXJsonSerDeProperty.getCaseInsensitive()
caseInsensitive
(IResolvable caseInsensitive) Sets the value ofCfnDeliveryStream.OpenXJsonSerDeProperty.getCaseInsensitive()
columnToJsonKeyMappings
(Map<String, String> columnToJsonKeyMappings) Sets the value ofCfnDeliveryStream.OpenXJsonSerDeProperty.getColumnToJsonKeyMappings()
columnToJsonKeyMappings
(IResolvable columnToJsonKeyMappings) Sets the value ofCfnDeliveryStream.OpenXJsonSerDeProperty.getColumnToJsonKeyMappings()
convertDotsInJsonKeysToUnderscores
(Boolean convertDotsInJsonKeysToUnderscores) convertDotsInJsonKeysToUnderscores
(IResolvable convertDotsInJsonKeysToUnderscores)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
caseInsensitive
@Stability(Stable) public CfnDeliveryStream.OpenXJsonSerDeProperty.Builder caseInsensitive(Boolean caseInsensitive) Sets the value ofCfnDeliveryStream.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 CfnDeliveryStream.OpenXJsonSerDeProperty.Builder caseInsensitive(IResolvable caseInsensitive) Sets the value ofCfnDeliveryStream.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 CfnDeliveryStream.OpenXJsonSerDeProperty.Builder columnToJsonKeyMappings(IResolvable columnToJsonKeyMappings) Sets the value ofCfnDeliveryStream.OpenXJsonSerDeProperty.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,timestamp
is 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 CfnDeliveryStream.OpenXJsonSerDeProperty.Builder columnToJsonKeyMappings(Map<String, String> columnToJsonKeyMappings) Sets the value ofCfnDeliveryStream.OpenXJsonSerDeProperty.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,timestamp
is 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 CfnDeliveryStream.OpenXJsonSerDeProperty.Builder convertDotsInJsonKeysToUnderscores(Boolean convertDotsInJsonKeysToUnderscores) - 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 CfnDeliveryStream.OpenXJsonSerDeProperty.Builder convertDotsInJsonKeysToUnderscores(IResolvable convertDotsInJsonKeysToUnderscores) - 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:
build
in interfacesoftware.amazon.jsii.Builder<CfnDeliveryStream.OpenXJsonSerDeProperty>
- Returns:
- a new instance of
CfnDeliveryStream.OpenXJsonSerDeProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-