public static final class ServiceEntity.Builder extends Object
ServiceEntity.
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.
| Modifier and Type | Method and Description |
|---|---|
ServiceEntity.Builder |
active(Boolean active)
Initializes the value for the
active attribute. |
ServiceEntity.Builder |
addAllRequires(Iterable<String> elements)
Adds elements to
requires list. |
ServiceEntity.Builder |
addAllTags(Iterable<String> elements)
Adds elements to
tags list. |
ServiceEntity.Builder |
bindable(Boolean bindable)
Initializes the value for the
bindable attribute. |
ServiceEntity |
build()
Builds a new
ServiceEntity. |
ServiceEntity.Builder |
description(String description)
Initializes the value for the
description attribute. |
ServiceEntity.Builder |
documentationUrl(String documentationUrl)
Deprecated.
|
ServiceEntity.Builder |
extra(String extra)
Initializes the value for the
extra attribute. |
ServiceEntity.Builder |
from(ServiceEntity instance)
Fill a builder with attribute values from the provided
ServiceEntity instance. |
ServiceEntity.Builder |
infoUrl(String infoUrl)
Deprecated.
|
ServiceEntity.Builder |
label(String label)
Initializes the value for the
label attribute. |
ServiceEntity.Builder |
longDescription(String longDescription)
Deprecated.
|
ServiceEntity.Builder |
planUpdateable(Boolean planUpdateable)
Initializes the value for the
planUpdateable attribute. |
ServiceEntity.Builder |
provider(String provider)
Deprecated.
|
ServiceEntity.Builder |
require(String... elements)
Adds elements to
requires list. |
ServiceEntity.Builder |
require(String element)
Adds one element to
requires list. |
ServiceEntity.Builder |
requires(Iterable<String> elements)
Sets or replaces all elements for
requires list. |
ServiceEntity.Builder |
serviceBrokerId(String serviceBrokerId)
Initializes the value for the
serviceBrokerId attribute. |
ServiceEntity.Builder |
servicePlansUrl(String servicePlansUrl)
Initializes the value for the
servicePlansUrl attribute. |
ServiceEntity.Builder |
tag(String... elements)
Adds elements to
tags list. |
ServiceEntity.Builder |
tag(String element)
Adds one element to
tags list. |
ServiceEntity.Builder |
tags(Iterable<String> elements)
Sets or replaces all elements for
tags list. |
ServiceEntity.Builder |
uniqueId(String uniqueId)
Initializes the value for the
uniqueId attribute. |
ServiceEntity.Builder |
url(String url)
Deprecated.
|
ServiceEntity.Builder |
version(String version)
Deprecated.
|
public final ServiceEntity.Builder from(ServiceEntity instance)
ServiceEntity instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ServiceEntity.Builder active(Boolean active)
active attribute.active - The value for active (can be null)this builder for use in a chained invocationpublic final ServiceEntity.Builder bindable(Boolean bindable)
bindable attribute.bindable - The value for bindable (can be null)this builder for use in a chained invocationpublic final ServiceEntity.Builder description(String description)
description attribute.description - The value for description (can be null)this builder for use in a chained invocation@Deprecated public final ServiceEntity.Builder documentationUrl(String documentationUrl)
documentationUrl attribute.documentationUrl - The value for documentationUrl (can be null)this builder for use in a chained invocationpublic final ServiceEntity.Builder extra(String extra)
extra attribute.extra - The value for extra (can be null)this builder for use in a chained invocation@Deprecated public final ServiceEntity.Builder infoUrl(String infoUrl)
infoUrl attribute.infoUrl - The value for infoUrl (can be null)this builder for use in a chained invocationpublic final ServiceEntity.Builder label(String label)
label attribute.label - The value for label (can be null)this builder for use in a chained invocation@Deprecated public final ServiceEntity.Builder longDescription(String longDescription)
longDescription attribute.longDescription - The value for longDescription (can be null)this builder for use in a chained invocationpublic final ServiceEntity.Builder planUpdateable(Boolean planUpdateable)
planUpdateable attribute.planUpdateable - The value for planUpdateable (can be null)this builder for use in a chained invocation@Deprecated public final ServiceEntity.Builder provider(String provider)
provider attribute.provider - The value for provider (can be null)this builder for use in a chained invocationpublic final ServiceEntity.Builder require(String element)
requires list.element - A requires elementthis builder for use in a chained invocationpublic final ServiceEntity.Builder require(String... elements)
requires list.elements - An array of requires elementsthis builder for use in a chained invocationpublic final ServiceEntity.Builder requires(Iterable<String> elements)
requires list.elements - An iterable of requires elementsthis builder for use in a chained invocationpublic final ServiceEntity.Builder addAllRequires(Iterable<String> elements)
requires list.elements - An iterable of requires elementsthis builder for use in a chained invocationpublic final ServiceEntity.Builder serviceBrokerId(String serviceBrokerId)
serviceBrokerId attribute.serviceBrokerId - The value for serviceBrokerId (can be null)this builder for use in a chained invocationpublic final ServiceEntity.Builder servicePlansUrl(String servicePlansUrl)
servicePlansUrl attribute.servicePlansUrl - The value for servicePlansUrl (can be null)this builder for use in a chained invocationpublic final ServiceEntity.Builder tag(String element)
tags list.element - A tags elementthis builder for use in a chained invocationpublic final ServiceEntity.Builder tag(String... elements)
tags list.elements - An array of tags elementsthis builder for use in a chained invocationpublic final ServiceEntity.Builder tags(Iterable<String> elements)
tags list.elements - An iterable of tags elementsthis builder for use in a chained invocationpublic final ServiceEntity.Builder addAllTags(Iterable<String> elements)
tags list.elements - An iterable of tags elementsthis builder for use in a chained invocationpublic final ServiceEntity.Builder uniqueId(String uniqueId)
uniqueId attribute.uniqueId - The value for uniqueId (can be null)this builder for use in a chained invocation@Deprecated public final ServiceEntity.Builder url(String url)
url attribute.url - The value for url (can be null)this builder for use in a chained invocation@Deprecated public final ServiceEntity.Builder version(String version)
version attribute.version - The value for version (can be null)this builder for use in a chained invocationpublic ServiceEntity build()
ServiceEntity.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.