Package org.jclouds.cloudstack.options
Class CreateNetworkOptions
- java.lang.Object
-
- org.jclouds.http.options.BaseHttpRequestOptions
-
- org.jclouds.cloudstack.options.AccountInDomainOptions
-
- org.jclouds.cloudstack.options.CreateNetworkOptions
-
- All Implemented Interfaces:
HttpRequestOptions
public class CreateNetworkOptions extends AccountInDomainOptions
Optional fields for network creation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CreateNetworkOptions.Builder
-
Field Summary
Fields Modifier and Type Field Description static CreateNetworkOptions
NONE
-
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
-
-
Constructor Summary
Constructors Constructor Description CreateNetworkOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateNetworkOptions
accountInDomain(String account, String domain)
Specify the account that will own the network.CreateNetworkOptions
domainId(String 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
projectId(String projectId)
CreateNetworkOptions
startIP(String startIP)
CreateNetworkOptions
vlan(String vlan)
-
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 CreateNetworkOptions NONE
-
-
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.
-
projectId
public CreateNetworkOptions projectId(String projectId)
- Parameters:
projectId
- the project this network will be in.
-
accountInDomain
public CreateNetworkOptions accountInDomain(String account, String 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 classAccountInDomainOptions
- Parameters:
account
- account namedomain
- domain ID
-
domainId
public CreateNetworkOptions domainId(String 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 classAccountInDomainOptions
- Parameters:
domainId
- domain ID
-
-