Class Rule
java.lang.Object
org.jclouds.openstack.neutron.v2.domain.Rule
- Direct Known Subclasses:
Rule.CreateRule
Contains a mapping between a MAC address and an IP address.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
This is used to build a CreateBuilder object.static class
Create and Update options - extend the domain class, passed to API update and create calls. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Rule
(String id, String tenantId, RuleDirection direction, String securityGroupId, RuleEthertype ethertype, Integer portRangeMin, Integer portRangeMax, RuleProtocol protocol, String remoteGroupId, String remoteIpPrefix) -
Method Summary
Modifier and TypeMethodDescriptionstatic Rule.CreateBuilder
createBuilder
(RuleDirection direction, String securityGroupId) boolean
getId()
int
hashCode()
toString()
-
Constructor Details
-
Rule
@ConstructorProperties({"id","tenant_id","direction","security_group_id","ethertype","port_range_min","port_range_max","protocol","remote_group_id","remote_ip_prefix"}) protected Rule(String id, String tenantId, RuleDirection direction, String securityGroupId, RuleEthertype ethertype, Integer portRangeMin, Integer portRangeMax, RuleProtocol protocol, String remoteGroupId, String remoteIpPrefix)
-
-
Method Details
-
getId
- Returns:
- The identifier for this rule.
-
getTenantId
- Returns:
- The identifier of the tenant for this rule.
-
getDirection
- Returns:
- The direction in which the security group rule is applied.
-
getSecurityGroupId
- Returns:
- The security group ID to associate with this security group rule.
-
getEthertype
- Returns:
- The internet protocol version type of this rule.
-
getPortRangeMin
- Returns:
- The minimum port number in the range that is matched by the security group rule. If the protocol is TCP or UDP, this value must be less than or equal to the value of the port_range_max attribute. If the protocol is ICMP, this value must be an ICMP type.
-
getPortRangeMax
- Returns:
- The maximum port number in the range that is matched by the security group rule. The port_range_min attribute constrains the port_range_max attribute. If the protocol is ICMP, this value must be an ICMP type.
-
getProtocol
- Returns:
- The protocol that is matched by the security group rule. Valid values are null, tcp, udp, and icmp.
-
getRemoteGroupId
- Returns:
- The remote group ID to be associated with this security group rule.
-
getRemoteIpPrefix
- Returns:
- The remote IP prefix to be associated with this security group rule. This attribute matches the specified IP prefix as the source IP address of the IP packet.
-
equals
-
hashCode
public int hashCode() -
toString
-
createBuilder
- Returns:
- the Builder for creating a new SecurityGroupRule
-