ResourceIdentity Class
- java.
lang. Object - com.
azure. resourcemanager. sql. models. ResourceIdentity
- com.
Implements
public final class ResourceIdentity
implements JsonSerializable<ResourceIdentity>
Azure Active Directory identity configuration for a resource.
Constructor Summary
Constructor | Description |
---|---|
ResourceIdentity() |
Creates an instance of Resource |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Resource |
fromJson(JsonReader jsonReader)
Reads an instance of Resource |
UUID |
principalId()
Get the principal |
UUID |
tenantId()
Get the tenant |
Json |
toJson(JsonWriter jsonWriter) |
Identity |
type()
Get the type property: The identity type. |
Map<String,User |
userAssignedIdentities()
Get the user |
void |
validate()
Validates the instance. |
Resource |
withType(IdentityType type)
Set the type property: The identity type. |
Resource |
withUserAssignedIdentities(Map<String,UserIdentity> userAssignedIdentities)
Set the user |
Methods inherited from java.lang.Object
Constructor Details
ResourceIdentity
public ResourceIdentity()
Creates an instance of ResourceIdentity class.
Method Details
fromJson
public static ResourceIdentity fromJson(JsonReader jsonReader)
Reads an instance of ResourceIdentity from the JsonReader.
Parameters:
Returns:
Throws:
principalId
public UUID principalId()
Get the principalId property: The Azure Active Directory principal id.
Returns:
tenantId
public UUID tenantId()
Get the tenantId property: The Azure Active Directory tenant id.
Returns:
toJson
type
public IdentityType type()
Get the type property: The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource.
Returns:
userAssignedIdentities
public Map
Get the userAssignedIdentities property: The resource ids of the user assigned identities to use.
Returns:
validate
public void validate()
Validates the instance.
withType
public ResourceIdentity withType(IdentityType type)
Set the type property: The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource.
Parameters:
Returns:
withUserAssignedIdentities
public ResourceIdentity withUserAssignedIdentities(Map
Set the userAssignedIdentities property: The resource ids of the user assigned identities to use.
Parameters:
Returns:
Applies to
Azure SDK for Java