BatchNodeUserCreateParameters Class
- java.
lang. Object - com.
azure. compute. batch. models. BatchNodeUserCreateParameters
- com.
Implements
public final class BatchNodeUserCreateParameters
implements JsonSerializable<BatchNodeUserCreateParameters>
Parameters for creating a user account for RDP or SSH access on an Azure Batch Compute Node.
Constructor Summary
| Constructor | Description |
|---|---|
| BatchNodeUserCreateParameters(String name) |
Creates an instance of Batch |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Batch |
fromJson(JsonReader jsonReader)
Reads an instance of Batch |
|
Offset |
getExpiryTime()
Get the expiry |
| String |
getName()
Get the name property: The user name of the Account. |
| String |
getPassword()
Get the password property: The password of the Account. |
| String |
getSshPublicKey()
Get the ssh |
| Boolean |
isAdmin()
Get the is |
|
Batch |
setExpiryTime(OffsetDateTime expiryTime)
Set the expiry |
|
Batch |
setIsAdmin(Boolean isAdmin)
Set the is |
|
Batch |
setPassword(String password)
Set the password property: The password of the Account. |
|
Batch |
setSshPublicKey(String sshPublicKey)
Set the ssh |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
BatchNodeUserCreateParameters
public BatchNodeUserCreateParameters(String name)
Creates an instance of BatchNodeUserCreateParameters class.
Parameters:
Method Details
fromJson
public static BatchNodeUserCreateParameters fromJson(JsonReader jsonReader)
Reads an instance of BatchNodeUserCreateParameters from the JsonReader.
Parameters:
Returns:
Throws:
getExpiryTime
public OffsetDateTime getExpiryTime()
Get the expiryTime property: The time at which the Account should expire. If omitted, the default is 1 day from the current time. For Linux Compute Nodes, the expiryTime has a precision up to a day.
Returns:
getName
public String getName()
Get the name property: The user name of the Account.
Returns:
getPassword
public String getPassword()
Get the password property: The password of the Account. The password is required for Windows Compute Nodes. For Linux Compute Nodes, the password can optionally be specified along with the sshPublicKey property.
Returns:
getSshPublicKey
public String getSshPublicKey()
Get the sshPublicKey property: The SSH public key that can be used for remote login to the Compute Node. The public key should be compatible with OpenSSH encoding and should be base 64 encoded. This property can be specified only for Linux Compute Nodes. If this is specified for a Windows Compute Node, then the Batch service rejects the request; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).
Returns:
isAdmin
public Boolean isAdmin()
Get the isAdmin property: Whether the Account should be an administrator on the Compute Node. The default value is false.
Returns:
setExpiryTime
public BatchNodeUserCreateParameters setExpiryTime(OffsetDateTime expiryTime)
Set the expiryTime property: The time at which the Account should expire. If omitted, the default is 1 day from the current time. For Linux Compute Nodes, the expiryTime has a precision up to a day.
Parameters:
Returns:
setIsAdmin
public BatchNodeUserCreateParameters setIsAdmin(Boolean isAdmin)
Set the isAdmin property: Whether the Account should be an administrator on the Compute Node. The default value is false.
Parameters:
Returns:
setPassword
public BatchNodeUserCreateParameters setPassword(String password)
Set the password property: The password of the Account. The password is required for Windows Compute Nodes. For Linux Compute Nodes, the password can optionally be specified along with the sshPublicKey property.
Parameters:
Returns:
setSshPublicKey
public BatchNodeUserCreateParameters setSshPublicKey(String sshPublicKey)
Set the sshPublicKey property: The SSH public key that can be used for remote login to the Compute Node. The public key should be compatible with OpenSSH encoding and should be base 64 encoded. This property can be specified only for Linux Compute Nodes. If this is specified for a Windows Compute Node, then the Batch service rejects the request; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).
Parameters:
Returns: