Identity Class

  • java.lang.Object
    • com.azure.resourcemanager.resourcemover.models.Identity

public final class Identity

Defines the MSI properties of the Move Collection.

Constructor Summary

Constructor Description
Identity()

Creates an instance of Identity class.

Method Summary

Modifier and Type Method and Description
String principalId()

Get the principalId property: Gets or sets the principal id.

String tenantId()

Get the tenantId property: Gets or sets the tenant id.

ResourceIdentityType type()

Get the type property: The type of identity used for the resource mover service.

void validate()

Validates the instance.

Identity withPrincipalId(String principalId)

Set the principalId property: Gets or sets the principal id.

Identity withTenantId(String tenantId)

Set the tenantId property: Gets or sets the tenant id.

Identity withType(ResourceIdentityType type)

Set the type property: The type of identity used for the resource mover service.

Methods inherited from java.lang.Object

Constructor Details

Identity

public Identity()

Creates an instance of Identity class.

Method Details

principalId

public String principalId()

Get the principalId property: Gets or sets the principal id.

Returns:

the principalId value.

tenantId

public String tenantId()

Get the tenantId property: Gets or sets the tenant id.

Returns:

the tenantId value.

type

public ResourceIdentityType type()

Get the type property: The type of identity used for the resource mover service.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withPrincipalId

public Identity withPrincipalId(String principalId)

Set the principalId property: 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 the tenantId property: 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 the type property: The type of identity used for the resource mover service.

Parameters:

type - the type value to set.

Returns:

the Identity object itself.

Applies to