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 |
build() |
Builds a new
CTicketSystem. |
CTicketSystem.Builder |
from(CTicketSystemType instance) |
Fill a builder with attribute values from the provided
CTicketSystemType instance. |
CTicketSystem.Builder |
setDefault(boolean isDefault) |
Initializes the value for the
default attribute. |
CTicketSystem.Builder |
setId(java.lang.String id) |
Initializes the value for the
id attribute. |
CTicketSystem.Builder |
setUri(java.net.URI uri) |
Initializes the value for the
uri attribute. |
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.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 setUri(java.net.URI uri)
uri attribute.uri - The value for urithis builder for use in a chained invocationpublic final CTicketSystem.Builder setDefault(boolean isDefault)
default attribute.
If not set, this attribute will have a default value as returned by the initializer of default.
isDefault - The value for isDefaultthis 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