org.jclouds.cloudstack.options
Class CreateNetworkOptions

java.lang.Object
  extended by org.jclouds.http.options.BaseHttpRequestOptions
      extended by org.jclouds.cloudstack.options.AccountInDomainOptions
          extended by org.jclouds.cloudstack.options.CreateNetworkOptions
All Implemented Interfaces:
HttpRequestOptions

public class CreateNetworkOptions
extends AccountInDomainOptions

Optional fields for network creation

Author:
Adrian Cole
See Also:

Nested Class Summary
static class CreateNetworkOptions.Builder
           
 
Field Summary
static CreateNetworkOptions NONE
           
 
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, matrixParameters, pathSuffix, payload, queryParameters
 
Constructor Summary
CreateNetworkOptions()
           
 
Method Summary
 CreateNetworkOptions accountInDomain(String account, long domain)
          Specify the account that will own the network.
 CreateNetworkOptions domainId(long domainId)
          Specify the domain that will own the network.
 CreateNetworkOptions endIP(String endIP)
           
 CreateNetworkOptions gateway(String gateway)
           
 CreateNetworkOptions isDefault(boolean isDefault)
           
 CreateNetworkOptions isShared(boolean isShared)
           
 CreateNetworkOptions netmask(String netmask)
           
 CreateNetworkOptions networkDomain(String networkDomain)
           
 CreateNetworkOptions startIP(String startIP)
           
 CreateNetworkOptions vlan(String vlan)
           
 
Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions
buildFormParameters, buildMatrixParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstMatrixOrNull, getFirstQueryOrNull, hashCode, replaceHeader, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final CreateNetworkOptions NONE
Constructor Detail

CreateNetworkOptions

public CreateNetworkOptions()
Method Detail

isDefault

public CreateNetworkOptions isDefault(boolean isDefault)
Parameters:
isDefault - true if network is default, false otherwise

isShared

public CreateNetworkOptions isShared(boolean isShared)
Parameters:
isShared - true if network is shared across accounts in the Zone

startIP

public CreateNetworkOptions startIP(String startIP)
Parameters:
startIP - the beginning IP address in the VLAN IP range

endIP

public CreateNetworkOptions endIP(String endIP)
Parameters:
endIP - the ending IP address in the network IP range. If not specified, will be defaulted to startIP

gateway

public CreateNetworkOptions gateway(String gateway)
Parameters:
gateway - the gateway of the VLAN IP range

netmask

public CreateNetworkOptions netmask(String netmask)
Parameters:
netmask - the netmask of the VLAN IP range

networkDomain

public CreateNetworkOptions networkDomain(String networkDomain)
Parameters:
networkDomain - network domain

vlan

public CreateNetworkOptions vlan(String vlan)
Parameters:
vlan - the ID or VID of the VLAN. Default is an "untagged" VLAN.

accountInDomain

public CreateNetworkOptions accountInDomain(String account,
                                            long domain)
Specify the account that will own the network. This can be run by a privileged user to be able to set advanced network properties, such as the VLAN tag, and then to immediately pass ownership of the network to an unprivileged user. Note that the unprivileged user will be able to delete the network later, since they are it's owner.

Overrides:
accountInDomain in class AccountInDomainOptions
Parameters:
account - account name
domain - domain ID

domainId

public CreateNetworkOptions domainId(long domainId)
Specify the domain that will own the network. Any user in the domain can then use this network. CloudStack requires that when using this option, you also specify isShared(true). Changes or deletions to this network must be done by a domain admin in the same domain, or a global admin.

Overrides:
domainId in class AccountInDomainOptions
Parameters:
domainId - domain ID


Copyright © 2009-2012 jclouds. All Rights Reserved.