Class ListToMap
- java.lang.Object
-
- software.amazon.awssdk.services.cloudwatchlogs.model.ListToMap
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ListToMap.Builder,ListToMap>
@Generated("software.amazon.awssdk:codegen") public final class ListToMap extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ListToMap.Builder,ListToMap>
This processor takes a list of objects that contain key fields, and converts them into a map of target keys.
For more information about this processor including examples, see listToMap in the CloudWatch Logs User Guide.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceListToMap.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ListToMap.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Booleanflatten()A Boolean value to indicate whether the list will be flattened into single items.FlattenedElementflattenedElement()If you setflattentotrue, useflattenedElementto specify which element,firstorlast, to keep.StringflattenedElementAsString()If you setflattentotrue, useflattenedElementto specify which element,firstorlast, to keep.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringkey()The key of the field to be extracted as keys in the generated mapMap<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ListToMap.Builder>serializableBuilderClass()Stringsource()The key in the log event that has a list of objects that will be converted to a map.Stringtarget()The key of the field that will hold the generated mapListToMap.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringvalueKey()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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
source
public final String source()
The key in the log event that has a list of objects that will be converted to a map.
- Returns:
- The key in the log event that has a list of objects that will be converted to a map.
-
key
public final String key()
The key of the field to be extracted as keys in the generated map
- Returns:
- The key of the field to be extracted as keys in the generated map
-
valueKey
public final 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.- Returns:
- 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.
-
target
public final String target()
The key of the field that will hold the generated map
- Returns:
- The key of the field that will hold the generated map
-
flatten
public final Boolean flatten()
A Boolean value to indicate whether the list will be flattened into single items. Specify
trueto flatten the list. The default isfalse- Returns:
- A Boolean value to indicate whether the list will be flattened into single items. Specify
trueto flatten the list. The default isfalse
-
flattenedElement
public final FlattenedElement flattenedElement()
If you set
flattentotrue, useflattenedElementto specify which element,firstorlast, to keep.You must specify this parameter if
flattenistrueIf the service returns an enum value that is not available in the current SDK version,
flattenedElementwill returnFlattenedElement.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromflattenedElementAsString().- Returns:
- If you set
flattentotrue, useflattenedElementto specify which element,firstorlast, to keep.You must specify this parameter if
flattenistrue - See Also:
FlattenedElement
-
flattenedElementAsString
public final String flattenedElementAsString()
If you set
flattentotrue, useflattenedElementto specify which element,firstorlast, to keep.You must specify this parameter if
flattenistrueIf the service returns an enum value that is not available in the current SDK version,
flattenedElementwill returnFlattenedElement.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromflattenedElementAsString().- Returns:
- If you set
flattentotrue, useflattenedElementto specify which element,firstorlast, to keep.You must specify this parameter if
flattenistrue - See Also:
FlattenedElement
-
toBuilder
public ListToMap.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ListToMap.Builder,ListToMap>
-
builder
public static ListToMap.Builder builder()
-
serializableBuilderClass
public static Class<? extends ListToMap.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-