ResourceIdentity Class

  • java.lang.Object
    • com.microsoft.azure.management.sql.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
java.util.UUID principalId()

Get the Azure Active Directory principal id.

java.util.UUID tenantId()

Get the Azure Active Directory tenant id.

IdentityType type()

Get the identity type.

ResourceIdentity withType(IdentityType type)

Set the identity type.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

ResourceIdentity

public ResourceIdentity()

Method Details

principalId

public UUID principalId()

Get the Azure Active Directory principal id.

Returns:

the principalId value

tenantId

public UUID tenantId()

Get the Azure Active Directory tenant id.

Returns:

the tenantId value

type

public IdentityType type()

Get the identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. Possible values include: 'SystemAssigned'.

Returns:

the type value

withType

public ResourceIdentity withType(IdentityType type)

Set the identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. Possible values include: 'SystemAssigned'.

Parameters:

type - the type value to set

Returns:

the ResourceIdentity object itself.

Applies to