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 java.util.List;
8 import com.fasterxml.jackson.annotation.JsonProperty;
9
10 /**
11 * The settings for an authentication token that the task can use to perform
12 * Batch service operations.
13 */
14 public class AuthenticationTokenSettings {
15 /**
16 * The Batch resources to which the token grants access.
17 * The authentication token grants access to a limited set of Batch service
18 * operations. Currently the only supported value for the access property
19 * is 'job', which grants access to all operations related to the job which
20 * contains the task.
21 */
22 @JsonProperty(value = "access")
23 private List<AccessScope> access;
24
25 /**
26 * Get the authentication token grants access to a limited set of Batch service operations. Currently the only supported value for the access property is 'job', which grants access to all operations related to the job which contains the task.
27 *
28 * @return the access value
29 */
30 public List<AccessScope> access() {
31 return this.access;
32 }
33
34 /**
35 * Set the authentication token grants access to a limited set of Batch service operations. Currently the only supported value for the access property is 'job', which grants access to all operations related to the job which contains the task.
36 *
37 * @param access the access value to set
38 * @return the AuthenticationTokenSettings object itself.
39 */
40 public AuthenticationTokenSettings withAccess(List<AccessScope> access) {
41 this.access = access;
42 return this;
43 }
44
45 }