コード例 #1
0
 @Override
 public void copyTo(TemplateOptions to) {
   super.copyTo(to);
   if (to instanceof VCloudTemplateOptions) {
     VCloudTemplateOptions eTo = VCloudTemplateOptions.class.cast(to);
     if (getCustomizationScript() != null) eTo.customizationScript(getCustomizationScript());
     if (getDescription() != null) eTo.description(getDescription());
     if (getIpAddressAllocationMode() != null)
       eTo.ipAddressAllocationMode(getIpAddressAllocationMode());
   }
 }
コード例 #2
0
 /** @see VCloudTemplateOptions#customizationScript */
 public static VCloudTemplateOptions customizationScript(String customizationScript) {
   VCloudTemplateOptions options = new VCloudTemplateOptions();
   return VCloudTemplateOptions.class.cast(options.customizationScript(customizationScript));
 }
コード例 #3
0
 /** @see VCloudTemplateOptions#description */
 public static VCloudTemplateOptions description(String description) {
   VCloudTemplateOptions options = new VCloudTemplateOptions();
   return VCloudTemplateOptions.class.cast(options.description(description));
 }
コード例 #4
0
 /** @see TemplateOptions#authorizePublicKey */
 public static VCloudTemplateOptions authorizePublicKey(Payload rsaKey) {
   VCloudTemplateOptions options = new VCloudTemplateOptions();
   return VCloudTemplateOptions.class.cast(options.authorizePublicKey(rsaKey));
 }
コード例 #5
0
 /** @see TemplateOptions#withDetails */
 public static VCloudTemplateOptions withDetails() {
   VCloudTemplateOptions options = new VCloudTemplateOptions();
   return VCloudTemplateOptions.class.cast(options.withMetadata());
 }
コード例 #6
0
 /** @see TemplateOptions#installPrivateKey */
 public static VCloudTemplateOptions installPrivateKey(Payload rsaKey) {
   VCloudTemplateOptions options = new VCloudTemplateOptions();
   return VCloudTemplateOptions.class.cast(options.installPrivateKey(rsaKey));
 }
コード例 #7
0
 /** @see TemplateOptions#runScript */
 public static VCloudTemplateOptions runScript(Payload script) {
   VCloudTemplateOptions options = new VCloudTemplateOptions();
   return VCloudTemplateOptions.class.cast(options.runScript(script));
 }
コード例 #8
0
 /** @see TemplateOptions#port */
 public static VCloudTemplateOptions blockOnPort(int port, int seconds) {
   VCloudTemplateOptions options = new VCloudTemplateOptions();
   return VCloudTemplateOptions.class.cast(options.blockOnPort(port, seconds));
 }
コード例 #9
0
 /** @see TemplateOptions#inboundPorts */
 public static VCloudTemplateOptions inboundPorts(int... ports) {
   VCloudTemplateOptions options = new VCloudTemplateOptions();
   return VCloudTemplateOptions.class.cast(options.inboundPorts(ports));
 }
コード例 #10
0
 /** @see VCloudTemplateOptions#ipAddressAllocationMode */
 public static VCloudTemplateOptions ipAddressAllocationMode(
     IpAddressAllocationMode ipAddressAllocationMode) {
   VCloudTemplateOptions options = new VCloudTemplateOptions();
   return VCloudTemplateOptions.class.cast(
       options.ipAddressAllocationMode(ipAddressAllocationMode));
 }