org.jclouds.glesys.options
Class CreateServerOptions

java.lang.Object
  extended by org.jclouds.glesys.options.CreateServerOptions
All Implemented Interfaces:
Binder, MapBinder

public class CreateServerOptions
extends Object
implements MapBinder

Author:
Adam Lowe

Nested Class Summary
static class CreateServerOptions.Builder
           
 
Constructor Summary
CreateServerOptions()
           
 
Method Summary
<R extends HttpRequest>
R
bindToRequest(R request, Map<String,String> postParams)
          creates and binds the POST payload to the request using parameters specified.
<R extends HttpRequest>
R
bindToRequest(R request, Object input)
           
 CreateServerOptions description(String description)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 CreateServerOptions ip(String ip)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateServerOptions

public CreateServerOptions()
Method Detail

bindToRequest

public <R extends HttpRequest> R bindToRequest(R request,
                                               Map<String,String> postParams)
Description copied from interface: MapBinder
creates and binds the POST payload to the request using parameters specified.

Specified by:
bindToRequest in interface MapBinder
See Also:
PayloadParam

description

public CreateServerOptions description(String description)
Parameters:
description - the description of the server

ip

public CreateServerOptions ip(String ip)
Parameters:
ip - the ip address to assign to the server

bindToRequest

public <R extends HttpRequest> R bindToRequest(R request,
                                               Object input)
Specified by:
bindToRequest in interface Binder

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.