Class Resource


  • public class Resource
    extends Object
    Resource
    • Constructor Detail

      • Resource

        public Resource()
    • Method Detail

      • balancePlatform

        public Resource balancePlatform​(String balancePlatform)
        The unique identifier of the balance platform.
        Parameters:
        balancePlatform -
        Returns:
        the current Resource instance, allowing for method chaining
      • getBalancePlatform

        public String getBalancePlatform()
        The unique identifier of the balance platform.
        Returns:
        balancePlatform
      • setBalancePlatform

        public void setBalancePlatform​(String balancePlatform)
        The unique identifier of the balance platform.
        Parameters:
        balancePlatform -
      • creationDate

        public Resource creationDate​(OffsetDateTime creationDate)
        The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.
        Parameters:
        creationDate -
        Returns:
        the current Resource instance, allowing for method chaining
      • getCreationDate

        public OffsetDateTime getCreationDate()
        The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.
        Returns:
        creationDate
      • setCreationDate

        public void setCreationDate​(OffsetDateTime creationDate)
        The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.
        Parameters:
        creationDate -
      • id

        public Resource id​(String id)
        The ID of the resource.
        Parameters:
        id -
        Returns:
        the current Resource instance, allowing for method chaining
      • getId

        public String getId()
        The ID of the resource.
        Returns:
        id
      • setId

        public void setId​(String id)
        The ID of the resource.
        Parameters:
        id -
      • equals

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

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

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

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