Share via


Identity Class

  • java.lang.Object
    • com.microsoft.azure.management.resourcemover.v2021_01_01.Identity

public class Identity

Defines the MSI properties of the Move Collection.

Constructor Summary

Constructor Description
Identity()

Method Summary

Modifier and Type Method and Description
java.lang.String principalId()

Get gets or sets the principal id.

java.lang.String tenantId()

Get gets or sets the tenant id.

ResourceIdentityType type()

Get possible values include: 'None', 'SystemAssigned', 'UserAssigned'.

Identity withPrincipalId(String principalId)

Set gets or sets the principal id.

Identity withTenantId(String tenantId)

Set gets or sets the tenant id.

Identity withType(ResourceIdentityType type)

Set possible values include: 'None', 'SystemAssigned', 'UserAssigned'.

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

Identity

public Identity()

Method Details

principalId

public String principalId()

Get gets or sets the principal id.

Returns:

the principalId value

tenantId

public String tenantId()

Get gets or sets the tenant id.

Returns:

the tenantId value

type

public ResourceIdentityType type()

Get possible values include: 'None', 'SystemAssigned', 'UserAssigned'.

Returns:

the type value

withPrincipalId

public Identity withPrincipalId(String principalId)

Set gets or sets the principal id.

Parameters:

principalId - the principalId value to set

Returns:

the Identity object itself.

withTenantId

public Identity withTenantId(String tenantId)

Set gets or sets the tenant id.

Parameters:

tenantId - the tenantId value to set

Returns:

the Identity object itself.

withType

public Identity withType(ResourceIdentityType type)

Set possible values include: 'None', 'SystemAssigned', 'UserAssigned'.

Parameters:

type - the type value to set

Returns:

the Identity object itself.

Applies to