> +      String volumeSize = "";
> +      @Named("volume_id")
> +      String volumeId;
> +      @Named("delete_on_termination")
> +      int deleteOnTermination = 0;
> +      @Named("device_name")
> +      String deviceName;
> +
> +      public BlockDevice(String volumeId, String deviceName){
> +         this(volumeId, deviceName, true);
> +      }
> +
> +      public BlockDevice(String volumeId, String deviceName, boolean 
> deleteWhenInstanceTerminated){
> +         this.volumeId = volumeId;
> +         this.deviceName = deviceName;
> +         this.deleteOnTermination = deleteWhenInstanceTerminated ? 1 : 0;

No need to use a different parameter name here. @everett-toews: would you 
normally do something like creating constants for 0 and 1 here? Or is there 
some kind of "boolean to string JSON mapper" we could use?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/326/files#r10999246

Reply via email to