public static final class CTicketSystem.Builder
extends java.lang.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 | Description |
|---|---|---|
CTicketSystem.Builder |
addAllUris(java.lang.Iterable<? extends java.net.URI> elements) |
Adds elements to
uris list. |
CTicketSystem.Builder |
addUris(java.net.URI element) |
Adds one element to
uris list. |
CTicketSystem.Builder |
addUris(java.net.URI... elements) |
Adds elements 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(java.lang.String id) |
Initializes the value for the
id attribute. |
CTicketSystem.Builder |
setUris(java.lang.Iterable<? extends java.net.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(java.lang.String id)
id attribute.id - The value for idthis builder for use in a chained invocationpublic final CTicketSystem.Builder addUris(java.net.URI element)
uris list.element - A uris elementthis builder for use in a chained invocationpublic final CTicketSystem.Builder addUris(java.net.URI... elements)
uris list.elements - An array of uris elementsthis builder for use in a chained invocationpublic final CTicketSystem.Builder setUris(java.lang.Iterable<? extends java.net.URI> elements)
uris list.elements - An iterable of uris elementsthis builder for use in a chained invocationpublic final CTicketSystem.Builder addAllUris(java.lang.Iterable<? extends java.net.URI> elements)
uris list.elements - An iterable of uris elementsthis builder for use in a chained invocationpublic CTicketSystem build()
CTicketSystem.java.lang.IllegalStateException - if any required attributes are missingCopyright © 2017 <code@io7m.com> http://io7m.com