public static class StringCodeType.Builder extends Object
StringCodeType.| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Use
StringCodeType.builder() instead of private constructor to create new builder. |
protected |
Builder(StringCodeType pObject)
Use
StringCodeType.builder(StringCodeType) instead of private constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
StringCodeType |
build()
Method creates a new instance of class StringCodeType.
|
StringCodeType |
buildValidated()
Method creates a new validated instance of class StringCodeType.
|
StringCodeType.Builder |
setCode(String pCode)
Method sets attribute
code. |
protected Builder()
StringCodeType.builder() instead of private constructor to create new builder.protected Builder(StringCodeType pObject)
StringCodeType.builder(StringCodeType) instead of private constructor to create new builder.public StringCodeType.Builder setCode(String pCode)
code.pCode - Value to which code should be set.StringCodeType.Builder Instance of this builder to support chaining setters. Method never returns null.public StringCodeType build()
public StringCodeType buildValidated() throws javax.validation.ConstraintViolationException
javax.validation.ConstraintViolationException - in case that one or more validations for the created object failed.Copyright © 2023. All rights reserved.