Record Class SimpleDataSourceInformation

java.lang.Object
java.lang.Record
energy.eddie.core.dtos.SimpleDataSourceInformation
All Implemented Interfaces:
DataSourceInformation

public record SimpleDataSourceInformation(String countryCode, String regionConnectorId, String meteredDataAdministratorId, String permissionAdministratorId) extends Record implements DataSourceInformation
  • Constructor Details

    • SimpleDataSourceInformation

      public SimpleDataSourceInformation(String countryCode, String regionConnectorId, String meteredDataAdministratorId, String permissionAdministratorId)
      Creates an instance of a SimpleDataSourceInformation record class.
      Parameters:
      countryCode - the value for the countryCode record component
      regionConnectorId - the value for the regionConnectorId record component
      meteredDataAdministratorId - the value for the meteredDataAdministratorId record component
      permissionAdministratorId - the value for the permissionAdministratorId record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • countryCode

      public String countryCode()
      Returns the value of the countryCode record component.
      Specified by:
      countryCode in interface DataSourceInformation
      Returns:
      the value of the countryCode record component
    • regionConnectorId

      public String regionConnectorId()
      Returns the value of the regionConnectorId record component.
      Specified by:
      regionConnectorId in interface DataSourceInformation
      Returns:
      the value of the regionConnectorId record component
    • meteredDataAdministratorId

      public String meteredDataAdministratorId()
      Returns the value of the meteredDataAdministratorId record component.
      Specified by:
      meteredDataAdministratorId in interface DataSourceInformation
      Returns:
      the value of the meteredDataAdministratorId record component
    • permissionAdministratorId

      public String permissionAdministratorId()
      Returns the value of the permissionAdministratorId record component.
      Specified by:
      permissionAdministratorId in interface DataSourceInformation
      Returns:
      the value of the permissionAdministratorId record component