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