Interface OptionsConverter
- All Known Implementing Classes:
AdvancedNetworkOptionsConverter
,BasicNetworkOptionsConverter
public interface OptionsConverter
Convert template options into DeployVirtualMachineOptions. Expressed as an interface, because in
CloudStack different zone network types have different requirements when it comes to networks and
security groups.
-
Method Summary
Modifier and TypeMethodDescriptionapply
(CloudStackTemplateOptions templateOptions, Map<String, Network> networks, String zoneId, DeployVirtualMachineOptions options) Convert a CloudStackTemplateOptions and apply to a DeployVirtualMachineOptions instance.
-
Method Details
-
apply
DeployVirtualMachineOptions apply(CloudStackTemplateOptions templateOptions, Map<String, Network> networks, String zoneId, DeployVirtualMachineOptions options) Convert a CloudStackTemplateOptions and apply to a DeployVirtualMachineOptions instance.- Parameters:
templateOptions
- the input set of optionsnetworks
- the networks availablezoneId
- the zone of the new virtual machineoptions
- where the resulting set of options will be applied- Returns:
- same as "options" parameter
-