Class PutSubscriptionFilterRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.logs.model.PutSubscriptionFilterRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class PutSubscriptionFilterRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description PutSubscriptionFilterRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PutSubscriptionFilterRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getDestinationArn()
The ARN of the destination to deliver matching log events to.String
getFilterName()
A name for the subscription filter.String
getFilterPattern()
A valid CloudWatch Logs filter pattern for subscribing to a filtered stream of log events.String
getLogGroupName()
The name of the log group to associate the subscription filter with.String
getRoleArn()
The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream.int
hashCode()
void
setDestinationArn(String destinationArn)
The ARN of the destination to deliver matching log events to.void
setFilterName(String filterName)
A name for the subscription filter.void
setFilterPattern(String filterPattern)
A valid CloudWatch Logs filter pattern for subscribing to a filtered stream of log events.void
setLogGroupName(String logGroupName)
The name of the log group to associate the subscription filter with.void
setRoleArn(String roleArn)
The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream.String
toString()
Returns a string representation of this object; useful for testing and debugging.PutSubscriptionFilterRequest
withDestinationArn(String destinationArn)
The ARN of the destination to deliver matching log events to.PutSubscriptionFilterRequest
withFilterName(String filterName)
A name for the subscription filter.PutSubscriptionFilterRequest
withFilterPattern(String filterPattern)
A valid CloudWatch Logs filter pattern for subscribing to a filtered stream of log events.PutSubscriptionFilterRequest
withLogGroupName(String logGroupName)
The name of the log group to associate the subscription filter with.PutSubscriptionFilterRequest
withRoleArn(String roleArn)
The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setLogGroupName
public void setLogGroupName(String logGroupName)
The name of the log group to associate the subscription filter with.
- Parameters:
logGroupName
- The name of the log group to associate the subscription filter with.
-
getLogGroupName
public String getLogGroupName()
The name of the log group to associate the subscription filter with.
- Returns:
- The name of the log group to associate the subscription filter with.
-
withLogGroupName
public PutSubscriptionFilterRequest withLogGroupName(String logGroupName)
The name of the log group to associate the subscription filter with.
- Parameters:
logGroupName
- The name of the log group to associate the subscription filter with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setFilterName
public void setFilterName(String filterName)
A name for the subscription filter.
- Parameters:
filterName
- A name for the subscription filter.
-
getFilterName
public String getFilterName()
A name for the subscription filter.
- Returns:
- A name for the subscription filter.
-
withFilterName
public PutSubscriptionFilterRequest withFilterName(String filterName)
A name for the subscription filter.
- Parameters:
filterName
- A name for the subscription filter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setFilterPattern
public void setFilterPattern(String filterPattern)
A valid CloudWatch Logs filter pattern for subscribing to a filtered stream of log events.
- Parameters:
filterPattern
- A valid CloudWatch Logs filter pattern for subscribing to a filtered stream of log events.
-
getFilterPattern
public String getFilterPattern()
A valid CloudWatch Logs filter pattern for subscribing to a filtered stream of log events.
- Returns:
- A valid CloudWatch Logs filter pattern for subscribing to a filtered stream of log events.
-
withFilterPattern
public PutSubscriptionFilterRequest withFilterPattern(String filterPattern)
A valid CloudWatch Logs filter pattern for subscribing to a filtered stream of log events.
- Parameters:
filterPattern
- A valid CloudWatch Logs filter pattern for subscribing to a filtered stream of log events.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDestinationArn
public void setDestinationArn(String destinationArn)
The ARN of the destination to deliver matching log events to. Currently, the supported destinations are:
- An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery.
- A logical destination (used via an ARN of
Destination
) belonging to a different account, for cross-account delivery. - An Amazon Kinesis Firehose stream belonging to the same account as the subscription filter, for same-account delivery.
- An AWS Lambda function belonging to the same account as the subscription filter, for same-account delivery.
- Parameters:
destinationArn
- The ARN of the destination to deliver matching log events to. Currently, the supported destinations are:- An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery.
- A logical destination (used via an ARN of
Destination
) belonging to a different account, for cross-account delivery. - An Amazon Kinesis Firehose stream belonging to the same account as the subscription filter, for same-account delivery.
- An AWS Lambda function belonging to the same account as the subscription filter, for same-account delivery.
-
getDestinationArn
public String getDestinationArn()
The ARN of the destination to deliver matching log events to. Currently, the supported destinations are:
- An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery.
- A logical destination (used via an ARN of
Destination
) belonging to a different account, for cross-account delivery. - An Amazon Kinesis Firehose stream belonging to the same account as the subscription filter, for same-account delivery.
- An AWS Lambda function belonging to the same account as the subscription filter, for same-account delivery.
- Returns:
- The ARN of the destination to deliver matching log events to.
Currently, the supported destinations are:
- An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery.
- A logical destination (used via an ARN of
Destination
) belonging to a different account, for cross-account delivery. - An Amazon Kinesis Firehose stream belonging to the same account as the subscription filter, for same-account delivery.
- An AWS Lambda function belonging to the same account as the subscription filter, for same-account delivery.
-
withDestinationArn
public PutSubscriptionFilterRequest withDestinationArn(String destinationArn)
The ARN of the destination to deliver matching log events to. Currently, the supported destinations are:
- An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery.
- A logical destination (used via an ARN of
Destination
) belonging to a different account, for cross-account delivery. - An Amazon Kinesis Firehose stream belonging to the same account as the subscription filter, for same-account delivery.
- An AWS Lambda function belonging to the same account as the subscription filter, for same-account delivery.
- Parameters:
destinationArn
- The ARN of the destination to deliver matching log events to. Currently, the supported destinations are:- An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery.
- A logical destination (used via an ARN of
Destination
) belonging to a different account, for cross-account delivery. - An Amazon Kinesis Firehose stream belonging to the same account as the subscription filter, for same-account delivery.
- An AWS Lambda function belonging to the same account as the subscription filter, for same-account delivery.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRoleArn
public void setRoleArn(String roleArn)
The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream. You don't need to provide the ARN when you are working with a logical destination (used via an ARN of
Destination
) for cross-account delivery.- Parameters:
roleArn
- The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream. You don't need to provide the ARN when you are working with a logical destination (used via an ARN ofDestination
) for cross-account delivery.
-
getRoleArn
public String getRoleArn()
The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream. You don't need to provide the ARN when you are working with a logical destination (used via an ARN of
Destination
) for cross-account delivery.- Returns:
- The ARN of an IAM role that grants CloudWatch Logs permissions to
deliver ingested log events to the destination stream. You don't
need to provide the ARN when you are working with a logical
destination (used via an ARN of
Destination
) for cross-account delivery.
-
withRoleArn
public PutSubscriptionFilterRequest withRoleArn(String roleArn)
The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream. You don't need to provide the ARN when you are working with a logical destination (used via an ARN of
Destination
) for cross-account delivery.- Parameters:
roleArn
- The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream. You don't need to provide the ARN when you are working with a logical destination (used via an ARN ofDestination
) for cross-account delivery.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PutSubscriptionFilterRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-