Package software.constructs
Class Dependency.Builder
- java.lang.Object
-
- software.constructs.Dependency.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<Dependency>
- Enclosing interface:
- Dependency
@Stability(Stable) public static final class Dependency.Builder extends Object implements software.amazon.jsii.Builder<Dependency>
A builder forDependency
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Dependency
build()
Builds the configured instance.Dependency.Builder
source(IConstruct source)
Sets the value ofDependency.getSource()
Dependency.Builder
target(IConstruct target)
Sets the value ofDependency.getTarget()
-
-
-
Method Detail
-
source
@Stability(Stable) public Dependency.Builder source(IConstruct source)
Sets the value ofDependency.getSource()
- Parameters:
source
- Source the dependency. This parameter is required.- Returns:
this
-
target
@Stability(Stable) public Dependency.Builder target(IConstruct target)
Sets the value ofDependency.getTarget()
- Parameters:
target
- Target of the dependency. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public Dependency build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<Dependency>
- Returns:
- a new instance of
Dependency
- Throws:
NullPointerException
- if any required attribute was not provided
-
-