Class Rule.Builder<ParameterizedBuilderType>
- java.lang.Object
-
- org.jclouds.openstack.neutron.v2.domain.Rule.Builder<ParameterizedBuilderType>
-
- Direct Known Subclasses:
Rule.CreateBuilder
- Enclosing class:
- Rule
public abstract static class Rule.Builder<ParameterizedBuilderType> extends Object
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ParameterizedBuilderType
direction(RuleDirection direction)
The direction in which the security group rule is applied.ParameterizedBuilderType
ethertype(RuleEthertype ethertype)
The internet protocol version for this rule.ParameterizedBuilderType
portRangeMax(Integer portRangeMax)
The maximum port number in the range that is matched by the security group rule.ParameterizedBuilderType
portRangeMin(Integer portRangeMin)
The minimum port number in the range that is matched by the security group rule.ParameterizedBuilderType
protocol(RuleProtocol protocol)
The protocol that is matched by the security group rule.ParameterizedBuilderType
remoteGroupId(String remoteGroupId)
The remote group ID to be associated with this security group rule.ParameterizedBuilderType
remoteIpPrefix(String remoteIpPrefix)
The remote IP prefix to be associated with this security group rule.ParameterizedBuilderType
securityGroupId(String securityGroupId)
The security group ID to associate with this security group rule.protected abstract ParameterizedBuilderType
self()
ParameterizedBuilderType
tenantId(String tenantId)
The tenant id for this rule.
-
-
-
Field Detail
-
rule
protected Rule rule
-
-
Method Detail
-
self
protected abstract ParameterizedBuilderType self()
-
tenantId
public ParameterizedBuilderType tenantId(String tenantId)
The tenant id for this rule. Usually can only be specified by administrators.- Returns:
- the Builder.
- See Also:
Rule.getTenantId()
-
direction
public ParameterizedBuilderType direction(RuleDirection direction)
The direction in which the security group rule is applied.- Returns:
- the Builder.
- See Also:
Rule.getDirection()
-
securityGroupId
public ParameterizedBuilderType securityGroupId(String securityGroupId)
The security group ID to associate with this security group rule.- Returns:
- the Builder.
- See Also:
Rule.getSecurityGroupId()
-
ethertype
public ParameterizedBuilderType ethertype(RuleEthertype ethertype)
The internet protocol version for this rule.- Returns:
- the Builder.
- See Also:
Rule.getEthertype()
-
portRangeMin
public ParameterizedBuilderType portRangeMin(Integer portRangeMin)
The minimum port number in the range that is matched by the security group rule.- Returns:
- the Builder.
- See Also:
Rule.getPortRangeMin()
-
portRangeMax
public ParameterizedBuilderType portRangeMax(Integer portRangeMax)
The maximum port number in the range that is matched by the security group rule.- Returns:
- the Builder.
- See Also:
Rule.getPortRangeMax()
-
protocol
public ParameterizedBuilderType protocol(RuleProtocol protocol)
The protocol that is matched by the security group rule. Valid values are null, tcp, udp, and icmp.- Returns:
- the Builder.
- See Also:
Rule.getProtocol()
-
remoteGroupId
public ParameterizedBuilderType remoteGroupId(String remoteGroupId)
The remote group ID to be associated with this security group rule. You can specify either remote_group_id or remote_ip_prefix in the request body.- Returns:
- the Builder.
- See Also:
Rule.getRemoteGroupId()
-
remoteIpPrefix
public ParameterizedBuilderType remoteIpPrefix(String remoteIpPrefix)
The remote IP prefix to be associated with this security group rule. You can specify either remote_group_id or remote_ip_prefix in the request body. This attribute matches the specified IP prefix as the source IP address of the IP packet.- Returns:
- the Builder.
- See Also:
Rule.getRemoteIpPrefix()
-
-