Package software.amazon.awscdk
Class GetContextKeyOptions.Builder
java.lang.Object
software.amazon.awscdk.GetContextKeyOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GetContextKeyOptions>
- Enclosing interface:
GetContextKeyOptions
@Stability(Stable)
public static final class GetContextKeyOptions.Builder
extends Object
implements software.amazon.jsii.Builder<GetContextKeyOptions>
A builder for
GetContextKeyOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadditionalCacheKey(String additionalCacheKey) Sets the value ofGetContextKeyOptions.getAdditionalCacheKey()build()Builds the configured instance.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
-
provider
Sets the value ofGetContextKeyOptions.getProvider()- Parameters:
provider- The context provider to query. This parameter is required.- Returns:
this
-
additionalCacheKey
@Stability(Stable) public GetContextKeyOptions.Builder additionalCacheKey(String additionalCacheKey) Sets the value ofGetContextKeyOptions.getAdditionalCacheKey()- Parameters:
additionalCacheKey- Adds an additional discriminator to thecdk.context.jsoncache key.- Returns:
this
-
includeEnvironment
@Stability(Stable) public GetContextKeyOptions.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<GetContextKeyOptions>- Returns:
- a new instance of
GetContextKeyOptions - Throws:
NullPointerException- if any required attribute was not provided
-