public static class Application.Builder extends Object
Constructor and Description |
---|
Application.Builder()
Default constructor that initializes state to
Application.State.NEW . |
Application.Builder(Application app)
Builder copy constructor.
|
Modifier and Type | Method and Description |
---|---|
Application.Builder |
action(Application.Action action)
Sets the action.
|
Application |
build()
Returns the immutable application instance.
|
Application.Builder |
catalogId(String catalogId)
Sets the catalog ID.
|
Application.Builder |
deployMs(long deployMs)
Sets the deploy milliseconds.
|
Application.Builder |
description(String description)
Sets the description.
|
Application.Builder |
downloadUrl(String downloadUrl)
Sets the download URL.
|
Application.Builder |
id(String id)
Sets the ID.
|
Application.Builder |
name(String name)
Sets the name.
|
Application.Builder |
productId(String productId)
Sets the product ID.
|
Application.Builder |
sku(String sku)
Sets the SKU number.
|
Application.Builder |
state(Application.State state)
Sets the state.
|
Application.Builder |
vendor(String vendor)
Sets the vendor.
|
Application.Builder |
version(String version)
Sets the version.
|
public Application.Builder()
Application.State.NEW
.public Application.Builder(Application app)
app
- application used to initialize the builderpublic Application.Builder id(String id)
id
- new ID valuepublic Application.Builder version(String version)
version
- new version valuepublic Application.Builder name(String name)
name
- new name valuepublic Application.Builder deployMs(long deployMs)
deployMs
- new deploy milliseconds valuepublic Application.Builder vendor(String vendor)
vendor
- new vendor valuepublic Application.Builder description(String description)
description
- new description valuepublic Application.Builder state(Application.State state)
state
- new state valuepublic Application.Builder action(Application.Action action)
action
- new action valuepublic Application.Builder productId(String productId)
productId
- new product ID valuepublic Application.Builder downloadUrl(String downloadUrl)
downloadUrl
- new download URL valuepublic Application.Builder catalogId(String catalogId)
catalogId
- new catalog ID valuepublic Application.Builder sku(String sku)
sku
- new SKU number valuepublic Application build()
Copyright © 2015. All Rights Reserved.