Package org.jclouds.cloudstack.domain
Class IngressRule.Builder<T extends IngressRule.Builder<T>>
- java.lang.Object
-
- org.jclouds.cloudstack.domain.IngressRule.Builder<T>
-
- Enclosing class:
- IngressRule
public abstract static class IngressRule.Builder<T extends IngressRule.Builder<T>> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected String
account
protected String
CIDR
protected int
endPort
protected int
ICMPCode
protected int
ICMPType
protected String
id
protected String
protocol
protected String
securityGroupName
protected int
startPort
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 T
account(String account)
IngressRule
build()
T
CIDR(String CIDR)
T
endPort(int endPort)
T
fromIngressRule(IngressRule in)
T
ICMPCode(int ICMPCode)
T
ICMPType(int ICMPType)
T
id(String id)
T
protocol(String protocol)
T
securityGroupName(String securityGroupName)
protected abstract T
self()
T
startPort(int startPort)
T
tags(Set<Tag> tags)
T
tags(Tag... in)
-
-
-
Field Detail
-
account
protected String account
-
CIDR
protected String CIDR
-
endPort
protected int endPort
-
ICMPCode
protected int ICMPCode
-
ICMPType
protected int ICMPType
-
protocol
protected String protocol
-
id
protected String id
-
securityGroupName
protected String securityGroupName
-
startPort
protected int startPort
-
-
Method Detail
-
self
protected abstract T self()
-
account
public T account(String account)
- See Also:
IngressRule.getAccount()
-
CIDR
public T CIDR(String CIDR)
- See Also:
IngressRule.getCIDR()
-
endPort
public T endPort(int endPort)
- See Also:
IngressRule.getEndPort()
-
ICMPCode
public T ICMPCode(int ICMPCode)
- See Also:
IngressRule.getICMPCode()
-
ICMPType
public T ICMPType(int ICMPType)
- See Also:
IngressRule.getICMPType()
-
protocol
public T protocol(String protocol)
- See Also:
IngressRule.getProtocol()
-
id
public T id(String id)
- See Also:
IngressRule.getId()
-
securityGroupName
public T securityGroupName(String securityGroupName)
- See Also:
IngressRule.getSecurityGroupName()
-
startPort
public T startPort(int startPort)
- See Also:
IngressRule.getStartPort()
-
tags
public T tags(Set<Tag> tags)
- See Also:
IngressRule.getTags()
-
build
public IngressRule build()
-
fromIngressRule
public T fromIngressRule(IngressRule in)
-
-