Class WorkspaceProviderAuthorization
java.lang.Object
com.azure.resourcemanager.databricks.models.WorkspaceProviderAuthorization
- All Implemented Interfaces:
com.azure.json.JsonSerializable<WorkspaceProviderAuthorization>
public final class WorkspaceProviderAuthorization
extends Object
implements com.azure.json.JsonSerializable<WorkspaceProviderAuthorization>
The workspace provider authorization.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of WorkspaceProviderAuthorization class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WorkspaceProviderAuthorization from the JsonReader.Get the principalId property: The provider's principal identifier.Get the roleDefinitionId property: The provider's role definition identifier.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withPrincipalId(UUID principalId) Set the principalId property: The provider's principal identifier.withRoleDefinitionId(UUID roleDefinitionId) Set the roleDefinitionId property: The provider's role definition identifier.Methods inherited from class java.lang.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
-
WorkspaceProviderAuthorization
public WorkspaceProviderAuthorization()Creates an instance of WorkspaceProviderAuthorization class.
-
-
Method Details
-
principalId
Get the principalId property: The provider's principal identifier. This is the identity that the provider will use to call ARM to manage the workspace resources.- Returns:
- the principalId value.
-
withPrincipalId
Set the principalId property: The provider's principal identifier. This is the identity that the provider will use to call ARM to manage the workspace resources.- Parameters:
principalId- the principalId value to set.- Returns:
- the WorkspaceProviderAuthorization object itself.
-
roleDefinitionId
Get the roleDefinitionId property: The provider's role definition identifier. This role will define all the permissions that the provider must have on the workspace's container resource group. This role definition cannot have permission to delete the resource group.- Returns:
- the roleDefinitionId value.
-
withRoleDefinitionId
Set the roleDefinitionId property: The provider's role definition identifier. This role will define all the permissions that the provider must have on the workspace's container resource group. This role definition cannot have permission to delete the resource group.- Parameters:
roleDefinitionId- the roleDefinitionId value to set.- Returns:
- the WorkspaceProviderAuthorization object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<WorkspaceProviderAuthorization>- Throws:
IOException
-
fromJson
public static WorkspaceProviderAuthorization fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of WorkspaceProviderAuthorization from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of WorkspaceProviderAuthorization 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 WorkspaceProviderAuthorization.
-