Class EncodedItemComposedKey.Builder

  • Enclosing class:
    EncodedItemComposedKey

    public static class EncodedItemComposedKey.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder​(java.lang.String content)
    • Method Detail

      • encoded

        public EncodedItemComposedKey.Builder encoded()
        Set encoded attribute to true, which will affect how the build() method works.
        Returns:
        the same builder.
      • fromJsonString

        protected EncodedItemComposedKey fromJsonString​(java.lang.String jsonString)
        Returns the object represented by the JSON string parameter. The following JSON string format is expected:
         {
             "itemId": "item-id",
             "catalogId": "catalog-id",
             "catalogVersion": "catalog-version"
         }
         
        Parameters:
        jsonString - the JSON string representation of this object
        Returns:
        the Object represented by the JSON string.
      • fromEncodedString

        protected EncodedItemComposedKey fromEncodedString​(java.lang.String encodedString)
        Returns the object represented by the Base64 value. The Base 64 String will be converted into a string, that should match the following JSON string format:
         {
             "itemId": "item-id",
             "catalogId": "catalog-id",
             "catalogVersion": "catalog-version"
         }
         
        The object returned will be returned after the following transformation:
             object = fromJson(base64Decode(value))
         
        Parameters:
        encodedString - the encoded content to be converted
        Returns:
        the Object represented by the JSON string.
        See Also:
        for more details about the encoding algorithm.