Class CreateUserRequest
-
- 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 CreateUserRequest extends SpecificRecordBase implements SpecificRecord
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
CreateUserRequest.Builder
RecordBuilder for CreateUserRequest instances.
-
Field Summary
Fields Modifier and Type Field Description public final static Schema
SCHEMA$
public String
fullName
public String
loginName
public boolean
enabled
public String
initialHashedPassword
public String
saltValue
public Instant
passwordExpiry
public String
parentGroupId
-
Constructor Summary
Constructors Constructor Description CreateUserRequest()
Default constructor. CreateUserRequest(String fullName, String loginName, Boolean enabled, String initialHashedPassword, String saltValue, Instant passwordExpiry, String parentGroupId)
All-args constructor.
-
Method Summary
Modifier and Type Method Description String
getFullName()
Gets the value of the 'fullName' field. void
setFullName(String value)
Sets the value of the 'fullName' field. String
getLoginName()
Gets the value of the 'loginName' field. void
setLoginName(String value)
Sets the value of the 'loginName' field. boolean
getEnabled()
Gets the value of the 'enabled' field. void
setEnabled(boolean value)
Sets the value of the 'enabled' field. String
getInitialHashedPassword()
Gets the value of the 'initialHashedPassword' field. void
setInitialHashedPassword(String value)
Sets the value of the 'initialHashedPassword' field. String
getSaltValue()
Gets the value of the 'saltValue' field. void
setSaltValue(String value)
Sets the value of the 'saltValue' field. Instant
getPasswordExpiry()
Gets the value of the 'passwordExpiry' field. void
setPasswordExpiry(Instant value)
Sets the value of the 'passwordExpiry' field. String
getParentGroupId()
Gets the value of the 'parentGroupId' field. void
setParentGroupId(String value)
Sets the value of the 'parentGroupId' field. static Schema
getClassSchema()
static BinaryMessageEncoder<CreateUserRequest>
getEncoder()
Return the BinaryMessageEncoder instance used by this class. static BinaryMessageDecoder<CreateUserRequest>
getDecoder()
Return the BinaryMessageDecoder instance used by this class. static BinaryMessageDecoder<CreateUserRequest>
createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore. ByteBuffer
toByteBuffer()
Serializes this CreateUserRequest to a ByteBuffer. static CreateUserRequest
fromByteBuffer(ByteBuffer b)
Deserializes a CreateUserRequest from a ByteBuffer. SpecificData
getSpecificData()
Schema
getSchema()
Object
get(int field$)
void
put(int field$, Object value$)
static CreateUserRequest.Builder
newBuilder()
Creates a new CreateUserRequest RecordBuilder. static CreateUserRequest.Builder
newBuilder(CreateUserRequest.Builder other)
Creates a new CreateUserRequest RecordBuilder by copying an existing Builder. static CreateUserRequest.Builder
newBuilder(CreateUserRequest other)
Creates a new CreateUserRequest RecordBuilder by copying an existing CreateUserRequest 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
-
CreateUserRequest
CreateUserRequest()
Default constructor.
-
CreateUserRequest
CreateUserRequest(String fullName, String loginName, Boolean enabled, String initialHashedPassword, String saltValue, Instant passwordExpiry, String parentGroupId)
All-args constructor.- Parameters:
fullName
- The new value for fullNameloginName
- The new value for loginNameenabled
- The new value for enabledinitialHashedPassword
- The new value for initialHashedPasswordsaltValue
- The new value for saltValuepasswordExpiry
- Time ([Instant]) in milliseconds when the user's password expires.parentGroupId
- The new value for parentGroupId
-
-
Method Detail
-
getFullName
String getFullName()
Gets the value of the 'fullName' field.
-
setFullName
void setFullName(String value)
Sets the value of the 'fullName' field.
- Parameters:
value
- the value to set.
-
getLoginName
String getLoginName()
Gets the value of the 'loginName' field.
-
setLoginName
void setLoginName(String value)
Sets the value of the 'loginName' field.
- Parameters:
value
- the value to set.
-
getEnabled
boolean getEnabled()
Gets the value of the 'enabled' field.
-
setEnabled
void setEnabled(boolean value)
Sets the value of the 'enabled' field.
- Parameters:
value
- the value to set.
-
getInitialHashedPassword
String getInitialHashedPassword()
Gets the value of the 'initialHashedPassword' field.
-
setInitialHashedPassword
void setInitialHashedPassword(String value)
Sets the value of the 'initialHashedPassword' field.
- Parameters:
value
- the value to set.
-
getSaltValue
String getSaltValue()
Gets the value of the 'saltValue' field.
-
setSaltValue
void setSaltValue(String value)
Sets the value of the 'saltValue' field.
- Parameters:
value
- the value to set.
-
getPasswordExpiry
Instant getPasswordExpiry()
Gets the value of the 'passwordExpiry' field.
-
setPasswordExpiry
void setPasswordExpiry(Instant value)
Sets the value of the 'passwordExpiry' field. Time ([Instant]) in milliseconds when the user's password expires.
- 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.
- Parameters:
value
- the value to set.
-
getClassSchema
static Schema getClassSchema()
-
getEncoder
static BinaryMessageEncoder<CreateUserRequest> getEncoder()
Return the BinaryMessageEncoder instance used by this class.
-
getDecoder
static BinaryMessageDecoder<CreateUserRequest> getDecoder()
Return the BinaryMessageDecoder instance used by this class.
-
createDecoder
static BinaryMessageDecoder<CreateUserRequest> 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 CreateUserRequest to a ByteBuffer.
-
fromByteBuffer
static CreateUserRequest fromByteBuffer(ByteBuffer b)
Deserializes a CreateUserRequest 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 CreateUserRequest.Builder newBuilder()
Creates a new CreateUserRequest RecordBuilder.
-
newBuilder
static CreateUserRequest.Builder newBuilder(CreateUserRequest.Builder other)
Creates a new CreateUserRequest RecordBuilder by copying an existing Builder.
- Parameters:
other
- The existing builder to copy.
-
newBuilder
static CreateUserRequest.Builder newBuilder(CreateUserRequest other)
Creates a new CreateUserRequest RecordBuilder by copying an existing CreateUserRequest instance.
- Parameters:
other
- The existing instance to copy.
-
writeExternal
void writeExternal(ObjectOutput out)
-
readExternal
void readExternal(ObjectInput in)
-
-
-
-