Class AutoUserSpecification
java.lang.Object
com.azure.resourcemanager.batch.models.AutoUserSpecification
Specifies the parameters for the auto user that runs a task on the Batch service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the elevationLevel property: The elevation level of the user.scope()Get the scope property: The scope for the auto user The default value is Pool.voidvalidate()Validates the instance.withElevationLevel(ElevationLevel elevationLevel) Set the elevationLevel property: The elevation level of the user.withScope(AutoUserScope scope) Set the scope property: The scope for the auto user The default value is Pool.
-
Constructor Details
-
AutoUserSpecification
public AutoUserSpecification()Creates an instance of AutoUserSpecification class.
-
-
Method Details
-
scope
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 start tasks.- Returns:
- the scope value.
-
withScope
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 start tasks.- Parameters:
scope- the scope value to set.- Returns:
- the AutoUserSpecification object itself.
-
elevationLevel
Get the elevationLevel property: The elevation level of the user. The default value is nonAdmin.- Returns:
- the elevationLevel value.
-
withElevationLevel
Set the elevationLevel property: The elevation level of the user. The default value is nonAdmin.- Parameters:
elevationLevel- the elevationLevel value to set.- Returns:
- the AutoUserSpecification object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-