@Singleton public class BindInstantiateVAppTemplateParamsToXmlPayload extends Object implements org.jclouds.rest.MapBinder
| Modifier and Type | Field and Description |
|---|---|
protected String |
ns |
protected String |
schema |
protected Map<org.jclouds.cim.ResourceAllocationSettingData.ResourceType,String> |
virtualHardwareToInstanceId |
| Constructor and Description |
|---|
BindInstantiateVAppTemplateParamsToXmlPayload(org.jclouds.rest.binders.BindToStringPayload stringBinder,
String ns,
String schema,
com.google.common.base.Supplier<ReferenceType> network,
String fenceMode) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addNetworkConfig(com.jamesmurty.utils.XMLBuilder instantiationParamsBuilder,
String name,
String fenceMode,
URI network) |
protected void |
addVirtualQuantityIfPresent(com.jamesmurty.utils.XMLBuilder instantiationParamsBuilder,
SortedMap<org.jclouds.cim.ResourceAllocationSettingData.ResourceType,String> virtualHardwareQuantity) |
<R extends org.jclouds.http.HttpRequest> |
bindToRequest(R request,
Map<String,Object> postParams) |
<R extends org.jclouds.http.HttpRequest> |
bindToRequest(R request,
Object input) |
protected com.jamesmurty.utils.XMLBuilder |
buildRoot(String name) |
protected InstantiateVAppTemplateOptions |
findOptionsInArgsOrNull(org.jclouds.rest.internal.GeneratedHttpRequest gRequest) |
protected String |
generateXml(String name,
String template,
SortedMap<org.jclouds.cim.ResourceAllocationSettingData.ResourceType,String> virtualHardwareQuantity,
String networkName,
String fenceMode,
URI network) |
protected String |
ifNullDefaultTo(Object value,
String defaultValue) |
@Inject
public BindInstantiateVAppTemplateParamsToXmlPayload(org.jclouds.rest.binders.BindToStringPayload stringBinder,
@Named(value="jclouds.vcloud.xml.ns")
String ns,
@Named(value="jclouds.vcloud.xml.schema")
String schema,
com.google.common.base.Supplier<ReferenceType> network,
@Named(value="jclouds.vcloud.defaults.fencemode")
String fenceMode)
public <R extends org.jclouds.http.HttpRequest> R bindToRequest(R request,
Map<String,Object> postParams)
bindToRequest in interface org.jclouds.rest.MapBinderprotected String generateXml(String name, String template, SortedMap<org.jclouds.cim.ResourceAllocationSettingData.ResourceType,String> virtualHardwareQuantity, String networkName, @Nullable String fenceMode, URI network) throws ParserConfigurationException, FactoryConfigurationError, TransformerException
protected void addNetworkConfig(com.jamesmurty.utils.XMLBuilder instantiationParamsBuilder,
String name,
@Nullable
String fenceMode,
URI network)
protected com.jamesmurty.utils.XMLBuilder buildRoot(String name) throws ParserConfigurationException, FactoryConfigurationError
public <R extends org.jclouds.http.HttpRequest> R bindToRequest(R request,
Object input)
bindToRequest in interface org.jclouds.rest.Binderprotected InstantiateVAppTemplateOptions findOptionsInArgsOrNull(org.jclouds.rest.internal.GeneratedHttpRequest gRequest)
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.