Class SpecialContext.Builder
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.Context.Builder
-
- com.anaptecs.jeaf.junit.openapi.base.SpecialContext.Builder
-
- Enclosing class:
- SpecialContext
public static class SpecialContext.Builder extends Context.Builder
Class implements builder to create a new instance of classSpecialContext.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()UseSpecialContext.builder()instead of private constructor to create new builder.protectedBuilder(SpecialContext pObject)UseSpecialContext.builder(SpecialContext)instead of private constructor to create new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpecialContextbuild()Method creates a new instance of class SpecialContext.SpecialContextbuildValidated()Method creates a new validated instance of class SpecialContext.SpecialContext.BuildersetAccessToken(java.lang.String pAccessToken)Method sets attributeContext.accessToken.SpecialContext.BuildersetLanguage(java.util.Locale pLanguage)Method sets attributeContext.language.SpecialContext.BuildersetPathParam(long pPathParam)Method sets attributeContext.pathParam.SpecialContext.BuildersetQueryParam(java.lang.String pQueryParam)Method sets attributeContext.queryParam.SpecialContext.BuildersetResellerID(long pResellerID)Method sets attributeContext.resellerID.SpecialContext.BuildersetSpecificHeader(java.lang.String pSpecificHeader)Method sets attributespecificHeader.
-
-
-
Constructor Detail
-
Builder
protected Builder()
UseSpecialContext.builder()instead of private constructor to create new builder.
-
Builder
protected Builder(SpecialContext pObject)
UseSpecialContext.builder(SpecialContext)instead of private constructor to create new builder.
-
-
Method Detail
-
setAccessToken
public SpecialContext.Builder setAccessToken(java.lang.String pAccessToken)
Method sets attributeContext.accessToken.- Overrides:
setAccessTokenin classContext.Builder- Parameters:
pAccessToken- Value to whichContext.accessTokenshould be set.- Returns:
SpecialContext.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setLanguage
public SpecialContext.Builder setLanguage(java.util.Locale pLanguage)
Method sets attributeContext.language.- Overrides:
setLanguagein classContext.Builder- Parameters:
pLanguage- Value to whichContext.languageshould be set.- Returns:
SpecialContext.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setResellerID
public SpecialContext.Builder setResellerID(long pResellerID)
Method sets attributeContext.resellerID.- Overrides:
setResellerIDin classContext.Builder- Parameters:
pResellerID- Value to whichContext.resellerIDshould be set.- Returns:
SpecialContext.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setPathParam
public SpecialContext.Builder setPathParam(long pPathParam)
Method sets attributeContext.pathParam.- Overrides:
setPathParamin classContext.Builder- Parameters:
pPathParam- Value to whichContext.pathParamshould be set.- Returns:
SpecialContext.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setQueryParam
public SpecialContext.Builder setQueryParam(java.lang.String pQueryParam)
Method sets attributeContext.queryParam.- Overrides:
setQueryParamin classContext.Builder- Parameters:
pQueryParam- Value to whichContext.queryParamshould be set.- Returns:
SpecialContext.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setSpecificHeader
public SpecialContext.Builder setSpecificHeader(java.lang.String pSpecificHeader)
Method sets attributespecificHeader.- Parameters:
pSpecificHeader- Value to whichspecificHeadershould be set.- Returns:
SpecialContext.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
build
public SpecialContext build()
Method creates a new instance of class SpecialContext. The object will be initialized with the values of the builder.- Overrides:
buildin classContext.Builder- Returns:
- SpecialContext Created object. The method never returns null.
-
buildValidated
public SpecialContext buildValidated() throws javax.validation.ConstraintViolationException
Method creates a new validated instance of class SpecialContext. The object will be initialized with the values of the builder and validated afterwards.- Overrides:
buildValidatedin classContext.Builder- Returns:
- SpecialContext Created and validated object. The method never returns null.
- Throws:
javax.validation.ConstraintViolationException- in case that one or more validations for the created object failed.
-
-