Class ManagedClusterIdentity
- java.lang.Object
-
- com.azure.resourcemanager.containerservice.models.ManagedClusterIdentity
-
public class ManagedClusterIdentity extends Object
Identity for the managed cluster.
-
-
Constructor Summary
Constructors Constructor Description ManagedClusterIdentity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringprincipalId()Get the principalId property: The principal id of the system assigned identity which is used by master components.StringtenantId()Get the tenantId property: The tenant id of the system assigned identity which is used by master components.ResourceIdentityTypetype()Get the type property: The type of identity used for the managed cluster.Map<String,ManagedServiceIdentityUserAssignedIdentitiesValue>userAssignedIdentities()Get the userAssignedIdentities property: The keys must be ARM resource IDs in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.voidvalidate()Validates the instance.ManagedClusterIdentitywithType(ResourceIdentityType type)Set the type property: The type of identity used for the managed cluster.ManagedClusterIdentitywithUserAssignedIdentities(Map<String,ManagedServiceIdentityUserAssignedIdentitiesValue> userAssignedIdentities)Set the userAssignedIdentities property: The keys must be ARM resource IDs in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
-
-
-
Method Detail
-
principalId
public String principalId()
Get the principalId property: The principal id of the system assigned identity which is used by master components.- Returns:
- the principalId value.
-
tenantId
public String tenantId()
Get the tenantId property: The tenant id of the system assigned identity which is used by master components.- Returns:
- the tenantId value.
-
type
public ResourceIdentityType type()
Get the type property: The type of identity used for the managed cluster. For more information see [use managed identities in AKS](https://docs.microsoft.com/azure/aks/use-managed-identity).- Returns:
- the type value.
-
withType
public ManagedClusterIdentity withType(ResourceIdentityType type)
Set the type property: The type of identity used for the managed cluster. For more information see [use managed identities in AKS](https://docs.microsoft.com/azure/aks/use-managed-identity).- Parameters:
type- the type value to set.- Returns:
- the ManagedClusterIdentity object itself.
-
userAssignedIdentities
public Map<String,ManagedServiceIdentityUserAssignedIdentitiesValue> userAssignedIdentities()
Get the userAssignedIdentities property: The keys must be ARM resource IDs in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.- Returns:
- the userAssignedIdentities value.
-
withUserAssignedIdentities
public ManagedClusterIdentity withUserAssignedIdentities(Map<String,ManagedServiceIdentityUserAssignedIdentitiesValue> userAssignedIdentities)
Set the userAssignedIdentities property: The keys must be ARM resource IDs in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.- Parameters:
userAssignedIdentities- the userAssignedIdentities value to set.- Returns:
- the ManagedClusterIdentity object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-