Package org.jclouds.cloudstack.options
Class UpdateVirtualMachineOptions
- java.lang.Object
-
- org.jclouds.http.options.BaseHttpRequestOptions
-
- org.jclouds.cloudstack.options.UpdateVirtualMachineOptions
-
- All Implemented Interfaces:
HttpRequestOptions
public class UpdateVirtualMachineOptions extends BaseHttpRequestOptions
Options for updating virtual machines.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UpdateVirtualMachineOptions.Builder
-
Field Summary
Fields Modifier and Type Field Description static UpdateVirtualMachineOptions
NONE
-
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
-
-
Constructor Summary
Constructors Constructor Description UpdateVirtualMachineOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateVirtualMachineOptions
displayName(String displayName)
sets the displayName - just for display purposes.UpdateVirtualMachineOptions
group(String group)
UpdateVirtualMachineOptions
haEnable(boolean haEnable)
UpdateVirtualMachineOptions
osTypeId(String osTypeId)
UpdateVirtualMachineOptions
userData(byte[] unencodedData)
-
Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions
buildFormParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstQueryOrNull, hashCode, replaceHeader, toString
-
-
-
-
Field Detail
-
NONE
public static final UpdateVirtualMachineOptions NONE
-
-
Method Detail
-
displayName
public UpdateVirtualMachineOptions displayName(String displayName)
sets the displayName - just for display purposes. We don't pass this parameter to the backend.- Parameters:
displayName
- an optional user generated name for the virtual machine
-
group
public UpdateVirtualMachineOptions group(String group)
- Parameters:
group
- an optional group for the virtual machine
-
haEnable
public UpdateVirtualMachineOptions haEnable(boolean haEnable)
- Parameters:
haEnable
- true if high-availability is enabled for the virtual machine, false otherwise
-
osTypeId
public UpdateVirtualMachineOptions osTypeId(String osTypeId)
- Parameters:
osTypeId
- the ID of the OS type that best represents this VM.
-
userData
public UpdateVirtualMachineOptions userData(byte[] unencodedData)
- Parameters:
unencodedData
- an optional binary data that can be sent to the virtual machine upon a successful deployment. This binary data must be base64 encoded before adding it to the request. Currently only HTTP GET is supported. Using HTTP GET (via querystring), you can send up to 2KB of data after base64 encoding.
-
-