public static final class ServiceInstance.Builder extends Object
ServiceInstance.
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 |
|---|---|
ServiceInstance.Builder |
boundApplicationCount(Integer boundApplicationCount)
Initializes the value for the
boundApplicationCount attribute. |
ServiceInstance |
build()
Builds a new
ServiceInstance. |
ServiceInstance.Builder |
dashboardUrl(String dashboardUrl)
Initializes the value for the
dashboardUrl attribute. |
ServiceInstance.Builder |
from(ServiceInstance instance)
Fill a builder with attribute values from the provided
ServiceInstance instance. |
ServiceInstance.Builder |
id(String id)
Initializes the value for the
id attribute. |
ServiceInstance.Builder |
lastOperation(LastOperation lastOperation)
Initializes the value for the
lastOperation attribute. |
ServiceInstance.Builder |
name(String name)
Initializes the value for the
name attribute. |
ServiceInstance.Builder |
servicePlan(Plan servicePlan)
Initializes the value for the
servicePlan attribute. |
public final ServiceInstance.Builder from(ServiceInstance instance)
ServiceInstance instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ServiceInstance.Builder boundApplicationCount(Integer boundApplicationCount)
boundApplicationCount attribute.boundApplicationCount - The value for boundApplicationCount (can be null)this builder for use in a chained invocationpublic final ServiceInstance.Builder dashboardUrl(String dashboardUrl)
dashboardUrl attribute.dashboardUrl - The value for dashboardUrl (can be null)this builder for use in a chained invocationpublic final ServiceInstance.Builder id(String id)
id attribute.id - The value for id (can be null)this builder for use in a chained invocationpublic final ServiceInstance.Builder lastOperation(LastOperation lastOperation)
lastOperation attribute.lastOperation - The value for lastOperation (can be null)this builder for use in a chained invocationpublic final ServiceInstance.Builder name(String name)
name attribute.name - The value for name (can be null)this builder for use in a chained invocationpublic final ServiceInstance.Builder servicePlan(Plan servicePlan)
servicePlan attribute.servicePlan - The value for servicePlan (can be null)this builder for use in a chained invocationpublic ServiceInstance build()
ServiceInstance.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.