Package io.resys.thena.datasource
Class ImmutableTenantContext.Builder
java.lang.Object
io.resys.thena.datasource.ImmutableTenantContext.Builder
- Enclosing class:
ImmutableTenantContext
@Generated(from="TenantContext",
generator="Immutables")
public static final class ImmutableTenantContext.Builder
extends Object
Builds instances of type
ImmutableTenantContext.
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.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newImmutableTenantContext.Initializes the value for thedbattribute.from(TenantContext instance) Fill a builder with attribute values from the providedTenantContextinstance.Initializes the value for theprefixattribute.Initializes the value for thetenantattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedTenantContextinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
db
Initializes the value for thedbattribute.- Parameters:
db- The value for db- Returns:
thisbuilder for use in a chained invocation
-
tenant
Initializes the value for thetenantattribute.- Parameters:
tenant- The value for tenant- Returns:
thisbuilder for use in a chained invocation
-
prefix
Initializes the value for theprefixattribute.- Parameters:
prefix- The value for prefix- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableTenantContext.- Returns:
- An immutable instance of TenantContext
- Throws:
IllegalStateException- if any required attributes are missing
-