Class OnImageScanCompletedOptions.Builder
java.lang.Object
software.amazon.awscdk.services.ecr.OnImageScanCompletedOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<OnImageScanCompletedOptions>
- Enclosing interface:
OnImageScanCompletedOptions
@Stability(Stable)
public static final class OnImageScanCompletedOptions.Builder
extends Object
implements software.amazon.jsii.Builder<OnImageScanCompletedOptions>
A builder for
OnImageScanCompletedOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofOnEventOptions.getDescription()
eventPattern
(EventPattern eventPattern) Sets the value ofOnEventOptions.getEventPattern()
Sets the value ofOnImageScanCompletedOptions.getImageTags()
Sets the value ofOnEventOptions.getRuleName()
target
(IRuleTarget target) Sets the value ofOnEventOptions.getTarget()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
imageTags
Sets the value ofOnImageScanCompletedOptions.getImageTags()
- Parameters:
imageTags
- Only watch changes to the image tags spedified. Leave it undefined to watch the full repository.- Returns:
this
-
description
Sets the value ofOnEventOptions.getDescription()
- Parameters:
description
- A description of the rule's purpose.- Returns:
this
-
eventPattern
@Stability(Stable) public OnImageScanCompletedOptions.Builder eventPattern(EventPattern eventPattern) Sets the value ofOnEventOptions.getEventPattern()
- Parameters:
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.- Returns:
this
-
ruleName
Sets the value ofOnEventOptions.getRuleName()
- Parameters:
ruleName
- A name for the rule.- Returns:
this
-
target
Sets the value ofOnEventOptions.getTarget()
- Parameters:
target
- The target to register for the event.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<OnImageScanCompletedOptions>
- Returns:
- a new instance of
OnImageScanCompletedOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-