Record Class License

java.lang.Object
java.lang.Record
dev.demeng.sentinel.client.license.License

public record License(String id, String key, LicenseProduct product, LicenseTier tier, LicenseIssuer issuer, Instant createdAt, @Nullable Instant expiration, int maxServers, int maxIps, @Nullable String note, Map<String,String> connections, List<SubUser> subUsers, Map<String,Instant> servers, Map<String,Instant> ips, Set<String> additionalEntitlements, Set<String> entitlements, @Nullable BlacklistInfo blacklist) extends Record
  • Constructor Details

    • License

      public License(String id, String key, LicenseProduct product, LicenseTier tier, LicenseIssuer issuer, Instant createdAt, @Nullable Instant expiration, int maxServers, int maxIps, @Nullable String note, Map<String,String> connections, List<SubUser> subUsers, Map<String,Instant> servers, Map<String,Instant> ips, Set<String> additionalEntitlements, Set<String> entitlements, @Nullable BlacklistInfo blacklist)
      Creates an instance of a License record class.
      Parameters:
      id - the value for the id record component
      key - the value for the key record component
      product - the value for the product record component
      tier - the value for the tier record component
      issuer - the value for the issuer record component
      createdAt - the value for the createdAt record component
      expiration - the value for the expiration record component
      maxServers - the value for the maxServers record component
      maxIps - the value for the maxIps record component
      note - the value for the note record component
      connections - the value for the connections record component
      subUsers - the value for the subUsers record component
      servers - the value for the servers record component
      ips - the value for the ips record component
      additionalEntitlements - the value for the additionalEntitlements record component
      entitlements - the value for the entitlements record component
      blacklist - the value for the blacklist 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • key

      public String key()
      Returns the value of the key record component.
      Returns:
      the value of the key record component
    • product

      public LicenseProduct product()
      Returns the value of the product record component.
      Returns:
      the value of the product record component
    • tier

      public LicenseTier tier()
      Returns the value of the tier record component.
      Returns:
      the value of the tier record component
    • issuer

      public LicenseIssuer issuer()
      Returns the value of the issuer record component.
      Returns:
      the value of the issuer record component
    • createdAt

      public Instant createdAt()
      Returns the value of the createdAt record component.
      Returns:
      the value of the createdAt record component
    • expiration

      public @Nullable Instant expiration()
      Returns the value of the expiration record component.
      Returns:
      the value of the expiration record component
    • maxServers

      public int maxServers()
      Returns the value of the maxServers record component.
      Returns:
      the value of the maxServers record component
    • maxIps

      public int maxIps()
      Returns the value of the maxIps record component.
      Returns:
      the value of the maxIps record component
    • note

      public @Nullable String note()
      Returns the value of the note record component.
      Returns:
      the value of the note record component
    • connections

      public Map<String,String> connections()
      Returns the value of the connections record component.
      Returns:
      the value of the connections record component
    • subUsers

      public List<SubUser> subUsers()
      Returns the value of the subUsers record component.
      Returns:
      the value of the subUsers record component
    • servers

      public Map<String,Instant> servers()
      Returns the value of the servers record component.
      Returns:
      the value of the servers record component
    • ips

      public Map<String,Instant> ips()
      Returns the value of the ips record component.
      Returns:
      the value of the ips record component
    • additionalEntitlements

      public Set<String> additionalEntitlements()
      Returns the value of the additionalEntitlements record component.
      Returns:
      the value of the additionalEntitlements record component
    • entitlements

      public Set<String> entitlements()
      Returns the value of the entitlements record component.
      Returns:
      the value of the entitlements record component
    • blacklist

      public @Nullable BlacklistInfo blacklist()
      Returns the value of the blacklist record component.
      Returns:
      the value of the blacklist record component