Class ResultField
- java.lang.Object
-
- software.amazon.awssdk.services.cloudwatchlogs.model.ResultField
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<ResultField.Builder,ResultField>
@Generated("software.amazon.awssdk:codegen") public final class ResultField extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResultField.Builder,ResultField>
Contains one field from one log event returned by a CloudWatch Logs Insights query, along with the value of that field.
For more information about the fields that are generated by CloudWatch logs, see Supported Logs and Discovered Fields.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ResultField.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResultField.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
String
field()
The log event field.<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Map<String,SdkField<?>>
sdkFieldNameToField()
List<SdkField<?>>
sdkFields()
static Class<? extends ResultField.Builder>
serializableBuilderClass()
ResultField.Builder
toBuilder()
String
toString()
Returns a string representation of this object.String
value()
The value of this field.-
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
-
field
public final String field()
The log event field.
- Returns:
- The log event field.
-
value
public final String value()
The value of this field.
- Returns:
- The value of this field.
-
toBuilder
public ResultField.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<ResultField.Builder,ResultField>
-
builder
public static ResultField.Builder builder()
-
serializableBuilderClass
public static Class<? extends ResultField.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in 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:
sdkFieldNameToField
in interfaceSdkPojo
-
-