Class Role.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class Role.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for Role instances.
-
-
Field Summary
Fields Modifier and Type Field Description public String
id
public int
version
public ChangeDetails
lastChangeDetails
public ChangeDetails.Builder
lastChangeDetailsBuilder
public String
name
public String
groupVisibility
public List<PermissionAssociation>
permissions
-
Method Summary
Modifier and Type Method Description String
getId()
Gets the value of the 'id' field. Role.Builder
setId(String value)
Sets the value of the 'id' field. int
getVersion()
Gets the value of the 'version' field. Role.Builder
setVersion(int value)
Sets the value of the 'version' field. ChangeDetails
getLastChangeDetails()
Gets the value of the 'lastChangeDetails' field. Role.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. Role.Builder
setLastChangeDetailsBuilder(ChangeDetails.Builder value)
Sets the Builder instance for the 'lastChangeDetails' field String
getName()
Gets the value of the 'name' field. Role.Builder
setName(String value)
Sets the value of the 'name' field. String
getGroupVisibility()
Gets the value of the 'groupVisibility' field. Role.Builder
setGroupVisibility(String value)
Sets the value of the 'groupVisibility' field. List<PermissionAssociation>
getPermissions()
Gets the value of the 'permissions' field. Role.Builder
setPermissions(List<PermissionAssociation> value)
Sets the value of the 'permissions' field. boolean
hasId()
Checks whether the 'id' field has been set. Role.Builder
clearId()
Clears the value of the 'id' field. boolean
hasVersion()
Checks whether the 'version' field has been set. Role.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 Role.Builder
clearLastChangeDetails()
Clears the value of the 'lastChangeDetails' field. boolean
hasName()
Checks whether the 'name' field has been set. Role.Builder
clearName()
Clears the value of the 'name' field. boolean
hasGroupVisibility()
Checks whether the 'groupVisibility' field has been set. Role.Builder
clearGroupVisibility()
Clears the value of the 'groupVisibility' field. boolean
hasPermissions()
Checks whether the 'permissions' field has been set. Role.Builder
clearPermissions()
Clears the value of the 'permissions' field. Role
build()
-
-
Method Detail
-
setId
Role.Builder setId(String value)
Sets the value of the 'id' field.
- Parameters:
value
- The value of 'id'.
-
getVersion
int getVersion()
Gets the value of the 'version' field.
-
setVersion
Role.Builder setVersion(int value)
Sets the value of the 'version' field.
- Parameters:
value
- The value of 'version'.
-
getLastChangeDetails
ChangeDetails getLastChangeDetails()
Gets the value of the 'lastChangeDetails' field.
-
setLastChangeDetails
Role.Builder setLastChangeDetails(ChangeDetails value)
Sets the value of the 'lastChangeDetails' field.
- Parameters:
value
- The value of 'lastChangeDetails'.
-
getLastChangeDetailsBuilder
ChangeDetails.Builder getLastChangeDetailsBuilder()
Gets the Builder instance for the 'lastChangeDetails' field and creates one if it doesn't exist yet.
-
setLastChangeDetailsBuilder
Role.Builder setLastChangeDetailsBuilder(ChangeDetails.Builder value)
Sets the Builder instance for the 'lastChangeDetails' field
- Parameters:
value
- The builder instance that must be set.
-
setName
Role.Builder setName(String value)
Sets the value of the 'name' field.
- Parameters:
value
- The value of 'name'.
-
getGroupVisibility
String getGroupVisibility()
Gets the value of the 'groupVisibility' field.
-
setGroupVisibility
Role.Builder setGroupVisibility(String value)
Sets the value of the 'groupVisibility' field.
- Parameters:
value
- The value of 'groupVisibility'.
-
getPermissions
List<PermissionAssociation> getPermissions()
Gets the value of the 'permissions' field. List of a role's permissions ids and when they were last updated.
-
setPermissions
Role.Builder setPermissions(List<PermissionAssociation> value)
Sets the value of the 'permissions' field. List of a role's permissions ids and when they were last updated.
- Parameters:
value
- The value of 'permissions'.
-
hasId
boolean hasId()
Checks whether the 'id' field has been set.
-
clearId
Role.Builder clearId()
Clears the value of the 'id' field.
-
hasVersion
boolean hasVersion()
Checks whether the 'version' field has been set.
-
clearVersion
Role.Builder clearVersion()
Clears the value of the 'version' field.
-
hasLastChangeDetails
boolean hasLastChangeDetails()
Checks whether the 'lastChangeDetails' field has been set.
-
hasLastChangeDetailsBuilder
boolean hasLastChangeDetailsBuilder()
Checks whether the 'lastChangeDetails' field has an active Builder instance
-
clearLastChangeDetails
Role.Builder clearLastChangeDetails()
Clears the value of the 'lastChangeDetails' field.
-
hasName
boolean hasName()
Checks whether the 'name' field has been set.
-
clearName
Role.Builder clearName()
Clears the value of the 'name' field.
-
hasGroupVisibility
boolean hasGroupVisibility()
Checks whether the 'groupVisibility' field has been set.
-
clearGroupVisibility
Role.Builder clearGroupVisibility()
Clears the value of the 'groupVisibility' field.
-
hasPermissions
boolean hasPermissions()
Checks whether the 'permissions' field has been set. List of a role's permissions ids and when they were last updated.
-
clearPermissions
Role.Builder clearPermissions()
Clears the value of the 'permissions' field. List of a role's permissions ids and when they were last updated.
-
-
-
-