public static class Context.Builder extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Use
Context.builder() instead of private constructor to create new builder. |
protected |
Builder(Context pObject)
Use
Context.builder(Context) instead of private constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
Context |
build()
Method creates a new instance of class Context.
|
Context |
buildValidated()
Method creates a new validated instance of class Context.
|
Context.Builder |
setAccessToken(String pAccessToken)
Method sets the attribute "accessToken".
|
Context.Builder |
setLanguage(Locale pLanguage)
Method sets the attribute "language".
|
Context.Builder |
setPathParam(long pPathParam)
Method sets the attribute "pathParam".
|
Context.Builder |
setQueryParam(String pQueryParam)
Method sets the attribute "queryParam".
|
Context.Builder |
setResellerID(long pResellerID)
Method sets the attribute "resellerID".
|
protected Builder()
Context.builder() instead of private constructor to create new builder.protected Builder(Context pObject)
Context.builder(Context) instead of private constructor to create new builder.public Context.Builder setAccessToken(String pAccessToken)
pAccessToken - Value to which the attribute "accessToken" should be set.public Context.Builder setLanguage(Locale pLanguage)
pLanguage - Value to which the attribute "language" should be set.public Context.Builder setResellerID(long pResellerID)
pResellerID - Value to which the attribute "resellerID" should be set.public Context.Builder setPathParam(long pPathParam)
pPathParam - Value to which the attribute "pathParam" should be set.public Context.Builder setQueryParam(String pQueryParam)
pQueryParam - Value to which the attribute "queryParam" should be set.public Context build()
public Context buildValidated() throws javax.validation.ConstraintViolationException
javax.validation.ConstraintViolationException - in case that one or more validations for the created object failed.Copyright © 2022. All rights reserved.