Class AbstractNeutronFirewallPolicy
- java.lang.Object
-
- org.openstack4j.openstack.networking.domain.ext.AbstractNeutronFirewallPolicy
-
- All Implemented Interfaces:
Serializable,Buildable<FirewallPolicyBuilder>,ModelEntity,FirewallPolicy
- Direct Known Subclasses:
NeutronFirewallPolicy,NeutronFirewallPolicyRule
public class AbstractNeutronFirewallPolicy extends Object implements FirewallPolicy
A Neutron Firewall (FwaaS) : Firewall Policy Entity.This is the Parent class which is extended by
NeutronFirewallPolicy&NeutronFirewalPolicyRuleclasses. Prior has `@JsonRootName("firewall_policy")` attribute whereas the later doesn't have (which is used by `rule_insert/rule_remove` calls - which doesn't require JsonRootName).- Author:
- Vishvesh Deshmukh
- See Also:
NeutronFirewallPolicy,NeutronFirewallPolicyRule, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractNeutronFirewallPolicy.FirewallPoliciesstatic classAbstractNeutronFirewallPolicy.FirewallPolicyConcreteBuilder-
Nested classes/interfaces inherited from interface org.openstack4j.common.Buildable
Buildable.Builder<T extends Buildable.Builder<T,M>,M extends Buildable<?>>
-
-
Field Summary
Fields Modifier and Type Field Description protected Booleanauditedprotected Stringdescriptionprotected List<String>firewallRulesprotected Stringidprotected Stringnameprotected List<NeutronFirewallRule>neutronFirewallRulesprotected Booleansharedprotected StringtenantId
-
Constructor Summary
Constructors Constructor Description AbstractNeutronFirewallPolicy()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FirewallPolicyBuilderbuilder()StringgetDescription()List<String>getFirewallList()List<String>getFirewallRuleIds()StringgetId()StringgetName()List<? extends FirewallRule>getNeutronFirewallRules()StringgetTenantId()BooleanisAudited()BooleanisShared()FirewallPolicyBuildertoBuilder()Wrap this FirewallPolicy to a builderStringtoString()
-
-
-
Method Detail
-
builder
public static FirewallPolicyBuilder builder()
- Returns:
- FirewallPolicyBuilder
-
toBuilder
public FirewallPolicyBuilder toBuilder()
Wrap this FirewallPolicy to a builder- Specified by:
toBuilderin interfaceBuildable<FirewallPolicyBuilder>- Returns:
- FirewallPolicyBuilder
-
getId
public String getId()
- Specified by:
getIdin interfaceFirewallPolicy- Returns:
- id : Unique identifier for the firewall policy.
-
getName
public String getName()
- Specified by:
getNamein interfaceFirewallPolicy- Returns:
- name : Human readable name for the FirewallPolicy (255 characters limit). Does not have to be unique.
-
getTenantId
public String getTenantId()
- Specified by:
getTenantIdin interfaceFirewallPolicy- Returns:
- tenantId : Owner of the Firewall Policy. Only an administrative user can specify a tenant ID other than its own.
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceFirewallPolicy- Returns:
- description : Human readable description for the FirewallPolicy (1024 characters limit).
-
isShared
public Boolean isShared()
- Specified by:
isSharedin interfaceFirewallPolicy- Returns:
- shared : When set to True makes this FirewallPolicy visible to tenants other than its owner, and can be used in FirewallPolicy not owned by its tenant.
-
isAudited
public Boolean isAudited()
- Specified by:
isAuditedin interfaceFirewallPolicy- Returns:
- audited : When set to True by the policy owner indicates that the firewall policy has been audited. This attribute is meant to aid in the firewall policy audit workflows. Each time the firewall policy or the associated firewall rules are changed, this attribute will be set to False and will have to be explicitly set to True through an update operation.
-
getFirewallRuleIds
public List<String> getFirewallRuleIds()
- Specified by:
getFirewallRuleIdsin interfaceFirewallPolicy- Returns:
- firewallRules(UUID)List : This is an ordered list of firewall rule uuids. The firewall applies the rules in the order in which they appear in this list.
-
getNeutronFirewallRules
public List<? extends FirewallRule> getNeutronFirewallRules()
- Specified by:
getNeutronFirewallRulesin interfaceFirewallPolicy- Returns:
- neutronFirewallRulesList : This is an ordered list of firewall rules (by uuid). The firewall applies the rules in the order in which they appear in this list.
- See Also:
FirewallRule
-
getFirewallList
public List<String> getFirewallList()
- Specified by:
getFirewallListin interfaceFirewallPolicy- Returns:
- firewallList(UUID)List : This is a list of Firewalls associated with Firewall Policy. This is returned when a firewall rule is added or removed from a firewall policy.
-
-