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 setflattentotrue, useflattenedElementto specify which element,firstorlast, to keep.flattenedElement(FlattenedElement flattenedElement) If you setflattentotrue, useflattenedElementto specify which element,firstorlast, 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 thesourceobjects and put into the values of the generated map.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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
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
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
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
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
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:
-