org.jclouds.cloudstack.domain
Class FirewallRule.Builder<T extends FirewallRule.Builder<T>>

java.lang.Object
  extended by 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
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
           
 
Constructor Summary
FirewallRule.Builder()
           
 
Method Summary
 FirewallRule build()
           
 T CIDRs(Set<String> CIDRs)
           
 T CIDRs(String... in)
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected String id

CIDRs

protected Set<String> CIDRs

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
Constructor Detail

FirewallRule.Builder

public FirewallRule.Builder()
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()

CIDRs

public T CIDRs(String... in)

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()

build

public FirewallRule build()

fromFirewallRule

public T fromFirewallRule(FirewallRule in)


Copyright © 2009-2012 jclouds. All Rights Reserved.