public static final class OnCloudTrailBucketEventOptions.Builder
extends java.lang.Object
OnCloudTrailBucketEventOptions
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
OnCloudTrailBucketEventOptions |
build()
Builds the configured instance.
|
OnCloudTrailBucketEventOptions.Builder |
description(java.lang.String description)
Sets the value of
OnEventOptions.getDescription() |
OnCloudTrailBucketEventOptions.Builder |
eventPattern(EventPattern eventPattern)
Sets the value of
OnEventOptions.getEventPattern() |
OnCloudTrailBucketEventOptions.Builder |
paths(java.util.List<java.lang.String> paths)
Sets the value of
OnCloudTrailBucketEventOptions.getPaths() |
OnCloudTrailBucketEventOptions.Builder |
ruleName(java.lang.String ruleName)
Sets the value of
OnEventOptions.getRuleName() |
OnCloudTrailBucketEventOptions.Builder |
target(IRuleTarget target)
Sets the value of
OnEventOptions.getTarget() |
public OnCloudTrailBucketEventOptions.Builder paths(java.util.List<java.lang.String> paths)
OnCloudTrailBucketEventOptions.getPaths()
paths
- Only watch changes to these object paths.this
public OnCloudTrailBucketEventOptions.Builder description(java.lang.String description)
OnEventOptions.getDescription()
description
- A description of the rule's purpose.this
public OnCloudTrailBucketEventOptions.Builder eventPattern(EventPattern eventPattern)
OnEventOptions.getEventPattern()
eventPattern
- Additional restrictions for the event to route to the specified target.
The method that generates the rule probably imposes some type of event
filtering. The filtering implied by what you pass here is added
on top of that filtering.this
public OnCloudTrailBucketEventOptions.Builder ruleName(java.lang.String ruleName)
OnEventOptions.getRuleName()
ruleName
- A name for the rule.this
public OnCloudTrailBucketEventOptions.Builder target(IRuleTarget target)
OnEventOptions.getTarget()
target
- The target to register for the event.this
public OnCloudTrailBucketEventOptions build()
OnCloudTrailBucketEventOptions
java.lang.NullPointerException
- if any required attribute was not provided