Group and QueueSObject entities can be used to insert or create multiple Queues and associate object using Salesforce Apex.
Check the following apex code to create multiple or bulk or mass Queues and associate object.
Sample Code:
List < Group > listQueues = new List < Group >();
Integer i;
for ( Integer i = 0; i < 200; i++ ) {
listQueues.add(
new Group(
Type = 'Queue', Name = 'Example ' + i
)
);
}
insert listQueues;
List < QueueSObject > listQueueSObjs = new List < QueueSObject >();
for ( i = 0; i < 200; i++ ) {
listQueueSObjs.add(
new QueueSObject(
SobjectType = 'Case', QueueId = listQueues.get( i ).Id
)
);
}
insert listQueueSObjs;