Class BadgeParams.Builder

    • Constructor Detail

      • Builder

        public Builder()
        Default constructor
      • Builder

        public Builder​(BadgeParams queryParams)
        Create a builder class from an existing BadgeParams
        Parameters:
        queryParams - contains the query params
    • Method Detail

      • setBadgeType

        public BadgeParams.Builder setBadgeType​(@Nullable
                                                java.lang.String type)
        Set the type of the Badge to be retrieved.
        Parameters:
        type - type of Badge
        Returns:
        The Builder object to allow for chaining calls to set/add methods
      • setShowEarned

        public BadgeParams.Builder setShowEarned​(@Nullable
                                                 java.lang.Boolean isEarned)
        Set flag to show Earned badges only
        Parameters:
        isEarned - true to show Earned badges only
        Returns:
        The Builder object to allow for chaining calls to set/add methods
      • setResultWithCategories

        public BadgeParams.Builder setResultWithCategories​(@Nullable
                                                           java.lang.Boolean resultWithCategories)
        Set the flag to show categories in the result.
        Parameters:
        resultWithCategories - true to show categories in the result, otherwise, false
        Returns:
        The Builder object to allow for chaining calls to set/add methods
      • setExpired

        public BadgeParams.Builder setExpired​(@Nullable
                                              java.lang.Boolean isExpired)
        Set the flag to show expired badges only in the result
        Parameters:
        isExpired - true to show expired badges only, otherwise, false
        Returns:
        The Builder object to allow for chaining calls to set/add methods