> + @Nullable
> Boolean deleteOnTermination,
> + @Nullable String
> volumeType,
> + @Nullable
> Integer iops,
> + @Nullable
> Boolean encrypted) {
> + addAdvancedEbsOptions(deleteOnTermination, volumeType, iops,
> encrypted);
> + addNewEphemeralBlockDevice(deviceName, virtualName, volumeSize);
> +
> + return this;
> + }
> +
> + private RegisterImageBackedByEbsOptions addAdvancedEbsOptions(@Nullable
> Boolean deleteOnTermination,
> + @Nullable
> String volumeType,
> + @Nullable
> Integer iops,
> + @Nullable
> Boolean encrypted) {
> + if (deleteOnTermination == null)
> + deleteOnTermination = false;
if the defaults for delete and encrypt are false, I'd probably use primitives
and only add the param on true (universally)
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/408/files#r13947674