| Modifier and Type | Class and Description |
|---|---|
static class |
CreateServerOptions.Builder |
| Constructor and Description |
|---|
CreateServerOptions() |
| Modifier and Type | Method and Description |
|---|---|
<R extends HttpRequest> |
bindToRequest(R request,
Map<String,String> postParams)
creates and binds the POST payload to the request using parameters specified.
|
<R extends HttpRequest> |
bindToRequest(R request,
Object input) |
CreateServerOptions |
withAdminPass(String adminPass) |
CreateServerOptions |
withFile(String path,
byte[] contents)
You may further customize a cloud server by injecting data into the file system of the cloud
server itself.
|
CreateServerOptions |
withKeyName(String keyName)
A keypair name can be defined when creating a server.
|
CreateServerOptions |
withMetadata(Map<String,String> metadata)
Custom cloud server metadata can also be supplied at launch time.
|
CreateServerOptions |
withSecurityGroup(String groupName)
Defines the security group name to be used when creating a server.
|
public <R extends HttpRequest> R bindToRequest(R request, Map<String,String> postParams)
MapBinderbindToRequest in interface MapBinderPayloadParampublic CreateServerOptions withFile(String path, byte[] contents)
public CreateServerOptions withAdminPass(String adminPass)
public CreateServerOptions withMetadata(Map<String,String> metadata)
public CreateServerOptions withKeyName(String keyName)
keyName - public CreateServerOptions withSecurityGroup(String groupName)
groupName - public <R extends HttpRequest> R bindToRequest(R request, Object input)
bindToRequest in interface BinderCopyright © 2009-2012 jclouds. All Rights Reserved.