Class Group
-
- All Implemented Interfaces:
-
java.io.Externalizable
,java.io.Serializable
,java.lang.Comparable
,org.apache.avro.generic.GenericContainer
,org.apache.avro.generic.GenericRecord
,org.apache.avro.generic.IndexedRecord
,org.apache.avro.specific.SpecificRecord
public class Group extends SpecificRecordBase implements SpecificRecord
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
Group.Builder
RecordBuilder for Group instances.
-
Field Summary
Fields Modifier and Type Field Description public final static Schema
SCHEMA$
public String
id
public int
version
public ChangeDetails
lastChangeDetails
public String
name
public String
parentGroupId
public List<Property>
properties
public List<RoleAssociation>
roleAssociations
-
Method Summary
Modifier and Type Method Description String
getId()
Gets the value of the 'id' field. void
setId(String value)
Sets the value of the 'id' field. int
getVersion()
Gets the value of the 'version' field. void
setVersion(int value)
Sets the value of the 'version' field. ChangeDetails
getLastChangeDetails()
Gets the value of the 'lastChangeDetails' field. void
setLastChangeDetails(ChangeDetails value)
Sets the value of the 'lastChangeDetails' field. String
getName()
Gets the value of the 'name' field. void
setName(String value)
Sets the value of the 'name' field. String
getParentGroupId()
Gets the value of the 'parentGroupId' field. void
setParentGroupId(String value)
Sets the value of the 'parentGroupId' field. List<Property>
getProperties()
Gets the value of the 'properties' field. void
setProperties(List<Property> value)
Sets the value of the 'properties' field. List<RoleAssociation>
getRoleAssociations()
Gets the value of the 'roleAssociations' field. void
setRoleAssociations(List<RoleAssociation> value)
Sets the value of the 'roleAssociations' field. static Schema
getClassSchema()
static BinaryMessageEncoder<Group>
getEncoder()
Return the BinaryMessageEncoder instance used by this class. static BinaryMessageDecoder<Group>
getDecoder()
Return the BinaryMessageDecoder instance used by this class. static BinaryMessageDecoder<Group>
createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore. ByteBuffer
toByteBuffer()
Serializes this Group to a ByteBuffer. static Group
fromByteBuffer(ByteBuffer b)
Deserializes a Group from a ByteBuffer. SpecificData
getSpecificData()
Schema
getSchema()
Object
get(int field$)
void
put(int field$, Object value$)
static Group.Builder
newBuilder()
Creates a new Group RecordBuilder. static Group.Builder
newBuilder(Group.Builder other)
Creates a new Group RecordBuilder by copying an existing Builder. static Group.Builder
newBuilder(Group other)
Creates a new Group RecordBuilder by copying an existing Group instance. void
writeExternal(ObjectOutput out)
void
readExternal(ObjectInput in)
-
Methods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, customDecode, customEncode, equals, getConversion, hashCode, toString
-
Methods inherited from class org.apache.avro.generic.GenericRecord
hasField
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
Group
Group()
Default constructor.
-
Group
Group(String id, Integer version, ChangeDetails lastChangeDetails, String name, String parentGroupId, List<Property> properties, List<RoleAssociation> roleAssociations)
All-args constructor.- Parameters:
id
- The new value for idversion
- The new value for versionlastChangeDetails
- The new value for lastChangeDetailsname
- The new value for nameparentGroupId
- Optional parent group associated with this group.properties
- List of group properties.roleAssociations
- List of roles associated with this Group.
-
-
Method Detail
-
setId
void setId(String value)
Sets the value of the 'id' field.
- Parameters:
value
- the value to set.
-
getVersion
int getVersion()
Gets the value of the 'version' field.
-
setVersion
void setVersion(int value)
Sets the value of the 'version' field.
- Parameters:
value
- the value to set.
-
getLastChangeDetails
ChangeDetails getLastChangeDetails()
Gets the value of the 'lastChangeDetails' field.
-
setLastChangeDetails
void setLastChangeDetails(ChangeDetails value)
Sets the value of the 'lastChangeDetails' field.
- Parameters:
value
- the value to set.
-
setName
void setName(String value)
Sets the value of the 'name' field.
- Parameters:
value
- the value to set.
-
getParentGroupId
String getParentGroupId()
Gets the value of the 'parentGroupId' field.
-
setParentGroupId
void setParentGroupId(String value)
Sets the value of the 'parentGroupId' field. Optional parent group associated with this group.
- Parameters:
value
- the value to set.
-
getProperties
List<Property> getProperties()
Gets the value of the 'properties' field.
-
setProperties
void setProperties(List<Property> value)
Sets the value of the 'properties' field. List of group properties.
- Parameters:
value
- the value to set.
-
getRoleAssociations
List<RoleAssociation> getRoleAssociations()
Gets the value of the 'roleAssociations' field.
-
setRoleAssociations
void setRoleAssociations(List<RoleAssociation> value)
Sets the value of the 'roleAssociations' field. List of roles associated with this Group.
- Parameters:
value
- the value to set.
-
getClassSchema
static Schema getClassSchema()
-
getEncoder
static BinaryMessageEncoder<Group> getEncoder()
Return the BinaryMessageEncoder instance used by this class.
-
getDecoder
static BinaryMessageDecoder<Group> getDecoder()
Return the BinaryMessageDecoder instance used by this class.
-
createDecoder
static BinaryMessageDecoder<Group> createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore.
- Parameters:
resolver
- a SchemaStore used to find schemas by fingerprint
-
toByteBuffer
ByteBuffer toByteBuffer()
Serializes this Group to a ByteBuffer.
-
fromByteBuffer
static Group fromByteBuffer(ByteBuffer b)
Deserializes a Group from a ByteBuffer.
- Parameters:
b
- a byte buffer holding serialized data for an instance of this class
-
getSpecificData
SpecificData getSpecificData()
-
getSchema
Schema getSchema()
-
newBuilder
static Group.Builder newBuilder()
Creates a new Group RecordBuilder.
-
newBuilder
static Group.Builder newBuilder(Group.Builder other)
Creates a new Group RecordBuilder by copying an existing Builder.
- Parameters:
other
- The existing builder to copy.
-
newBuilder
static Group.Builder newBuilder(Group other)
Creates a new Group RecordBuilder by copying an existing Group instance.
- Parameters:
other
- The existing instance to copy.
-
writeExternal
void writeExternal(ObjectOutput out)
-
readExternal
void readExternal(ObjectInput in)
-
-
-
-