public static final class DefaultApplication.Builder extends Object
Constructor and Description |
---|
Builder()
Default constructor for the builder.
|
Builder(Application application)
Updates the builder to be a copy of an existing application.
|
Builder(ApplicationDescription appDesc)
Updates the builder to be a copy of an existing application description.
|
Builder(DefaultApplication.Builder builder)
Updates the builder to be a copy of an existing builder.
|
public Builder()
public Builder(DefaultApplication.Builder builder)
builder
- existing builder to copypublic Builder(Application application)
application
- existing application to copypublic Builder(ApplicationDescription appDesc)
appDesc
- existing application descriptionpublic DefaultApplication.Builder withAppId(ApplicationId appId)
appId
- application idpublic DefaultApplication.Builder withVersion(Version version)
version
- version stringpublic DefaultApplication.Builder withTitle(String title)
title
- title stringpublic DefaultApplication.Builder withDescription(String description)
description
- description stringpublic DefaultApplication.Builder withCategory(String category)
category
- category stringpublic DefaultApplication.Builder withUrl(String url)
url
- url stringpublic DefaultApplication.Builder withReadme(String readme)
readme
- readme stringpublic DefaultApplication.Builder withIcon(byte[] icon)
icon
- icon datapublic DefaultApplication.Builder withOrigin(String origin)
origin
- origin stringpublic DefaultApplication.Builder withRole(ApplicationRole role)
role
- application rolepublic DefaultApplication.Builder withPermissions(Set<Permission> permissions)
permissions
- permissions setpublic DefaultApplication.Builder withFeaturesRepo(Optional<URI> featuresRepo)
featuresRepo
- Optional URI for a features repositorypublic DefaultApplication.Builder withFeatures(List<String> features)
features
- features listpublic DefaultApplication.Builder withRequiredApps(List<String> requiredApps)
requiredApps
- List of name strings of required applicationspublic DefaultApplication build()