Class SubscriptionFilter
- java.lang.Object
-
- software.amazon.awssdk.services.cloudwatchlogs.model.SubscriptionFilter
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SubscriptionFilter.Builder,SubscriptionFilter>
@Generated("software.amazon.awssdk:codegen") public final class SubscriptionFilter extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SubscriptionFilter.Builder,SubscriptionFilter>
Represents a subscription filter.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSubscriptionFilter.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanapplyOnTransformedLogs()This parameter is valid only for log groups that have an active log transformer.static SubscriptionFilter.Builderbuilder()LongcreationTime()The creation time of the subscription filter, expressed as the number of milliseconds afterJan 1, 1970 00:00:00 UTC.StringdestinationArn()The Amazon Resource Name (ARN) of the destination.Distributiondistribution()Returns the value of the Distribution property for this object.StringdistributionAsString()Returns the value of the Distribution property for this object.List<String>emitSystemFields()The list of system fields that are included in the log events sent to the subscription destination.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringfieldSelectionCriteria()The filter expression that specifies which log events are processed by this subscription filter based on system fields.StringfilterName()The name of the subscription filter.StringfilterPattern()Returns the value of the FilterPattern property for this object.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasEmitSystemFields()For responses, this returns true if the service returned a value for the EmitSystemFields property.inthashCode()StringlogGroupName()The name of the log group.StringroleArn()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends SubscriptionFilter.Builder>serializableBuilderClass()SubscriptionFilter.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.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
filterName
public final String filterName()
The name of the subscription filter.
- Returns:
- The name of the subscription filter.
-
logGroupName
public final String logGroupName()
The name of the log group.
- Returns:
- The name of the log group.
-
filterPattern
public final String filterPattern()
Returns the value of the FilterPattern property for this object.- Returns:
- The value of the FilterPattern property for this object.
-
destinationArn
public final String destinationArn()
The Amazon Resource Name (ARN) of the destination.
- Returns:
- The Amazon Resource Name (ARN) of the destination.
-
roleArn
public final String roleArn()
- Returns:
-
distribution
public final Distribution 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:
Distribution
-
distributionAsString
public final String 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:
Distribution
-
applyOnTransformedLogs
public final Boolean 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
public final Long 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
public final String 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
public final List<String> 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
public SubscriptionFilter.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SubscriptionFilter.Builder,SubscriptionFilter>
-
builder
public static SubscriptionFilter.Builder builder()
-
serializableBuilderClass
public static Class<? extends SubscriptionFilter.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-