public static class Context.Builder extends Object
Context.| 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 attribute
accessToken. |
Context.Builder |
setLanguage(Locale pLanguage)
Method sets attribute
language. |
Context.Builder |
setPathParam(long pPathParam)
Method sets attribute
pathParam. |
Context.Builder |
setQueryParam(String pQueryParam)
Method sets attribute
queryParam. |
Context.Builder |
setResellerID(long pResellerID)
Method sets 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)
accessToken.pAccessToken - Value to which accessToken should be set.Context.Builder Instance of this builder to support chaining setters. Method never returns null.public Context.Builder setLanguage(Locale pLanguage)
language.pLanguage - Value to which language should be set.Context.Builder Instance of this builder to support chaining setters. Method never returns null.public Context.Builder setResellerID(long pResellerID)
resellerID.pResellerID - Value to which resellerID should be set.Context.Builder Instance of this builder to support chaining setters. Method never returns null.public Context.Builder setPathParam(long pPathParam)
pathParam.pPathParam - Value to which pathParam should be set.Context.Builder Instance of this builder to support chaining setters. Method never returns null.public Context.Builder setQueryParam(String pQueryParam)
queryParam.pQueryParam - Value to which queryParam should be set.Context.Builder Instance of this builder to support chaining setters. Method never returns null.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 © 2023. All rights reserved.