public static final class ServiceInstanceSchema.Builder extends Object
ServiceInstanceSchema.
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 |
|---|---|
ServiceInstanceSchema |
build()
Builds a new
ServiceInstanceSchema. |
ServiceInstanceSchema.Builder |
create(Schema create)
Initializes the value for the
create attribute. |
ServiceInstanceSchema.Builder |
from(ServiceInstanceSchema instance)
Fill a builder with attribute values from the provided
ServiceInstanceSchema instance. |
ServiceInstanceSchema.Builder |
update(Schema update)
Initializes the value for the
update attribute. |
public final ServiceInstanceSchema.Builder from(ServiceInstanceSchema instance)
ServiceInstanceSchema 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 ServiceInstanceSchema.Builder create(Schema create)
create attribute.create - The value for createthis builder for use in a chained invocationpublic final ServiceInstanceSchema.Builder update(Schema update)
update attribute.update - The value for updatethis builder for use in a chained invocationpublic ServiceInstanceSchema build()
ServiceInstanceSchema.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.