Record Class PermissionCheckResponse
java.lang.Object
java.lang.Record
com.chaosguide.iam.vertex.client.dto.PermissionCheckResponse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanallowed()Returns the value of theallowedrecord component.Returns the value of theapplicationIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theorganizationIdrecord component.Returns the value of thepermissionrecord component.roles()Returns the value of therolesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PermissionCheckResponse
public PermissionCheckResponse(String applicationId, String organizationId, String permission, boolean allowed, List<String> roles) Creates an instance of aPermissionCheckResponserecord class.- Parameters:
applicationId- the value for theapplicationIdrecord componentorganizationId- the value for theorganizationIdrecord componentpermission- the value for thepermissionrecord componentallowed- the value for theallowedrecord componentroles- the value for therolesrecord component
-
-
Method Details
-
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. -
applicationId
Returns the value of theapplicationIdrecord component.- Returns:
- the value of the
applicationIdrecord component
-
organizationId
Returns the value of theorganizationIdrecord component.- Returns:
- the value of the
organizationIdrecord component
-
permission
Returns the value of thepermissionrecord component.- Returns:
- the value of the
permissionrecord component
-
allowed
public boolean allowed()Returns the value of theallowedrecord component.- Returns:
- the value of the
allowedrecord component
-
roles
-