public static class NeutronFirewallRule.FirewallRuleConcreteBuilder extends Object implements FirewallRuleBuilder
Constructor and Description |
---|
FirewallRuleConcreteBuilder() |
FirewallRuleConcreteBuilder(NeutronFirewallRule f) |
Modifier and Type | Method and Description |
---|---|
FirewallRuleBuilder |
action(NeutronFirewallRule.FirewallRuleAction action) |
FirewallRule |
build()
Creates and return the Model Entity M
|
FirewallRuleBuilder |
description(String description) |
FirewallRuleBuilder |
destinationIpAddress(String destinationIpAddress) |
FirewallRuleBuilder |
destinationPort(String destinationPort) |
FirewallRuleBuilder |
enabled(Boolean enabled) |
FirewallRuleBuilder |
from(FirewallRule in)
Creates a Builder using the param M as the default values
|
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) |
public FirewallRuleConcreteBuilder()
public FirewallRuleConcreteBuilder(NeutronFirewallRule f)
public FirewallRule build()
Buildable.Builder
build
in interface Buildable.Builder<FirewallRuleBuilder,FirewallRule>
public FirewallRuleBuilder from(FirewallRule in)
Buildable.Builder
from
in interface Buildable.Builder<FirewallRuleBuilder,FirewallRule>
public FirewallRuleBuilder tenantId(String tenantId)
tenantId
in interface FirewallRuleBuilder
tenantId
- : Owner of the Firewall Rule. Only an administrative user can
specify a tenant ID other than its own.public FirewallRuleBuilder name(String name)
name
in interface FirewallRuleBuilder
name
- : Human readable name for the firewall rule (255 characters limit). Does not have to be unique.public FirewallRuleBuilder description(String description)
description
in interface FirewallRuleBuilder
description
- : Human readable description for the firewall rule (1024 characters limit).public FirewallRuleBuilder shared(Boolean shared)
shared
in interface FirewallRuleBuilder
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.public FirewallRuleBuilder protocol(NeutronFirewallRule.IPProtocol protocol)
protocol
in interface FirewallRuleBuilder
protocol
- : IP Protocol : Possible values are ICMP/TCP/UDP/NONE(ANY).NeutronFirewallRule.IPProtocol
public FirewallRuleBuilder ipVersion(IPVersionType ipVersion)
ipVersion
in interface FirewallRuleBuilder
ipVersion
- : IP Protocol Version : Possible values are 4/6.IPVersionType
public FirewallRuleBuilder sourceIpAddress(String sourceIpAddress)
sourceIpAddress
in interface FirewallRuleBuilder
sourceIpAddress
- or CIDR : Valid IP address (v4 or v6), or CIDR.public FirewallRuleBuilder destinationIpAddress(String destinationIpAddress)
destinationIpAddress
in interface FirewallRuleBuilder
destinationIpAddress
- or CIDR : Valid IP address (v4 or v6), or CIDR.public FirewallRuleBuilder sourcePort(String sourcePort)
sourcePort
in interface FirewallRuleBuilder
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.public FirewallRuleBuilder destinationPort(String destinationPort)
destinationPort
in interface FirewallRuleBuilder
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.public FirewallRuleBuilder action(NeutronFirewallRule.FirewallRuleAction action)
action
in interface FirewallRuleBuilder
action
- : Action to be performed on the traffic matching the rule (allow, deny).public FirewallRuleBuilder enabled(Boolean enabled)
enabled
in interface FirewallRuleBuilder
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.