@Valid public class BeanParameter extends Object implements com.anaptecs.jeaf.core.api.ServiceObject
| Modifier and Type | Class and Description |
|---|---|
static class |
BeanParameter.Builder
Class implements builder to create a new instance of class BeanParameter.
|
| Modifier | Constructor and Description |
|---|---|
protected |
BeanParameter()
Default constructor is only intended to be used for deserialization as many frameworks required that.
|
protected |
BeanParameter(BeanParameter.Builder pBuilder)
Initialize object using the passed builder.
|
| Modifier and Type | Method and Description |
|---|---|
static BeanParameter.Builder |
builder()
Method returns a new builder.
|
static BeanParameter.Builder |
builder(BeanParameter pObject)
Method creates a new builder and initialize it with the data from the passed object.
|
static BeanParameter.Builder |
builder(String pAccessToken,
String pOldStyle)
Method creates a new builder and initializes it with the passed attributes.
|
String |
getAccessToken()
Method returns the attribute "accessToken".
|
Locale |
getLanguage()
Method returns the attribute "language".
|
String |
getOldStyle()
Deprecated.
|
void |
setAccessToken(String pAccessToken)
Method sets the attribute "accessToken".
|
void |
setLanguage(Locale pLanguage)
Method sets the attribute "language".
|
void |
setOldStyle(String pOldStyle)
Deprecated.
|
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 BeanParameter()
protected BeanParameter(BeanParameter.Builder pBuilder)
pBuilder - Builder that should be used to initialize this object. The parameter must not be null.public static BeanParameter.Builder builder()
BeanParameter.Builder New builder that can be used to create new BeanParameter objects.public static BeanParameter.Builder builder(BeanParameter pObject)
pObject - Object that should be used to initialize the builder. The parameter may be null.BeanParameter.Builder New builder that can be used to create new BeanParameter objects. The method never returns
null.public static BeanParameter.Builder builder(String pAccessToken, String pOldStyle)
public String getAccessToken()
public void setAccessToken(String pAccessToken)
pAccessToken - Value to which the attribute "accessToken" should be set.public Locale getLanguage()
public void setLanguage(Locale pLanguage)
pLanguage - Value to which the attribute "language" should be set.@Deprecated public String getOldStyle()
@Deprecated public void setOldStyle(String pOldStyle)
pOldStyle - Value to which the attribute "oldStyle" should be set.public StringBuilder toStringBuilder(String pIndent)
StringBuilder StringBuilder representing this object. The method never returns null.Copyright © 2022. All rights reserved.