Record Class AddOrModifyGitlabPermissionMappingRequest
java.lang.Object
java.lang.Record
org.sonarqube.ws.client.gitlab.provisioning.permissions.AddOrModifyGitlabPermissionMappingRequest
public record AddOrModifyGitlabPermissionMappingRequest(String gitlabRole, SonarqubePermissions permissions)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAddOrModifyGitlabPermissionMappingRequest(String gitlabRole, SonarqubePermissions permissions) Creates an instance of aAddOrModifyGitlabPermissionMappingRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thegitlabRolerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepermissionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AddOrModifyGitlabPermissionMappingRequest
public AddOrModifyGitlabPermissionMappingRequest(String gitlabRole, SonarqubePermissions permissions) Creates an instance of aAddOrModifyGitlabPermissionMappingRequestrecord class.- Parameters:
gitlabRole- the value for thegitlabRolerecord componentpermissions- the value for thepermissionsrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
gitlabRole
Returns the value of thegitlabRolerecord component.- Returns:
- the value of the
gitlabRolerecord component
-
permissions
Returns the value of thepermissionsrecord component.- Returns:
- the value of the
permissionsrecord component
-