Class CfnTransformerPropsMixin.ListToMapProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.logs.CfnTransformerPropsMixin.ListToMapProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransformerPropsMixin.ListToMapProperty>
- Enclosing interface:
CfnTransformerPropsMixin.ListToMapProperty
@Stability(Stable)
public static final class CfnTransformerPropsMixin.ListToMapProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransformerPropsMixin.ListToMapProperty>
A builder for
CfnTransformerPropsMixin.ListToMapProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnTransformerPropsMixin.ListToMapProperty.getFlatten()flatten(IResolvable flatten) Sets the value ofCfnTransformerPropsMixin.ListToMapProperty.getFlatten()flattenedElement(String flattenedElement) Sets the value ofCfnTransformerPropsMixin.ListToMapProperty.getFlattenedElement()Sets the value ofCfnTransformerPropsMixin.ListToMapProperty.getKey()Sets the value ofCfnTransformerPropsMixin.ListToMapProperty.getSource()Sets the value ofCfnTransformerPropsMixin.ListToMapProperty.getTarget()Sets the value ofCfnTransformerPropsMixin.ListToMapProperty.getValueKey()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
flatten
@Stability(Stable) public CfnTransformerPropsMixin.ListToMapProperty.Builder flatten(Boolean flatten) Sets the value ofCfnTransformerPropsMixin.ListToMapProperty.getFlatten()- Parameters:
flatten- A Boolean value to indicate whether the list will be flattened into single items. Specifytrueto flatten the list. The default isfalse- Returns:
this
-
flatten
@Stability(Stable) public CfnTransformerPropsMixin.ListToMapProperty.Builder flatten(IResolvable flatten) Sets the value ofCfnTransformerPropsMixin.ListToMapProperty.getFlatten()- Parameters:
flatten- A Boolean value to indicate whether the list will be flattened into single items. Specifytrueto flatten the list. The default isfalse- Returns:
this
-
flattenedElement
@Stability(Stable) public CfnTransformerPropsMixin.ListToMapProperty.Builder flattenedElement(String flattenedElement) Sets the value ofCfnTransformerPropsMixin.ListToMapProperty.getFlattenedElement()- Parameters:
flattenedElement- If you setflattentotrue, useflattenedElementto specify which element,firstorlast, to keep. You must specify this parameter ifflattenistrue- Returns:
this
-
key
Sets the value ofCfnTransformerPropsMixin.ListToMapProperty.getKey()- Parameters:
key- The key of the field to be extracted as keys in the generated map.- Returns:
this
-
source
Sets the value ofCfnTransformerPropsMixin.ListToMapProperty.getSource()- Parameters:
source- The key in the log event that has a list of objects that will be converted to a map.- Returns:
this
-
target
Sets the value ofCfnTransformerPropsMixin.ListToMapProperty.getTarget()- Parameters:
target- The key of the field that will hold the generated map.- Returns:
this
-
valueKey
@Stability(Stable) public CfnTransformerPropsMixin.ListToMapProperty.Builder valueKey(String valueKey) Sets the value ofCfnTransformerPropsMixin.ListToMapProperty.getValueKey()- Parameters:
valueKey- If this is specified, the values that you specify in this parameter will be extracted from thesourceobjects and put into the values of the generated map. Otherwise, original objects in the source list will be put into the values of the generated map.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTransformerPropsMixin.ListToMapProperty>- Returns:
- a new instance of
CfnTransformerPropsMixin.ListToMapProperty - Throws:
NullPointerException- if any required attribute was not provided
-