public interface FirewallRuleBuilder extends Buildable.Builder<FirewallRuleBuilder,FirewallRule>
Modifier and Type | Method and Description |
---|---|
FirewallRuleBuilder |
action(NeutronFirewallRule.FirewallRuleAction action) |
FirewallRuleBuilder |
description(String description) |
FirewallRuleBuilder |
destinationIpAddress(String destinationIpAddress) |
FirewallRuleBuilder |
destinationPort(String destinationPort) |
FirewallRuleBuilder |
enabled(Boolean enabled) |
FirewallRuleBuilder |
ipVersion(IPVersionType ipVersion) |
FirewallRuleBuilder |
name(String name) |
FirewallRuleBuilder |
protocol(NeutronFirewallRule.IPProtocol protocol) |
FirewallRuleBuilder |
shared(Boolean shared) |
FirewallRuleBuilder |
sourceIpAddress(String sourceIpAddress) |
FirewallRuleBuilder |
sourcePort(String sourcePort) |
FirewallRuleBuilder |
tenantId(String tenantId) |
build, from
FirewallRuleBuilder name(String name)
name
- : Human readable name for the firewall rule (255 characters limit). Does not have to be unique.FirewallRuleBuilder tenantId(String tenantId)
tenantId
- : Owner of the Firewall Rule. Only an administrative user can
specify a tenant ID other than its own.FirewallRuleBuilder description(String description)
description
- : Human readable description for the firewall rule (1024 characters limit).FirewallRuleBuilder shared(Boolean shared)
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.FirewallRuleBuilder protocol(NeutronFirewallRule.IPProtocol protocol)
protocol
- : IP Protocol : Possible values are ICMP/TCP/UDP/NONE(ANY).NeutronFirewallRule.IPProtocol
FirewallRuleBuilder ipVersion(IPVersionType ipVersion)
ipVersion
- : IP Protocol Version : Possible values are 4/6.IPVersionType
FirewallRuleBuilder sourceIpAddress(String sourceIpAddress)
sourceIpAddress
- or CIDR : Valid IP address (v4 or v6), or CIDR.FirewallRuleBuilder destinationIpAddress(String destinationIpAddress)
destinationIpAddress
- or CIDR : Valid IP address (v4 or v6), or CIDR.FirewallRuleBuilder sourcePort(String sourcePort)
sourcePort
- : Valid port number (integer or FirewallRuleBuilder), or port range in the format of a ':' separated range).
In the case of port range, both ends of the range are included.FirewallRuleBuilder destinationPort(String destinationPort)
destinationPort
- : Valid port number (integer or FirewallRuleBuilder), or port range in the format of a ':' separated range).
In the case of port range, both ends of the range are included.FirewallRuleBuilder action(NeutronFirewallRule.FirewallRuleAction action)
action
- : Action to be performed on the traffic matching the rule (allow, deny).FirewallRuleBuilder enabled(Boolean enabled)
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.Copyright © 2017. All rights reserved.