Class ReferencedExecutionIdentity
java.lang.Object
com.azure.resourcemanager.compute.workloadmanager.models.ExecutionIdentity
com.azure.resourcemanager.compute.workloadmanager.models.ReferencedExecutionIdentity
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ExecutionIdentity>
A customer-provided identity used by an execution runtime.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ReferencedExecutionIdentity class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ReferencedExecutionIdentityfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ReferencedExecutionIdentity from the JsonReader.Get the provisioningMode property: Indicates whether the identity is managed by the service or supplied by the customer.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the userAssignedIdentityResourceId property: The customer-provided user-assigned identity.withScope(ExecutionIdentityScope scope) Set the scope property: The execution boundary across which the identity is shared.withUserAssignedIdentityResourceId(String userAssignedIdentityResourceId) Set the userAssignedIdentityResourceId property: The customer-provided user-assigned identity.Methods inherited from class ExecutionIdentity
scopeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ReferencedExecutionIdentity
public ReferencedExecutionIdentity()Creates an instance of ReferencedExecutionIdentity class.
-
-
Method Details
-
provisioningMode
Get the provisioningMode property: Indicates whether the identity is managed by the service or supplied by the customer.- Overrides:
provisioningModein classExecutionIdentity- Returns:
- the provisioningMode value.
-
userAssignedIdentityResourceId
Get the userAssignedIdentityResourceId property: The customer-provided user-assigned identity.- Returns:
- the userAssignedIdentityResourceId value.
-
withUserAssignedIdentityResourceId
public ReferencedExecutionIdentity withUserAssignedIdentityResourceId(String userAssignedIdentityResourceId) Set the userAssignedIdentityResourceId property: The customer-provided user-assigned identity.- Parameters:
userAssignedIdentityResourceId- the userAssignedIdentityResourceId value to set.- Returns:
- the ReferencedExecutionIdentity object itself.
-
withScope
Set the scope property: The execution boundary across which the identity is shared.- Overrides:
withScopein classExecutionIdentity- Parameters:
scope- the scope value to set.- Returns:
- the ExecutionIdentity object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ExecutionIdentity>- Overrides:
toJsonin classExecutionIdentity- Throws:
IOException
-
fromJson
public static ReferencedExecutionIdentity fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ReferencedExecutionIdentity from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ReferencedExecutionIdentity 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 ReferencedExecutionIdentity.
-