Class BalancePlatform


  • public class BalancePlatform
    extends Object
    BalancePlatform
    • Constructor Detail

      • BalancePlatform

        public BalancePlatform()
    • Method Detail

      • getDescription

        public String getDescription()
        Your description of the balance platform, maximum 300 characters.
        Returns:
        description
      • setDescription

        public void setDescription​(String description)
      • getId

        public String getId()
        The unique identifier of the balance platform.
        Returns:
        id
      • setId

        public void setId​(String id)
      • getStatus

        public String getStatus()
        The status of the balance platform. Possible values: **Active**, **Inactive**, **Closed**, **Suspended**.
        Returns:
        status
      • setStatus

        public void setStatus​(String status)
      • hashCode

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

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Throws:
        IOException
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj,
                                              boolean strictValidation)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        strictValidation - reject (new) fields missing from the specifications
        Throws:
        IOException - if the JSON Object is invalid with respect to BalancePlatform
      • fromJson

        public static BalancePlatform fromJson​(String jsonString)
                                        throws IOException
        Create an instance of BalancePlatform given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of BalancePlatform
        Throws:
        IOException - if the JSON string is invalid with respect to BalancePlatform
      • toJson

        public String toJson()
        Convert an instance of BalancePlatform to an JSON string
        Returns:
        JSON string