ResourceIdentity Class

  • java.lang.Object
    • com.azure.resourcemanager.mysql.models.ResourceIdentity

public class ResourceIdentity

Azure Active Directory identity configuration for a resource.

Constructor Summary

Constructor Description
ResourceIdentity()

Method Summary

Modifier and Type Method and Description
UUID principalId()

Get the principalId property: The Azure Active Directory principal id.

UUID tenantId()

Get the tenantId property: The Azure Active Directory tenant id.

IdentityType type()

Get the type property: The identity type.

void validate()

Validates the instance.

ResourceIdentity withType(IdentityType type)

Set the type property: The identity type.

Methods inherited from java.lang.Object

Constructor Details

ResourceIdentity

public ResourceIdentity()

Method Details

principalId

public UUID principalId()

Get the principalId property: The Azure Active Directory principal id.

Returns:

the principalId value.

tenantId

public UUID tenantId()

Get the tenantId property: The Azure Active Directory tenant id.

Returns:

the tenantId value.

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:

the type value.

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:

type - the type value to set.

Returns:

the ResourceIdentity object itself.

Applies to