Class Context.Builder

  • Direct Known Subclasses:
    SpecialContext.Builder
    Enclosing class:
    Context

    public static class Context.Builder
    extends java.lang.Object
    Class implements builder to create a new instance of class Context.
    • Constructor Detail

      • Builder

        protected Builder()
        Use Context.builder() instead of private constructor to create new builder.
    • Method Detail

      • setAccessToken

        public Context.Builder setAccessToken​(java.lang.String pAccessToken)
        Method sets attribute accessToken.
        Parameters:
        pAccessToken - Value to which accessToken should be set.
        Returns:
        Context.Builder Instance of this builder to support chaining setters. Method never returns null.
      • setLanguage

        public Context.Builder setLanguage​(java.util.Locale pLanguage)
        Method sets attribute language.
        Parameters:
        pLanguage - Value to which language should be set.
        Returns:
        Context.Builder Instance of this builder to support chaining setters. Method never returns null.
      • setResellerID

        public Context.Builder setResellerID​(long pResellerID)
        Method sets attribute resellerID.
        Parameters:
        pResellerID - Value to which resellerID should be set.
        Returns:
        Context.Builder Instance of this builder to support chaining setters. Method never returns null.
      • setPathParam

        public Context.Builder setPathParam​(long pPathParam)
        Method sets attribute pathParam.
        Parameters:
        pPathParam - Value to which pathParam should be set.
        Returns:
        Context.Builder Instance of this builder to support chaining setters. Method never returns null.
      • setQueryParam

        public Context.Builder setQueryParam​(java.lang.String pQueryParam)
        Method sets attribute queryParam.
        Parameters:
        pQueryParam - Value to which queryParam should be set.
        Returns:
        Context.Builder Instance of this builder to support chaining setters. Method never returns null.
      • build

        public Context build()
        Method creates a new instance of class Context. The object will be initialized with the values of the builder.
        Returns:
        Context Created object. The method never returns null.
      • buildValidated

        public Context buildValidated()
                               throws javax.validation.ConstraintViolationException
        Method creates a new validated instance of class Context. The object will be initialized with the values of the builder and validated afterwards.
        Returns:
        Context 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.