| Modifier and Type | Method and Description |
|---|---|
Service |
build()
Builds a new
Service. |
Service.Builder |
from(Service instance)
Fill a builder with attribute values from the provided
Service instance. |
Service.Builder |
id(String id)
Initializes the value for the
id attribute. |
Service.Builder |
label(String label)
Initializes the value for the
label attribute. |
Service.Builder |
provider(String provider)
Initializes the value for the
provider attribute. |
Service.Builder |
version(String version)
Initializes the value for the
version attribute. |
public final Service.Builder from(Service instance)
Service 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 Service.Builder id(String id)
id attribute.id - The value for id (can be null)this builder for use in a chained invocationpublic final Service.Builder label(String label)
label attribute.label - The value for label (can be null)this builder for use in a chained invocationpublic final Service.Builder provider(String provider)
provider attribute.provider - The value for provider (can be null)this builder for use in a chained invocationpublic final Service.Builder version(String version)
version attribute.version - The value for version (can be null)this builder for use in a chained invocationpublic Service build()
Service.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.