public static final class NodeUserProperties.Builder
extends java.lang.Object
NodeUserProperties
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
NodeUserProperties . |
Modifier and Type | Method and Description |
---|---|
NodeUserProperties |
build() |
NodeUserProperties.Builder |
setFullName(java.lang.String fullName)
Full name for the user
|
NodeUserProperties.Builder |
setGroupId(java.lang.Long groupId)
Primary group id for the user format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NodeUserProperties.Builder |
setHomeDir(java.lang.String homeDir)
The absolute path of user home directory
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NodeUserProperties.Builder |
setLastPasswordChange(java.lang.Long lastPasswordChange)
Number of days since password was last changed format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NodeUserProperties.Builder |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
NodeUserProperties.Builder |
setLoginShell(java.lang.String loginShell)
The absolute path of login shell
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NodeUserProperties.Builder |
setOldPassword(java.lang.String oldPassword)
Old password for the user (required on PUT if password specified)
|
NodeUserProperties.Builder |
setPassword(java.lang.String password)
Password for the user (optionally specified on PUT, unspecified on GET)
|
NodeUserProperties.Builder |
setPasswordChangeFrequency(java.lang.Long passwordChangeFrequency)
Number of days password is valid before it must be changed.
|
NodeUserProperties.Builder |
setPasswordChangeWarning(java.lang.Long passwordChangeWarning)
Number of days before user receives warning message of password expiration
format: int64
|
NodeUserProperties.Builder |
setPasswordResetRequired(java.lang.Boolean passwordResetRequired)
Boolean value that states if a password reset is required
|
NodeUserProperties.Builder |
setSchema(java.lang.String schema)
Schema for this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NodeUserProperties.Builder |
setSelf(SelfResourceLink self) |
NodeUserProperties.Builder |
setStatus(java.lang.String status)
Possible values are:
NodeUserProperties.STATUS_ACTIVE NodeUserProperties.STATUS_PASSWORD_EXPIRED
NodeUserProperties.STATUS_NOT_ACTIVATED
Status of the user. |
NodeUserProperties.Builder |
setUserid(java.lang.Long userid)
Numeric id for the user format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NodeUserProperties.Builder |
setUsername(java.lang.String username)
User login name (must be \"root\" if userid is 0)
|
public Builder()
NodeUserProperties
.public NodeUserProperties.Builder setLinks(java.util.List<ResourceLink> links)
links
- New value for the property.public NodeUserProperties.Builder setSchema(java.lang.String schema)
schema
- New value for the property.public NodeUserProperties.Builder setSelf(SelfResourceLink self)
self
- New value for the property.public NodeUserProperties.Builder setFullName(java.lang.String fullName)
fullName
- New value for the property.public NodeUserProperties.Builder setGroupId(java.lang.Long groupId)
groupId
- New value for the property.public NodeUserProperties.Builder setHomeDir(java.lang.String homeDir)
homeDir
- New value for the property.public NodeUserProperties.Builder setLastPasswordChange(java.lang.Long lastPasswordChange)
lastPasswordChange
- New value for the property.public NodeUserProperties.Builder setLoginShell(java.lang.String loginShell)
loginShell
- New value for the property.public NodeUserProperties.Builder setOldPassword(java.lang.String oldPassword)
oldPassword
- New value for the property.public NodeUserProperties.Builder setPassword(java.lang.String password)
password
- New value for the property.public NodeUserProperties.Builder setPasswordChangeFrequency(java.lang.Long passwordChangeFrequency)
passwordChangeFrequency
- New value for the property.public NodeUserProperties.Builder setPasswordChangeWarning(java.lang.Long passwordChangeWarning)
passwordChangeWarning
- New value for the property.public NodeUserProperties.Builder setPasswordResetRequired(java.lang.Boolean passwordResetRequired)
passwordResetRequired
- New value for the property.public NodeUserProperties.Builder setStatus(java.lang.String status)
status
- New value for the property.public NodeUserProperties.Builder setUserid(java.lang.Long userid)
userid
- New value for the property.public NodeUserProperties.Builder setUsername(java.lang.String username)
username
- New value for the property.public NodeUserProperties build()