Class ExecutionIdentity

java.lang.Object
com.azure.resourcemanager.compute.workloadmanager.models.ExecutionIdentity
All Implemented Interfaces:
com.azure.json.JsonSerializable<ExecutionIdentity>
Direct Known Subclasses:
ReferencedExecutionIdentity, ServiceManagedExecutionIdentity

public class ExecutionIdentity extends Object implements com.azure.json.JsonSerializable<ExecutionIdentity>
Configuration for an identity used by an execution runtime.
  • Constructor Details

    • ExecutionIdentity

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

    • provisioningMode

      public ExecutionIdentityProvisioningMode provisioningMode()
      Get the provisioningMode property: Indicates whether the identity is managed by the service or supplied by the customer.
      Returns:
      the provisioningMode value.
    • scope

      public ExecutionIdentityScope scope()
      Get the scope property: The execution boundary across which the identity is shared.
      Returns:
      the scope value.
    • withScope

      public ExecutionIdentity withScope(ExecutionIdentityScope scope)
      Set the scope property: The execution boundary across which the identity is shared.
      Parameters:
      scope - the scope value to set.
      Returns:
      the ExecutionIdentity 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<ExecutionIdentity>
      Throws:
      IOException
    • fromJson

      public static ExecutionIdentity fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ExecutionIdentity from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ExecutionIdentity if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ExecutionIdentity.