Package org.jclouds.cloudstack.domain
Class FirewallRule.Builder<T extends FirewallRule.Builder<T>>
- java.lang.Object
-
- org.jclouds.cloudstack.domain.FirewallRule.Builder<T>
-
- Enclosing class:
- FirewallRule
public abstract static class FirewallRule.Builder<T extends FirewallRule.Builder<T>> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<String>
CIDRs
protected int
endPort
protected String
icmpCode
protected String
icmpType
protected String
id
protected String
ipAddress
protected String
ipAddressId
protected FirewallRule.Protocol
protocol
protected int
startPort
protected FirewallRule.State
state
protected Set<Tag>
tags
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description FirewallRule
build()
T
CIDRs(String... in)
T
CIDRs(Set<String> CIDRs)
T
endPort(int endPort)
T
fromFirewallRule(FirewallRule in)
T
icmpCode(String icmpCode)
T
icmpType(String icmpType)
T
id(String id)
T
ipAddress(String ipAddress)
T
ipAddressId(String ipAddressId)
T
protocol(FirewallRule.Protocol protocol)
protected abstract T
self()
T
startPort(int startPort)
T
state(FirewallRule.State state)
T
tags(Set<Tag> tags)
T
tags(Tag... in)
-
-
-
Field Detail
-
id
protected String id
-
startPort
protected int startPort
-
endPort
protected int endPort
-
icmpCode
protected String icmpCode
-
icmpType
protected String icmpType
-
ipAddress
protected String ipAddress
-
ipAddressId
protected String ipAddressId
-
protocol
protected FirewallRule.Protocol protocol
-
state
protected FirewallRule.State state
-
-
Method Detail
-
self
protected abstract T self()
-
id
public T id(String id)
- See Also:
FirewallRule.getId()
-
CIDRs
public T CIDRs(Set<String> CIDRs)
- See Also:
FirewallRule.getCIDRs()
-
startPort
public T startPort(int startPort)
- See Also:
FirewallRule.getStartPort()
-
endPort
public T endPort(int endPort)
- See Also:
FirewallRule.getEndPort()
-
icmpCode
public T icmpCode(String icmpCode)
- See Also:
FirewallRule.getIcmpCode()
-
icmpType
public T icmpType(String icmpType)
- See Also:
FirewallRule.getIcmpType()
-
ipAddress
public T ipAddress(String ipAddress)
- See Also:
FirewallRule.getIpAddress()
-
ipAddressId
public T ipAddressId(String ipAddressId)
- See Also:
FirewallRule.getIpAddressId()
-
protocol
public T protocol(FirewallRule.Protocol protocol)
- See Also:
FirewallRule.getProtocol()
-
state
public T state(FirewallRule.State state)
- See Also:
FirewallRule.getState()
-
tags
public T tags(Set<Tag> tags)
- See Also:
FirewallRule.getTags()
-
build
public FirewallRule build()
-
fromFirewallRule
public T fromFirewallRule(FirewallRule in)
-
-