public static class OwnerDTO.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
OwnerDTO |
build()
Builds an instance of OwnerDTO using the builder's properties.
|
OwnerDTO.Builder |
withName(java.lang.String name)
Sets the name for the owner.
|
OwnerDTO.Builder |
withType(Owner.Type type)
Sets the type for the owner.
|
public OwnerDTO.Builder withName(java.lang.String name)
name
- The name of the owner.public OwnerDTO.Builder withType(Owner.Type type)
type
- The type of the owner.public OwnerDTO build()