public class SubscriptionFilter
extends java.lang.Object
implements java.io.Serializable
Represents a subscription filter.
Constructor and Description |
---|
SubscriptionFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Long |
getCreationTime()
The creation time of the subscription filter, expressed as the number of
milliseconds after Jan 1, 1970 00:00:00 UTC.
|
java.lang.String |
getDestinationArn()
The Amazon Resource Name (ARN) of the destination.
|
java.lang.String |
getDistribution()
The method used to distribute log data to the destination, which can be
either random or grouped by log stream.
|
java.lang.String |
getFilterName()
The name of the subscription filter.
|
java.lang.String |
getFilterPattern()
A symbolic description of how CloudWatch Logs should interpret the data
in each log event.
|
java.lang.String |
getLogGroupName()
The name of the log group.
|
java.lang.String |
getRoleArn()
|
int |
hashCode() |
void |
setCreationTime(java.lang.Long creationTime)
The creation time of the subscription filter, expressed as the number of
milliseconds after Jan 1, 1970 00:00:00 UTC.
|
void |
setDestinationArn(java.lang.String destinationArn)
The Amazon Resource Name (ARN) of the destination.
|
void |
setDistribution(Distribution distribution)
The method used to distribute log data to the destination, which can be
either random or grouped by log stream.
|
void |
setDistribution(java.lang.String distribution)
The method used to distribute log data to the destination, which can be
either random or grouped by log stream.
|
void |
setFilterName(java.lang.String filterName)
The name of the subscription filter.
|
void |
setFilterPattern(java.lang.String filterPattern)
A symbolic description of how CloudWatch Logs should interpret the data
in each log event.
|
void |
setLogGroupName(java.lang.String logGroupName)
The name of the log group.
|
void |
setRoleArn(java.lang.String roleArn)
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SubscriptionFilter |
withCreationTime(java.lang.Long creationTime)
The creation time of the subscription filter, expressed as the number of
milliseconds after Jan 1, 1970 00:00:00 UTC.
|
SubscriptionFilter |
withDestinationArn(java.lang.String destinationArn)
The Amazon Resource Name (ARN) of the destination.
|
SubscriptionFilter |
withDistribution(Distribution distribution)
The method used to distribute log data to the destination, which can be
either random or grouped by log stream.
|
SubscriptionFilter |
withDistribution(java.lang.String distribution)
The method used to distribute log data to the destination, which can be
either random or grouped by log stream.
|
SubscriptionFilter |
withFilterName(java.lang.String filterName)
The name of the subscription filter.
|
SubscriptionFilter |
withFilterPattern(java.lang.String filterPattern)
A symbolic description of how CloudWatch Logs should interpret the data
in each log event.
|
SubscriptionFilter |
withLogGroupName(java.lang.String logGroupName)
The name of the log group.
|
SubscriptionFilter |
withRoleArn(java.lang.String roleArn)
|
public java.lang.String getFilterName()
The name of the subscription filter.
Constraints:
Length: 1 - 512
Pattern: [^:*]*
The name of the subscription filter.
public void setFilterName(java.lang.String filterName)
The name of the subscription filter.
Constraints:
Length: 1 - 512
Pattern: [^:*]*
filterName
- The name of the subscription filter.
public SubscriptionFilter withFilterName(java.lang.String filterName)
The name of the subscription filter.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
Pattern: [^:*]*
filterName
- The name of the subscription filter.
public java.lang.String getLogGroupName()
The name of the log group.
Constraints:
Length: 1 - 512
Pattern: [\.\-_/#A-Za-z0-9]+
The name of the log group.
public void setLogGroupName(java.lang.String logGroupName)
The name of the log group.
Constraints:
Length: 1 - 512
Pattern: [\.\-_/#A-Za-z0-9]+
logGroupName
- The name of the log group.
public SubscriptionFilter withLogGroupName(java.lang.String logGroupName)
The name of the log group.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
Pattern: [\.\-_/#A-Za-z0-9]+
logGroupName
- The name of the log group.
public java.lang.String getFilterPattern()
A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event may contain time stamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.
Constraints:
Length: 0 - 1024
A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event may contain time stamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.
public void setFilterPattern(java.lang.String filterPattern)
A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event may contain time stamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.
Constraints:
Length: 0 - 1024
filterPattern
- A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event may contain time stamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.
public SubscriptionFilter withFilterPattern(java.lang.String filterPattern)
A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event may contain time stamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 1024
filterPattern
- A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event may contain time stamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.
public java.lang.String getDestinationArn()
The Amazon Resource Name (ARN) of the destination.
Constraints:
Length: 1 -
The Amazon Resource Name (ARN) of the destination.
public void setDestinationArn(java.lang.String destinationArn)
The Amazon Resource Name (ARN) of the destination.
Constraints:
Length: 1 -
destinationArn
- The Amazon Resource Name (ARN) of the destination.
public SubscriptionFilter withDestinationArn(java.lang.String destinationArn)
The Amazon Resource Name (ARN) of the destination.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
destinationArn
- The Amazon Resource Name (ARN) of the destination.
public java.lang.String getRoleArn()
Constraints:
Length: 1 -
public void setRoleArn(java.lang.String roleArn)
Constraints:
Length: 1 -
roleArn
- public SubscriptionFilter withRoleArn(java.lang.String roleArn)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
roleArn
- public java.lang.String getDistribution()
The method used to distribute log data to the destination, which can be either random or grouped by log stream.
Constraints:
Allowed Values: Random, ByLogStream
The method used to distribute log data to the destination, which can be either random or grouped by log stream.
Distribution
public void setDistribution(java.lang.String distribution)
The method used to distribute log data to the destination, which can be either random or grouped by log stream.
Constraints:
Allowed Values: Random, ByLogStream
distribution
- The method used to distribute log data to the destination, which can be either random or grouped by log stream.
Distribution
public SubscriptionFilter withDistribution(java.lang.String distribution)
The method used to distribute log data to the destination, which can be either random or grouped by log stream.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Random, ByLogStream
distribution
- The method used to distribute log data to the destination, which can be either random or grouped by log stream.
Distribution
public void setDistribution(Distribution distribution)
The method used to distribute log data to the destination, which can be either random or grouped by log stream.
Constraints:
Allowed Values: Random, ByLogStream
distribution
- The method used to distribute log data to the destination, which can be either random or grouped by log stream.
Distribution
public SubscriptionFilter withDistribution(Distribution distribution)
The method used to distribute log data to the destination, which can be either random or grouped by log stream.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Random, ByLogStream
distribution
- The method used to distribute log data to the destination, which can be either random or grouped by log stream.
Distribution
public java.lang.Long getCreationTime()
The creation time of the subscription filter, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
Constraints:
Range: 0 -
The creation time of the subscription filter, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
public void setCreationTime(java.lang.Long creationTime)
The creation time of the subscription filter, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
Constraints:
Range: 0 -
creationTime
- The creation time of the subscription filter, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
public SubscriptionFilter withCreationTime(java.lang.Long creationTime)
The creation time of the subscription filter, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
creationTime
- The creation time of the subscription filter, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.