public static class ModelDTO.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ModelDTO |
build()
Builds the model DTO.
|
ModelDTO.Builder |
withAudit(AuditDTO audit)
Sets the audit information associated with the model.
|
ModelDTO.Builder |
withComment(java.lang.String comment)
Sets the comment associated with the model.
|
ModelDTO.Builder |
withLatestVersion(int latestVersion)
Sets the latest version of the model.
|
ModelDTO.Builder |
withName(java.lang.String name)
Sets the name of the model.
|
ModelDTO.Builder |
withProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Sets the properties associated with the model.
|
public ModelDTO.Builder withName(java.lang.String name)
name
- The name of the model.public ModelDTO.Builder withComment(java.lang.String comment)
comment
- The comment associated with the model.public ModelDTO.Builder withProperties(java.util.Map<java.lang.String,java.lang.String> properties)
properties
- The properties associated with the model.public ModelDTO.Builder withLatestVersion(int latestVersion)
latestVersion
- The latest version of the model.public ModelDTO.Builder withAudit(AuditDTO audit)
audit
- The audit information associated with the model.public ModelDTO build()