Package com.pulumi.automation
Class RefreshOptions.Builder
java.lang.Object
com.pulumi.automation.UpdateOptions.Builder<RefreshOptions.Builder>
com.pulumi.automation.RefreshOptions.Builder
- Enclosing class:
- RefreshOptions
public static final class RefreshOptions.Builder
extends UpdateOptions.Builder<RefreshOptions.Builder>
Builder for
RefreshOptions.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theRefreshOptions.clearPendingCreates(boolean clearPendingCreates) Removes any pending create operations from the stackexpectNoChanges(boolean expectNoChanges) Return an error if any changes are proposed by this preview.importPendingCreates(List<PendingCreateValue> importPendingCreates) Sets the values to import into the stackpreviewOnly(boolean previewOnly) Only show a preview of the refresh, but don't perform the refresh itself.showSecrets(boolean showSecrets) Sets whether to show config secrets when they appear.skipPendingCreates(boolean skipPendingCreates) Ignores any pending create operationsMethods inherited from class com.pulumi.automation.UpdateOptions.Builder
color, debug, excludes, json, logFlow, logToStdErr, logVerbosity, message, onEvent, onStandardError, onStandardOutput, parallel, policyPackConfigs, policyPacks, targets, tracing
-
Method Details
-
expectNoChanges
Return an error if any changes are proposed by this preview.- Parameters:
expectNoChanges- true if the preview should fail if any changes are proposed- Returns:
- the builder
-
previewOnly
Only show a preview of the refresh, but don't perform the refresh itself.- Parameters:
previewOnly- true if the refresh should be preview-only- Returns:
- the builder
-
showSecrets
Sets whether to show config secrets when they appear.- Parameters:
showSecrets- the show secrets flag- Returns:
- the builder
-
skipPendingCreates
Ignores any pending create operations- Parameters:
skipPendingCreates- whether to skip pending creates- Returns:
- the builder
-
clearPendingCreates
Removes any pending create operations from the stack- Parameters:
clearPendingCreates- whether to clear pending creates- Returns:
- the builder
-
importPendingCreates
Sets the values to import into the stack- Parameters:
importPendingCreates- the list of pending create values- Returns:
- the builder
-
build
Builds theRefreshOptions.- Returns:
- the refresh options
-