Dear Nitin,
I assume you mean JunctionType when you say JuctionType.
However, I see neither of these two properties anywhere in the Revit API.
I see a PreferredJunctionType property on various classes, including MEPCurveType, RoutingPreferenceManager and RoutingConditions. All three of these are read-write, so you can set them as you please.
Regarding the Connector.GenderType property, I would assume that that is defined by the MEP connector element added to the family defining the MEP fitting.
Can you explain what you are trying to achieve, please?
Thank you.
Best regards,
Jeremy