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.Builderbuild in interface Buildable.Builder<FirewallRuleBuilder,FirewallRule>public FirewallRuleBuilder from(FirewallRule in)
Buildable.Builderfrom in interface Buildable.Builder<FirewallRuleBuilder,FirewallRule>public FirewallRuleBuilder tenantId(String tenantId)
tenantId in interface FirewallRuleBuildertenantId - : 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 FirewallRuleBuildername - : Human readable name for the firewall rule (255 characters limit). Does not have to be unique.public FirewallRuleBuilder description(String description)
description in interface FirewallRuleBuilderdescription - : Human readable description for the firewall rule (1024 characters limit).public FirewallRuleBuilder shared(Boolean shared)
shared in interface FirewallRuleBuildershared - : 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 FirewallRuleBuilderprotocol - : IP Protocol : Possible values are ICMP/TCP/UDP/NONE(ANY).NeutronFirewallRule.IPProtocolpublic FirewallRuleBuilder ipVersion(IPVersionType ipVersion)
ipVersion in interface FirewallRuleBuilderipVersion - : IP Protocol Version : Possible values are 4/6.IPVersionTypepublic FirewallRuleBuilder sourceIpAddress(String sourceIpAddress)
sourceIpAddress in interface FirewallRuleBuildersourceIpAddress - or CIDR : Valid IP address (v4 or v6), or CIDR.public FirewallRuleBuilder destinationIpAddress(String destinationIpAddress)
destinationIpAddress in interface FirewallRuleBuilderdestinationIpAddress - or CIDR : Valid IP address (v4 or v6), or CIDR.public FirewallRuleBuilder sourcePort(String sourcePort)
sourcePort in interface FirewallRuleBuildersourcePort - : 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 FirewallRuleBuilderdestinationPort - : 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 FirewallRuleBuilderaction - : Action to be performed on the traffic matching the rule (allow, deny).public FirewallRuleBuilder enabled(Boolean enabled)
enabled in interface FirewallRuleBuilderenabled - : 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.