DatabaseIdentity Class
- java.
lang. Object - com.
azure. resourcemanager. sql. models. DatabaseIdentity
- com.
Implements
public final class DatabaseIdentity
implements JsonSerializable<DatabaseIdentity>
Azure Active Directory identity configuration for a resource.
Constructor Summary
Constructor | Description |
---|---|
DatabaseIdentity() |
Creates an instance of Database |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Database |
fromJson(JsonReader jsonReader)
Reads an instance of Database |
UUID |
tenantId()
Get the tenant |
Json |
toJson(JsonWriter jsonWriter) |
Database |
type()
Get the type property: The identity type. |
Map<String,Database |
userAssignedIdentities()
Get the user |
void |
validate()
Validates the instance. |
Database |
withType(DatabaseIdentityType type)
Set the type property: The identity type. |
Database |
withUserAssignedIdentities(Map<String,DatabaseUserIdentity> userAssignedIdentities)
Set the user |
Methods inherited from java.lang.Object
Constructor Details
DatabaseIdentity
public DatabaseIdentity()
Creates an instance of DatabaseIdentity class.
Method Details
fromJson
public static DatabaseIdentity fromJson(JsonReader jsonReader)
Reads an instance of DatabaseIdentity from the JsonReader.
Parameters:
Returns:
Throws:
tenantId
public UUID tenantId()
Get the tenantId property: The Azure Active Directory tenant id.
Returns:
toJson
type
public DatabaseIdentityType type()
Get the type property: The identity type.
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 DatabaseIdentity withType(DatabaseIdentityType type)
Set the type property: The identity type.
Parameters:
Returns:
withUserAssignedIdentities
public DatabaseIdentity withUserAssignedIdentities(Map
Set the userAssignedIdentities property: The resource ids of the user assigned identities to use.
Parameters:
Returns:
Applies to
Azure SDK for Java