if (configurationSetsParameterItem.getDomainJoin() != null) { if (configurationSetsParameterItem.getDomainJoin().getCredentials() != null) { if (configurationSetsParameterItem.getDomainJoin().getCredentials().getPassword() == null) { throw new NullPointerException("parameters.ConfigurationSets.DomainJoin.Credentials.Password"); if (configurationSetsParameterItem.getDomainJoin().getCredentials().getUserName() == null) { throw new NullPointerException("parameters.ConfigurationSets.DomainJoin.Credentials.UserName"); if (configurationSetsItem.getDomainJoin() != null) { Element domainJoinElement = requestDoc.createElementNS("http://schemas.microsoft.com/windowsazure", "DomainJoin"); configurationSetElement.appendChild(domainJoinElement); if (configurationSetsItem.getDomainJoin().getCredentials() != null) { Element credentialsElement = requestDoc.createElementNS("http://schemas.microsoft.com/windowsazure", "Credentials"); domainJoinElement.appendChild(credentialsElement); if (configurationSetsItem.getDomainJoin().getCredentials().getDomain() != null) { Element domainElement = requestDoc.createElementNS("http://schemas.microsoft.com/windowsazure", "Domain"); domainElement.appendChild(requestDoc.createTextNode(configurationSetsItem.getDomainJoin().getCredentials().getDomain())); credentialsElement.appendChild(domainElement); usernameElement.appendChild(requestDoc.createTextNode(configurationSetsItem.getDomainJoin().getCredentials().getUserName())); credentialsElement.appendChild(usernameElement); passwordElement.appendChild(requestDoc.createTextNode(configurationSetsItem.getDomainJoin().getCredentials().getPassword())); credentialsElement.appendChild(passwordElement); if (configurationSetsItem.getDomainJoin().getDomainToJoin() != null) { Element joinDomainElement = requestDoc.createElementNS("http://schemas.microsoft.com/windowsazure", "JoinDomain");
if (configurationSetsParameterItem.getDomainJoin() != null) { if (configurationSetsParameterItem.getDomainJoin().getCredentials() != null) { if (configurationSetsParameterItem.getDomainJoin().getCredentials().getPassword() == null) { throw new NullPointerException("parameters.ConfigurationSets.DomainJoin.Credentials.Password"); if (configurationSetsParameterItem.getDomainJoin().getCredentials().getUserName() == null) { throw new NullPointerException("parameters.ConfigurationSets.DomainJoin.Credentials.UserName"); if (configurationSetsItem.getDomainJoin() != null) { Element domainJoinElement = requestDoc.createElementNS("http://schemas.microsoft.com/windowsazure", "DomainJoin"); configurationSetElement.appendChild(domainJoinElement); if (configurationSetsItem.getDomainJoin().getCredentials() != null) { Element credentialsElement = requestDoc.createElementNS("http://schemas.microsoft.com/windowsazure", "Credentials"); domainJoinElement.appendChild(credentialsElement); if (configurationSetsItem.getDomainJoin().getCredentials().getDomain() != null) { Element domainElement = requestDoc.createElementNS("http://schemas.microsoft.com/windowsazure", "Domain"); domainElement.appendChild(requestDoc.createTextNode(configurationSetsItem.getDomainJoin().getCredentials().getDomain())); credentialsElement.appendChild(domainElement); usernameElement.appendChild(requestDoc.createTextNode(configurationSetsItem.getDomainJoin().getCredentials().getUserName())); credentialsElement.appendChild(usernameElement); passwordElement.appendChild(requestDoc.createTextNode(configurationSetsItem.getDomainJoin().getCredentials().getPassword())); credentialsElement.appendChild(passwordElement); if (configurationSetsItem.getDomainJoin().getDomainToJoin() != null) { Element joinDomainElement = requestDoc.createElementNS("http://schemas.microsoft.com/windowsazure", "JoinDomain");
if (parameters.getProvisioningConfiguration().getDomainJoin() != null) { if (parameters.getProvisioningConfiguration().getDomainJoin().getCredentials() != null) { if (parameters.getProvisioningConfiguration().getDomainJoin().getCredentials().getPassword() == null) { throw new NullPointerException("parameters.ProvisioningConfiguration.DomainJoin.Credentials.Password"); if (parameters.getProvisioningConfiguration().getDomainJoin().getCredentials().getUserName() == null) { throw new NullPointerException("parameters.ProvisioningConfiguration.DomainJoin.Credentials.UserName"); if (parameters.getProvisioningConfiguration().getDomainJoin() != null) { Element domainJoinElement = requestDoc.createElementNS("http://schemas.microsoft.com/windowsazure", "DomainJoin"); provisioningConfigurationElement.appendChild(domainJoinElement); if (parameters.getProvisioningConfiguration().getDomainJoin().getCredentials() != null) { Element credentialsElement = requestDoc.createElementNS("http://schemas.microsoft.com/windowsazure", "Credentials"); domainJoinElement.appendChild(credentialsElement); if (parameters.getProvisioningConfiguration().getDomainJoin().getCredentials().getDomain() != null) { Element domainElement = requestDoc.createElementNS("http://schemas.microsoft.com/windowsazure", "Domain"); domainElement.appendChild(requestDoc.createTextNode(parameters.getProvisioningConfiguration().getDomainJoin().getCredentials().getDomain())); credentialsElement.appendChild(domainElement); usernameElement.appendChild(requestDoc.createTextNode(parameters.getProvisioningConfiguration().getDomainJoin().getCredentials().getUserName())); credentialsElement.appendChild(usernameElement); passwordElement.appendChild(requestDoc.createTextNode(parameters.getProvisioningConfiguration().getDomainJoin().getCredentials().getPassword())); credentialsElement.appendChild(passwordElement); if (parameters.getProvisioningConfiguration().getDomainJoin().getDomainToJoin() != null) { Element joinDomainElement = requestDoc.createElementNS("http://schemas.microsoft.com/windowsazure", "JoinDomain");
if (rolesParameterItem.getConfigurationSets() != null) { for (ConfigurationSet configurationSetsParameterItem : rolesParameterItem.getConfigurationSets()) { if (configurationSetsParameterItem.getDomainJoin() != null) { if (configurationSetsParameterItem.getDomainJoin().getCredentials() != null) { if (configurationSetsParameterItem.getDomainJoin().getCredentials().getPassword() == null) { throw new NullPointerException("parameters.Roles.ConfigurationSets.DomainJoin.Credentials.Password"); if (configurationSetsParameterItem.getDomainJoin().getCredentials().getUserName() == null) { throw new NullPointerException("parameters.Roles.ConfigurationSets.DomainJoin.Credentials.UserName"); if (configurationSetsItem.getDomainJoin() != null) { Element domainJoinElement = requestDoc.createElementNS("http://schemas.microsoft.com/windowsazure", "DomainJoin"); configurationSetElement.appendChild(domainJoinElement); if (configurationSetsItem.getDomainJoin().getCredentials() != null) { Element credentialsElement = requestDoc.createElementNS("http://schemas.microsoft.com/windowsazure", "Credentials"); domainJoinElement.appendChild(credentialsElement); if (configurationSetsItem.getDomainJoin().getCredentials().getDomain() != null) { Element domainElement = requestDoc.createElementNS("http://schemas.microsoft.com/windowsazure", "Domain"); domainElement.appendChild(requestDoc.createTextNode(configurationSetsItem.getDomainJoin().getCredentials().getDomain())); credentialsElement.appendChild(domainElement); usernameElement.appendChild(requestDoc.createTextNode(configurationSetsItem.getDomainJoin().getCredentials().getUserName())); credentialsElement.appendChild(usernameElement); passwordElement.appendChild(requestDoc.createTextNode(configurationSetsItem.getDomainJoin().getCredentials().getPassword())); credentialsElement.appendChild(passwordElement);
if (configurationSetsParameterItem.getDomainJoin() != null) { if (configurationSetsParameterItem.getDomainJoin().getCredentials() != null) { if (configurationSetsParameterItem.getDomainJoin().getCredentials().getPassword() == null) { throw new NullPointerException("parameters.ConfigurationSets.DomainJoin.Credentials.Password"); if (configurationSetsParameterItem.getDomainJoin().getCredentials().getUserName() == null) { throw new NullPointerException("parameters.ConfigurationSets.DomainJoin.Credentials.UserName"); if (configurationSetsItem.getDomainJoin() != null) { Element domainJoinElement = requestDoc.createElementNS("http://schemas.microsoft.com/windowsazure", "DomainJoin"); configurationSetElement.appendChild(domainJoinElement); if (configurationSetsItem.getDomainJoin().getCredentials() != null) { Element credentialsElement = requestDoc.createElementNS("http://schemas.microsoft.com/windowsazure", "Credentials"); domainJoinElement.appendChild(credentialsElement); if (configurationSetsItem.getDomainJoin().getCredentials().getDomain() != null) { Element domainElement = requestDoc.createElementNS("http://schemas.microsoft.com/windowsazure", "Domain"); domainElement.appendChild(requestDoc.createTextNode(configurationSetsItem.getDomainJoin().getCredentials().getDomain())); credentialsElement.appendChild(domainElement); usernameElement.appendChild(requestDoc.createTextNode(configurationSetsItem.getDomainJoin().getCredentials().getUserName())); credentialsElement.appendChild(usernameElement); passwordElement.appendChild(requestDoc.createTextNode(configurationSetsItem.getDomainJoin().getCredentials().getPassword())); credentialsElement.appendChild(passwordElement); if (configurationSetsItem.getDomainJoin().getDomainToJoin() != null) { Element joinDomainElement = requestDoc.createElementNS("http://schemas.microsoft.com/windowsazure", "JoinDomain");
if (configurationSetsParameterItem.getDomainJoin() != null) { if (configurationSetsParameterItem.getDomainJoin().getCredentials() != null) { if (configurationSetsParameterItem.getDomainJoin().getCredentials().getPassword() == null) { throw new NullPointerException("parameters.ConfigurationSets.DomainJoin.Credentials.Password"); if (configurationSetsParameterItem.getDomainJoin().getCredentials().getUserName() == null) { throw new NullPointerException("parameters.ConfigurationSets.DomainJoin.Credentials.UserName"); if (configurationSetsItem.getDomainJoin() != null) { Element domainJoinElement = requestDoc.createElementNS("http://schemas.microsoft.com/windowsazure", "DomainJoin"); configurationSetElement.appendChild(domainJoinElement); if (configurationSetsItem.getDomainJoin().getCredentials() != null) { Element credentialsElement = requestDoc.createElementNS("http://schemas.microsoft.com/windowsazure", "Credentials"); domainJoinElement.appendChild(credentialsElement); if (configurationSetsItem.getDomainJoin().getCredentials().getDomain() != null) { Element domainElement = requestDoc.createElementNS("http://schemas.microsoft.com/windowsazure", "Domain"); domainElement.appendChild(requestDoc.createTextNode(configurationSetsItem.getDomainJoin().getCredentials().getDomain())); credentialsElement.appendChild(domainElement); usernameElement.appendChild(requestDoc.createTextNode(configurationSetsItem.getDomainJoin().getCredentials().getUserName())); credentialsElement.appendChild(usernameElement); passwordElement.appendChild(requestDoc.createTextNode(configurationSetsItem.getDomainJoin().getCredentials().getPassword())); credentialsElement.appendChild(passwordElement); if (configurationSetsItem.getDomainJoin().getDomainToJoin() != null) { Element joinDomainElement = requestDoc.createElementNS("http://schemas.microsoft.com/windowsazure", "JoinDomain");
if (parameters.getProvisioningConfiguration().getDomainJoin() != null) { if (parameters.getProvisioningConfiguration().getDomainJoin().getCredentials() != null) { if (parameters.getProvisioningConfiguration().getDomainJoin().getCredentials().getPassword() == null) { throw new NullPointerException("parameters.ProvisioningConfiguration.DomainJoin.Credentials.Password"); if (parameters.getProvisioningConfiguration().getDomainJoin().getCredentials().getUserName() == null) { throw new NullPointerException("parameters.ProvisioningConfiguration.DomainJoin.Credentials.UserName"); if (parameters.getProvisioningConfiguration().getDomainJoin() != null) { Element domainJoinElement = requestDoc.createElementNS("http://schemas.microsoft.com/windowsazure", "DomainJoin"); provisioningConfigurationElement.appendChild(domainJoinElement); if (parameters.getProvisioningConfiguration().getDomainJoin().getCredentials() != null) { Element credentialsElement = requestDoc.createElementNS("http://schemas.microsoft.com/windowsazure", "Credentials"); domainJoinElement.appendChild(credentialsElement); if (parameters.getProvisioningConfiguration().getDomainJoin().getCredentials().getDomain() != null) { Element domainElement = requestDoc.createElementNS("http://schemas.microsoft.com/windowsazure", "Domain"); domainElement.appendChild(requestDoc.createTextNode(parameters.getProvisioningConfiguration().getDomainJoin().getCredentials().getDomain())); credentialsElement.appendChild(domainElement); usernameElement.appendChild(requestDoc.createTextNode(parameters.getProvisioningConfiguration().getDomainJoin().getCredentials().getUserName())); credentialsElement.appendChild(usernameElement); passwordElement.appendChild(requestDoc.createTextNode(parameters.getProvisioningConfiguration().getDomainJoin().getCredentials().getPassword())); credentialsElement.appendChild(passwordElement); if (parameters.getProvisioningConfiguration().getDomainJoin().getDomainToJoin() != null) { Element joinDomainElement = requestDoc.createElementNS("http://schemas.microsoft.com/windowsazure", "JoinDomain");
if (configurationSetsParameterItem.getDomainJoin() != null) { if (configurationSetsParameterItem.getDomainJoin().getCredentials() != null) { if (configurationSetsParameterItem.getDomainJoin().getCredentials().getPassword() == null) { throw new NullPointerException("parameters.Roles.ConfigurationSets.DomainJoin.Credentials.Password"); if (configurationSetsParameterItem.getDomainJoin().getCredentials().getUserName() == null) { throw new NullPointerException("parameters.Roles.ConfigurationSets.DomainJoin.Credentials.UserName"); if (configurationSetsItem.getDomainJoin() != null) { Element domainJoinElement = requestDoc.createElementNS("http://schemas.microsoft.com/windowsazure", "DomainJoin"); configurationSetElement.appendChild(domainJoinElement); if (configurationSetsItem.getDomainJoin().getCredentials() != null) { Element credentialsElement = requestDoc.createElementNS("http://schemas.microsoft.com/windowsazure", "Credentials"); domainJoinElement.appendChild(credentialsElement); if (configurationSetsItem.getDomainJoin().getCredentials().getDomain() != null) { Element domainElement = requestDoc.createElementNS("http://schemas.microsoft.com/windowsazure", "Domain"); domainElement.appendChild(requestDoc.createTextNode(configurationSetsItem.getDomainJoin().getCredentials().getDomain())); credentialsElement.appendChild(domainElement); usernameElement.appendChild(requestDoc.createTextNode(configurationSetsItem.getDomainJoin().getCredentials().getUserName())); credentialsElement.appendChild(usernameElement); passwordElement.appendChild(requestDoc.createTextNode(configurationSetsItem.getDomainJoin().getCredentials().getPassword())); credentialsElement.appendChild(passwordElement); if (configurationSetsItem.getDomainJoin().getDomainToJoin() != null) { Element joinDomainElement = requestDoc.createElementNS("http://schemas.microsoft.com/windowsazure", "JoinDomain");