Package com.gpudb.protocol
Class HasRoleResponse
java.lang.Object
com.gpudb.protocol.HasRoleResponse
All Implemented Interfaces:
org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecordA set of results returned by
GPUdb.hasRole.Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA set of string constants for theHasRoleResponseparameterhasRole.static final classA set of string constants for theHasRoleResponseparameterinfo.Method Summary
Modifier and TypeMethodDescriptionbooleanget(int index) This method supports the Avro framework and is not intended to be called directly by the user.static org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.booleanIndicates whether the specified user has membership in the specified targetrole.getInfo()Additional information.Value ofprincipal.getRole()rolefor which membership is being checked.org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.inthashCode()voidThis method supports the Avro framework and is not intended to be called directly by the user.setHasRole(boolean hasRole) Indicates whether the specified user has membership in the specified targetrole.Additional information.setPrincipal(String principal) Value ofprincipal.rolefor which membership is being checked.toString()
Method Details
setPrincipal
Value ofprincipal.Parameters:principal- The new value forprincipal.Returns:thisto mimic the builder pattern.setRole
rolefor which membership is being checked.Parameters:role- The new value forrole.Returns:thisto mimic the builder pattern.getHasRole
public boolean getHasRole()Indicates whether the specified user has membership in the specified targetrole. Supported values:true: User has membership in the role.false: User does not have membership in the role.
Returns:The current value ofhasRole.setHasRole
Indicates whether the specified user has membership in the specified targetrole. Supported values:true: User has membership in the role.false: User does not have membership in the role.
Parameters:hasRole- The new value forhasRole.Returns:thisto mimic the builder pattern.