public class GrantRevokeRoleRequest extends Object implements org.apache.thrift.TBase<GrantRevokeRoleRequest,GrantRevokeRoleRequest._Fields>, Serializable, Cloneable
| Modifier and Type | Class and Description |
|---|---|
static class |
GrantRevokeRoleRequest._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
| Modifier and Type | Field and Description |
|---|---|
static Map<GrantRevokeRoleRequest._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
| Constructor and Description |
|---|
GrantRevokeRoleRequest() |
GrantRevokeRoleRequest(GrantRevokeRoleRequest other)
Performs a deep copy on other.
|
GrantRevokeRoleRequest(GrantRevokeType requestType,
String roleName,
String principalName,
PrincipalType principalType) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
int |
compareTo(GrantRevokeRoleRequest other) |
GrantRevokeRoleRequest |
deepCopy() |
boolean |
equals(GrantRevokeRoleRequest that) |
boolean |
equals(Object that) |
GrantRevokeRoleRequest._Fields |
fieldForId(int fieldId) |
Object |
getFieldValue(GrantRevokeRoleRequest._Fields field) |
String |
getGrantor() |
PrincipalType |
getGrantorType() |
String |
getPrincipalName() |
PrincipalType |
getPrincipalType() |
GrantRevokeType |
getRequestType() |
String |
getRoleName() |
int |
hashCode() |
boolean |
isGrantOption() |
boolean |
isSet(GrantRevokeRoleRequest._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetGrantOption()
Returns true if field grantOption is set (has been assigned a value) and false otherwise
|
boolean |
isSetGrantor()
Returns true if field grantor is set (has been assigned a value) and false otherwise
|
boolean |
isSetGrantorType()
Returns true if field grantorType is set (has been assigned a value) and false otherwise
|
boolean |
isSetPrincipalName()
Returns true if field principalName is set (has been assigned a value) and false otherwise
|
boolean |
isSetPrincipalType()
Returns true if field principalType is set (has been assigned a value) and false otherwise
|
boolean |
isSetRequestType()
Returns true if field requestType is set (has been assigned a value) and false otherwise
|
boolean |
isSetRoleName()
Returns true if field roleName is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setFieldValue(GrantRevokeRoleRequest._Fields field,
Object value) |
void |
setGrantOption(boolean grantOption) |
void |
setGrantOptionIsSet(boolean value) |
void |
setGrantor(String grantor) |
void |
setGrantorIsSet(boolean value) |
void |
setGrantorType(PrincipalType grantorType) |
void |
setGrantorTypeIsSet(boolean value) |
void |
setPrincipalName(String principalName) |
void |
setPrincipalNameIsSet(boolean value) |
void |
setPrincipalType(PrincipalType principalType) |
void |
setPrincipalTypeIsSet(boolean value) |
void |
setRequestType(GrantRevokeType requestType) |
void |
setRequestTypeIsSet(boolean value) |
void |
setRoleName(String roleName) |
void |
setRoleNameIsSet(boolean value) |
String |
toString() |
void |
unsetGrantOption() |
void |
unsetGrantor() |
void |
unsetGrantorType() |
void |
unsetPrincipalName() |
void |
unsetPrincipalType() |
void |
unsetRequestType() |
void |
unsetRoleName() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<GrantRevokeRoleRequest._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public GrantRevokeRoleRequest()
public GrantRevokeRoleRequest(GrantRevokeType requestType, String roleName, String principalName, PrincipalType principalType)
public GrantRevokeRoleRequest(GrantRevokeRoleRequest other)
public GrantRevokeRoleRequest deepCopy()
deepCopy in interface org.apache.thrift.TBase<GrantRevokeRoleRequest,GrantRevokeRoleRequest._Fields>public void clear()
clear in interface org.apache.thrift.TBase<GrantRevokeRoleRequest,GrantRevokeRoleRequest._Fields>public GrantRevokeType getRequestType()
GrantRevokeTypepublic void setRequestType(GrantRevokeType requestType)
GrantRevokeTypepublic void unsetRequestType()
public boolean isSetRequestType()
public void setRequestTypeIsSet(boolean value)
public String getRoleName()
public void setRoleName(String roleName)
public void unsetRoleName()
public boolean isSetRoleName()
public void setRoleNameIsSet(boolean value)
public String getPrincipalName()
public void setPrincipalName(String principalName)
public void unsetPrincipalName()
public boolean isSetPrincipalName()
public void setPrincipalNameIsSet(boolean value)
public PrincipalType getPrincipalType()
PrincipalTypepublic void setPrincipalType(PrincipalType principalType)
PrincipalTypepublic void unsetPrincipalType()
public boolean isSetPrincipalType()
public void setPrincipalTypeIsSet(boolean value)
public String getGrantor()
public void setGrantor(String grantor)
public void unsetGrantor()
public boolean isSetGrantor()
public void setGrantorIsSet(boolean value)
public PrincipalType getGrantorType()
PrincipalTypepublic void setGrantorType(PrincipalType grantorType)
PrincipalTypepublic void unsetGrantorType()
public boolean isSetGrantorType()
public void setGrantorTypeIsSet(boolean value)
public boolean isGrantOption()
public void setGrantOption(boolean grantOption)
public void unsetGrantOption()
public boolean isSetGrantOption()
public void setGrantOptionIsSet(boolean value)
public void setFieldValue(GrantRevokeRoleRequest._Fields field, Object value)
setFieldValue in interface org.apache.thrift.TBase<GrantRevokeRoleRequest,GrantRevokeRoleRequest._Fields>public Object getFieldValue(GrantRevokeRoleRequest._Fields field)
getFieldValue in interface org.apache.thrift.TBase<GrantRevokeRoleRequest,GrantRevokeRoleRequest._Fields>public boolean isSet(GrantRevokeRoleRequest._Fields field)
isSet in interface org.apache.thrift.TBase<GrantRevokeRoleRequest,GrantRevokeRoleRequest._Fields>public boolean equals(GrantRevokeRoleRequest that)
public int compareTo(GrantRevokeRoleRequest other)
compareTo in interface Comparable<GrantRevokeRoleRequest>public GrantRevokeRoleRequest._Fields fieldForId(int fieldId)
fieldForId in interface org.apache.thrift.TBase<GrantRevokeRoleRequest,GrantRevokeRoleRequest._Fields>public void read(org.apache.thrift.protocol.TProtocol iprot)
throws org.apache.thrift.TException
read in interface org.apache.thrift.TBase<GrantRevokeRoleRequest,GrantRevokeRoleRequest._Fields>org.apache.thrift.TExceptionpublic void write(org.apache.thrift.protocol.TProtocol oprot)
throws org.apache.thrift.TException
write in interface org.apache.thrift.TBase<GrantRevokeRoleRequest,GrantRevokeRoleRequest._Fields>org.apache.thrift.TExceptionpublic void validate()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.