Class FieldIndex
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<FieldIndex.Builder,FieldIndex>
This structure describes one log event field that is used as an index in at least one index policy in this account.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic FieldIndex.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final StringThe string that this field index matches.final LongThe time and date of the earliest log event that matches this field index, after the index policy that contains it was created.final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final LongThe time and date of the most recent log event that matches this field index.final LongThe most recent time that CloudWatch Logs scanned ingested log events to search for this field index to improve the speed of future CloudWatch Logs Insights queries that search for this field index.final StringIf this field index appears in an index policy that applies only to a single log group, the ARN of that log group is displayed here.static Class<? extends FieldIndex.Builder>final StringtoString()Returns a string representation of this object.final IndexTypetype()The type of index.final StringThe type of index.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
logGroupIdentifier
If this field index appears in an index policy that applies only to a single log group, the ARN of that log group is displayed here.
- Returns:
- If this field index appears in an index policy that applies only to a single log group, the ARN of that log group is displayed here.
-
fieldIndexName
The string that this field index matches.
- Returns:
- The string that this field index matches.
-
lastScanTime
The most recent time that CloudWatch Logs scanned ingested log events to search for this field index to improve the speed of future CloudWatch Logs Insights queries that search for this field index.
- Returns:
- The most recent time that CloudWatch Logs scanned ingested log events to search for this field index to improve the speed of future CloudWatch Logs Insights queries that search for this field index.
-
firstEventTime
The time and date of the earliest log event that matches this field index, after the index policy that contains it was created.
- Returns:
- The time and date of the earliest log event that matches this field index, after the index policy that contains it was created.
-
lastEventTime
The time and date of the most recent log event that matches this field index.
- Returns:
- The time and date of the most recent log event that matches this field index.
-
type
The type of index. Specify
FACETfor facet-based indexing orFIELD_INDEXfor field-based indexing. This determines how the field is indexed and can be queried.If the service returns an enum value that is not available in the current SDK version,
typewill returnIndexType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of index. Specify
FACETfor facet-based indexing orFIELD_INDEXfor field-based indexing. This determines how the field is indexed and can be queried. - See Also:
-
typeAsString
The type of index. Specify
FACETfor facet-based indexing orFIELD_INDEXfor field-based indexing. This determines how the field is indexed and can be queried.If the service returns an enum value that is not available in the current SDK version,
typewill returnIndexType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of index. Specify
FACETfor facet-based indexing orFIELD_INDEXfor field-based indexing. This determines how the field is indexed and can be queried. - See Also:
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<FieldIndex.Builder,FieldIndex>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-