public static class ServiceDefinition.ServiceDefinitionBuilder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
ServiceDefinition.ServiceDefinitionBuilder |
bindable(boolean bindable)
Indicates whether the service can be bound to applications.
|
ServiceDefinition.ServiceDefinitionBuilder |
bindingsRetrievable(boolean bindingsRetrievable)
Indicates whether the service broker supports retrieving service bindings.
|
ServiceDefinition |
build()
Construct a
ServiceDefinition from the provided values. |
ServiceDefinition.ServiceDefinitionBuilder |
dashboardClient(DashboardClient dashboardClient)
Data necessary to activate the Dashboard SSO feature for this service.
|
ServiceDefinition.ServiceDefinitionBuilder |
description(java.lang.String description)
A user-friendly short description of the service that will appear in the catalog.
|
ServiceDefinition.ServiceDefinitionBuilder |
id(java.lang.String id)
An identifier used to correlate this service in future requests to the catalog.
|
ServiceDefinition.ServiceDefinitionBuilder |
instancesRetrievable(boolean instancesRetrievable)
Indicates whether the service broker supports retrieving service instances.
|
ServiceDefinition.ServiceDefinitionBuilder |
metadata(java.util.Map<java.lang.String,java.lang.Object> metadata)
A map of metadata to further describe a service offering.
|
ServiceDefinition.ServiceDefinitionBuilder |
metadata(java.lang.String key,
java.lang.Object value)
A key/value pair to add to the map of metadata to further describe a service offering.
|
ServiceDefinition.ServiceDefinitionBuilder |
name(java.lang.String name)
A CLI-friendly name of the service that will appear in the catalog.
|
ServiceDefinition.ServiceDefinitionBuilder |
plans(java.util.List<Plan> plans)
A list of plans for this service.
|
ServiceDefinition.ServiceDefinitionBuilder |
plans(Plan... plans)
A list of plans for this service.
|
ServiceDefinition.ServiceDefinitionBuilder |
planUpdateable(boolean planUpdateable)
Indicates whether the service supports requests to update instances to use a
different plan from the one used to provision a service instance.
|
ServiceDefinition.ServiceDefinitionBuilder |
requires(java.util.List<java.lang.String> requires)
A list of permissions that the user would have to give the service, if they
provision it.
|
ServiceDefinition.ServiceDefinitionBuilder |
requires(ServiceDefinitionRequires... requires)
A list of permissions that the user would have to give the service, if they
provision it.
|
ServiceDefinition.ServiceDefinitionBuilder |
requires(java.lang.String... requires)
A list of permissions that the user would have to give the service, if they
provision it.
|
ServiceDefinition.ServiceDefinitionBuilder |
tags(java.util.List<java.lang.String> tags)
A list of tags to aid in categorizing and classifying services with similar
characteristics.
|
ServiceDefinition.ServiceDefinitionBuilder |
tags(java.lang.String... tags)
A list of tags to aid in categorizing and classifying services with similar
characteristics.
|
public ServiceDefinition.ServiceDefinitionBuilder id(java.lang.String id)
id - the service IDpublic ServiceDefinition.ServiceDefinitionBuilder name(java.lang.String name)
name - the service namepublic ServiceDefinition.ServiceDefinitionBuilder description(java.lang.String description)
description - the service descriptionpublic ServiceDefinition.ServiceDefinitionBuilder bindable(boolean bindable)
bindable - true if the service may be boundpublic ServiceDefinition.ServiceDefinitionBuilder planUpdateable(boolean planUpdateable)
planUpdateable - true if the plan may be updatedpublic ServiceDefinition.ServiceDefinitionBuilder instancesRetrievable(boolean instancesRetrievable)
instancesRetrievable - true if the service instances may be retrievedpublic ServiceDefinition.ServiceDefinitionBuilder bindingsRetrievable(boolean bindingsRetrievable)
bindingsRetrievable - true if the service bindings may be retrievedpublic ServiceDefinition.ServiceDefinitionBuilder plans(Plan... plans)
plans - the service planspublic ServiceDefinition.ServiceDefinitionBuilder plans(java.util.List<Plan> plans)
plans - the service planspublic ServiceDefinition.ServiceDefinitionBuilder tags(java.lang.String... tags)
tags - the tagspublic ServiceDefinition.ServiceDefinitionBuilder tags(java.util.List<java.lang.String> tags)
tags - the tagspublic ServiceDefinition.ServiceDefinitionBuilder metadata(java.util.Map<java.lang.String,java.lang.Object> metadata)
metadata - the service metadatapublic ServiceDefinition.ServiceDefinitionBuilder metadata(java.lang.String key, java.lang.Object value)
key - the unique keyvalue - the valuepublic ServiceDefinition.ServiceDefinitionBuilder requires(java.lang.String... requires)
ServiceDefinitionRequires for supported permissions.requires - the required permissionspublic ServiceDefinition.ServiceDefinitionBuilder requires(java.util.List<java.lang.String> requires)
ServiceDefinitionRequires for supported permissions.requires - the required permissionspublic ServiceDefinition.ServiceDefinitionBuilder requires(ServiceDefinitionRequires... requires)
ServiceDefinitionRequires for supported permissions.requires - the required permissionspublic ServiceDefinition.ServiceDefinitionBuilder dashboardClient(DashboardClient dashboardClient)
dashboardClient - the service dashboard URIpublic ServiceDefinition build()
ServiceDefinition from the provided values.