Regarding config object

I need config classes for multiple masters and multipleslaves in a vip. But instead of creating different classes for master_config and slave_config can I keep them all in one class?

In reply to Raja VA:

That is your decision and depends on the application. If you are providing a VIP it might be a benefit to hold the master config data and the slave config data in another config class.
Presume your customer might use the master or the slave in his application.