Class CfnRepositoryPropsMixin.RepositoryTriggerProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.codecommit.CfnRepositoryPropsMixin.RepositoryTriggerProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRepositoryPropsMixin.RepositoryTriggerProperty>
- Enclosing interface:
CfnRepositoryPropsMixin.RepositoryTriggerProperty
@Stability(Stable)
public static final class CfnRepositoryPropsMixin.RepositoryTriggerProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRepositoryPropsMixin.RepositoryTriggerProperty>
A builder for
CfnRepositoryPropsMixin.RepositoryTriggerProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnRepositoryPropsMixin.RepositoryTriggerProperty.getBranches()build()Builds the configured instance.customData(String customData) Sets the value ofCfnRepositoryPropsMixin.RepositoryTriggerProperty.getCustomData()destinationArn(String destinationArn) Sets the value ofCfnRepositoryPropsMixin.RepositoryTriggerProperty.getDestinationArn()Sets the value ofCfnRepositoryPropsMixin.RepositoryTriggerProperty.getEvents()Sets the value ofCfnRepositoryPropsMixin.RepositoryTriggerProperty.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
branches
@Stability(Stable) public CfnRepositoryPropsMixin.RepositoryTriggerProperty.Builder branches(List<String> branches) Sets the value ofCfnRepositoryPropsMixin.RepositoryTriggerProperty.getBranches()- Parameters:
branches- The branches to be included in the trigger configuration. If you specify an empty array, the trigger applies to all branches.Although no content is required in the array, you must include the array itself.
- Returns:
this
-
customData
@Stability(Stable) public CfnRepositoryPropsMixin.RepositoryTriggerProperty.Builder customData(String customData) Sets the value ofCfnRepositoryPropsMixin.RepositoryTriggerProperty.getCustomData()- Parameters:
customData- Any custom data associated with the trigger to be included in the information sent to the target of the trigger.- Returns:
this
-
destinationArn
@Stability(Stable) public CfnRepositoryPropsMixin.RepositoryTriggerProperty.Builder destinationArn(String destinationArn) Sets the value ofCfnRepositoryPropsMixin.RepositoryTriggerProperty.getDestinationArn()- Parameters:
destinationArn- The ARN of the resource that is the target for a trigger (for example, the ARN of a topic in Amazon SNS).- Returns:
this
-
events
@Stability(Stable) public CfnRepositoryPropsMixin.RepositoryTriggerProperty.Builder events(List<String> events) Sets the value ofCfnRepositoryPropsMixin.RepositoryTriggerProperty.getEvents()- Parameters:
events- The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.The valid value "all" cannot be used with any other values.
- Returns:
this
-
name
@Stability(Stable) public CfnRepositoryPropsMixin.RepositoryTriggerProperty.Builder name(String name) Sets the value ofCfnRepositoryPropsMixin.RepositoryTriggerProperty.getName()- Parameters:
name- The name of the trigger.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRepositoryPropsMixin.RepositoryTriggerProperty>- Returns:
- a new instance of
CfnRepositoryPropsMixin.RepositoryTriggerProperty - Throws:
NullPointerException- if any required attribute was not provided
-