Package software.amazon.awscdk.core
Class Dependency.Builder
java.lang.Object
software.amazon.awscdk.core.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 for
Dependency-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.source(IConstruct source) Sets the value ofDependency.getSource()target(IConstruct target) Sets the value ofDependency.getTarget()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
source
Sets the value ofDependency.getSource()- Parameters:
source- Source the dependency. This parameter is required.- Returns:
this
-
target
Sets the value ofDependency.getTarget()- Parameters:
target- Target of the dependency. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<Dependency>- Returns:
- a new instance of
Dependency - Throws:
NullPointerException- if any required attribute was not provided
-