Class AutoUserSpecification

java.lang.Object
com.azure.compute.batch.models.AutoUserSpecification
All Implemented Interfaces:
com.azure.json.JsonSerializable<AutoUserSpecification>

public final class AutoUserSpecification extends Object implements com.azure.json.JsonSerializable<AutoUserSpecification>
Specifies the options for the auto user that runs an Azure Batch Task.
  • Constructor Details

    • AutoUserSpecification

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

    • getScope

      public AutoUserScope getScope()
      Get the scope property: The scope for the auto user. The default value is pool. If the pool is running Windows a value of Task should be specified if stricter isolation between tasks is required. For example, if the task mutates the registry in a way which could impact other tasks, or if certificates have been specified on the pool which should not be accessible by normal tasks but should be accessible by StartTasks.
      Returns:
      the scope value.
    • setScope

      public AutoUserSpecification setScope(AutoUserScope scope)
      Set the scope property: The scope for the auto user. The default value is pool. If the pool is running Windows a value of Task should be specified if stricter isolation between tasks is required. For example, if the task mutates the registry in a way which could impact other tasks, or if certificates have been specified on the pool which should not be accessible by normal tasks but should be accessible by StartTasks.
      Parameters:
      scope - the scope value to set.
      Returns:
      the AutoUserSpecification object itself.
    • getElevationLevel

      public ElevationLevel getElevationLevel()
      Get the elevationLevel property: The elevation level of the auto user. The default value is nonAdmin.
      Returns:
      the elevationLevel value.
    • setElevationLevel

      public AutoUserSpecification setElevationLevel(ElevationLevel elevationLevel)
      Set the elevationLevel property: The elevation level of the auto user. The default value is nonAdmin.
      Parameters:
      elevationLevel - the elevationLevel value to set.
      Returns:
      the AutoUserSpecification object itself.
    • toJson

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

      public static AutoUserSpecification fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AutoUserSpecification from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AutoUserSpecification 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 AutoUserSpecification.