public class VirtualMachineIdentity extends Object
Constructor and Description |
---|
VirtualMachineIdentity() |
Modifier and Type | Method and Description |
---|---|
String |
principalId()
Get the principalId property: The principal id of virtual machine identity.
|
String |
tenantId()
Get the tenantId property: The tenant id associated with the virtual machine.
|
ResourceIdentityType |
type()
Get the type property: The type of identity used for the virtual machine.
|
Map<String,VirtualMachineIdentityUserAssignedIdentities> |
userAssignedIdentities()
Get the userAssignedIdentities property: The list of user identities associated with the Virtual Machine.
|
void |
validate()
Validates the instance.
|
VirtualMachineIdentity |
withType(ResourceIdentityType type)
Set the type property: The type of identity used for the virtual machine.
|
VirtualMachineIdentity |
withUserAssignedIdentities(Map<String,VirtualMachineIdentityUserAssignedIdentities> userAssignedIdentities)
Set the userAssignedIdentities property: The list of user identities associated with the Virtual Machine.
|
public String principalId()
public String tenantId()
public ResourceIdentityType type()
public VirtualMachineIdentity withType(ResourceIdentityType type)
type
- the type value to set.public Map<String,VirtualMachineIdentityUserAssignedIdentities> userAssignedIdentities()
public VirtualMachineIdentity withUserAssignedIdentities(Map<String,VirtualMachineIdentityUserAssignedIdentities> userAssignedIdentities)
userAssignedIdentities
- the userAssignedIdentities value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.