public interface TemplateBuilder
Modifier and Type | Method and Description |
---|---|
TemplateBuilder |
any()
prime this builder with parameters known to work on the current compute provider.
|
TemplateBuilder |
biggest()
configure this template to the largest hardware, based on cores, ram, then disk
|
Template |
build()
Generate an immutable template from the current builder.
|
TemplateBuilder |
fastest()
configure this template to the fastest hardware, based on cpu
|
TemplateBuilder |
from(String spec)
Configure and return this template, updating it with the populated values of the given
spec . |
TemplateBuilder |
from(TemplateBuilderSpec spec)
Configure and return this template, updating it with the populated values of the given
spec . |
TemplateBuilder |
fromHardware(Hardware hardware)
Configure this template to require the minimum hardware of the parameter.
|
TemplateBuilder |
fromImage(Image image)
Configure this template to fuzzy-match on the image parameter
|
TemplateBuilder |
fromTemplate(Template image)
Configure this template to match the resources of the template parameter.
|
TemplateBuilder |
hardwareId(String hardwareId)
Configure this template to require a specific hardwareId.
|
TemplateBuilder |
hypervisorMatches(String hypervisorRegex)
Configure this template to have an hypervisor that matches the regular expression
|
TemplateBuilder |
imageDescriptionMatches(String imageDescriptionRegex)
Configure this template to have an image description that matches the regular expression
|
TemplateBuilder |
imageId(String imageId)
Configure this template to require a specific imageId.
|
TemplateBuilder |
imageMatches(com.google.common.base.Predicate<Image> condition)
Configure this template to have an image description that matches the supplied condition
ex.
|
TemplateBuilder |
imageNameMatches(String imageNameRegex)
Configure this template to have an image name that matches the regular expression
|
TemplateBuilder |
imageVersionMatches(String imageVersionRegex)
Configure this template to have an image version that matches the regular expression
|
TemplateBuilder |
locationId(String locationId)
Configure this template to start in a specific location
|
TemplateBuilder |
minCores(double minCores)
Configure this template to require the minimum cores below
|
TemplateBuilder |
minDisk(double gigabytes)
Configure this template with required minimum disk space in gigabytes
|
TemplateBuilder |
minRam(int megabytes)
Configure this template to require the minimum ram in megabytes below
|
TemplateBuilder |
options(TemplateOptions options)
Sets options on the template (i.e.
|
TemplateBuilder |
os64Bit(boolean is64bit)
Configure this template to require a 64 bit operating system.
|
TemplateBuilder |
osArchMatches(String architecture)
Configure this template to require a specific architecture.
|
TemplateBuilder |
osDescriptionMatches(String osDescriptionRegex)
Configure this template to have an operating system description that matches the regular
expression
|
TemplateBuilder |
osFamily(OsFamily os)
Configure this template to use a specific operating system image.
|
TemplateBuilder |
osNameMatches(String osNameRegex)
Configure this template to have an operating system name that matches the regular expression
|
TemplateBuilder |
osVersionMatches(String osVersionRegex)
Configure this template to have an os version that matches the regular expression
|
TemplateBuilder |
smallest()
configure this template to the smallest hardware, based on cores, ram, then disk
|
TemplateBuilder any()
TemplateBuilder fromHardware(Hardware hardware)
TemplateBuilder fromImage(Image image)
TemplateBuilder fromTemplate(Template image)
@Beta TemplateBuilder from(TemplateBuilderSpec spec)
spec
.@Beta TemplateBuilder from(String spec)
spec
.
This is especially useful for command-line configuration of a TemplateBuilder
.spec
- a String in the format specified by TemplateBuilderSpec
TemplateBuilder smallest()
TemplateBuilder fastest()
TemplateBuilder biggest()
TemplateBuilder hypervisorMatches(String hypervisorRegex)
TemplateBuilder osFamily(OsFamily os)
TemplateBuilder locationId(String locationId)
NoSuchElementException
- if no location matches the id specifiedTemplateBuilder imageId(String imageId)
location
TemplateBuilder hardwareId(String hardwareId)
TemplateBuilder osNameMatches(String osNameRegex)
TemplateBuilder osDescriptionMatches(String osDescriptionRegex)
TemplateBuilder osVersionMatches(String osVersionRegex)
TemplateBuilder osArchMatches(String architecture)
TemplateBuilder os64Bit(boolean is64bit)
TemplateBuilder imageNameMatches(String imageNameRegex)
TemplateBuilder imageVersionMatches(String imageVersionRegex)
TemplateBuilder imageDescriptionMatches(String imageDescriptionRegex)
TemplateBuilder imageMatches(com.google.common.base.Predicate<Image> condition)
builder.imageMatches(ImagePredicates.userMetadataContains("author", "sue"));
TemplateBuilder minCores(double minCores)
TemplateBuilder minRam(int megabytes)
TemplateBuilder minDisk(double gigabytes)
Template build()
TemplateBuilder options(TemplateOptions options)
Copyright © 2009-2013 jclouds. All Rights Reserved.