Class FieldsData
- java.lang.Object
-
- software.amazon.awssdk.services.cloudwatchlogs.model.FieldsData
-
- All Implemented Interfaces:
Serializable,SdkPojo,GetLogObjectResponseStream,ToCopyableBuilder<FieldsData.Builder,FieldsData>
- Direct Known Subclasses:
DefaultFields
@Generated("software.amazon.awssdk:codegen") public class FieldsData extends Object implements SdkPojo, Serializable, ToCopyableBuilder<FieldsData.Builder,FieldsData>, GetLogObjectResponseStream
A structure containing the extracted fields from a log event. These fields are extracted based on the log format and can be used for structured querying and analysis.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFieldsData.Builderprotected static classFieldsData.BuilderImpl-
Nested classes/interfaces inherited from interface software.amazon.awssdk.services.cloudwatchlogs.model.GetLogObjectResponseStream
GetLogObjectResponseStream.EventType
-
-
Field Summary
-
Fields inherited from interface software.amazon.awssdk.services.cloudwatchlogs.model.GetLogObjectResponseStream
UNKNOWN
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFieldsData(FieldsData.BuilderImpl builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(GetLogObjectResponseHandler.Visitor visitor)Calls the appropriate visit method depending on the subtype ofFieldsData.static FieldsData.Builderbuilder()FieldsDatacopy(Consumer<? super FieldsData.Builder> modifier)SdkBytesdata()The actual log data content returned in the streaming response.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends FieldsData.Builder>serializableBuilderClass()FieldsData.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.services.cloudwatchlogs.model.GetLogObjectResponseStream
sdkEventType
-
-
-
-
Constructor Detail
-
FieldsData
protected FieldsData(FieldsData.BuilderImpl builder)
-
-
Method Detail
-
data
public final SdkBytes data()
The actual log data content returned in the streaming response. This contains the fields and values of the log event in a structured format that can be parsed and processed by the client.
- Returns:
- The actual log data content returned in the streaming response. This contains the fields and values of the log event in a structured format that can be parsed and processed by the client.
-
toBuilder
public FieldsData.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<FieldsData.Builder,FieldsData>
-
builder
public static FieldsData.Builder builder()
-
serializableBuilderClass
public static Class<? extends FieldsData.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.
-
copy
public final FieldsData copy(Consumer<? super FieldsData.Builder> modifier)
- Specified by:
copyin interfaceToCopyableBuilder<FieldsData.Builder,FieldsData>
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
accept
public void accept(GetLogObjectResponseHandler.Visitor visitor)
Calls the appropriate visit method depending on the subtype ofFieldsData.- Specified by:
acceptin interfaceGetLogObjectResponseStream- Parameters:
visitor- Visitor to invoke.
-
-