Class PrivateCloudIdentity
java.lang.Object
com.azure.resourcemanager.avs.models.PrivateCloudIdentity
Identity for the virtual machine.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the principalId property: The principal ID of private cloud identity.tenantId()
Get the tenantId property: The tenant ID associated with the private cloud.type()
Get the type property: The type of identity used for the private cloud.void
validate()
Validates the instance.withType
(ResourceIdentityType type) Set the type property: The type of identity used for the private cloud.
-
Constructor Details
-
PrivateCloudIdentity
public PrivateCloudIdentity()Creates an instance of PrivateCloudIdentity class.
-
-
Method Details
-
principalId
Get the principalId property: The principal ID of private cloud identity. This property will only be provided for a system assigned identity.- Returns:
- the principalId value.
-
tenantId
Get the tenantId property: The tenant ID associated with the private cloud. This property will only be provided for a system assigned identity.- Returns:
- the tenantId value.
-
type
Get the type property: The type of identity used for the private cloud. The type 'SystemAssigned' refers to an implicitly created identity. The type 'None' will remove any identities from the Private Cloud.- Returns:
- the type value.
-
withType
Set the type property: The type of identity used for the private cloud. The type 'SystemAssigned' refers to an implicitly created identity. The type 'None' will remove any identities from the Private Cloud.- Parameters:
type
- the type value to set.- Returns:
- the PrivateCloudIdentity object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-