1 // Copyright (c) Microsoft Corporation. All rights reserved.
2 // Licensed under the MIT License.
3 // Code generated by Microsoft (R) AutoRest Code Generator
4
5 package com.microsoft.azure.batch.protocol.models;
6
7 import com.fasterxml.jackson.annotation.JsonProperty;
8
9 /**
10 * Specifies the parameters for the auto user that runs a task on the Batch
11 * service.
12 */
13 public class AutoUserSpecification {
14 /**
15 * The scope for the auto user.
16 * The default value is task. Possible values include: 'task', 'pool'.
17 */
18 @JsonProperty(value = "scope")
19 private AutoUserScope scope;
20
21 /**
22 * The elevation level of the auto user.
23 * The default value is nonAdmin. Possible values include: 'nonAdmin',
24 * 'admin'.
25 */
26 @JsonProperty(value = "elevationLevel")
27 private ElevationLevel elevationLevel;
28
29 /**
30 * Get the default value is task. Possible values include: 'task', 'pool'.
31 *
32 * @return the scope value
33 */
34 public AutoUserScope scope() {
35 return this.scope;
36 }
37
38 /**
39 * Set the default value is task. Possible values include: 'task', 'pool'.
40 *
41 * @param scope the scope value to set
42 * @return the AutoUserSpecification object itself.
43 */
44 public AutoUserSpecification withScope(AutoUserScope scope) {
45 this.scope = scope;
46 return this;
47 }
48
49 /**
50 * Get the default value is nonAdmin. Possible values include: 'nonAdmin', 'admin'.
51 *
52 * @return the elevationLevel value
53 */
54 public ElevationLevel elevationLevel() {
55 return this.elevationLevel;
56 }
57
58 /**
59 * Set the default value is nonAdmin. Possible values include: 'nonAdmin', 'admin'.
60 *
61 * @param elevationLevel the elevationLevel value to set
62 * @return the AutoUserSpecification object itself.
63 */
64 public AutoUserSpecification withElevationLevel(ElevationLevel elevationLevel) {
65 this.elevationLevel = elevationLevel;
66 return this;
67 }
68
69 }