Class DeprecatedContext.Builder
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.DeprecatedContext.Builder
-
- Enclosing class:
- DeprecatedContext
@Deprecated public static class DeprecatedContext.Builder extends java.lang.ObjectDeprecated.Class implements builder to create a new instance of classDeprecatedContext.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()Deprecated.UseDeprecatedContext.builder()instead of private constructor to create new builder.protectedBuilder(DeprecatedContext pObject)Deprecated.UseDeprecatedContext.builder(DeprecatedContext)instead of private constructor to create new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DeprecatedContextbuild()Deprecated.Method creates a new instance of class DeprecatedContext.DeprecatedContextbuildValidated()Deprecated.Method creates a new validated instance of class DeprecatedContext.DeprecatedContext.BuildersetAccessToken(java.lang.String pAccessToken)Deprecated.Method sets attributeaccessToken.DeprecatedContext.BuildersetLanguage(java.util.Locale pLanguage)Deprecated.Method sets attributelanguage.DeprecatedContext.BuildersetQueryParam(java.lang.String pQueryParam)Deprecated.Method sets attributequeryParam.DeprecatedContext.BuildersetResellerID(long pResellerID)Deprecated.Method sets attributeresellerID.
-
-
-
Constructor Detail
-
Builder
protected Builder()
Deprecated.UseDeprecatedContext.builder()instead of private constructor to create new builder.
-
Builder
protected Builder(DeprecatedContext pObject)
Deprecated.UseDeprecatedContext.builder(DeprecatedContext)instead of private constructor to create new builder.
-
-
Method Detail
-
setAccessToken
public DeprecatedContext.Builder setAccessToken(java.lang.String pAccessToken)
Deprecated.Method sets attributeaccessToken.- Parameters:
pAccessToken- Value to whichaccessTokenshould be set.- Returns:
DeprecatedContext.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setLanguage
public DeprecatedContext.Builder setLanguage(java.util.Locale pLanguage)
Deprecated.Method sets attributelanguage.- Parameters:
pLanguage- Value to whichlanguageshould be set.- Returns:
DeprecatedContext.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setResellerID
public DeprecatedContext.Builder setResellerID(long pResellerID)
Deprecated.Method sets attributeresellerID.- Parameters:
pResellerID- Value to whichresellerIDshould be set.- Returns:
DeprecatedContext.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setQueryParam
public DeprecatedContext.Builder setQueryParam(java.lang.String pQueryParam)
Deprecated.Method sets attributequeryParam.- Parameters:
pQueryParam- Value to whichqueryParamshould be set.- Returns:
DeprecatedContext.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
build
public DeprecatedContext build()
Deprecated.Method creates a new instance of class DeprecatedContext. The object will be initialized with the values of the builder.- Returns:
- DeprecatedContext Created object. The method never returns null.
-
buildValidated
public DeprecatedContext buildValidated() throws javax.validation.ConstraintViolationException
Deprecated.Method creates a new validated instance of class DeprecatedContext. The object will be initialized with the values of the builder and validated afterwards.- Returns:
- DeprecatedContext 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.
-
-