Package com.azure.compute.batch.models
Class AuthenticationTokenSettings
java.lang.Object
com.azure.compute.batch.models.AuthenticationTokenSettings
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AuthenticationTokenSettings>
public final class AuthenticationTokenSettings
extends Object
implements com.azure.json.JsonSerializable<AuthenticationTokenSettings>
The settings for an authentication token that the Task can use to perform Batch
service operations.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AuthenticationTokenSettings class. -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthenticationTokenSettings
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of AuthenticationTokenSettings from the JsonReader.Get the access property: The Batch resources to which the token grants access.setAccess
(List<AccessScope> access) Set the access property: The Batch resources to which the token grants access.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AuthenticationTokenSettings
public AuthenticationTokenSettings()Creates an instance of AuthenticationTokenSettings class.
-
-
Method Details
-
getAccess
Get the access property: The Batch resources to which the token grants access. 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.- Returns:
- the access value.
-
setAccess
Set the access property: The Batch resources to which the token grants access. 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.- Parameters:
access
- the access value to set.- Returns:
- the AuthenticationTokenSettings object itself.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<AuthenticationTokenSettings>
- Throws:
IOException
-
fromJson
public static AuthenticationTokenSettings fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AuthenticationTokenSettings from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of AuthenticationTokenSettings 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 AuthenticationTokenSettings.
-