Class CfnEventBridgeRuleTemplateProps.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplateProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventBridgeRuleTemplateProps>
- Enclosing interface:
CfnEventBridgeRuleTemplateProps
@Stability(Stable)
public static final class CfnEventBridgeRuleTemplateProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventBridgeRuleTemplateProps>
A builder for
CfnEventBridgeRuleTemplateProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCfnEventBridgeRuleTemplateProps.getDescription()
eventTargets
(List<? extends Object> eventTargets) Sets the value ofCfnEventBridgeRuleTemplateProps.getEventTargets()
eventTargets
(IResolvable eventTargets) Sets the value ofCfnEventBridgeRuleTemplateProps.getEventTargets()
Sets the value ofCfnEventBridgeRuleTemplateProps.getEventType()
groupIdentifier
(String groupIdentifier) Sets the value ofCfnEventBridgeRuleTemplateProps.getGroupIdentifier()
Sets the value ofCfnEventBridgeRuleTemplateProps.getName()
Sets the value ofCfnEventBridgeRuleTemplateProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
eventType
Sets the value ofCfnEventBridgeRuleTemplateProps.getEventType()
- Parameters:
eventType
- The type of event to match with the rule. This parameter is required.- Returns:
this
-
groupIdentifier
@Stability(Stable) public CfnEventBridgeRuleTemplateProps.Builder groupIdentifier(String groupIdentifier) Sets the value ofCfnEventBridgeRuleTemplateProps.getGroupIdentifier()
- Parameters:
groupIdentifier
- An eventbridge rule template group's identifier. This parameter is required. Can be either be its id or current name.- Returns:
this
-
name
Sets the value ofCfnEventBridgeRuleTemplateProps.getName()
- Parameters:
name
- A resource's name. This parameter is required. Names must be unique within the scope of a resource type in a specific region.- Returns:
this
-
description
Sets the value ofCfnEventBridgeRuleTemplateProps.getDescription()
- Parameters:
description
- A resource's optional description.- Returns:
this
-
eventTargets
@Stability(Stable) public CfnEventBridgeRuleTemplateProps.Builder eventTargets(IResolvable eventTargets) Sets the value ofCfnEventBridgeRuleTemplateProps.getEventTargets()
- Parameters:
eventTargets
- The destinations that will receive the event notifications.- Returns:
this
-
eventTargets
@Stability(Stable) public CfnEventBridgeRuleTemplateProps.Builder eventTargets(List<? extends Object> eventTargets) Sets the value ofCfnEventBridgeRuleTemplateProps.getEventTargets()
- Parameters:
eventTargets
- The destinations that will receive the event notifications.- Returns:
this
-
tags
Sets the value ofCfnEventBridgeRuleTemplateProps.getTags()
- Parameters:
tags
- Represents the tags associated with a resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEventBridgeRuleTemplateProps>
- Returns:
- a new instance of
CfnEventBridgeRuleTemplateProps
- Throws:
NullPointerException
- if any required attribute was not provided
-