@NotThreadSafe public static final class ImmutableIlandScope.Builder extends Object
ImmutableIlandScope
.
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 |
---|---|
ImmutableIlandScope |
build()
Builds a new
ImmutableIlandScope . |
ImmutableIlandScope.Builder |
companyId(CompanyId companyId)
Initializes the optional value
companyId to companyId. |
ImmutableIlandScope.Builder |
companyId(Optional<? extends CompanyId> companyId)
Initializes the optional value
companyId to companyId. |
ImmutableIlandScope.Builder |
from(IlandScope instance)
Fill a builder with attribute values from the provided
IlandScope instance. |
ImmutableIlandScope.Builder |
locationId(LocationId locationId)
Initializes the optional value
locationId to locationId. |
ImmutableIlandScope.Builder |
locationId(Optional<? extends LocationId> locationId)
Initializes the optional value
locationId to locationId. |
ImmutableIlandScope.Builder |
orgId(Optional<? extends OrgUuid> orgId)
Initializes the optional value
orgId to orgId. |
ImmutableIlandScope.Builder |
orgId(OrgUuid orgId)
Initializes the optional value
orgId to orgId. |
ImmutableIlandScope.Builder |
vdcId(Optional<? extends VdcUuid> vdcId)
Initializes the optional value
vdcId to vdcId. |
ImmutableIlandScope.Builder |
vdcId(VdcUuid vdcId)
Initializes the optional value
vdcId to vdcId. |
public final ImmutableIlandScope.Builder from(IlandScope instance)
IlandScope
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 ImmutableIlandScope.Builder locationId(LocationId locationId)
locationId
to locationId.locationId
- The value for locationIdthis
builder for chained invocationpublic final ImmutableIlandScope.Builder locationId(Optional<? extends LocationId> locationId)
locationId
to locationId.locationId
- The value for locationIdthis
builder for use in a chained invocationpublic final ImmutableIlandScope.Builder companyId(CompanyId companyId)
companyId
to companyId.companyId
- The value for companyIdthis
builder for chained invocationpublic final ImmutableIlandScope.Builder companyId(Optional<? extends CompanyId> companyId)
companyId
to companyId.companyId
- The value for companyIdthis
builder for use in a chained invocationpublic final ImmutableIlandScope.Builder orgId(OrgUuid orgId)
orgId
to orgId.orgId
- The value for orgIdthis
builder for chained invocationpublic final ImmutableIlandScope.Builder orgId(Optional<? extends OrgUuid> orgId)
orgId
to orgId.orgId
- The value for orgIdthis
builder for use in a chained invocationpublic final ImmutableIlandScope.Builder vdcId(VdcUuid vdcId)
vdcId
to vdcId.vdcId
- The value for vdcIdthis
builder for chained invocationpublic final ImmutableIlandScope.Builder vdcId(Optional<? extends VdcUuid> vdcId)
vdcId
to vdcId.vdcId
- The value for vdcIdthis
builder for use in a chained invocationpublic ImmutableIlandScope build()
ImmutableIlandScope
.IllegalStateException
- if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.