public static final class CTicketSystem.Builder extends Object
CTicketSystem.
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 |
|---|---|
CTicketSystem.Builder |
addAllUris(Iterable<? extends URI> elements)
Adds elements to
uris list. |
CTicketSystem.Builder |
addUris(URI... elements)
Adds elements to
uris list. |
CTicketSystem.Builder |
addUris(URI element)
Adds one element to
uris list. |
CTicketSystem |
build()
Builds a new
CTicketSystem. |
CTicketSystem.Builder |
from(CTicketSystemType instance)
Fill a builder with attribute values from the provided
CTicketSystemType instance. |
CTicketSystem.Builder |
setId(String id)
Initializes the value for the
id attribute. |
CTicketSystem.Builder |
setUris(Iterable<? extends URI> elements)
Sets or replaces all elements for
uris list. |
public final CTicketSystem.Builder from(CTicketSystemType instance)
CTicketSystemType instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final CTicketSystem.Builder setId(String id)
id attribute.id - The value for idthis builder for use in a chained invocationpublic final CTicketSystem.Builder addUris(URI element)
uris list.element - A uris elementthis builder for use in a chained invocationpublic final CTicketSystem.Builder addUris(URI... elements)
uris list.elements - An array of uris elementsthis builder for use in a chained invocationpublic final CTicketSystem.Builder setUris(Iterable<? extends URI> elements)
uris list.elements - An iterable of uris elementsthis builder for use in a chained invocationpublic final CTicketSystem.Builder addAllUris(Iterable<? extends URI> elements)
uris list.elements - An iterable of uris elementsthis builder for use in a chained invocationpublic CTicketSystem build()
CTicketSystem.IllegalStateException - if any required attributes are missingCopyright © 2016 <code@io7m.com> http://io7m.com