Class SubscriptionFilter
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SubscriptionFilter.Builder,SubscriptionFilter>
Represents a subscription filter.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal BooleanThis parameter is valid only for log groups that have an active log transformer.static SubscriptionFilter.Builderbuilder()final LongThe creation time of the subscription filter, expressed as the number of milliseconds afterJan 1, 1970 00:00:00 UTC.final StringThe Amazon Resource Name (ARN) of the destination.final DistributionReturns the value of the Distribution property for this object.final StringReturns the value of the Distribution property for this object.The list of system fields that are included in the log events sent to the subscription destination.final booleanfinal booleanequalsBySdkFields(Object obj) final StringThe filter expression that specifies which log events are processed by this subscription filter based on system fields.final StringThe name of the subscription filter.final StringReturns the value of the FilterPattern property for this object.final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the EmitSystemFields property.final inthashCode()final StringThe name of the log group.final StringroleArn()static Class<? extends SubscriptionFilter.Builder>final StringtoString()Returns a string representation of this object.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
-
filterName
The name of the subscription filter.
- Returns:
- The name of the subscription filter.
-
logGroupName
The name of the log group.
- Returns:
- The name of the log group.
-
filterPattern
Returns the value of the FilterPattern property for this object.- Returns:
- The value of the FilterPattern property for this object.
-
destinationArn
The Amazon Resource Name (ARN) of the destination.
- Returns:
- The Amazon Resource Name (ARN) of the destination.
-
roleArn
- Returns:
-
distribution
Returns the value of the Distribution property for this object.If the service returns an enum value that is not available in the current SDK version,
distributionwill returnDistribution.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdistributionAsString().- Returns:
- The value of the Distribution property for this object.
- See Also:
-
distributionAsString
Returns the value of the Distribution property for this object.If the service returns an enum value that is not available in the current SDK version,
distributionwill returnDistribution.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdistributionAsString().- Returns:
- The value of the Distribution property for this object.
- See Also:
-
applyOnTransformedLogs
This parameter is valid only for log groups that have an active log transformer. For more information about log transformers, see PutTransformer.
If this value is
true, the subscription filter is applied on the transformed version of the log events instead of the original ingested log events.- Returns:
- This parameter is valid only for log groups that have an active log transformer. For more information
about log transformers, see PutTransformer.
If this value is
true, the subscription filter is applied on the transformed version of the log events instead of the original ingested log events.
-
creationTime
The creation time of the subscription filter, expressed as the number of milliseconds after
Jan 1, 1970 00:00:00 UTC.- Returns:
- The creation time of the subscription filter, expressed as the number of milliseconds after
Jan 1, 1970 00:00:00 UTC.
-
fieldSelectionCriteria
The filter expression that specifies which log events are processed by this subscription filter based on system fields. Returns the
fieldSelectionCriteriavalue if it was specified when the subscription filter was created.- Returns:
- The filter expression that specifies which log events are processed by this subscription filter based on
system fields. Returns the
fieldSelectionCriteriavalue if it was specified when the subscription filter was created.
-
hasEmitSystemFields
public final boolean hasEmitSystemFields()For responses, this returns true if the service returned a value for the EmitSystemFields property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
emitSystemFields
The list of system fields that are included in the log events sent to the subscription destination. Returns the
emitSystemFieldsvalue if it was specified when the subscription filter was created.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasEmitSystemFields()method.- Returns:
- The list of system fields that are included in the log events sent to the subscription destination.
Returns the
emitSystemFieldsvalue if it was specified when the subscription filter was created.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<SubscriptionFilter.Builder,SubscriptionFilter>
-
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
-