Class RuleTargetInputProperties.Builder
java.lang.Object
software.amazon.awscdk.services.events.RuleTargetInputProperties.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RuleTargetInputProperties>
- Enclosing interface:
RuleTargetInputProperties
@Stability(Stable)
public static final class RuleTargetInputProperties.Builder
extends Object
implements software.amazon.jsii.Builder<RuleTargetInputProperties>
A builder for
RuleTargetInputProperties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofRuleTargetInputProperties.getInput()
Sets the value ofRuleTargetInputProperties.getInputPath()
inputPathsMap
(Map<String, String> inputPathsMap) Sets the value ofRuleTargetInputProperties.getInputPathsMap()
inputTemplate
(String inputTemplate) Sets the value ofRuleTargetInputProperties.getInputTemplate()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
input
Sets the value ofRuleTargetInputProperties.getInput()
- Parameters:
input
- Literal input to the target service (must be valid JSON).- Returns:
this
-
inputPath
Sets the value ofRuleTargetInputProperties.getInputPath()
- Parameters:
inputPath
- JsonPath to take input from the input event.- Returns:
this
-
inputPathsMap
@Stability(Stable) public RuleTargetInputProperties.Builder inputPathsMap(Map<String, String> inputPathsMap) Sets the value ofRuleTargetInputProperties.getInputPathsMap()
- Parameters:
inputPathsMap
- Paths map to extract values from event and insert intoinputTemplate
.- Returns:
this
-
inputTemplate
Sets the value ofRuleTargetInputProperties.getInputTemplate()
- Parameters:
inputTemplate
- Input template to insert paths map into.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<RuleTargetInputProperties>
- Returns:
- a new instance of
RuleTargetInputProperties
- Throws:
NullPointerException
- if any required attribute was not provided
-