Ejemplo n.º 1
0
 @Override
 public Image build() {
   return Image.create(
       id,
       name,
       size,
       type,
       location,
       osType,
       isPublic,
       isWriteable,
       isBootable,
       cpuHotPlug,
       cpuHotUnPlug,
       ramHotPlug,
       ramHotUnPlug,
       nicHotPlug,
       nicHotUnPlug,
       discVirtioHotPlug,
       discVirtioHotUnPlug);
 }
Ejemplo n.º 2
0
 public Builder fromImage(Image in) {
   return this.id(in.id())
       .isBootable(in.isBootable())
       .isCpuHotPlug(in.isCpuHotPlug())
       .isCpuHotUnPlug(in.isCpuHotUnPlug())
       .isDiscVirtioHotPlug(in.isDiscVirtioHotPlug())
       .isDiscVirtioHotUnPlug(in.isDiscVirtioHotUnPlug())
       .isNicHotPlug(in.isNicHotPlug())
       .isNicHotUnPlug(in.isNicHotUnPlug())
       .isPublic(in.isPublic())
       .isRamHotPlug(in.isRamHotPlug())
       .isRamHotUnPlug(in.isRamHotUnPlug())
       .isWriteable(in.isWriteable())
       .location(in.location())
       .name(in.name())
       .osType(in.osType())
       .size(in.size())
       .type(in.type());
 }