Identity Class
- java.
lang. Object - com.
azure. resourcemanager. resourcemover. models. Identity
- com.
Implements
public final class Identity
implements JsonSerializable<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 |
|---|---|
| static Identity |
fromJson(JsonReader jsonReader)
Reads an instance of Identity from the Json |
| String |
principalId()
Get the principal |
| String |
tenantId()
Get the tenant |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Resource |
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 principal |
| Identity |
withTenantId(String tenantId)
Set the tenant |
| 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
fromJson
public static Identity fromJson(JsonReader jsonReader)
Reads an instance of Identity from the JsonReader.
Parameters:
Returns:
Throws:
principalId
public String principalId()
Get the principalId property: Gets or sets the principal id.
Returns:
tenantId
public String tenantId()
Get the tenantId property: Gets or sets the tenant id.
Returns:
toJson
type
public ResourceIdentityType type()
Get the type property: The type of identity used for the resource mover service.
Returns:
validate
public void validate()
Validates the instance.
withPrincipalId
public Identity withPrincipalId(String principalId)
Set the principalId property: Gets or sets the principal id.
Parameters:
Returns:
withTenantId
public Identity withTenantId(String tenantId)
Set the tenantId property: Gets or sets the tenant id.
Parameters:
Returns:
withType
public Identity withType(ResourceIdentityType type)
Set the type property: The type of identity used for the resource mover service.
Parameters:
Returns: