Class ServiceManagedExecutionIdentity

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

public final class ServiceManagedExecutionIdentity extends ExecutionIdentity
An identity created and owned by Workload Manager.
  • Constructor Details

    • ServiceManagedExecutionIdentity

      public ServiceManagedExecutionIdentity()
      Creates an instance of ServiceManagedExecutionIdentity 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.
      Overrides:
      provisioningMode in class ExecutionIdentity
      Returns:
      the provisioningMode value.
    • userAssignedIdentityResourceId

      public String userAssignedIdentityResourceId()
      Get the userAssignedIdentityResourceId property: The service-created user-assigned identity.
      Returns:
      the userAssignedIdentityResourceId value.
    • withScope

      Set the scope property: The execution boundary across which the identity is shared.
      Overrides:
      withScope in class ExecutionIdentity
      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>
      Overrides:
      toJson in class ExecutionIdentity
      Throws:
      IOException
    • fromJson

      public static ServiceManagedExecutionIdentity fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ServiceManagedExecutionIdentity from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ServiceManagedExecutionIdentity 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 ServiceManagedExecutionIdentity.