Record Class OpenPermission
java.lang.Object
java.lang.Record
com.chaosguide.iam.vertex.portal.OpenPermission
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.Returns the value of thecreatedAtrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.etag()Returns the value of theetagrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.key()Returns the value of thekeyrecord component.name()Returns the value of thenamerecord component.resource()Returns the value of theresourcerecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupdatedAtrecord component.longversion()Returns the value of theversionrecord component.
-
Constructor Details
-
OpenPermission
public OpenPermission(String id, String resource, String action, String key, String name, String description, String source, long version, String createdAt, String updatedAt, String etag) Creates an instance of aOpenPermissionrecord class.- Parameters:
id- the value for theidrecord componentresource- the value for theresourcerecord componentaction- the value for theactionrecord componentkey- the value for thekeyrecord componentname- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentsource- the value for thesourcerecord componentversion- the value for theversionrecord componentcreatedAt- the value for thecreatedAtrecord componentupdatedAt- the value for theupdatedAtrecord componentetag- the value for theetagrecord component
-
-
Method Details
-
withEtag
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
resource
Returns the value of theresourcerecord component.- Returns:
- the value of the
resourcerecord component
-
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
version
public long version()Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
updatedAt
Returns the value of theupdatedAtrecord component.- Returns:
- the value of the
updatedAtrecord component
-
etag
Returns the value of theetagrecord component.- Returns:
- the value of the
etagrecord component
-