object-oriented – when are classes used within classes?

I have a code that looks like this:

Class PermissionManager {
static let shared = PermissionsManager ()

public enum PermissionType {
contact
events calendar
}
}

This made me think, though syntactically, when do you want to nest an enum within a class? Is it a good practice in this case?