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.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)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)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.
-
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
-
-