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 Summary
ConstructorsConstructorDescriptionLicense(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 aLicenserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalEntitlementsrecord component.@Nullable BlacklistInfoReturns the value of theblacklistrecord component.Returns the value of theconnectionsrecord component.Returns the value of thecreatedAtrecord component.Returns the value of theentitlementsrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable InstantReturns the value of theexpirationrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.ips()Returns the value of theipsrecord component.issuer()Returns the value of theissuerrecord component.key()Returns the value of thekeyrecord component.intmaxIps()Returns the value of themaxIpsrecord component.intReturns the value of themaxServersrecord component.@Nullable Stringnote()Returns the value of thenoterecord component.product()Returns the value of theproductrecord component.servers()Returns the value of theserversrecord component.subUsers()Returns the value of thesubUsersrecord component.tier()Returns the value of thetierrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aLicenserecord class.- Parameters:
id- the value for theidrecord componentkey- the value for thekeyrecord componentproduct- the value for theproductrecord componenttier- the value for thetierrecord componentissuer- the value for theissuerrecord componentcreatedAt- the value for thecreatedAtrecord componentexpiration- the value for theexpirationrecord componentmaxServers- the value for themaxServersrecord componentmaxIps- the value for themaxIpsrecord componentnote- the value for thenoterecord componentconnections- the value for theconnectionsrecord componentsubUsers- the value for thesubUsersrecord componentservers- the value for theserversrecord componentips- the value for theipsrecord componentadditionalEntitlements- the value for theadditionalEntitlementsrecord componententitlements- the value for theentitlementsrecord componentblacklist- the value for theblacklistrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
product
Returns the value of theproductrecord component.- Returns:
- the value of the
productrecord component
-
tier
Returns the value of thetierrecord component.- Returns:
- the value of the
tierrecord component
-
issuer
Returns the value of theissuerrecord component.- Returns:
- the value of the
issuerrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
expiration
Returns the value of theexpirationrecord component.- Returns:
- the value of the
expirationrecord component
-
maxServers
public int maxServers()Returns the value of themaxServersrecord component.- Returns:
- the value of the
maxServersrecord component
-
maxIps
public int maxIps()Returns the value of themaxIpsrecord component.- Returns:
- the value of the
maxIpsrecord component
-
note
Returns the value of thenoterecord component.- Returns:
- the value of the
noterecord component
-
connections
Returns the value of theconnectionsrecord component.- Returns:
- the value of the
connectionsrecord component
-
subUsers
Returns the value of thesubUsersrecord component.- Returns:
- the value of the
subUsersrecord component
-
servers
Returns the value of theserversrecord component.- Returns:
- the value of the
serversrecord component
-
ips
Returns the value of theipsrecord component.- Returns:
- the value of the
ipsrecord component
-
additionalEntitlements
Returns the value of theadditionalEntitlementsrecord component.- Returns:
- the value of the
additionalEntitlementsrecord component
-
entitlements
Returns the value of theentitlementsrecord component.- Returns:
- the value of the
entitlementsrecord component
-
blacklist
Returns the value of theblacklistrecord component.- Returns:
- the value of the
blacklistrecord component
-