@Valid public class ShortCodeType extends Object implements com.anaptecs.jeaf.core.api.ServiceObject
| Modifier and Type | Class and Description |
|---|---|
static class |
ShortCodeType.Builder
Class implements builder to create a new instance of class ShortCodeType.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ShortCodeType()
Default constructor is only intended to be used for deserialization as many frameworks required that.
|
protected |
ShortCodeType(ShortCodeType.Builder pBuilder)
Initialize object using the passed builder.
|
| Modifier and Type | Method and Description |
|---|---|
static ShortCodeType.Builder |
builder()
Method returns a new builder.
|
static ShortCodeType.Builder |
builder(short pCode)
Method creates a new builder and initializes it with the passed attributes.
|
static ShortCodeType.Builder |
builder(ShortCodeType pObject)
Method creates a new builder and initialize it with the data from the passed object.
|
short |
getCode()
Method returns the attribute "code".
|
void |
setCode(short pCode)
Method sets the attribute "code".
|
String |
toString()
Method creates a new String with the values of all attributes of this class.
|
StringBuilder |
toStringBuilder(String pIndent)
Method returns a StringBuilder that can be used to create a String representation of this object.
|
protected ShortCodeType()
protected ShortCodeType(ShortCodeType.Builder pBuilder)
pBuilder - Builder that should be used to initialize this object. The parameter must not be null.public static ShortCodeType.Builder builder()
ShortCodeType.Builder New builder that can be used to create new ShortCodeType objects.public static ShortCodeType.Builder builder(ShortCodeType pObject)
pObject - Object that should be used to initialize the builder. The parameter may be null.ShortCodeType.Builder New builder that can be used to create new ShortCodeType objects. The method never returns
null.public static ShortCodeType.Builder builder(short pCode)
public short getCode()
public void setCode(short pCode)
pCode - Value to which the attribute "code" should be set.public StringBuilder toStringBuilder(String pIndent)
StringBuilder StringBuilder representing this object. The method never returns null.Copyright © 2022. All rights reserved.