Class LocalUserInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.storage.fluent.models.LocalUserInner
-
public final class LocalUserInner extends com.azure.core.management.ProxyResourceThe local user associated with the storage accounts.
-
-
Constructor Summary
Constructors Constructor Description LocalUserInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanhasSharedKey()Get the hasSharedKey property: Indicates whether shared key exists.BooleanhasSshKey()Get the hasSshKey property: Indicates whether ssh key exists.BooleanhasSshPassword()Get the hasSshPassword property: Indicates whether ssh password exists.StringhomeDirectory()Get the homeDirectory property: Optional, local user home directory.List<PermissionScope>permissionScopes()Get the permissionScopes property: The permission scopes of the local user.Stringsid()Get the sid property: A unique Security Identifier that is generated by the server.List<SshPublicKey>sshAuthorizedKeys()Get the sshAuthorizedKeys property: Optional, local user ssh authorized keys for SFTP.com.azure.core.management.SystemDatasystemData()Get the systemData property: Metadata pertaining to creation and last modification of the resource.voidvalidate()Validates the instance.LocalUserInnerwithHasSharedKey(Boolean hasSharedKey)Set the hasSharedKey property: Indicates whether shared key exists.LocalUserInnerwithHasSshKey(Boolean hasSshKey)Set the hasSshKey property: Indicates whether ssh key exists.LocalUserInnerwithHasSshPassword(Boolean hasSshPassword)Set the hasSshPassword property: Indicates whether ssh password exists.LocalUserInnerwithHomeDirectory(String homeDirectory)Set the homeDirectory property: Optional, local user home directory.LocalUserInnerwithPermissionScopes(List<PermissionScope> permissionScopes)Set the permissionScopes property: The permission scopes of the local user.LocalUserInnerwithSshAuthorizedKeys(List<SshPublicKey> sshAuthorizedKeys)Set the sshAuthorizedKeys property: Optional, local user ssh authorized keys for SFTP.
-
-
-
Method Detail
-
systemData
public com.azure.core.management.SystemData systemData()
Get the systemData property: Metadata pertaining to creation and last modification of the resource.- Returns:
- the systemData value.
-
permissionScopes
public List<PermissionScope> permissionScopes()
Get the permissionScopes property: The permission scopes of the local user.- Returns:
- the permissionScopes value.
-
withPermissionScopes
public LocalUserInner withPermissionScopes(List<PermissionScope> permissionScopes)
Set the permissionScopes property: The permission scopes of the local user.- Parameters:
permissionScopes- the permissionScopes value to set.- Returns:
- the LocalUserInner object itself.
-
homeDirectory
public String homeDirectory()
Get the homeDirectory property: Optional, local user home directory.- Returns:
- the homeDirectory value.
-
withHomeDirectory
public LocalUserInner withHomeDirectory(String homeDirectory)
Set the homeDirectory property: Optional, local user home directory.- Parameters:
homeDirectory- the homeDirectory value to set.- Returns:
- the LocalUserInner object itself.
-
sshAuthorizedKeys
public List<SshPublicKey> sshAuthorizedKeys()
Get the sshAuthorizedKeys property: Optional, local user ssh authorized keys for SFTP.- Returns:
- the sshAuthorizedKeys value.
-
withSshAuthorizedKeys
public LocalUserInner withSshAuthorizedKeys(List<SshPublicKey> sshAuthorizedKeys)
Set the sshAuthorizedKeys property: Optional, local user ssh authorized keys for SFTP.- Parameters:
sshAuthorizedKeys- the sshAuthorizedKeys value to set.- Returns:
- the LocalUserInner object itself.
-
sid
public String sid()
Get the sid property: A unique Security Identifier that is generated by the server.- Returns:
- the sid value.
-
hasSharedKey
public Boolean hasSharedKey()
Get the hasSharedKey property: Indicates whether shared key exists. Set it to false to remove existing shared key.- Returns:
- the hasSharedKey value.
-
withHasSharedKey
public LocalUserInner withHasSharedKey(Boolean hasSharedKey)
Set the hasSharedKey property: Indicates whether shared key exists. Set it to false to remove existing shared key.- Parameters:
hasSharedKey- the hasSharedKey value to set.- Returns:
- the LocalUserInner object itself.
-
hasSshKey
public Boolean hasSshKey()
Get the hasSshKey property: Indicates whether ssh key exists. Set it to false to remove existing SSH key.- Returns:
- the hasSshKey value.
-
withHasSshKey
public LocalUserInner withHasSshKey(Boolean hasSshKey)
Set the hasSshKey property: Indicates whether ssh key exists. Set it to false to remove existing SSH key.- Parameters:
hasSshKey- the hasSshKey value to set.- Returns:
- the LocalUserInner object itself.
-
hasSshPassword
public Boolean hasSshPassword()
Get the hasSshPassword property: Indicates whether ssh password exists. Set it to false to remove existing SSH password.- Returns:
- the hasSshPassword value.
-
withHasSshPassword
public LocalUserInner withHasSshPassword(Boolean hasSshPassword)
Set the hasSshPassword property: Indicates whether ssh password exists. Set it to false to remove existing SSH password.- Parameters:
hasSshPassword- the hasSshPassword value to set.- Returns:
- the LocalUserInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-