jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trevor Flanagan <notificati...@github.com>
Subject Re: [jclouds/jclouds-labs] Adding Dimension Data ServerImageAPI (#380)
Date Mon, 10 Apr 2017 15:33:16 GMT
trevorflanagan commented on this pull request.



> +
+      public abstract Builder progress(Progress progress);
+
+      abstract CustomerImage autoBuild();
+
+      abstract List<Disk> disks();
+
+      abstract List<String> softwareLabels();
+
+      abstract List<ImageNic> nics();
+
+      public CustomerImage build() {
+         disks(disks() != null ? ImmutableList.copyOf(disks()) : ImmutableList.<Disk>of());
+         softwareLabels(softwareLabels() != null ? ImmutableList.copyOf(softwareLabels())
: ImmutableList.<String>of());
+         nics(nics() != null ? ImmutableList.copyOf(nics()) : ImmutableList.<ImageNic>of());
+         return autoBuild();

:thumbsup:

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/380#discussion_r110688374
Mime
View raw message