S
- The type of the builder subclass.public static class MetalakeDTO.Builder<S extends MetalakeDTO.Builder>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected AuditDTO |
audit
The audit information of the Metalake DTO.
|
protected java.lang.String |
comment
The comment of the Metalake DTO.
|
protected java.lang.String |
name
The name of the Metalake DTO.
|
protected java.util.Map<java.lang.String,java.lang.String> |
properties
The properties of the Metalake DTO.
|
Modifier | Constructor and Description |
---|---|
protected |
Builder()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
MetalakeDTO |
build()
Builds an instance of MetalakeDTO using the builder's properties.
|
S |
withAudit(AuditDTO audit)
Sets the audit information of the Metalake DTO.
|
S |
withComment(java.lang.String comment)
Sets the comment of the Metalake DTO.
|
S |
withName(java.lang.String name)
Sets the name of the Metalake DTO.
|
S |
withProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Sets the properties of the Metalake DTO.
|
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 Metalake DTO.public S withComment(java.lang.String comment)
comment
- The comment of the Metalake DTO.public S withProperties(java.util.Map<java.lang.String,java.lang.String> properties)
properties
- The properties of the Metalake DTO.public S withAudit(AuditDTO audit)
audit
- The audit information of the Metalake DTO.public MetalakeDTO build()
java.lang.IllegalArgumentException
- If the name or audit are not set.