Package software.amazon.awscdk.core
Class GetContextValueOptions.Builder
java.lang.Object
software.amazon.awscdk.core.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dummyValue(Object dummyValue) Sets the value ofGetContextValueOptions.getDummyValue()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. This should be a dummy value that should preferably fail during deployment since it represents an invalid state.- 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:
buildin interfacesoftware.amazon.jsii.Builder<GetContextValueOptions>- Returns:
- a new instance of
GetContextValueOptions - Throws:
NullPointerException- if any required attribute was not provided
-