Package software.amazon.awscdk
Class InjectionContext.Builder
java.lang.Object
software.amazon.awscdk.InjectionContext.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<InjectionContext>
- Enclosing interface:
InjectionContext
@Stability(Stable)
public static final class InjectionContext.Builder
extends Object
implements software.amazon.jsii.Builder<InjectionContext>
A builder for
InjectionContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofInjectionContext.getId()
scope
(software.constructs.Construct scope) Sets the value ofInjectionContext.getScope()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Sets the value ofInjectionContext.getId()
- Parameters:
id
- id from the Construct constructor. This parameter is required.- Returns:
this
-
scope
Sets the value ofInjectionContext.getScope()
- Parameters:
scope
- scope from the constructor. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<InjectionContext>
- Returns:
- a new instance of
InjectionContext
- Throws:
NullPointerException
- if any required attribute was not provided
-