S
- The type of the builder instance.public static class CatalogDTO.Builder<S extends CatalogDTO.Builder>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected AuditDTO |
audit
The audit information of the catalog.
|
protected java.lang.String |
comment
The comment of the catalog.
|
protected java.lang.String |
name
The name of the catalog.
|
protected java.util.Map<java.lang.String,java.lang.String> |
properties
The properties of the catalog.
|
protected java.lang.String |
provider
The provider of the catalog.
|
protected Catalog.Type |
type
The type of the catalog.
|
Constructor and Description |
---|
Builder()
Default constructor for the builder.
|
Modifier and Type | Method and Description |
---|---|
CatalogDTO |
build()
Builds an instance of CatalogDTO using the builder's properties.
|
S |
withAudit(AuditDTO audit)
Sets the audit information of the catalog.
|
S |
withComment(java.lang.String comment)
Sets the comment of the catalog.
|
S |
withName(java.lang.String name)
Sets the name of the catalog.
|
S |
withProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Sets the properties of the catalog.
|
S |
withProvider(java.lang.String provider)
Sets the provider of the catalog.
|
S |
withType(Catalog.Type type)
Sets the type of the catalog.
|
protected java.lang.String name
protected Catalog.Type type
protected java.lang.String provider
protected java.lang.String comment
protected java.util.Map<java.lang.String,java.lang.String> properties
protected AuditDTO audit
public S withName(java.lang.String name)
name
- The name of the catalog.public S withType(Catalog.Type type)
type
- The type of the catalog.public S withProvider(java.lang.String provider)
provider
- The provider of the catalog.public S withComment(java.lang.String comment)
comment
- The comment of the catalog.public S withProperties(java.util.Map<java.lang.String,java.lang.String> properties)
properties
- The properties of the catalog.public S withAudit(AuditDTO audit)
audit
- The audit information of the catalog.public CatalogDTO build()
java.lang.IllegalArgumentException
- If name, type or audit are not set.