Class Permission.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class Permission.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for Permission instances.
-
-
Field Summary
Fields Modifier and Type Field Description public String
id
public int
version
public ChangeDetails
lastChangeDetails
public ChangeDetails.Builder
lastChangeDetailsBuilder
public String
virtualNode
public PermissionType
permissionType
public String
permissionString
public String
groupVisibility
-
Method Summary
Modifier and Type Method Description String
getId()
Gets the value of the 'id' field. Permission.Builder
setId(String value)
Sets the value of the 'id' field. int
getVersion()
Gets the value of the 'version' field. Permission.Builder
setVersion(int value)
Sets the value of the 'version' field. ChangeDetails
getLastChangeDetails()
Gets the value of the 'lastChangeDetails' field. Permission.Builder
setLastChangeDetails(ChangeDetails value)
Sets the value of the 'lastChangeDetails' field. ChangeDetails.Builder
getLastChangeDetailsBuilder()
Gets the Builder instance for the 'lastChangeDetails' field and creates one if it doesn't exist yet. Permission.Builder
setLastChangeDetailsBuilder(ChangeDetails.Builder value)
Sets the Builder instance for the 'lastChangeDetails' field String
getVirtualNode()
Gets the value of the 'virtualNode' field. Permission.Builder
setVirtualNode(String value)
Sets the value of the 'virtualNode' field. PermissionType
getPermissionType()
Gets the value of the 'permissionType' field. Permission.Builder
setPermissionType(PermissionType value)
Sets the value of the 'permissionType' field. String
getPermissionString()
Gets the value of the 'permissionString' field. Permission.Builder
setPermissionString(String value)
Sets the value of the 'permissionString' field. String
getGroupVisibility()
Gets the value of the 'groupVisibility' field. Permission.Builder
setGroupVisibility(String value)
Sets the value of the 'groupVisibility' field. boolean
hasId()
Checks whether the 'id' field has been set. Permission.Builder
clearId()
Clears the value of the 'id' field. boolean
hasVersion()
Checks whether the 'version' field has been set. Permission.Builder
clearVersion()
Clears the value of the 'version' field. boolean
hasLastChangeDetails()
Checks whether the 'lastChangeDetails' field has been set. boolean
hasLastChangeDetailsBuilder()
Checks whether the 'lastChangeDetails' field has an active Builder instance Permission.Builder
clearLastChangeDetails()
Clears the value of the 'lastChangeDetails' field. boolean
hasVirtualNode()
Checks whether the 'virtualNode' field has been set. Permission.Builder
clearVirtualNode()
Clears the value of the 'virtualNode' field. boolean
hasPermissionType()
Checks whether the 'permissionType' field has been set. Permission.Builder
clearPermissionType()
Clears the value of the 'permissionType' field. boolean
hasPermissionString()
Checks whether the 'permissionString' field has been set. Permission.Builder
clearPermissionString()
Clears the value of the 'permissionString' field. boolean
hasGroupVisibility()
Checks whether the 'groupVisibility' field has been set. Permission.Builder
clearGroupVisibility()
Clears the value of the 'groupVisibility' field. Permission
build()
-
-
Method Detail
-
setId
Permission.Builder setId(String value)
Sets the value of the 'id' field.
- Parameters:
value
- The value of 'id'.- Returns:
This builder.
-
getVersion
int getVersion()
Gets the value of the 'version' field.
- Returns:
The value.
-
setVersion
Permission.Builder setVersion(int value)
Sets the value of the 'version' field.
- Parameters:
value
- The value of 'version'.- Returns:
This builder.
-
getLastChangeDetails
ChangeDetails getLastChangeDetails()
Gets the value of the 'lastChangeDetails' field.
- Returns:
The value.
-
setLastChangeDetails
Permission.Builder setLastChangeDetails(ChangeDetails value)
Sets the value of the 'lastChangeDetails' field.
- Parameters:
value
- The value of 'lastChangeDetails'.- Returns:
This builder.
-
getLastChangeDetailsBuilder
ChangeDetails.Builder getLastChangeDetailsBuilder()
Gets the Builder instance for the 'lastChangeDetails' field and creates one if it doesn't exist yet.
- Returns:
This builder.
-
setLastChangeDetailsBuilder
Permission.Builder setLastChangeDetailsBuilder(ChangeDetails.Builder value)
Sets the Builder instance for the 'lastChangeDetails' field
- Parameters:
value
- The builder instance that must be set.- Returns:
This builder.
-
getVirtualNode
String getVirtualNode()
Gets the value of the 'virtualNode' field.
- Returns:
The value.
-
setVirtualNode
Permission.Builder setVirtualNode(String value)
Sets the value of the 'virtualNode' field.
- Parameters:
value
- The value of 'virtualNode'.- Returns:
This builder.
-
getPermissionType
PermissionType getPermissionType()
Gets the value of the 'permissionType' field.
- Returns:
The value.
-
setPermissionType
Permission.Builder setPermissionType(PermissionType value)
Sets the value of the 'permissionType' field.
- Parameters:
value
- The value of 'permissionType'.- Returns:
This builder.
-
getPermissionString
String getPermissionString()
Gets the value of the 'permissionString' field.
- Returns:
The value.
-
setPermissionString
Permission.Builder setPermissionString(String value)
Sets the value of the 'permissionString' field.
- Parameters:
value
- The value of 'permissionString'.- Returns:
This builder.
-
getGroupVisibility
String getGroupVisibility()
Gets the value of the 'groupVisibility' field.
- Returns:
The value.
-
setGroupVisibility
Permission.Builder setGroupVisibility(String value)
Sets the value of the 'groupVisibility' field.
- Parameters:
value
- The value of 'groupVisibility'.- Returns:
This builder.
-
hasId
boolean hasId()
Checks whether the 'id' field has been set.
- Returns:
True if the 'id' field has been set, false otherwise.
-
clearId
Permission.Builder clearId()
Clears the value of the 'id' field.
- Returns:
This builder.
-
hasVersion
boolean hasVersion()
Checks whether the 'version' field has been set.
- Returns:
True if the 'version' field has been set, false otherwise.
-
clearVersion
Permission.Builder clearVersion()
Clears the value of the 'version' field.
- Returns:
This builder.
-
hasLastChangeDetails
boolean hasLastChangeDetails()
Checks whether the 'lastChangeDetails' field has been set.
- Returns:
True if the 'lastChangeDetails' field has been set, false otherwise.
-
hasLastChangeDetailsBuilder
boolean hasLastChangeDetailsBuilder()
Checks whether the 'lastChangeDetails' field has an active Builder instance
- Returns:
True if the 'lastChangeDetails' field has an active Builder instance
-
clearLastChangeDetails
Permission.Builder clearLastChangeDetails()
Clears the value of the 'lastChangeDetails' field.
- Returns:
This builder.
-
hasVirtualNode
boolean hasVirtualNode()
Checks whether the 'virtualNode' field has been set.
- Returns:
True if the 'virtualNode' field has been set, false otherwise.
-
clearVirtualNode
Permission.Builder clearVirtualNode()
Clears the value of the 'virtualNode' field.
- Returns:
This builder.
-
hasPermissionType
boolean hasPermissionType()
Checks whether the 'permissionType' field has been set.
- Returns:
True if the 'permissionType' field has been set, false otherwise.
-
clearPermissionType
Permission.Builder clearPermissionType()
Clears the value of the 'permissionType' field.
- Returns:
This builder.
-
hasPermissionString
boolean hasPermissionString()
Checks whether the 'permissionString' field has been set.
- Returns:
True if the 'permissionString' field has been set, false otherwise.
-
clearPermissionString
Permission.Builder clearPermissionString()
Clears the value of the 'permissionString' field.
- Returns:
This builder.
-
hasGroupVisibility
boolean hasGroupVisibility()
Checks whether the 'groupVisibility' field has been set.
- Returns:
True if the 'groupVisibility' field has been set, false otherwise.
-
clearGroupVisibility
Permission.Builder clearGroupVisibility()
Clears the value of the 'groupVisibility' field.
- Returns:
This builder.
-
build
Permission build()
-
-
-
-