Interface ListToMap.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ListToMap.Builder,ListToMap>,SdkBuilder<ListToMap.Builder,ListToMap>,SdkPojo
- Enclosing class:
- ListToMap
public static interface ListToMap.Builder extends SdkPojo, CopyableBuilder<ListToMap.Builder,ListToMap>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListToMap.Builderflatten(Boolean flatten)A Boolean value to indicate whether the list will be flattened into single items.ListToMap.BuilderflattenedElement(String flattenedElement)If you setflattentotrue, useflattenedElementto specify which element,firstorlast, to keep.ListToMap.BuilderflattenedElement(FlattenedElement flattenedElement)If you setflattentotrue, useflattenedElementto specify which element,firstorlast, to keep.ListToMap.Builderkey(String key)The key of the field to be extracted as keys in the generated mapListToMap.Buildersource(String source)The key in the log event that has a list of objects that will be converted to a map.ListToMap.Buildertarget(String target)The key of the field that will hold the generated mapListToMap.BuildervalueKey(String 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.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
source
ListToMap.Builder source(String source)
The key in the log event that has a list of objects that will be converted to a map.
- Parameters:
source- The key in the log event that has a list of objects that will be converted to a map.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
key
ListToMap.Builder key(String key)
The key of the field to be extracted as keys in the generated map
- Parameters:
key- The key of the field to be extracted as keys in the generated map- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
valueKey
ListToMap.Builder valueKey(String valueKey)
If this is specified, the values that you specify in this parameter will be extracted from the
sourceobjects 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.- 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:
- Returns a reference to this object so that method calls can be chained together.
-
target
ListToMap.Builder target(String target)
The key of the field that will hold the generated map
- Parameters:
target- The key of the field that will hold the generated map- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
flatten
ListToMap.Builder flatten(Boolean flatten)
A Boolean value to indicate whether the list will be flattened into single items. Specify
trueto flatten the list. The default isfalse- Parameters:
flatten- A Boolean value to indicate whether the list will be flattened into single items. Specifytrueto flatten the list. The default isfalse- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
flattenedElement
ListToMap.Builder flattenedElement(String flattenedElement)
If you set
flattentotrue, useflattenedElementto specify which element,firstorlast, to keep.You must specify this parameter if
flattenistrue- Parameters:
flattenedElement- If you setflattentotrue, useflattenedElementto specify which element,firstorlast, to keep.You must specify this parameter if
flattenistrue- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FlattenedElement,FlattenedElement
-
flattenedElement
ListToMap.Builder flattenedElement(FlattenedElement flattenedElement)
If you set
flattentotrue, useflattenedElementto specify which element,firstorlast, to keep.You must specify this parameter if
flattenistrue- Parameters:
flattenedElement- If you setflattentotrue, useflattenedElementto specify which element,firstorlast, to keep.You must specify this parameter if
flattenistrue- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FlattenedElement,FlattenedElement
-
-