public Volume build() { return new VolumeImpl(id, type, size, device, bootDevice, durable); }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; VolumeImpl that = VolumeImpl.class.cast(o); return equal(this.id, that.id) && equal(this.getType(), that.getType()) && equal(this.size, that.size) && equal(this.device, that.device) && equal(this.bootDevice, that.bootDevice) && equal(this.durable, that.durable); }
@Override public String toString() { return string().toString(); }
public Volume build() { return new VolumeImpl(id, type, size, device, bootDevice, durable); }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; VolumeImpl that = VolumeImpl.class.cast(o); return equal(this.id, that.id) && equal(this.getType(), that.getType()) && equal(this.size, that.size) && equal(this.device, that.device) && equal(this.bootDevice, that.bootDevice) && equal(this.durable, that.durable); }
@Override public String toString() { return string().toString(); }
public Volume build() { return new VolumeImpl(id, type, size, device, bootDevice, durable); }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; VolumeImpl that = VolumeImpl.class.cast(o); return equal(this.id, that.id) && equal(this.getType(), that.getType()) && equal(this.size, that.size) && equal(this.device, that.device) && equal(this.bootDevice, that.bootDevice) && equal(this.durable, that.durable); }
@Override public String toString() { return string().toString(); }
/** * @see InstanceType#C1_XLARGE */ public static EC2HardwareBuilder c1_xlarge() { return new EC2HardwareBuilder(InstanceType.C1_XLARGE) .ram(7168) .processors(ImmutableList.of(new Processor(8.0, 2.5))) .volumes( ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false), new VolumeImpl(420.0f, "/dev/sdb", false, false), new VolumeImpl(420.0f, "/dev/sdc", false, false), new VolumeImpl( 420.0f, "/dev/sdd", false, false), new VolumeImpl(420.0f, "/dev/sde", false, false))) .is64Bit(true); }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; VolumeImpl that = VolumeImpl.class.cast(o); return equal(this.id, that.id) && equal(this.getType(), that.getType()) && equal(this.size, that.size) && equal(this.device, that.device) && equal(this.bootDevice, that.bootDevice) && equal(this.durable, that.durable); }
@Override public String toString() { return string().toString(); }
/** * @see InstanceType#M1_XLARGE */ public static EC2HardwareBuilder m1_xlarge() { return new EC2HardwareBuilder(InstanceType.M1_XLARGE) .ram(15360) .processors(ImmutableList.of(new Processor(4.0, 2.0))) .volumes( ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false), new VolumeImpl(420.0f, "/dev/sdb", false, false), new VolumeImpl(420.0f, "/dev/sdc", false, false), new VolumeImpl( 420.0f, "/dev/sdd", false, false), new VolumeImpl(420.0f, "/dev/sde", false, false))) .is64Bit(true); }
protected ToStringHelper string() { return MoreObjects.toStringHelper("").omitNullValues().add("id", id).add("type", getType()).add("size", size) .add("device", device).add("bootDevice", bootDevice).add("durable", durable); }
public static EC2HardwareBuilder cc2_8xlarge() { return new EC2HardwareBuilder(InstanceType.CC2_8XLARGE) .ram(60 * 1024 + 512) .processors(ImmutableList.of(new Processor(8.0, 5.5), new Processor(8.0, 5.5))) .volumes( ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false), new VolumeImpl(840.0f, "/dev/sdb", false, false), new VolumeImpl(840.0f, "/dev/sdc", false, false), new VolumeImpl( 840.0f, "/dev/sdb", false, false), new VolumeImpl(840.0f, "/dev/sdc", false, false))) .virtualizationType(VirtualizationType.HVM); }
protected ToStringHelper string() { return MoreObjects.toStringHelper("").omitNullValues().add("id", id).add("type", getType()).add("size", size) .add("device", device).add("bootDevice", bootDevice).add("durable", durable); }
/** * @see InstanceType#C1_XLARGE */ public static EC2HardwareBuilder c1_xlarge() { return new EC2HardwareBuilder(InstanceType.C1_XLARGE) .ram(7168) .processors(ImmutableList.of(new Processor(8.0, 2.5))) .volumes( ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false), new VolumeImpl(420.0f, "/dev/sdb", false, false), new VolumeImpl(420.0f, "/dev/sdc", false, false), new VolumeImpl( 420.0f, "/dev/sdd", false, false), new VolumeImpl(420.0f, "/dev/sde", false, false))) .is64Bit(true); }
protected ToStringHelper string() { return Objects.toStringHelper("").omitNullValues().add("id", id).add("type", getType()).add("size", size) .add("device", device).add("bootDevice", bootDevice).add("durable", durable); }
/** * @see InstanceType#M1_XLARGE */ public static EC2HardwareBuilder m1_xlarge() { return new EC2HardwareBuilder(InstanceType.M1_XLARGE) .ram(15360) .processors(ImmutableList.of(new Processor(4.0, 2.0))) .volumes( ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false), new VolumeImpl(420.0f, "/dev/sdb", false, false), new VolumeImpl(420.0f, "/dev/sdc", false, false), new VolumeImpl( 420.0f, "/dev/sdd", false, false), new VolumeImpl(420.0f, "/dev/sde", false, false))) .is64Bit(true); }
protected ToStringHelper string() { return Objects.toStringHelper("").omitNullValues().add("id", id).add("type", getType()).add("size", size) .add("device", device).add("bootDevice", bootDevice).add("durable", durable); }