Class YarnrcOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.javascript.YarnrcOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<YarnrcOptions>
- Enclosing interface:
- YarnrcOptions
@Stability(Experimental) public static final class YarnrcOptions.Builder extends Object implements software.amazon.jsii.Builder<YarnrcOptions>
A builder forYarnrcOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
cacheFolder
@Stability(Experimental) public YarnrcOptions.Builder cacheFolder(String cacheFolder)
Sets the value ofYarnrcOptions.getCacheFolder()- Parameters:
cacheFolder- https://yarnpkg.com/configuration/yarnrc#cacheFolder.- Returns:
this
-
cacheMigrationMode
@Stability(Experimental) public YarnrcOptions.Builder cacheMigrationMode(YarnCacheMigrationMode cacheMigrationMode)
Sets the value ofYarnrcOptions.getCacheMigrationMode()- Parameters:
cacheMigrationMode- https://yarnpkg.com/configuration/yarnrc#cacheMigrationMode.- Returns:
this
-
changesetBaseRefs
@Stability(Experimental) public YarnrcOptions.Builder changesetBaseRefs(List<String> changesetBaseRefs)
Sets the value ofYarnrcOptions.getChangesetBaseRefs()- Parameters:
changesetBaseRefs- https://yarnpkg.com/configuration/yarnrc#changesetBaseRefs.- Returns:
this
-
changesetIgnorePatterns
@Stability(Experimental) public YarnrcOptions.Builder changesetIgnorePatterns(List<String> changesetIgnorePatterns)
Sets the value ofYarnrcOptions.getChangesetIgnorePatterns()- Parameters:
changesetIgnorePatterns- https://yarnpkg.com/configuration/yarnrc#changesetIgnorePatterns.- Returns:
this
-
checksumBehavior
@Stability(Experimental) public YarnrcOptions.Builder checksumBehavior(YarnChecksumBehavior checksumBehavior)
Sets the value ofYarnrcOptions.getChecksumBehavior()- Parameters:
checksumBehavior- https://yarnpkg.com/configuration/yarnrc#checksumBehavior.- Returns:
this
-
cloneConcurrency
@Stability(Experimental) public YarnrcOptions.Builder cloneConcurrency(Number cloneConcurrency)
Sets the value ofYarnrcOptions.getCloneConcurrency()- Parameters:
cloneConcurrency- https://yarnpkg.com/configuration/yarnrc#cloneConcurrency.- Returns:
this
-
compressionLevel
@Stability(Experimental) public YarnrcOptions.Builder compressionLevel(String compressionLevel)
Sets the value ofYarnrcOptions.getCompressionLevel()- Parameters:
compressionLevel- https://yarnpkg.com/configuration/yarnrc#compressionLevel.- Returns:
this
-
compressionLevel
@Stability(Experimental) public YarnrcOptions.Builder compressionLevel(Number compressionLevel)
Sets the value ofYarnrcOptions.getCompressionLevel()- Parameters:
compressionLevel- https://yarnpkg.com/configuration/yarnrc#compressionLevel.- Returns:
this
-
constraintsPath
@Stability(Experimental) public YarnrcOptions.Builder constraintsPath(String constraintsPath)
Sets the value ofYarnrcOptions.getConstraintsPath()- Parameters:
constraintsPath- https://yarnpkg.com/configuration/yarnrc#constraintsPath.- Returns:
this
-
defaultLanguageName
@Stability(Experimental) public YarnrcOptions.Builder defaultLanguageName(String defaultLanguageName)
Sets the value ofYarnrcOptions.getDefaultLanguageName()- Parameters:
defaultLanguageName- https://yarnpkg.com/configuration/yarnrc#defaultLanguageName.- Returns:
this
-
defaultProtocol
@Stability(Experimental) public YarnrcOptions.Builder defaultProtocol(String defaultProtocol)
Sets the value ofYarnrcOptions.getDefaultProtocol()- Parameters:
defaultProtocol- https://yarnpkg.com/configuration/yarnrc#defaultProtocol.- Returns:
this
-
defaultSemverRangePrefix
@Stability(Experimental) public YarnrcOptions.Builder defaultSemverRangePrefix(YarnDefaultSemverRangePrefix defaultSemverRangePrefix)
Sets the value ofYarnrcOptions.getDefaultSemverRangePrefix()- Parameters:
defaultSemverRangePrefix- https://yarnpkg.com/configuration/yarnrc#defaultSemverRangePrefix.- Returns:
this
-
deferredVersionFolder
@Stability(Experimental) public YarnrcOptions.Builder deferredVersionFolder(String deferredVersionFolder)
Sets the value ofYarnrcOptions.getDeferredVersionFolder()- Parameters:
deferredVersionFolder- https://yarnpkg.com/configuration/yarnrc#deferredVersionFolder.- Returns:
this
-
enableColors
@Stability(Experimental) public YarnrcOptions.Builder enableColors(Boolean enableColors)
Sets the value ofYarnrcOptions.getEnableColors()- Parameters:
enableColors- https://yarnpkg.com/configuration/yarnrc#enableColors.- Returns:
this
-
enableConstraintsCheck
@Stability(Experimental) public YarnrcOptions.Builder enableConstraintsCheck(Boolean enableConstraintsCheck)
Sets the value ofYarnrcOptions.getEnableConstraintsCheck()- Parameters:
enableConstraintsCheck- https://yarnpkg.com/configuration/yarnrc#enableConstraintsCheck.- Returns:
this
-
enableGlobalCache
@Stability(Experimental) public YarnrcOptions.Builder enableGlobalCache(Boolean enableGlobalCache)
Sets the value ofYarnrcOptions.getEnableGlobalCache()- Parameters:
enableGlobalCache- https://yarnpkg.com/configuration/yarnrc#enableGlobalCache.- Returns:
this
-
enableHardenedMode
@Stability(Experimental) public YarnrcOptions.Builder enableHardenedMode(Boolean enableHardenedMode)
Sets the value ofYarnrcOptions.getEnableHardenedMode()- Parameters:
enableHardenedMode- https://yarnpkg.com/configuration/yarnrc#enableHardenedMode.- Returns:
this
-
enableHyperlinks
@Stability(Experimental) public YarnrcOptions.Builder enableHyperlinks(Boolean enableHyperlinks)
Sets the value ofYarnrcOptions.getEnableHyperlinks()- Parameters:
enableHyperlinks- https://yarnpkg.com/configuration/yarnrc#enableHyperlinks.- Returns:
this
-
enableImmutableCache
@Stability(Experimental) public YarnrcOptions.Builder enableImmutableCache(Boolean enableImmutableCache)
Sets the value ofYarnrcOptions.getEnableImmutableCache()- Parameters:
enableImmutableCache- https://yarnpkg.com/configuration/yarnrc#enableImmutableCache.- Returns:
this
-
enableImmutableInstalls
@Stability(Experimental) public YarnrcOptions.Builder enableImmutableInstalls(Boolean enableImmutableInstalls)
Sets the value ofYarnrcOptions.getEnableImmutableInstalls()- Parameters:
enableImmutableInstalls- https://yarnpkg.com/configuration/yarnrc#enableImmutableInstalls.- Returns:
this
-
enableInlineBuilds
@Stability(Experimental) public YarnrcOptions.Builder enableInlineBuilds(Boolean enableInlineBuilds)
Sets the value ofYarnrcOptions.getEnableInlineBuilds()- Parameters:
enableInlineBuilds- https://yarnpkg.com/configuration/yarnrc#enableInlineBuilds.- Returns:
this
-
enableInlineHunks
@Stability(Experimental) public YarnrcOptions.Builder enableInlineHunks(Boolean enableInlineHunks)
Sets the value ofYarnrcOptions.getEnableInlineHunks()- Parameters:
enableInlineHunks- https://yarnpkg.com/configuration/yarnrc#enableInlineHunks.- Returns:
this
-
enableMessageNames
@Stability(Experimental) public YarnrcOptions.Builder enableMessageNames(Boolean enableMessageNames)
Sets the value ofYarnrcOptions.getEnableMessageNames()- Parameters:
enableMessageNames- https://yarnpkg.com/configuration/yarnrc#enableMessageNames.- Returns:
this
-
enableMirror
@Stability(Experimental) public YarnrcOptions.Builder enableMirror(Boolean enableMirror)
Sets the value ofYarnrcOptions.getEnableMirror()- Parameters:
enableMirror- https://yarnpkg.com/configuration/yarnrc#enableMirror.- Returns:
this
-
enableNetwork
@Stability(Experimental) public YarnrcOptions.Builder enableNetwork(Boolean enableNetwork)
Sets the value ofYarnrcOptions.getEnableNetwork()- Parameters:
enableNetwork- https://yarnpkg.com/configuration/yarnrc#enableNetwork.- Returns:
this
-
enableOfflineMode
@Stability(Experimental) public YarnrcOptions.Builder enableOfflineMode(Boolean enableOfflineMode)
Sets the value ofYarnrcOptions.getEnableOfflineMode()- Parameters:
enableOfflineMode- https://yarnpkg.com/configuration/yarnrc#enableOfflineMode.- Returns:
this
-
enableProgressBars
@Stability(Experimental) public YarnrcOptions.Builder enableProgressBars(Boolean enableProgressBars)
Sets the value ofYarnrcOptions.getEnableProgressBars()- Parameters:
enableProgressBars- https://yarnpkg.com/configuration/yarnrc#enableProgressBars.- Returns:
this
-
enableScripts
@Stability(Experimental) public YarnrcOptions.Builder enableScripts(Boolean enableScripts)
Sets the value ofYarnrcOptions.getEnableScripts()- Parameters:
enableScripts- https://yarnpkg.com/configuration/yarnrc#enableScripts.- Returns:
this
-
enableStrictSsl
@Stability(Experimental) public YarnrcOptions.Builder enableStrictSsl(Boolean enableStrictSsl)
Sets the value ofYarnrcOptions.getEnableStrictSsl()- Parameters:
enableStrictSsl- https://yarnpkg.com/configuration/yarnrc#enableStrictSsl.- Returns:
this
-
enableTelemetry
@Stability(Experimental) public YarnrcOptions.Builder enableTelemetry(Boolean enableTelemetry)
Sets the value ofYarnrcOptions.getEnableTelemetry()- Parameters:
enableTelemetry- https://yarnpkg.com/configuration/yarnrc#enableTelemetry.- Returns:
this
-
enableTimers
@Stability(Experimental) public YarnrcOptions.Builder enableTimers(Boolean enableTimers)
Sets the value ofYarnrcOptions.getEnableTimers()- Parameters:
enableTimers- https://yarnpkg.com/configuration/yarnrc#enableTimers.- Returns:
this
-
enableTransparentWorkspaces
@Stability(Experimental) public YarnrcOptions.Builder enableTransparentWorkspaces(Boolean enableTransparentWorkspaces)
Sets the value ofYarnrcOptions.getEnableTransparentWorkspaces()- Parameters:
enableTransparentWorkspaces- https://yarnpkg.com/configuration/yarnrc#enableTransparentWorkspaces.- Returns:
this
-
globalFolder
@Stability(Experimental) public YarnrcOptions.Builder globalFolder(String globalFolder)
Sets the value ofYarnrcOptions.getGlobalFolder()- Parameters:
globalFolder- https://yarnpkg.com/configuration/yarnrc#globalFolder.- Returns:
this
-
httpProxy
@Stability(Experimental) public YarnrcOptions.Builder httpProxy(String httpProxy)
Sets the value ofYarnrcOptions.getHttpProxy()- Parameters:
httpProxy- https://yarnpkg.com/configuration/yarnrc#httpProxy.- Returns:
this
-
httpRetry
@Stability(Experimental) public YarnrcOptions.Builder httpRetry(Number httpRetry)
Sets the value ofYarnrcOptions.getHttpRetry()- Parameters:
httpRetry- https://yarnpkg.com/configuration/yarnrc#httpRetry.- Returns:
this
-
httpsCaFilePath
@Stability(Experimental) public YarnrcOptions.Builder httpsCaFilePath(String httpsCaFilePath)
Sets the value ofYarnrcOptions.getHttpsCaFilePath()- Parameters:
httpsCaFilePath- https://yarnpkg.com/configuration/yarnrc#httpsCaFilePath.- Returns:
this
-
httpsCertFilePath
@Stability(Experimental) public YarnrcOptions.Builder httpsCertFilePath(String httpsCertFilePath)
Sets the value ofYarnrcOptions.getHttpsCertFilePath()- Parameters:
httpsCertFilePath- https://yarnpkg.com/configuration/yarnrc#httpsCertFilePath.- Returns:
this
-
httpsKeyFilePath
@Stability(Experimental) public YarnrcOptions.Builder httpsKeyFilePath(String httpsKeyFilePath)
Sets the value ofYarnrcOptions.getHttpsKeyFilePath()- Parameters:
httpsKeyFilePath- https://yarnpkg.com/configuration/yarnrc#httpsKeyFilePath.- Returns:
this
-
httpsProxy
@Stability(Experimental) public YarnrcOptions.Builder httpsProxy(String httpsProxy)
Sets the value ofYarnrcOptions.getHttpsProxy()- Parameters:
httpsProxy- https://yarnpkg.com/configuration/yarnrc#httpsProxy.- Returns:
this
-
httpTimeout
@Stability(Experimental) public YarnrcOptions.Builder httpTimeout(Number httpTimeout)
Sets the value ofYarnrcOptions.getHttpTimeout()- Parameters:
httpTimeout- https://yarnpkg.com/configuration/yarnrc#httpTimeout.- Returns:
this
-
ignoreCwd
@Stability(Deprecated) @Deprecated public YarnrcOptions.Builder ignoreCwd(Boolean ignoreCwd)
Deprecated.- removed in Yarn v4 and newerSets the value ofYarnrcOptions.getIgnoreCwd()- Parameters:
ignoreCwd- https://v3.yarnpkg.com/configuration/yarnrc#ignoreCwd.- Returns:
this
-
ignorePath
@Stability(Experimental) public YarnrcOptions.Builder ignorePath(Boolean ignorePath)
Sets the value ofYarnrcOptions.getIgnorePath()- Parameters:
ignorePath- https://yarnpkg.com/configuration/yarnrc#ignorePath.- Returns:
this
-
immutablePatterns
@Stability(Experimental) public YarnrcOptions.Builder immutablePatterns(List<String> immutablePatterns)
Sets the value ofYarnrcOptions.getImmutablePatterns()- Parameters:
immutablePatterns- https://yarnpkg.com/configuration/yarnrc#immutablePatterns.- Returns:
this
-
initFields
@Stability(Experimental) public YarnrcOptions.Builder initFields(Map<String,? extends Object> initFields)
Sets the value ofYarnrcOptions.getInitFields()- Parameters:
initFields- https://yarnpkg.com/configuration/yarnrc#initFields.- Returns:
this
-
initScope
@Stability(Experimental) public YarnrcOptions.Builder initScope(String initScope)
Sets the value ofYarnrcOptions.getInitScope()- Parameters:
initScope- https://yarnpkg.com/configuration/yarnrc#initScope.- Returns:
this
-
injectEnvironmentFiles
@Stability(Experimental) public YarnrcOptions.Builder injectEnvironmentFiles(List<String> injectEnvironmentFiles)
Sets the value ofYarnrcOptions.getInjectEnvironmentFiles()- Parameters:
injectEnvironmentFiles- https://yarnpkg.com/configuration/yarnrc#injectEnvironmentFiles.- Returns:
this
-
installStatePath
@Stability(Experimental) public YarnrcOptions.Builder installStatePath(String installStatePath)
Sets the value ofYarnrcOptions.getInstallStatePath()- Parameters:
installStatePath- https://yarnpkg.com/configuration/yarnrc#installStatePath.- Returns:
this
-
lockfileFilename
@Stability(Deprecated) @Deprecated public YarnrcOptions.Builder lockfileFilename(String lockfileFilename)
Deprecated.- removed in Yarn v4 and newerSets the value ofYarnrcOptions.getLockfileFilename()- Parameters:
lockfileFilename- https://v3.yarnpkg.com/configuration/yarnrc#lockfileFilename.- Returns:
this
-
logFilters
@Stability(Experimental) public YarnrcOptions.Builder logFilters(List<? extends YarnLogFilter> logFilters)
Sets the value ofYarnrcOptions.getLogFilters()- Parameters:
logFilters- https://yarnpkg.com/configuration/yarnrc#logFilters.- Returns:
this
-
networkConcurrency
@Stability(Experimental) public YarnrcOptions.Builder networkConcurrency(Number networkConcurrency)
Sets the value ofYarnrcOptions.getNetworkConcurrency()- Parameters:
networkConcurrency- https://yarnpkg.com/configuration/yarnrc#networkConcurrency.- Returns:
this
-
networkSettings
@Stability(Experimental) public YarnrcOptions.Builder networkSettings(Map<String,? extends YarnNetworkSetting> networkSettings)
Sets the value ofYarnrcOptions.getNetworkSettings()- Parameters:
networkSettings- https://yarnpkg.com/configuration/yarnrc#networkSettings.- Returns:
this
-
nmHoistingLimits
@Stability(Experimental) public YarnrcOptions.Builder nmHoistingLimits(YarnNmHoistingLimit nmHoistingLimits)
Sets the value ofYarnrcOptions.getNmHoistingLimits()- Parameters:
nmHoistingLimits- https://yarnpkg.com/configuration/yarnrc#nmHoistingLimits.- Returns:
this
-
nmMode
@Stability(Experimental) public YarnrcOptions.Builder nmMode(YarnNmMode nmMode)
Sets the value ofYarnrcOptions.getNmMode()- Parameters:
nmMode- https://yarnpkg.com/configuration/yarnrc#nmMode.- Returns:
this
-
nmSelfReferences
@Stability(Experimental) public YarnrcOptions.Builder nmSelfReferences(Boolean nmSelfReferences)
Sets the value ofYarnrcOptions.getNmSelfReferences()- Parameters:
nmSelfReferences- https://yarnpkg.com/configuration/yarnrc#nmSelfReferences.- Returns:
this
-
nodeLinker
@Stability(Experimental) public YarnrcOptions.Builder nodeLinker(YarnNodeLinker nodeLinker)
Sets the value ofYarnrcOptions.getNodeLinker()- Parameters:
nodeLinker- https://yarnpkg.com/configuration/yarnrc#nodeLinker.- Returns:
this
-
npmAlwaysAuth
@Stability(Experimental) public YarnrcOptions.Builder npmAlwaysAuth(Boolean npmAlwaysAuth)
Sets the value ofYarnrcOptions.getNpmAlwaysAuth()- Parameters:
npmAlwaysAuth- https://yarnpkg.com/configuration/yarnrc#npmAlwaysAuth.- Returns:
this
-
npmAuditExcludePackages
@Stability(Experimental) public YarnrcOptions.Builder npmAuditExcludePackages(List<String> npmAuditExcludePackages)
Sets the value ofYarnrcOptions.getNpmAuditExcludePackages()- Parameters:
npmAuditExcludePackages- https://yarnpkg.com/configuration/yarnrc#npmAuditExcludePackages.- Returns:
this
-
npmAuditIgnoreAdvisories
@Stability(Experimental) public YarnrcOptions.Builder npmAuditIgnoreAdvisories(List<String> npmAuditIgnoreAdvisories)
Sets the value ofYarnrcOptions.getNpmAuditIgnoreAdvisories()- Parameters:
npmAuditIgnoreAdvisories- https://yarnpkg.com/configuration/yarnrc#npmAuditIgnoreAdvisories.- Returns:
this
-
npmAuditRegistry
@Stability(Experimental) public YarnrcOptions.Builder npmAuditRegistry(String npmAuditRegistry)
Sets the value ofYarnrcOptions.getNpmAuditRegistry()- Parameters:
npmAuditRegistry- https://yarnpkg.com/configuration/yarnrc#npmAuditRegistry.- Returns:
this
-
npmAuthIdent
@Stability(Experimental) public YarnrcOptions.Builder npmAuthIdent(String npmAuthIdent)
Sets the value ofYarnrcOptions.getNpmAuthIdent()- Parameters:
npmAuthIdent- https://yarnpkg.com/configuration/yarnrc#npmAuthIdent.- Returns:
this
-
npmAuthToken
@Stability(Experimental) public YarnrcOptions.Builder npmAuthToken(String npmAuthToken)
Sets the value ofYarnrcOptions.getNpmAuthToken()- Parameters:
npmAuthToken- https://yarnpkg.com/configuration/yarnrc#npmAuthToken.- Returns:
this
-
npmPublishAccess
@Stability(Experimental) public YarnrcOptions.Builder npmPublishAccess(YarnNpmPublishAccess npmPublishAccess)
Sets the value ofYarnrcOptions.getNpmPublishAccess()- Parameters:
npmPublishAccess- https://yarnpkg.com/configuration/yarnrc#npmPublishAccess.- Returns:
this
-
npmPublishRegistry
@Stability(Experimental) public YarnrcOptions.Builder npmPublishRegistry(String npmPublishRegistry)
Sets the value ofYarnrcOptions.getNpmPublishRegistry()- Parameters:
npmPublishRegistry- https://yarnpkg.com/configuration/yarnrc#npmPublishRegistry.- Returns:
this
-
npmRegistries
@Stability(Experimental) public YarnrcOptions.Builder npmRegistries(Map<String,? extends YarnNpmRegistry> npmRegistries)
Sets the value ofYarnrcOptions.getNpmRegistries()- Parameters:
npmRegistries- https://yarnpkg.com/configuration/yarnrc#npmRegistries.- Returns:
this
-
npmRegistryServer
@Stability(Experimental) public YarnrcOptions.Builder npmRegistryServer(String npmRegistryServer)
Sets the value ofYarnrcOptions.getNpmRegistryServer()- Parameters:
npmRegistryServer- https://yarnpkg.com/configuration/yarnrc#npmRegistryServer.- Returns:
this
-
npmScopes
@Stability(Experimental) public YarnrcOptions.Builder npmScopes(Map<String,? extends YarnNpmScope> npmScopes)
Sets the value ofYarnrcOptions.getNpmScopes()- Parameters:
npmScopes- https://yarnpkg.com/configuration/yarnrc#npmScopes.- Returns:
this
-
packageExtensions
@Stability(Experimental) public YarnrcOptions.Builder packageExtensions(Map<String,? extends YarnPackageExtension> packageExtensions)
Sets the value ofYarnrcOptions.getPackageExtensions()- Parameters:
packageExtensions- https://yarnpkg.com/configuration/yarnrc#packageExtensions.- Returns:
this
-
patchFolder
@Stability(Experimental) public YarnrcOptions.Builder patchFolder(String patchFolder)
Sets the value ofYarnrcOptions.getPatchFolder()- Parameters:
patchFolder- https://yarnpkg.com/configuration/yarnrc#patchFolder.- Returns:
this
-
pnpDataPath
@Stability(Deprecated) @Deprecated public YarnrcOptions.Builder pnpDataPath(String pnpDataPath)
Deprecated.- removed in Yarn v4 and newerSets the value ofYarnrcOptions.getPnpDataPath()- Parameters:
pnpDataPath- https://v3.yarnpkg.com/configuration/yarnrc#pnpDataPath.- Returns:
this
-
pnpEnableEsmLoader
@Stability(Experimental) public YarnrcOptions.Builder pnpEnableEsmLoader(Boolean pnpEnableEsmLoader)
Sets the value ofYarnrcOptions.getPnpEnableEsmLoader()- Parameters:
pnpEnableEsmLoader- https://yarnpkg.com/configuration/yarnrc#pnpEnableEsmLoader.- Returns:
this
-
pnpEnableInlining
@Stability(Experimental) public YarnrcOptions.Builder pnpEnableInlining(Boolean pnpEnableInlining)
Sets the value ofYarnrcOptions.getPnpEnableInlining()- Parameters:
pnpEnableInlining- https://yarnpkg.com/configuration/yarnrc#pnpEnableInlining.- Returns:
this
-
pnpFallbackMode
@Stability(Experimental) public YarnrcOptions.Builder pnpFallbackMode(YarnPnpFallbackMode pnpFallbackMode)
Sets the value ofYarnrcOptions.getPnpFallbackMode()- Parameters:
pnpFallbackMode- https://yarnpkg.com/configuration/yarnrc#pnpFallbackMode.- Returns:
this
-
pnpIgnorePatterns
@Stability(Experimental) public YarnrcOptions.Builder pnpIgnorePatterns(List<String> pnpIgnorePatterns)
Sets the value ofYarnrcOptions.getPnpIgnorePatterns()- Parameters:
pnpIgnorePatterns- https://yarnpkg.com/configuration/yarnrc#pnpIgnorePatterns.- Returns:
this
-
pnpMode
@Stability(Experimental) public YarnrcOptions.Builder pnpMode(YarnPnpMode pnpMode)
Sets the value ofYarnrcOptions.getPnpMode()- Parameters:
pnpMode- https://yarnpkg.com/configuration/yarnrc#pnpMode.- Returns:
this
-
pnpShebang
@Stability(Experimental) public YarnrcOptions.Builder pnpShebang(String pnpShebang)
Sets the value ofYarnrcOptions.getPnpShebang()- Parameters:
pnpShebang- https://yarnpkg.com/configuration/yarnrc#pnpShebang.- Returns:
this
-
pnpUnpluggedFolder
@Stability(Experimental) public YarnrcOptions.Builder pnpUnpluggedFolder(String pnpUnpluggedFolder)
Sets the value ofYarnrcOptions.getPnpUnpluggedFolder()- Parameters:
pnpUnpluggedFolder- https://yarnpkg.com/configuration/yarnrc#pnpUnpluggedFolder.- Returns:
this
-
preferAggregateCacheInfo
@Stability(Deprecated) @Deprecated public YarnrcOptions.Builder preferAggregateCacheInfo(Boolean preferAggregateCacheInfo)
Deprecated.- removed in Yarn v4 and newerSets the value ofYarnrcOptions.getPreferAggregateCacheInfo()- Parameters:
preferAggregateCacheInfo- https://v3.yarnpkg.com/configuration/yarnrc#preferAggregateCacheInfo.- Returns:
this
-
preferDeferredVersions
@Stability(Experimental) public YarnrcOptions.Builder preferDeferredVersions(Boolean preferDeferredVersions)
Sets the value ofYarnrcOptions.getPreferDeferredVersions()- Parameters:
preferDeferredVersions- https://yarnpkg.com/configuration/yarnrc#preferDeferredVersions.- Returns:
this
-
preferInteractive
@Stability(Experimental) public YarnrcOptions.Builder preferInteractive(Boolean preferInteractive)
Sets the value ofYarnrcOptions.getPreferInteractive()- Parameters:
preferInteractive- https://yarnpkg.com/configuration/yarnrc#preferInteractive.- Returns:
this
-
preferReuse
@Stability(Experimental) public YarnrcOptions.Builder preferReuse(Boolean preferReuse)
Sets the value ofYarnrcOptions.getPreferReuse()- Parameters:
preferReuse- https://yarnpkg.com/configuration/yarnrc#preferReuse.- Returns:
this
-
preferTruncatedLines
@Stability(Experimental) public YarnrcOptions.Builder preferTruncatedLines(Boolean preferTruncatedLines)
Sets the value ofYarnrcOptions.getPreferTruncatedLines()- Parameters:
preferTruncatedLines- https://yarnpkg.com/configuration/yarnrc#preferTruncatedLines.- Returns:
this
-
progressBarStyle
@Stability(Experimental) public YarnrcOptions.Builder progressBarStyle(YarnProgressBarStyle progressBarStyle)
Sets the value ofYarnrcOptions.getProgressBarStyle()- Parameters:
progressBarStyle- https://yarnpkg.com/configuration/yarnrc#progressBarStyle.- Returns:
this
-
rcFilename
@Stability(Experimental) public YarnrcOptions.Builder rcFilename(String rcFilename)
Sets the value ofYarnrcOptions.getRcFilename()- Parameters:
rcFilename- https://yarnpkg.com/configuration/yarnrc#rcFilename.- Returns:
this
-
supportedArchitectures
@Stability(Experimental) public YarnrcOptions.Builder supportedArchitectures(YarnSupportedArchitectures supportedArchitectures)
Sets the value ofYarnrcOptions.getSupportedArchitectures()- Parameters:
supportedArchitectures- https://yarnpkg.com/configuration/yarnrc#supportedArchitectures.- Returns:
this
-
taskPoolConcurrency
@Stability(Experimental) public YarnrcOptions.Builder taskPoolConcurrency(String taskPoolConcurrency)
Sets the value ofYarnrcOptions.getTaskPoolConcurrency()- Parameters:
taskPoolConcurrency- https://yarnpkg.com/configuration/yarnrc#taskPoolConcurrency.- Returns:
this
-
telemetryInterval
@Stability(Experimental) public YarnrcOptions.Builder telemetryInterval(Number telemetryInterval)
Sets the value ofYarnrcOptions.getTelemetryInterval()- Parameters:
telemetryInterval- https://yarnpkg.com/configuration/yarnrc#telemetryInterval.- Returns:
this
-
telemetryUserId
@Stability(Experimental) public YarnrcOptions.Builder telemetryUserId(String telemetryUserId)
Sets the value ofYarnrcOptions.getTelemetryUserId()- Parameters:
telemetryUserId- https://yarnpkg.com/configuration/yarnrc#telemetryUserId.- Returns:
this
-
tsEnableAutoTypes
@Stability(Experimental) public YarnrcOptions.Builder tsEnableAutoTypes(Boolean tsEnableAutoTypes)
Sets the value ofYarnrcOptions.getTsEnableAutoTypes()- Parameters:
tsEnableAutoTypes- https://yarnpkg.com/configuration/yarnrc#tsEnableAutoTypes.- Returns:
this
-
unsafeHttpWhitelist
@Stability(Experimental) public YarnrcOptions.Builder unsafeHttpWhitelist(List<String> unsafeHttpWhitelist)
Sets the value ofYarnrcOptions.getUnsafeHttpWhitelist()- Parameters:
unsafeHttpWhitelist- https://yarnpkg.com/configuration/yarnrc#unsafeHttpWhitelist.- Returns:
this
-
virtualFolder
@Stability(Experimental) public YarnrcOptions.Builder virtualFolder(String virtualFolder)
Sets the value ofYarnrcOptions.getVirtualFolder()- Parameters:
virtualFolder- https://yarnpkg.com/configuration/yarnrc#virtualFolder.- Returns:
this
-
winLinkType
@Stability(Experimental) public YarnrcOptions.Builder winLinkType(YarnWinLinkType winLinkType)
Sets the value ofYarnrcOptions.getWinLinkType()- Parameters:
winLinkType- https://yarnpkg.com/configuration/yarnrc#winLinkType.- Returns:
this
-
workerPoolMode
@Stability(Experimental) public YarnrcOptions.Builder workerPoolMode(YarnWorkerPoolMode workerPoolMode)
Sets the value ofYarnrcOptions.getWorkerPoolMode()- Parameters:
workerPoolMode- https://yarnpkg.com/configuration/yarnrc#workerPoolMode.- Returns:
this
-
yarnPath
@Stability(Experimental) public YarnrcOptions.Builder yarnPath(String yarnPath)
Sets the value ofYarnrcOptions.getYarnPath()- Parameters:
yarnPath- https://yarnpkg.com/configuration/yarnrc#yarnPath.- Returns:
this
-
build
@Stability(Experimental) public YarnrcOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<YarnrcOptions>- Returns:
- a new instance of
YarnrcOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-