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 ParameterizedBuilderTypedirection(RuleDirection direction)The direction in which the security group rule is applied.ParameterizedBuilderTypeethertype(RuleEthertype ethertype)The internet protocol version for this rule.ParameterizedBuilderTypeportRangeMax(Integer portRangeMax)The maximum port number in the range that is matched by the security group rule.ParameterizedBuilderTypeportRangeMin(Integer portRangeMin)The minimum port number in the range that is matched by the security group rule.ParameterizedBuilderTypeprotocol(RuleProtocol protocol)The protocol that is matched by the security group rule.ParameterizedBuilderTyperemoteGroupId(String remoteGroupId)The remote group ID to be associated with this security group rule.ParameterizedBuilderTyperemoteIpPrefix(String remoteIpPrefix)The remote IP prefix to be associated with this security group rule.ParameterizedBuilderTypesecurityGroupId(String securityGroupId)The security group ID to associate with this security group rule.protected abstract ParameterizedBuilderTypeself()ParameterizedBuilderTypetenantId(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()
-
-