Class ExternalReason


  • public class ExternalReason
    extends Object
    ExternalReason
    • Constructor Detail

      • ExternalReason

        public ExternalReason()
    • Method Detail

      • getCode

        public String getCode()
        The reason code.
        Returns:
        code
      • setCode

        public void setCode​(String code)
        The reason code.
        Parameters:
        code -
      • getDescription

        public String getDescription()
        The description of the reason code.
        Returns:
        description
      • setDescription

        public void setDescription​(String description)
        The description of the reason code.
        Parameters:
        description -
      • getNamespace

        public String getNamespace()
        The namespace for the reason code.
        Returns:
        namespace
      • setNamespace

        public void setNamespace​(String namespace)
        The namespace for the reason code.
        Parameters:
        namespace -
      • equals

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

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

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

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