Class LocalUserProperties

java.lang.Object
com.azure.resourcemanager.storage.fluent.models.LocalUserProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<LocalUserProperties>

public final class LocalUserProperties extends Object implements com.azure.json.JsonSerializable<LocalUserProperties>
The Storage Account Local User properties.
  • Constructor Details

    • LocalUserProperties

      public LocalUserProperties()
      Creates an instance of LocalUserProperties class.
  • Method Details

    • permissionScopes

      public List<PermissionScope> permissionScopes()
      Get the permissionScopes property: The permission scopes of the local user.
      Returns:
      the permissionScopes value.
    • withPermissionScopes

      public LocalUserProperties withPermissionScopes(List<PermissionScope> permissionScopes)
      Set the permissionScopes property: The permission scopes of the local user.
      Parameters:
      permissionScopes - the permissionScopes value to set.
      Returns:
      the LocalUserProperties object itself.
    • homeDirectory

      public String homeDirectory()
      Get the homeDirectory property: Optional, local user home directory.
      Returns:
      the homeDirectory value.
    • withHomeDirectory

      public LocalUserProperties withHomeDirectory(String homeDirectory)
      Set the homeDirectory property: Optional, local user home directory.
      Parameters:
      homeDirectory - the homeDirectory value to set.
      Returns:
      the LocalUserProperties 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 LocalUserProperties 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 LocalUserProperties 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 LocalUserProperties 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 LocalUserProperties 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 LocalUserProperties 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 LocalUserProperties 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 LocalUserProperties 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 LocalUserProperties object itself.
    • userId

      public Integer userId()
      Get the userId property: A unique Identifier that is generated by the server.
      Returns:
      the userId value.
    • groupId

      public Integer groupId()
      Get the groupId property: An identifier for associating a group of users.
      Returns:
      the groupId value.
    • withGroupId

      public LocalUserProperties withGroupId(Integer groupId)
      Set the groupId property: An identifier for associating a group of users.
      Parameters:
      groupId - the groupId value to set.
      Returns:
      the LocalUserProperties object itself.
    • allowAclAuthorization

      public Boolean allowAclAuthorization()
      Get the allowAclAuthorization property: Indicates whether ACL authorization is allowed for this user. Set it to false to disallow using ACL authorization.
      Returns:
      the allowAclAuthorization value.
    • withAllowAclAuthorization

      public LocalUserProperties withAllowAclAuthorization(Boolean allowAclAuthorization)
      Set the allowAclAuthorization property: Indicates whether ACL authorization is allowed for this user. Set it to false to disallow using ACL authorization.
      Parameters:
      allowAclAuthorization - the allowAclAuthorization value to set.
      Returns:
      the LocalUserProperties object itself.
    • extendedGroups

      public List<Integer> extendedGroups()
      Get the extendedGroups property: Supplementary group membership. Only applicable for local users enabled for NFSv3 access.
      Returns:
      the extendedGroups value.
    • withExtendedGroups

      public LocalUserProperties withExtendedGroups(List<Integer> extendedGroups)
      Set the extendedGroups property: Supplementary group membership. Only applicable for local users enabled for NFSv3 access.
      Parameters:
      extendedGroups - the extendedGroups value to set.
      Returns:
      the LocalUserProperties object itself.
    • isNFSv3Enabled

      public Boolean isNFSv3Enabled()
      Get the isNFSv3Enabled property: Indicates if the local user is enabled for access with NFSv3 protocol.
      Returns:
      the isNFSv3Enabled value.
    • withIsNFSv3Enabled

      public LocalUserProperties withIsNFSv3Enabled(Boolean isNFSv3Enabled)
      Set the isNFSv3Enabled property: Indicates if the local user is enabled for access with NFSv3 protocol.
      Parameters:
      isNFSv3Enabled - the isNFSv3Enabled value to set.
      Returns:
      the LocalUserProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<LocalUserProperties>
      Throws:
      IOException
    • fromJson

      public static LocalUserProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of LocalUserProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of LocalUserProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the LocalUserProperties.