Class NeutronFirewallRuleUpdate
- java.lang.Object
-
- org.openstack4j.openstack.networking.domain.ext.NeutronFirewallRuleUpdate
-
- All Implemented Interfaces:
Serializable
,Buildable<FirewallRuleUpdateBuilder>
,ModelEntity
,FirewallRuleUpdate
public class NeutronFirewallRuleUpdate extends Object implements FirewallRuleUpdate
An entity used to update Neutron Firewall Rule (FwaaS).- Author:
- Vishvesh Deshmukh
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NeutronFirewallRuleUpdate.FirewallRuleUpdateConcreteBuilder
-
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 NeutronFirewallRuleUpdate()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FirewallRuleUpdateBuilder
builder()
NeutronFirewallRule.FirewallRuleAction
getAction()
String
getDescription()
String
getDestinationIpAddress()
String
getDestinationPort()
IPVersionType
getIpVersion()
String
getName()
NeutronFirewallRule.IPProtocol
getProtocol()
String
getSourceIpAddress()
String
getSourcePort()
String
getTenantId()
Boolean
isEnabled()
Boolean
isShared()
FirewallRuleUpdateBuilder
toBuilder()
Wrap this FirewallRuleUpdate to a builderString
toString()
-
-
-
Method Detail
-
builder
public static FirewallRuleUpdateBuilder builder()
- Returns:
- FirewallRuleUpdateBuilder
-
toBuilder
public FirewallRuleUpdateBuilder toBuilder()
Wrap this FirewallRuleUpdate to a builder- Specified by:
toBuilder
in interfaceBuildable<FirewallRuleUpdateBuilder>
- Returns:
- FirewallRuleUpdateBuilder
-
getName
public String getName()
- Specified by:
getName
in interfaceFirewallRuleUpdate
- Returns:
- name : Human readable name for the firewall rule (255 characters limit). Does not have to be unique.
-
getTenantId
public String getTenantId()
- Specified by:
getTenantId
in interfaceFirewallRuleUpdate
- 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:
getDescription
in interfaceFirewallRuleUpdate
- Returns:
- description : Human readable description for the firewall rule (1024 characters limit).
-
isShared
public Boolean isShared()
- Specified by:
isShared
in interfaceFirewallRuleUpdate
- 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.
-
getProtocol
public NeutronFirewallRule.IPProtocol getProtocol()
- Specified by:
getProtocol
in interfaceFirewallRuleUpdate
- Returns:
- protocol : IP Protocol : Possible values are ICMP/TCP/UDP/NONE(ANY).
- See Also:
NeutronFirewallRule.IPProtocol
-
getIpVersion
public IPVersionType getIpVersion()
- Specified by:
getIpVersion
in interfaceFirewallRuleUpdate
- Returns:
- ipVersion : IP Protocol Version : Possible values are 4/6.
- See Also:
IPVersionType
-
getSourceIpAddress
public String getSourceIpAddress()
- Specified by:
getSourceIpAddress
in interfaceFirewallRuleUpdate
- Returns:
- sourceIpAddress or CIDR : Valid IP address (v4 or v6), or CIDR.
-
getDestinationIpAddress
public String getDestinationIpAddress()
- Specified by:
getDestinationIpAddress
in interfaceFirewallRuleUpdate
- Returns:
- destinationIpAddress or CIDR : Valid IP address (v4 or v6), or CIDR.
-
getSourcePort
public String getSourcePort()
- Specified by:
getSourcePort
in interfaceFirewallRuleUpdate
- 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:
getDestinationPort
in interfaceFirewallRuleUpdate
- 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.
-
getAction
public NeutronFirewallRule.FirewallRuleAction getAction()
- Specified by:
getAction
in interfaceFirewallRuleUpdate
- Returns:
- action : Action to be performed on the traffic matching the rule (allow, deny).
- See Also:
NeutronFirewallRule.FirewallRuleAction
-
isEnabled
public Boolean isEnabled()
- Specified by:
isEnabled
in interfaceFirewallRuleUpdate
- 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.
-
-