/** * Initializes a new instance of the DeploymentWalkUpgradeDomainParameters * class with required arguments. * * @param upgradeDomain An integer value that identifies the update domain * to update. Update domains are identified with a zero-based index: the * first update domain has an ID of 0, the second has an ID of 1, and so on. */ public DeploymentWalkUpgradeDomainParameters(int upgradeDomain) { this.setUpgradeDomain(upgradeDomain); } }
/** * Required. A name for the cloud service. The name can be up to 100 * characters in length. The name can be used to identify the storage * account for your tracking purposes. * @return The Label value. */ public String getLabel() { if (this.label == null) { return this.getServiceName(); } else { return this.label; } }
private ConfigurationSet createConfigNetwork(){ ConfigurationSet networkConfigset = new ConfigurationSet(); networkConfigset.setConfigurationSetType(ConfigurationSetTypes.NETWORKCONFIGURATION); // Define endpoints ArrayList<InputEndpoint> enpoints = new ArrayList<InputEndpoint>(); networkConfigset.setInputEndpoints(enpoints); InputEndpoint sshPort = new InputEndpoint(); enpoints.add(sshPort); sshPort.setPort(22); sshPort.setLocalPort(22); sshPort.setName("ssh"); sshPort.setProtocol(InputEndpointTransportProtocol.TCP); return networkConfigset; }
/** * Initializes a new instance of the ConfigurationSet class. * */ public ConfigurationSet() { this.setInputEndpoints(new LazyArrayList<InputEndpoint>()); this.setNetworkInterfaces(new LazyArrayList<NetworkInterface>()); this.setPublicIPs(new LazyArrayList<ConfigurationSet.PublicIP>()); this.setStoredCertificateSettings(new LazyArrayList<StoredCertificateSettings>()); this.setSubnetNames(new LazyArrayList<String>()); }
/** * Initializes a new instance of the Role class. * */ public Role() { this.setConfigurationSets(new LazyArrayList<ConfigurationSet>()); this.setDataVirtualHardDisks(new LazyArrayList<DataVirtualHardDisk>()); this.setResourceExtensionReferences(new LazyArrayList<ResourceExtensionReference>()); } }
/** * Initializes a new instance of the SshSettings class. * */ public SshSettings() { this.setKeyPairs(new LazyArrayList<SshSettingKeyPair>()); this.setPublicKeys(new LazyArrayList<SshSettingPublicKey>()); } }
/** * Gets the sequence of Certificates. * */ public Iterator<ServiceCertificateListResponse.Certificate> iterator() { return this.getCertificates().iterator(); }
/** * Initializes a new instance of the VirtualMachineUpdateParameters class. * */ public VirtualMachineUpdateParameters() { this.setConfigurationSets(new LazyArrayList<ConfigurationSet>()); this.setDataVirtualHardDisks(new LazyArrayList<DataVirtualHardDisk>()); this.setResourceExtensionReferences(new LazyArrayList<ResourceExtensionReference>()); }
/** * Initializes a new instance of the * VirtualMachineCreateDeploymentParameters class. * */ public VirtualMachineCreateDeploymentParameters() { this.setLoadBalancers(new LazyArrayList<LoadBalancer>()); this.setRoles(new LazyArrayList<Role>()); } }
/** * Gets the sequence of ExtensionImages. * */ public Iterator<ExtensionImage> iterator() { return this.getExtensionImages().iterator(); } }
/** * Gets the sequence of VMImages. * */ public Iterator<VirtualMachineVMImageListResponse.VirtualMachineVMImage> iterator() { return this.getVMImages().iterator(); }
/** * Gets the sequence of ResourceExtensions. * */ public Iterator<VirtualMachineExtensionListResponse.ResourceExtension> iterator() { return this.getResourceExtensions().iterator(); }
/** * Initializes a new instance of the VirtualMachineVMImageGetDetailsResponse * class. * */ public VirtualMachineVMImageGetDetailsResponse() { super(); this.setDataDiskConfigurations(new LazyArrayList<VirtualMachineVMImageListResponse.DataDiskConfiguration>()); this.setReplicationProgress(new LazyArrayList<VirtualMachineVMImageGetDetailsResponse.ReplicationProgressElement>()); }
/** * Initializes a new instance of the InputEndpoint class. * */ public InputEndpoint() { this.setRules(new LazyArrayList<AccessControlListRule>()); }
/** * Initializes a new instance of the VirtualMachineVMImageCreateParameters * class. * */ public VirtualMachineVMImageCreateParameters() { this.setDataDiskConfigurations(new LazyArrayList<DataDiskConfigurationCreateParameters>()); }
/** * Initializes a new instance of the VirtualMachineVMImageUpdateParameters * class. * */ public VirtualMachineVMImageUpdateParameters() { this.setDataDiskConfigurations(new LazyArrayList<DataDiskConfigurationUpdateParameters>()); }
/** * Initializes a new instance of the DeploymentCreateParameters class. * */ public DeploymentCreateParameters() { this.setExtendedProperties(new LazyHashMap<String, String>()); } }
/** * Initializes a new instance of the VirtualMachineDiskListResponse class. * */ public VirtualMachineDiskListResponse() { super(); this.setDisks(new LazyArrayList<VirtualMachineDiskListResponse.VirtualMachineDisk>()); }
/** * Required. A name for the cloud service. The name can be up to 100 * characters in length. The name can be used to identify the storage * account for your tracking purposes. * @return The Label value. */ public String getLabel() { if (this.label == null) { return this.getServiceName(); } else { return this.label; } }
/** * Gets the sequence of ExtensionImages. * */ public Iterator<HostedServiceListAvailableExtensionsResponse.ExtensionImage> iterator() { return this.getExtensionImages().iterator(); }