ResourceIdentity Class
- java.
lang. Object - com.
azure. resourcemanager. postgresql. 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. |
| void |
validate()
Validates the instance. |
|
Resource |
withType(IdentityType type)
Set the type property: The identity type. |
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:
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: