Package software.amazon.awscdk
Class GetContextValueOptions.Builder
java.lang.Object
software.amazon.awscdk.GetContextValueOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GetContextValueOptions>
- Enclosing interface:
GetContextValueOptions
@Stability(Stable)
public static final class GetContextValueOptions.Builder
extends Object
implements software.amazon.jsii.Builder<GetContextValueOptions>
A builder for
GetContextValueOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.dummyValue
(Object dummyValue) Sets the value ofGetContextValueOptions.getDummyValue()
ignoreErrorOnMissingContext
(Boolean ignoreErrorOnMissingContext) Sets the value ofGetContextValueOptions.getIgnoreErrorOnMissingContext()
includeEnvironment
(Boolean includeEnvironment) Sets the value ofGetContextKeyOptions.getIncludeEnvironment()
Sets the value ofGetContextKeyOptions.getProps()
Sets the value ofGetContextKeyOptions.getProvider()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dummyValue
Sets the value ofGetContextValueOptions.getDummyValue()
- Parameters:
dummyValue
- The value to return if the context value was not found and a missing context is reported. This parameter is required.- Returns:
this
-
ignoreErrorOnMissingContext
@Stability(Stable) public GetContextValueOptions.Builder ignoreErrorOnMissingContext(Boolean ignoreErrorOnMissingContext) Sets the value ofGetContextValueOptions.getIgnoreErrorOnMissingContext()
- Parameters:
ignoreErrorOnMissingContext
- When True, the context provider will not throw an error if missing context is reported.- Returns:
this
-
provider
Sets the value ofGetContextKeyOptions.getProvider()
- Parameters:
provider
- The context provider to query. This parameter is required.- Returns:
this
-
includeEnvironment
@Stability(Stable) public GetContextValueOptions.Builder includeEnvironment(Boolean includeEnvironment) Sets the value ofGetContextKeyOptions.getIncludeEnvironment()
- Parameters:
includeEnvironment
- Whether to include the stack's account and region automatically.- Returns:
this
-
props
Sets the value ofGetContextKeyOptions.getProps()
- Parameters:
props
- Provider-specific properties.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<GetContextValueOptions>
- Returns:
- a new instance of
GetContextValueOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-