public abstract class AbstractPortableTemplateBuilder<T extends AbstractPortableTemplateBuilder<?>>
extends java.lang.Object
implements org.jclouds.compute.domain.TemplateBuilder
Constructor and Description |
---|
AbstractPortableTemplateBuilder() |
Modifier and Type | Method and Description |
---|---|
T |
addOptions(org.jclouds.compute.options.TemplateOptions options)
adds customization options; if options have already been set, this will additively set selected options
(but not all, see addTemplateOptions for more info)
|
T |
any() |
T |
biggest() |
T |
blank()
clears everything set in this template, including any default from the compute service
|
boolean |
equals(java.lang.Object obj) |
T |
fastest() |
T |
fromHardware(org.jclouds.compute.domain.Hardware hardware) |
T |
fromImage(org.jclouds.compute.domain.Image image) |
T |
fromTemplate(org.jclouds.compute.domain.Template template) |
java.util.List<org.jclouds.compute.options.TemplateOptions> |
getAdditionalOptions() |
org.jclouds.compute.domain.Hardware |
getHardware() |
java.lang.String |
getHardwareId() |
java.lang.String |
getHypervisorMatchesRegex() |
org.jclouds.compute.domain.Image |
getImage() |
java.lang.String |
getImageDescriptionMatchesRegex() |
java.lang.String |
getImageId() |
<any> |
getImageMatchesCondition() |
java.lang.String |
getImageNameMatchesRegex() |
java.lang.String |
getImageVersionMatchesRegex() |
java.lang.Boolean |
getIs64bit() |
java.lang.String |
getLocationId() |
java.lang.Double |
getMinCores() |
java.lang.Double |
getMinDisk()
megabytes
|
java.lang.Integer |
getMinRam()
megabytes
|
org.jclouds.compute.options.TemplateOptions |
getOptions()
sets customization options; may be null if not set.
|
java.lang.String |
getOsArchitectureMatchesRegex() |
java.lang.String |
getOsDescriptionMatchesRegex() |
org.jclouds.compute.domain.OsFamily |
getOsFamily() |
java.lang.String |
getOsNameMatchesRegex() |
java.lang.String |
getOsVersionMatchesRegex() |
org.jclouds.compute.domain.Template |
getTemplate() |
T |
hardwareId(java.lang.String hardwareId) |
int |
hashCode() |
T |
hypervisorMatches(java.lang.String hypervisorRegex) |
<any> |
imageChooser() |
T |
imageChooser(<any> imageChooserFunction) |
T |
imageDescriptionMatches(java.lang.String imageDescriptionRegex) |
T |
imageId(java.lang.String imageId) |
T |
imageMatches(<any> condition) |
T |
imageNameMatches(java.lang.String imageNameRegex) |
T |
imageVersionMatches(java.lang.String imageVersionRegex) |
boolean |
isBlank()
true if the templateBuilder spec is blank (ignoring customization options e.g.
|
T |
locationId(java.lang.String locationId) |
T |
minCores(double minCores) |
T |
minDisk(double gigabytes) |
T |
minRam(int megabytes) |
T |
options(org.jclouds.compute.options.TemplateOptions options) |
T |
os64Bit(boolean is64bit) |
T |
osArchMatches(java.lang.String osArchitectureRegex) |
T |
osDescriptionMatches(java.lang.String osDescriptionRegex) |
T |
osFamily(org.jclouds.compute.domain.OsFamily os) |
T |
osNameMatches(java.lang.String osNameRegex) |
T |
osVersionMatches(java.lang.String osVersionRegex) |
T |
smallest() |
java.lang.String |
toString() |
public T any()
any
in interface org.jclouds.compute.domain.TemplateBuilder
public T fromHardware(org.jclouds.compute.domain.Hardware hardware)
fromHardware
in interface org.jclouds.compute.domain.TemplateBuilder
public org.jclouds.compute.domain.Hardware getHardware()
public T fromImage(org.jclouds.compute.domain.Image image)
fromImage
in interface org.jclouds.compute.domain.TemplateBuilder
public org.jclouds.compute.domain.Image getImage()
public T fromTemplate(org.jclouds.compute.domain.Template template)
fromTemplate
in interface org.jclouds.compute.domain.TemplateBuilder
public org.jclouds.compute.domain.Template getTemplate()
public T smallest()
smallest
in interface org.jclouds.compute.domain.TemplateBuilder
public T fastest()
fastest
in interface org.jclouds.compute.domain.TemplateBuilder
public T biggest()
biggest
in interface org.jclouds.compute.domain.TemplateBuilder
public T locationId(java.lang.String locationId)
locationId
in interface org.jclouds.compute.domain.TemplateBuilder
public java.lang.String getLocationId()
public T imageId(java.lang.String imageId)
imageId
in interface org.jclouds.compute.domain.TemplateBuilder
public java.lang.String getImageId()
public T hardwareId(java.lang.String hardwareId)
hardwareId
in interface org.jclouds.compute.domain.TemplateBuilder
public java.lang.String getHardwareId()
public T osNameMatches(java.lang.String osNameRegex)
osNameMatches
in interface org.jclouds.compute.domain.TemplateBuilder
public java.lang.String getOsNameMatchesRegex()
public T osDescriptionMatches(java.lang.String osDescriptionRegex)
osDescriptionMatches
in interface org.jclouds.compute.domain.TemplateBuilder
public java.lang.String getOsDescriptionMatchesRegex()
public T osVersionMatches(java.lang.String osVersionRegex)
osVersionMatches
in interface org.jclouds.compute.domain.TemplateBuilder
public java.lang.String getOsVersionMatchesRegex()
public T osArchMatches(java.lang.String osArchitectureRegex)
osArchMatches
in interface org.jclouds.compute.domain.TemplateBuilder
public java.lang.String getOsArchitectureMatchesRegex()
public T os64Bit(boolean is64bit)
os64Bit
in interface org.jclouds.compute.domain.TemplateBuilder
public java.lang.Boolean getIs64bit()
public T osFamily(org.jclouds.compute.domain.OsFamily os)
osFamily
in interface org.jclouds.compute.domain.TemplateBuilder
public org.jclouds.compute.domain.OsFamily getOsFamily()
public T hypervisorMatches(java.lang.String hypervisorRegex)
hypervisorMatches
in interface org.jclouds.compute.domain.TemplateBuilder
public java.lang.String getHypervisorMatchesRegex()
public T imageNameMatches(java.lang.String imageNameRegex)
imageNameMatches
in interface org.jclouds.compute.domain.TemplateBuilder
public java.lang.String getImageNameMatchesRegex()
public T imageDescriptionMatches(java.lang.String imageDescriptionRegex)
imageDescriptionMatches
in interface org.jclouds.compute.domain.TemplateBuilder
public java.lang.String getImageDescriptionMatchesRegex()
public T imageVersionMatches(java.lang.String imageVersionRegex)
imageVersionMatches
in interface org.jclouds.compute.domain.TemplateBuilder
public java.lang.String getImageVersionMatchesRegex()
public T imageMatches(<any> condition)
imageMatches
in interface org.jclouds.compute.domain.TemplateBuilder
public <any> getImageMatchesCondition()
public T minCores(double minCores)
minCores
in interface org.jclouds.compute.domain.TemplateBuilder
public java.lang.Double getMinCores()
public T minRam(int megabytes)
minRam
in interface org.jclouds.compute.domain.TemplateBuilder
public java.lang.Integer getMinRam()
public T minDisk(double gigabytes)
minDisk
in interface org.jclouds.compute.domain.TemplateBuilder
public java.lang.Double getMinDisk()
public T imageChooser(<any> imageChooserFunction)
imageChooser
in interface org.jclouds.compute.domain.TemplateBuilder
public <any> imageChooser()
public T blank()
public boolean isBlank()
public T options(org.jclouds.compute.options.TemplateOptions options)
options
in interface org.jclouds.compute.domain.TemplateBuilder
public org.jclouds.compute.options.TemplateOptions getOptions()
public T addOptions(org.jclouds.compute.options.TemplateOptions options)
public java.util.List<org.jclouds.compute.options.TemplateOptions> getAdditionalOptions()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object