Class ClusterPrincipalAssignmentInner


  • public final class ClusterPrincipalAssignmentInner
    extends com.azure.core.management.ProxyResource
    Class representing a cluster principal assignment.
    • Constructor Detail

      • ClusterPrincipalAssignmentInner

        public ClusterPrincipalAssignmentInner()
    • Method Detail

      • systemData

        public com.azure.core.management.SystemData systemData()
        Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
        Returns:
        the systemData value.
      • principalId

        public String principalId()
        Get the principalId property: The principal ID assigned to the cluster principal. It can be a user email, application ID, or security group name.
        Returns:
        the principalId value.
      • withPrincipalId

        public ClusterPrincipalAssignmentInner withPrincipalId​(String principalId)
        Set the principalId property: The principal ID assigned to the cluster principal. It can be a user email, application ID, or security group name.
        Parameters:
        principalId - the principalId value to set.
        Returns:
        the ClusterPrincipalAssignmentInner object itself.
      • role

        public ClusterPrincipalRole role()
        Get the role property: Cluster principal role.
        Returns:
        the role value.
      • tenantId

        public String tenantId()
        Get the tenantId property: The tenant id of the principal.
        Returns:
        the tenantId value.
      • withTenantId

        public ClusterPrincipalAssignmentInner withTenantId​(String tenantId)
        Set the tenantId property: The tenant id of the principal.
        Parameters:
        tenantId - the tenantId value to set.
        Returns:
        the ClusterPrincipalAssignmentInner object itself.
      • principalType

        public PrincipalType principalType()
        Get the principalType property: Principal type.
        Returns:
        the principalType value.
      • withPrincipalType

        public ClusterPrincipalAssignmentInner withPrincipalType​(PrincipalType principalType)
        Set the principalType property: Principal type.
        Parameters:
        principalType - the principalType value to set.
        Returns:
        the ClusterPrincipalAssignmentInner object itself.
      • tenantName

        public String tenantName()
        Get the tenantName property: The tenant name of the principal.
        Returns:
        the tenantName value.
      • principalName

        public String principalName()
        Get the principalName property: The principal name.
        Returns:
        the principalName value.
      • provisioningState

        public ResourceProvisioningState provisioningState()
        Get the provisioningState property: The provisioned state of the resource.
        Returns:
        the provisioningState value.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.