Package org.jclouds.cloudstack.domain
Class PortForwardingRule.Builder<T extends PortForwardingRule.Builder<T>>
- java.lang.Object
-
- org.jclouds.cloudstack.domain.PortForwardingRule.Builder<T>
-
- Enclosing class:
- PortForwardingRule
public abstract static class PortForwardingRule.Builder<T extends PortForwardingRule.Builder<T>> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<String>
CIDRs
protected String
id
protected String
IPAddress
protected String
IPAddressId
protected int
privateEndPort
protected int
privatePort
protected PortForwardingRule.Protocol
protocol
protected int
publicEndPort
protected int
publicPort
protected PortForwardingRule.State
state
protected Set<Tag>
tags
protected String
virtualMachineDisplayName
protected String
virtualMachineId
protected String
virtualMachineName
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description PortForwardingRule
build()
T
CIDRs(String... in)
T
CIDRs(Set<String> CIDRs)
T
fromPortForwardingRule(PortForwardingRule in)
T
id(String id)
T
IPAddress(String IPAddress)
T
IPAddressId(String IPAddressId)
T
privateEndPort(int privateEndPort)
T
privatePort(int privatePort)
T
protocol(PortForwardingRule.Protocol protocol)
T
publicEndPort(int publicEndPort)
T
publicPort(int publicPort)
protected abstract T
self()
T
state(PortForwardingRule.State state)
T
tags(Set<Tag> tags)
T
tags(Tag... in)
T
virtualMachineDisplayName(String virtualMachineDisplayName)
T
virtualMachineId(String virtualMachineId)
T
virtualMachineName(String virtualMachineName)
-
-
-
Field Detail
-
id
protected String id
-
IPAddress
protected String IPAddress
-
IPAddressId
protected String IPAddressId
-
privatePort
protected int privatePort
-
protocol
protected PortForwardingRule.Protocol protocol
-
publicPort
protected int publicPort
-
state
protected PortForwardingRule.State state
-
virtualMachineDisplayName
protected String virtualMachineDisplayName
-
virtualMachineId
protected String virtualMachineId
-
virtualMachineName
protected String virtualMachineName
-
privateEndPort
protected int privateEndPort
-
publicEndPort
protected int publicEndPort
-
-
Method Detail
-
self
protected abstract T self()
-
id
public T id(String id)
- See Also:
PortForwardingRule.getId()
-
IPAddress
public T IPAddress(String IPAddress)
- See Also:
PortForwardingRule.getIPAddress()
-
IPAddressId
public T IPAddressId(String IPAddressId)
- See Also:
PortForwardingRule.getIPAddressId()
-
privatePort
public T privatePort(int privatePort)
- See Also:
PortForwardingRule.getPrivatePort()
-
protocol
public T protocol(PortForwardingRule.Protocol protocol)
- See Also:
PortForwardingRule.getProtocol()
-
publicPort
public T publicPort(int publicPort)
- See Also:
PortForwardingRule.getPublicPort()
-
state
public T state(PortForwardingRule.State state)
- See Also:
PortForwardingRule.getState()
-
virtualMachineId
public T virtualMachineId(String virtualMachineId)
- See Also:
PortForwardingRule.getVirtualMachineId()
-
CIDRs
public T CIDRs(Set<String> CIDRs)
- See Also:
PortForwardingRule.getCIDRs()
-
privateEndPort
public T privateEndPort(int privateEndPort)
- See Also:
PortForwardingRule.getPrivateEndPort()
-
publicEndPort
public T publicEndPort(int publicEndPort)
- See Also:
PortForwardingRule.getPublicEndPort()
-
tags
public T tags(Set<Tag> tags)
- See Also:
PortForwardingRule.getTags()
-
build
public PortForwardingRule build()
-
fromPortForwardingRule
public T fromPortForwardingRule(PortForwardingRule in)
-
-