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>CIDRsprotected intendPortprotected StringicmpCodeprotected StringicmpTypeprotected Stringidprotected StringipAddressprotected StringipAddressIdprotected FirewallRule.Protocolprotocolprotected intstartPortprotected FirewallRule.Statestateprotected Set<Tag>tags
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description FirewallRulebuild()TCIDRs(String... in)TCIDRs(Set<String> CIDRs)TendPort(int endPort)TfromFirewallRule(FirewallRule in)TicmpCode(String icmpCode)TicmpType(String icmpType)Tid(String id)TipAddress(String ipAddress)TipAddressId(String ipAddressId)Tprotocol(FirewallRule.Protocol protocol)protected abstract Tself()TstartPort(int startPort)Tstate(FirewallRule.State state)Ttags(Set<Tag> tags)Ttags(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)
-
-