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 Details

    • AuthenticationTokenSettings

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

    • getAccess

      public List<AccessScope> 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

      public AuthenticationTokenSettings setAccess(List<AccessScope> access)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.