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:
  • Constructor Details

    • PutSubscriptionFilterRequest

      public PutSubscriptionFilterRequest()
  • Method Details

    • 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 of Destination) 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 of Destination) 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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 class AmazonWebServiceRequest
      See Also: