Package com.pulumi.test.internal
Class PulumiTestInternal.Builder
- java.lang.Object
-
- com.pulumi.test.internal.PulumiTestInternal.Builder
-
- Enclosing class:
- PulumiTestInternal
@InternalUse public static final class PulumiTestInternal.Builder extends java.lang.ObjectThePulumiTestInternalbuilder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PulumiTestInternalbuild()PulumiTestInternal.Builderconfig(java.util.Map<java.lang.String,java.lang.String> allConfig)Set configuration to use for this testPulumiTestInternal.Builderconfig(java.util.Map<java.lang.String,java.lang.String> allConfig, java.util.Set<java.lang.String> configSecretKeys)Set configuration to use for this testPulumiTestInternal.BuilderdeploymentFactory(java.util.function.Function<com.pulumi.deployment.internal.DeploymentImpl.DeploymentState,com.pulumi.deployment.internal.DeploymentInternal> deploymentFactory)Modify the deployment factory used in the testPulumiTestInternal.Buildermocks(Mocks mocks)PulumiTestInternal.BuildermonitorDecorator(java.util.function.Function<MockMonitor,MockMonitor> monitorDecorator)Decorate theMockMonitorinstance for this test.PulumiTestInternal.Builderoptions(TestOptions options)PulumiTestInternal.BuilderstandardLogger(java.util.logging.Logger standardLogger)
-
-
-
Method Detail
-
options
public PulumiTestInternal.Builder options(TestOptions options)
- Parameters:
options- theTestOptionsto use in the test- Returns:
- this Pulumi test
PulumiTestInternal.Builder - See Also:
PulumiTest.API.withOptions(TestOptions)
-
mocks
public PulumiTestInternal.Builder mocks(Mocks mocks)
- Parameters:
mocks- theMonitormocks to use- Returns:
- this Pulumi test
PulumiTestInternal.Builder - See Also:
PulumiTest.API.withMocks(Mocks)
-
standardLogger
public PulumiTestInternal.Builder standardLogger(java.util.logging.Logger standardLogger)
- Parameters:
standardLogger- the standard logger to use- Returns:
- this Pulumi test
PulumiTestInternal.Builder
-
config
public PulumiTestInternal.Builder config(java.util.Map<java.lang.String,java.lang.String> allConfig, java.util.Set<java.lang.String> configSecretKeys)
Set configuration to use for this test- Parameters:
allConfig- the configuration key-value mapconfigSecretKeys- the secret key names- Returns:
- this
PulumiTestInternal.Builder
-
config
public PulumiTestInternal.Builder config(java.util.Map<java.lang.String,java.lang.String> allConfig)
Set configuration to use for this test- Parameters:
allConfig- the configuration key-value map- Returns:
- this
PulumiTestInternal.Builder
-
deploymentFactory
public PulumiTestInternal.Builder deploymentFactory(java.util.function.Function<com.pulumi.deployment.internal.DeploymentImpl.DeploymentState,com.pulumi.deployment.internal.DeploymentInternal> deploymentFactory)
Modify the deployment factory used in the test- Parameters:
deploymentFactory- the factory for- Returns:
- this Pulumi test
PulumiTestInternal.Builder
-
monitorDecorator
public PulumiTestInternal.Builder monitorDecorator(java.util.function.Function<MockMonitor,MockMonitor> monitorDecorator)
Decorate theMockMonitorinstance for this test.- Parameters:
monitorDecorator- the decorator, by defaultFunction.identity()- Returns:
- this Pulumi test
PulumiTestInternal.Builder
-
build
public PulumiTestInternal build()
- Returns:
- a
PulumiTestInternalinstance created from thisPulumiTestInternal.Builder
-
-