Class NeutronFirewallRule
- java.lang.Object
-
- org.openstack4j.openstack.networking.domain.ext.NeutronFirewallRule
-
- All Implemented Interfaces:
Serializable,Buildable<FirewallRuleBuilder>,ModelEntity,FirewallRule
public class NeutronFirewallRule extends Object implements FirewallRule
A Neutron Firewall (FwaaS) : Firewall Rule Entity.- Author:
- Vishvesh Deshmukh
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNeutronFirewallRule.FirewallRuleActionAction of a Neutron (Firewall Rule - FwaaS) entity.static classNeutronFirewallRule.FirewallRuleConcreteBuilderstatic classNeutronFirewallRule.FirewallRulesstatic classNeutronFirewallRule.IPProtocolIPProtocolType of a Neutron (Firewall Rule - FwaaS) entity.-
Nested classes/interfaces inherited from interface org.openstack4j.common.Buildable
Buildable.Builder<T extends Buildable.Builder<T,M>,M extends Buildable<?>>
-
-
Constructor Summary
Constructors Constructor Description NeutronFirewallRule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FirewallRuleBuilderbuilder()NeutronFirewallRule.FirewallRuleActiongetAction()StringgetDescription()StringgetDestinationIpAddress()StringgetDestinationPort()StringgetId()IPVersionTypegetIpVersion()StringgetName()StringgetPolicy()IntegergetPosition()NeutronFirewallRule.IPProtocolgetProtocol()StringgetSourceIpAddress()StringgetSourcePort()StringgetTenantId()BooleanisEnabled()BooleanisShared()FirewallRuleBuildertoBuilder()Wrap this FirewallRule to a builderStringtoString()
-
-
-
Method Detail
-
builder
public static FirewallRuleBuilder builder()
- Returns:
- FirewallRuleBuilder
-
toBuilder
public FirewallRuleBuilder toBuilder()
Wrap this FirewallRule to a builder- Specified by:
toBuilderin interfaceBuildable<FirewallRuleBuilder>- Returns:
- FirewallRuleBuilder
-
getId
public String getId()
- Specified by:
getIdin interfaceFirewallRule- Returns:
- id : Unique identifier for the firewall rule object.
-
getName
public String getName()
- Specified by:
getNamein interfaceFirewallRule- Returns:
- name : Human readable name for the firewall rule (255 characters limit). Does not have to be unique.
-
getTenantId
public String getTenantId()
- Specified by:
getTenantIdin interfaceFirewallRule- Returns:
- tenantId : Owner of the Firewall Rule. Only an administrative user can specify a tenant ID other than its own.
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceFirewallRule- Returns:
- description : Human readable description for the firewall rule (1024 characters limit).
-
isShared
public Boolean isShared()
- Specified by:
isSharedin interfaceFirewallRule- Returns:
- shared : When set to True makes this firewall rule visible to tenants other than its owner, and can be used in firewall policies not owned by its tenant.
-
getPolicy
public String getPolicy()
- Specified by:
getPolicyin interfaceFirewallRule- Returns:
- policyid : This is a read-only attribute which gets populated with the uuid of the firewall policy when this
firewall rule is associated with a firewall policy. A firewall rule can be associated with one firewall policy at a time.
The association can however be updated to a different firewall policy. This attribute can be
nullif the rule is not associated with any firewall policy.
-
getProtocol
public NeutronFirewallRule.IPProtocol getProtocol()
- Specified by:
getProtocolin interfaceFirewallRule- Returns:
- protocol : IP Protocol : Possible values are ICMP/TCP/UDP/NONE(ANY).
- See Also:
NeutronFirewallRule.IPProtocol
-
getIpVersion
public IPVersionType getIpVersion()
- Specified by:
getIpVersionin interfaceFirewallRule- Returns:
- ipVersion : IP Protocol Version : Possible values are 4/6.
- See Also:
IPVersionType
-
getSourceIpAddress
public String getSourceIpAddress()
- Specified by:
getSourceIpAddressin interfaceFirewallRule- Returns:
- sourceIpAddress or CIDR : Valid IP address (v4 or v6), or CIDR.
-
getDestinationIpAddress
public String getDestinationIpAddress()
- Specified by:
getDestinationIpAddressin interfaceFirewallRule- Returns:
- destinationIpAddress or CIDR : Valid IP address (v4 or v6), or CIDR.
-
getSourcePort
public String getSourcePort()
- Specified by:
getSourcePortin interfaceFirewallRule- Returns:
- sourcePort : Valid port number (integer or string), or port range in the format of a ':' separated range). In the case of port range, both ends of the range are included.
-
getDestinationPort
public String getDestinationPort()
- Specified by:
getDestinationPortin interfaceFirewallRule- Returns:
- destinationPort : Valid port number (integer or string), or port range in the format of a ':' separated range). In the case of port range, both ends of the range are included.
-
getPosition
public Integer getPosition()
- Specified by:
getPositionin interfaceFirewallRule- Returns:
- position : This is a read-only attribute that gets assigned to this rule when the rule is associated with a firewall policy.
It indicates the position of this rule in that firewall policy. This position number starts at 1.
The position can be
nullif the firewall rule is not associated with any policy.
-
getAction
public NeutronFirewallRule.FirewallRuleAction getAction()
- Specified by:
getActionin interfaceFirewallRule- Returns:
- action : Action to be performed on the traffic matching the rule (allow, deny).
- See Also:
NeutronFirewallRule.FirewallRuleAction
-
isEnabled
public Boolean isEnabled()
- Specified by:
isEnabledin interfaceFirewallRule- Returns:
- enabled : When set to False will disable this rule in the firewall policy. Facilitates selectively turning off rules without having to disassociate the rule from the firewall policy.
-
-