public class PutSubscriptionFilterRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
destinationArn
The ARN of the destination to deliver matching log events to.
|
private java.lang.String |
filterName
A name for the subscription filter.
|
private java.lang.String |
filterPattern
A valid CloudWatch Logs filter pattern for subscribing to a filtered
stream of log events.
|
private java.lang.String |
logGroupName
The name of the log group to associate the subscription filter with.
|
private java.lang.String |
roleArn
The ARN of an IAM role that grants CloudWatch Logs permissions to deliver
ingested log events to the destination stream.
|
NOOP
Constructor and Description |
---|
PutSubscriptionFilterRequest() |
Modifier and Type | Method and Description |
---|---|
PutSubscriptionFilterRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDestinationArn()
The ARN of the destination to deliver matching log events to.
|
java.lang.String |
getFilterName()
A name for the subscription filter.
|
java.lang.String |
getFilterPattern()
A valid CloudWatch Logs filter pattern for subscribing to a filtered
stream of log events.
|
java.lang.String |
getLogGroupName()
The name of the log group to associate the subscription filter with.
|
java.lang.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(java.lang.String destinationArn)
The ARN of the destination to deliver matching log events to.
|
void |
setFilterName(java.lang.String filterName)
A name for the subscription filter.
|
void |
setFilterPattern(java.lang.String filterPattern)
A valid CloudWatch Logs filter pattern for subscribing to a filtered
stream of log events.
|
void |
setLogGroupName(java.lang.String logGroupName)
The name of the log group to associate the subscription filter with.
|
void |
setRoleArn(java.lang.String roleArn)
The ARN of an IAM role that grants CloudWatch Logs permissions to deliver
ingested log events to the destination stream.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutSubscriptionFilterRequest |
withDestinationArn(java.lang.String destinationArn)
The ARN of the destination to deliver matching log events to.
|
PutSubscriptionFilterRequest |
withFilterName(java.lang.String filterName)
A name for the subscription filter.
|
PutSubscriptionFilterRequest |
withFilterPattern(java.lang.String filterPattern)
A valid CloudWatch Logs filter pattern for subscribing to a filtered
stream of log events.
|
PutSubscriptionFilterRequest |
withLogGroupName(java.lang.String logGroupName)
The name of the log group to associate the subscription filter with.
|
PutSubscriptionFilterRequest |
withRoleArn(java.lang.String roleArn)
The ARN of an IAM role that grants CloudWatch Logs permissions to deliver
ingested log events to the destination stream.
|
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
private java.lang.String logGroupName
The name of the log group to associate the subscription filter with.
private java.lang.String filterName
A name for the subscription filter.
private java.lang.String filterPattern
A valid CloudWatch Logs filter pattern for subscribing to a filtered stream of log events.
private java.lang.String destinationArn
The ARN of the destination to deliver matching log events to. Currently, the supported destinations are:
Destination
)
belonging to a different account, for cross-account delivery.private java.lang.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.
public void setLogGroupName(java.lang.String logGroupName)
The name of the log group to associate the subscription filter with.
logGroupName
- The name of the log group to associate the subscription filter
with.public java.lang.String getLogGroupName()
The name of the log group to associate the subscription filter with.
public PutSubscriptionFilterRequest withLogGroupName(java.lang.String logGroupName)
The name of the log group to associate the subscription filter with.
logGroupName
- The name of the log group to associate the subscription filter
with.public void setFilterName(java.lang.String filterName)
A name for the subscription filter.
filterName
- A name for the subscription filter.public java.lang.String getFilterName()
A name for the subscription filter.
public PutSubscriptionFilterRequest withFilterName(java.lang.String filterName)
A name for the subscription filter.
filterName
- A name for the subscription filter.public void setFilterPattern(java.lang.String filterPattern)
A valid CloudWatch Logs filter pattern for subscribing to a filtered stream of log events.
filterPattern
- A valid CloudWatch Logs filter pattern for subscribing to a
filtered stream of log events.public java.lang.String getFilterPattern()
A valid CloudWatch Logs filter pattern for subscribing to a filtered stream of log events.
public PutSubscriptionFilterRequest withFilterPattern(java.lang.String filterPattern)
A valid CloudWatch Logs filter pattern for subscribing to a filtered stream of log events.
filterPattern
- A valid CloudWatch Logs filter pattern for subscribing to a
filtered stream of log events.public void setDestinationArn(java.lang.String destinationArn)
The ARN of the destination to deliver matching log events to. Currently, the supported destinations are:
Destination
)
belonging to a different account, for cross-account delivery.destinationArn
- The ARN of the destination to deliver matching log events to.
Currently, the supported destinations are:
Destination
) belonging to a different account, for
cross-account delivery.public java.lang.String getDestinationArn()
The ARN of the destination to deliver matching log events to. Currently, the supported destinations are:
Destination
)
belonging to a different account, for cross-account delivery.Destination
) belonging to a different account, for
cross-account delivery.public PutSubscriptionFilterRequest withDestinationArn(java.lang.String destinationArn)
The ARN of the destination to deliver matching log events to. Currently, the supported destinations are:
Destination
)
belonging to a different account, for cross-account delivery.destinationArn
- The ARN of the destination to deliver matching log events to.
Currently, the supported destinations are:
Destination
) belonging to a different account, for
cross-account delivery.public void setRoleArn(java.lang.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.
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.public java.lang.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.
Destination
) for
cross-account delivery.public PutSubscriptionFilterRequest withRoleArn(java.lang.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.
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.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PutSubscriptionFilterRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()