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