@NotThreadSafe public static final class XcodeWorkspaceConfigDescriptionArg.Builder extends Object
XcodeWorkspaceConfigDescriptionArg
.
Initialize attributes and then invoke the build()
method to create an
immutable instance.
Builder
is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
public final XcodeWorkspaceConfigDescriptionArg.Builder from(XcodeWorkspaceConfigDescriptionArg instance)
XcodeWorkspaceConfigDescriptionArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder from(com.facebook.buck.features.apple.common.XcodeWorkspaceConfigDescription.AbstractXcodeWorkspaceConfigDescriptionArg instance)
AbstractXcodeWorkspaceConfigDescriptionArg
instance into builder.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder from(BuildRuleArg instance)
com.facebook.buck.core.description.arg.BuildRuleArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder from(ConstructorArg instance)
com.facebook.buck.core.description.arg.ConstructorArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setSrcTarget(BuildTarget srcTarget)
srcTarget
to srcTarget.srcTarget
- The value for srcTargetthis
builder for chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setSrcTarget(Optional<? extends BuildTarget> srcTarget)
srcTarget
to srcTarget.srcTarget
- The value for srcTargetthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder addExtraTests(BuildTarget element)
extraTests
sortedSet.element
- A extraTests elementthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder addExtraTests(BuildTarget... elements)
extraTests
sortedSet.elements
- An array of extraTests elementsthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setExtraTests(Iterable<? extends BuildTarget> elements)
extraTests
sortedSet.elements
- An iterable of extraTests elementsthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder addAllExtraTests(Iterable<? extends BuildTarget> elements)
extraTests
sortedSet.elements
- An iterable of extraTests elementsthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder addExtraTargets(BuildTarget element)
extraTargets
sortedSet.element
- A extraTargets elementthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder addExtraTargets(BuildTarget... elements)
extraTargets
sortedSet.elements
- An array of extraTargets elementsthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setExtraTargets(Iterable<? extends BuildTarget> elements)
extraTargets
sortedSet.elements
- An iterable of extraTargets elementsthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder addAllExtraTargets(Iterable<? extends BuildTarget> elements)
extraTargets
sortedSet.elements
- An iterable of extraTargets elementsthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder addExtraShallowTargets(BuildTarget element)
extraShallowTargets
sortedSet.element
- A extraShallowTargets elementthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder addExtraShallowTargets(BuildTarget... elements)
extraShallowTargets
sortedSet.elements
- An array of extraShallowTargets elementsthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setExtraShallowTargets(Iterable<? extends BuildTarget> elements)
extraShallowTargets
sortedSet.elements
- An iterable of extraShallowTargets elementsthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder addAllExtraShallowTargets(Iterable<? extends BuildTarget> elements)
extraShallowTargets
sortedSet.elements
- An iterable of extraShallowTargets elementsthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setWorkspaceName(String workspaceName)
workspaceName
to workspaceName.workspaceName
- The value for workspaceNamethis
builder for chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setWorkspaceName(Optional<String> workspaceName)
workspaceName
to workspaceName.workspaceName
- The value for workspaceNamethis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder putActionConfigNames(SchemeActionType key, String value)
actionConfigNames
map.key
- The key in the actionConfigNames mapvalue
- The associated value in the actionConfigNames mapthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder putActionConfigNames(Map.Entry<SchemeActionType,? extends String> entry)
actionConfigNames
map. Nulls are not permittedentry
- The key and value entrythis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setActionConfigNames(Map<SchemeActionType,? extends String> entries)
actionConfigNames
map. Nulls are not permittedentries
- The entries that will be added to the actionConfigNames mapthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder putAllActionConfigNames(Map<SchemeActionType,? extends String> entries)
actionConfigNames
map. Nulls are not permittedentries
- The entries that will be added to the actionConfigNames mapthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder putExtraSchemes(String key, BuildTarget value)
extraSchemes
map.key
- The key in the extraSchemes mapvalue
- The associated value in the extraSchemes mapthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder putExtraSchemes(Map.Entry<String,? extends BuildTarget> entry)
extraSchemes
map. Nulls are not permittedentry
- The key and value entrythis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setExtraSchemes(Map<String,? extends BuildTarget> entries)
extraSchemes
map. Nulls are not permittedentries
- The entries that will be added to the extraSchemes mapthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder putAllExtraSchemes(Map<String,? extends BuildTarget> entries)
extraSchemes
map. Nulls are not permittedentries
- The entries that will be added to the extraSchemes mapthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setEnvironmentVariables(com.google.common.collect.ImmutableMap<SchemeActionType,com.google.common.collect.ImmutableMap<String,String>> environmentVariables)
environmentVariables
to environmentVariables.environmentVariables
- The value for environmentVariablesthis
builder for chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setEnvironmentVariables(Optional<? extends com.google.common.collect.ImmutableMap<SchemeActionType,com.google.common.collect.ImmutableMap<String,String>>> environmentVariables)
environmentVariables
to environmentVariables.environmentVariables
- The value for environmentVariablesthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setCommandLineArguments(com.google.common.collect.ImmutableMap<SchemeActionType,com.google.common.collect.ImmutableMap<String,String>> commandLineArguments)
commandLineArguments
to commandLineArguments.commandLineArguments
- The value for commandLineArgumentsthis
builder for chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setCommandLineArguments(Optional<? extends com.google.common.collect.ImmutableMap<SchemeActionType,com.google.common.collect.ImmutableMap<String,String>>> commandLineArguments)
commandLineArguments
to commandLineArguments.commandLineArguments
- The value for commandLineArgumentsthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setApplicationLanguage(String applicationLanguage)
applicationLanguage
to applicationLanguage.applicationLanguage
- The value for applicationLanguagethis
builder for chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setApplicationLanguage(Optional<String> applicationLanguage)
applicationLanguage
to applicationLanguage.applicationLanguage
- The value for applicationLanguagethis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setApplicationRegion(String applicationRegion)
applicationRegion
to applicationRegion.applicationRegion
- The value for applicationRegionthis
builder for chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setApplicationRegion(Optional<String> applicationRegion)
applicationRegion
to applicationRegion.applicationRegion
- The value for applicationRegionthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setExpandVariablesBasedOn(com.google.common.collect.ImmutableMap<SchemeActionType,BuildTarget> expandVariablesBasedOn)
expandVariablesBasedOn
to expandVariablesBasedOn.expandVariablesBasedOn
- The value for expandVariablesBasedOnthis
builder for chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setExpandVariablesBasedOn(Optional<? extends com.google.common.collect.ImmutableMap<SchemeActionType,BuildTarget>> expandVariablesBasedOn)
expandVariablesBasedOn
to expandVariablesBasedOn.expandVariablesBasedOn
- The value for expandVariablesBasedOnthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setWasCreatedForAppExtension(boolean wasCreatedForAppExtension)
wasCreatedForAppExtension
to wasCreatedForAppExtension.wasCreatedForAppExtension
- The value for wasCreatedForAppExtensionthis
builder for chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setWasCreatedForAppExtension(Optional<Boolean> wasCreatedForAppExtension)
wasCreatedForAppExtension
to wasCreatedForAppExtension.wasCreatedForAppExtension
- The value for wasCreatedForAppExtensionthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setIsRemoteRunnable(boolean isRemoteRunnable)
isRemoteRunnable
to isRemoteRunnable.isRemoteRunnable
- The value for isRemoteRunnablethis
builder for chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setIsRemoteRunnable(Optional<Boolean> isRemoteRunnable)
isRemoteRunnable
to isRemoteRunnable.isRemoteRunnable
- The value for isRemoteRunnablethis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setExplicitRunnablePath(String explicitRunnablePath)
explicitRunnablePath
to explicitRunnablePath.explicitRunnablePath
- The value for explicitRunnablePaththis
builder for chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setExplicitRunnablePath(Optional<String> explicitRunnablePath)
explicitRunnablePath
to explicitRunnablePath.explicitRunnablePath
- The value for explicitRunnablePaththis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setNotificationPayloadFile(String notificationPayloadFile)
notificationPayloadFile
to notificationPayloadFile.notificationPayloadFile
- The value for notificationPayloadFilethis
builder for chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setNotificationPayloadFile(Optional<String> notificationPayloadFile)
notificationPayloadFile
to notificationPayloadFile.notificationPayloadFile
- The value for notificationPayloadFilethis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setWatchInterface(XCScheme.LaunchAction.WatchInterface watchInterface)
watchInterface
to watchInterface.watchInterface
- The value for watchInterfacethis
builder for chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setWatchInterface(Optional<? extends XCScheme.LaunchAction.WatchInterface> watchInterface)
watchInterface
to watchInterface.watchInterface
- The value for watchInterfacethis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setLaunchStyle(XCScheme.LaunchAction.LaunchStyle launchStyle)
launchStyle
to launchStyle.launchStyle
- The value for launchStylethis
builder for chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setLaunchStyle(Optional<? extends XCScheme.LaunchAction.LaunchStyle> launchStyle)
launchStyle
to launchStyle.launchStyle
- The value for launchStylethis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setAdditionalSchemeActions(com.google.common.collect.ImmutableMap<SchemeActionType,com.google.common.collect.ImmutableMap<XCScheme.AdditionalActions,com.google.common.collect.ImmutableList<String>>> additionalSchemeActions)
additionalSchemeActions
to additionalSchemeActions.additionalSchemeActions
- The value for additionalSchemeActionsthis
builder for chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setAdditionalSchemeActions(Optional<? extends com.google.common.collect.ImmutableMap<SchemeActionType,com.google.common.collect.ImmutableMap<XCScheme.AdditionalActions,com.google.common.collect.ImmutableList<String>>>> additionalSchemeActions)
additionalSchemeActions
to additionalSchemeActions.additionalSchemeActions
- The value for additionalSchemeActionsthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
compatibleWith
list.element
- A compatibleWith elementthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
compatibleWith
list.elements
- An array of compatibleWith elementsthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder addLabels(String element)
labels
sortedSet.element
- A labels elementthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder addLabels(String... elements)
labels
sortedSet.elements
- An array of labels elementsthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder addAllLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder addLicenses(SourcePath element)
licenses
set.element
- A licenses elementthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder addLicenses(SourcePath... elements)
licenses
set.elements
- An array of licenses elementsthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final XcodeWorkspaceConfigDescriptionArg.Builder setName(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic XcodeWorkspaceConfigDescriptionArg build()
XcodeWorkspaceConfigDescriptionArg
.IllegalStateException
- if any required attributes are missing