S
- The type of the builder subclass.public static class SchemaDTO.Builder<S extends SchemaDTO.Builder>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected AuditDTO |
audit |
protected java.lang.String |
comment |
protected java.lang.String |
name |
protected java.util.Map<java.lang.String,java.lang.String> |
properties |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SchemaDTO |
build()
Builds a Schema DTO based on the provided builder parameters.
|
S |
withAudit(AuditDTO audit)
Sets the audit information for the schema.
|
S |
withComment(java.lang.String comment)
Sets the comment associated with the schema.
|
S |
withName(java.lang.String name)
Sets the name of the schema.
|
S |
withProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Sets the properties associated with the schema.
|
protected java.lang.String name
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 schema.public S withComment(java.lang.String comment)
comment
- The comment associated with the schema.public S withProperties(java.util.Map<java.lang.String,java.lang.String> properties)
properties
- The properties associated with the schema.public S withAudit(AuditDTO audit)
audit
- The audit information for the schema.public SchemaDTO build()
java.lang.IllegalArgumentException
- If required fields name and audit are not set.