result.setPromotionCode(promotionCodeInstance);
}
Element intrinsicSettingsElement = XmlUtility.getElementByTagNameNS(resourceElement, "http://schemas.microsoft.com/windowsazure", "IntrinsicSettings");
if (intrinsicSettingsElement != null) {
JobCollectionIntrinsicSettings intrinsicSettingsInstance = new JobCollectionIntrinsicSettings();
result.setIntrinsicSettings(intrinsicSettingsInstance);
Element planElement = XmlUtility.getElementByTagNameNS(intrinsicSettingsElement, "http://schemas.microsoft.com/windowsazure", "Plan");
if (planElement != null) {
JobCollectionPlan planInstance;
planInstance = JobCollectionPlan.valueOf(planElement.getTextContent());
intrinsicSettingsInstance.setPlan(planInstance);
}
Element quotaElement = XmlUtility.getElementByTagNameNS(intrinsicSettingsElement, "http://schemas.microsoft.com/windowsazure", "Quota");
if (quotaElement != null) {
JobCollectionQuota quotaInstance = new JobCollectionQuota();
intrinsicSettingsInstance.setQuota(quotaInstance);
Element maxJobCountElement = XmlUtility.getElementByTagNameNS(quotaElement, "http://schemas.microsoft.com/windowsazure", "MaxJobCount");
if (maxJobCountElement != null && (maxJobCountElement.getTextContent() == null || maxJobCountElement.getTextContent().isEmpty() == true) == false) {
int maxJobCountInstance;
maxJobCountInstance = DatatypeConverter.parseInt(maxJobCountElement.getTextContent());