Class InputDetail


  • public class InputDetail
    extends Object
    InputDetail
    • Constructor Detail

      • InputDetail

        public InputDetail()
    • Method Detail

      • configuration

        public InputDetail configuration​(Map<String,​String> configuration)
        Configuration parameters for the required input.
        Parameters:
        configuration -
        Returns:
        the current InputDetail instance, allowing for method chaining
      • getConfiguration

        public Map<String,​String> getConfiguration()
        Configuration parameters for the required input.
        Returns:
        configuration
      • setConfiguration

        public void setConfiguration​(Map<String,​String> configuration)
        Configuration parameters for the required input.
        Parameters:
        configuration -
      • details

        public InputDetail details​(List<SubInputDetail> details)
        Input details can also be provided recursively.
        Parameters:
        details -
        Returns:
        the current InputDetail instance, allowing for method chaining
      • getDetails

        public List<SubInputDetail> getDetails()
        Input details can also be provided recursively.
        Returns:
        details
      • setDetails

        public void setDetails​(List<SubInputDetail> details)
        Input details can also be provided recursively.
        Parameters:
        details -
      • inputDetails

        @Deprecated
        public InputDetail inputDetails​(List<SubInputDetail> inputDetails)
        Deprecated.
        Input details can also be provided recursively (deprecated).
        Parameters:
        inputDetails -
        Returns:
        the current InputDetail instance, allowing for method chaining
      • getInputDetails

        @Deprecated
        public List<SubInputDetail> getInputDetails()
        Deprecated.
        Input details can also be provided recursively (deprecated).
        Returns:
        inputDetails
      • setInputDetails

        @Deprecated
        public void setInputDetails​(List<SubInputDetail> inputDetails)
        Deprecated.
        Input details can also be provided recursively (deprecated).
        Parameters:
        inputDetails -
      • itemSearchUrl

        public InputDetail itemSearchUrl​(String itemSearchUrl)
        In case of a select, the URL from which to query the items.
        Parameters:
        itemSearchUrl -
        Returns:
        the current InputDetail instance, allowing for method chaining
      • getItemSearchUrl

        public String getItemSearchUrl()
        In case of a select, the URL from which to query the items.
        Returns:
        itemSearchUrl
      • setItemSearchUrl

        public void setItemSearchUrl​(String itemSearchUrl)
        In case of a select, the URL from which to query the items.
        Parameters:
        itemSearchUrl -
      • items

        public InputDetail items​(List<Item> items)
        In case of a select, the items to choose from.
        Parameters:
        items -
        Returns:
        the current InputDetail instance, allowing for method chaining
      • getItems

        public List<Item> getItems()
        In case of a select, the items to choose from.
        Returns:
        items
      • setItems

        public void setItems​(List<Item> items)
        In case of a select, the items to choose from.
        Parameters:
        items -
      • key

        public InputDetail key​(String key)
        The value to provide in the result.
        Parameters:
        key -
        Returns:
        the current InputDetail instance, allowing for method chaining
      • getKey

        public String getKey()
        The value to provide in the result.
        Returns:
        key
      • setKey

        public void setKey​(String key)
        The value to provide in the result.
        Parameters:
        key -
      • optional

        public InputDetail optional​(Boolean optional)
        True if this input value is optional.
        Parameters:
        optional -
        Returns:
        the current InputDetail instance, allowing for method chaining
      • getOptional

        public Boolean getOptional()
        True if this input value is optional.
        Returns:
        optional
      • setOptional

        public void setOptional​(Boolean optional)
        True if this input value is optional.
        Parameters:
        optional -
      • type

        public InputDetail type​(String type)
        The type of the required input.
        Parameters:
        type -
        Returns:
        the current InputDetail instance, allowing for method chaining
      • getType

        public String getType()
        The type of the required input.
        Returns:
        type
      • setType

        public void setType​(String type)
        The type of the required input.
        Parameters:
        type -
      • value

        public InputDetail value​(String value)
        The value can be pre-filled, if available.
        Parameters:
        value -
        Returns:
        the current InputDetail instance, allowing for method chaining
      • getValue

        public String getValue()
        The value can be pre-filled, if available.
        Returns:
        value
      • setValue

        public void setValue​(String value)
        The value can be pre-filled, if available.
        Parameters:
        value -
      • equals

        public boolean equals​(Object o)
        Return true if this InputDetail object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static InputDetail fromJson​(String jsonString)
                                    throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of InputDetail given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of InputDetail
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to InputDetail
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of InputDetail to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException