public static final class ServicePlanEntity.Builder extends Object
ServicePlanEntity.
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 |
|---|---|
ServicePlanEntity.Builder |
active(Boolean active)
Initializes the value for the
active attribute. |
ServicePlanEntity |
build()
Builds a new
ServicePlanEntity. |
ServicePlanEntity.Builder |
description(String description)
Initializes the value for the
description attribute. |
ServicePlanEntity.Builder |
extra(String extra)
Initializes the value for the
extra attribute. |
ServicePlanEntity.Builder |
free(Boolean free)
Initializes the value for the
free attribute. |
ServicePlanEntity.Builder |
from(ServicePlanEntity instance)
Fill a builder with attribute values from the provided
ServicePlanEntity instance. |
ServicePlanEntity.Builder |
name(String name)
Initializes the value for the
name attribute. |
ServicePlanEntity.Builder |
publiclyVisible(Boolean publiclyVisible)
Initializes the value for the
publiclyVisible attribute. |
ServicePlanEntity.Builder |
serviceId(String serviceId)
Initializes the value for the
serviceId attribute. |
ServicePlanEntity.Builder |
serviceInstancesUrl(String serviceInstancesUrl)
Initializes the value for the
serviceInstancesUrl attribute. |
ServicePlanEntity.Builder |
serviceUrl(String serviceUrl)
Initializes the value for the
serviceUrl attribute. |
ServicePlanEntity.Builder |
uniqueId(String uniqueId)
Initializes the value for the
uniqueId attribute. |
public final ServicePlanEntity.Builder from(ServicePlanEntity instance)
ServicePlanEntity 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 ServicePlanEntity.Builder active(Boolean active)
active attribute.active - The value for active (can be null)this builder for use in a chained invocationpublic final ServicePlanEntity.Builder description(String description)
description attribute.description - The value for description (can be null)this builder for use in a chained invocationpublic final ServicePlanEntity.Builder extra(String extra)
extra attribute.extra - The value for extra (can be null)this builder for use in a chained invocationpublic final ServicePlanEntity.Builder free(Boolean free)
free attribute.free - The value for free (can be null)this builder for use in a chained invocationpublic final ServicePlanEntity.Builder name(String name)
name attribute.name - The value for name (can be null)this builder for use in a chained invocationpublic final ServicePlanEntity.Builder publiclyVisible(Boolean publiclyVisible)
publiclyVisible attribute.publiclyVisible - The value for publiclyVisible (can be null)this builder for use in a chained invocationpublic final ServicePlanEntity.Builder serviceId(String serviceId)
serviceId attribute.serviceId - The value for serviceId (can be null)this builder for use in a chained invocationpublic final ServicePlanEntity.Builder serviceInstancesUrl(String serviceInstancesUrl)
serviceInstancesUrl attribute.serviceInstancesUrl - The value for serviceInstancesUrl (can be null)this builder for use in a chained invocationpublic final ServicePlanEntity.Builder serviceUrl(String serviceUrl)
serviceUrl attribute.serviceUrl - The value for serviceUrl (can be null)this builder for use in a chained invocationpublic final ServicePlanEntity.Builder uniqueId(String uniqueId)
uniqueId attribute.uniqueId - The value for uniqueId (can be null)this builder for use in a chained invocationpublic ServicePlanEntity build()
ServicePlanEntity.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.