Class CloudWatchLogsFilter
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CloudWatchLogsFilter.Builder,CloudWatchLogsFilter>
A filter for narrowing down agent traces from CloudWatch Logs based on key-value comparisons.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic CloudWatchLogsFilter.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringkey()The key or field name to filter on within the agent trace data.operator()The comparison operator to use for filtering.final StringThe comparison operator to use for filtering.static Class<? extends CloudWatchLogsFilter.Builder>final StringtoString()Returns a string representation of this object.final FilterValuevalue()The value to compare against using the specified operator.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
-
key
The key or field name to filter on within the agent trace data.
- Returns:
- The key or field name to filter on within the agent trace data.
-
operator
The comparison operator to use for filtering.
If the service returns an enum value that is not available in the current SDK version,
operatorwill returnCloudWatchLogsFilterOperator.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromoperatorAsString().- Returns:
- The comparison operator to use for filtering.
- See Also:
-
operatorAsString
The comparison operator to use for filtering.
If the service returns an enum value that is not available in the current SDK version,
operatorwill returnCloudWatchLogsFilterOperator.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromoperatorAsString().- Returns:
- The comparison operator to use for filtering.
- See Also:
-
value
The value to compare against using the specified operator.
- Returns:
- The value to compare against using the specified operator.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<CloudWatchLogsFilter.Builder,CloudWatchLogsFilter>
-
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
-