Class PrivateCloudIdentity
- java.lang.Object
-
- com.azure.resourcemanager.avs.models.PrivateCloudIdentity
-
public class PrivateCloudIdentity extends Object
Identity for the virtual machine.
-
-
Constructor Summary
Constructors Constructor Description PrivateCloudIdentity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
principalId()
Get the principalId property: The principal ID of private cloud identity.String
tenantId()
Get the tenantId property: The tenant ID associated with the private cloud.ResourceIdentityType
type()
Get the type property: The type of identity used for the private cloud.void
validate()
Validates the instance.PrivateCloudIdentity
withType(ResourceIdentityType type)
Set the type property: The type of identity used for the private cloud.
-
-
-
Method Detail
-
principalId
public String 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
public String 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
public ResourceIdentityType 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
public PrivateCloudIdentity withType(ResourceIdentityType type)
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.
-
-