Interface ListToMap.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ListToMap.Builder,
,ListToMap> SdkBuilder<ListToMap.Builder,
,ListToMap> SdkPojo
- Enclosing class:
ListToMap
-
Method Summary
Modifier and TypeMethodDescriptionA Boolean value to indicate whether the list will be flattened into single items.flattenedElement
(String flattenedElement) If you setflatten
totrue
, useflattenedElement
to specify which element,first
orlast
, to keep.flattenedElement
(FlattenedElement flattenedElement) If you setflatten
totrue
, useflattenedElement
to specify which element,first
orlast
, to keep.The key of the field to be extracted as keys in the generated mapThe key in the log event that has a list of objects that will be converted to a map.The key of the field that will hold the generated mapIf this is specified, the values that you specify in this parameter will be extracted from thesource
objects 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 Details
-
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
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
If this is specified, the values that you specify in this parameter will be extracted from the
source
objects 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 thesource
objects 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
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
A Boolean value to indicate whether the list will be flattened into single items. Specify
true
to flatten the list. The default isfalse
- Parameters:
flatten
- A Boolean value to indicate whether the list will be flattened into single items. Specifytrue
to flatten the list. The default isfalse
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
flattenedElement
If you set
flatten
totrue
, useflattenedElement
to specify which element,first
orlast
, to keep.You must specify this parameter if
flatten
istrue
- Parameters:
flattenedElement
- If you setflatten
totrue
, useflattenedElement
to specify which element,first
orlast
, to keep.You must specify this parameter if
flatten
istrue
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
flattenedElement
If you set
flatten
totrue
, useflattenedElement
to specify which element,first
orlast
, to keep.You must specify this parameter if
flatten
istrue
- Parameters:
flattenedElement
- If you setflatten
totrue
, useflattenedElement
to specify which element,first
orlast
, to keep.You must specify this parameter if
flatten
istrue
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-