public abstract static class CreateFirewallRule.Builder extends Object
Constructor and Description |
---|
CreateFirewallRule.Builder() |
public abstract CreateFirewallRule.Builder tenantId(String tenantId)
tenantId
- Owner of the firewall. Only admin users can specify a tenant_id other than its own.public abstract CreateFirewallRule.Builder name(String name)
name
- Human readable name for the firewall (255 characters limit).public abstract CreateFirewallRule.Builder description(String description)
description
- Human readable description for the firewall (1024 characters limit).public abstract CreateFirewallRule.Builder shared(Boolean shared)
shared
- When set to True makes this firewall policy visible to tenants other than its owner and
can be used to associate with firewalls not owned by its tenant.public abstract CreateFirewallRule.Builder firewallPolicyId(String firewallPolicyId)
firewallPolicyId
- This is a read-only attribute that gets populated with the uuid of the firewall policy when this firewall rule is associated
with a firewall policy. A firewall rule can be associated with only one firewall policy at a time. However, the association
can be changed to a different firewall policy.public abstract CreateFirewallRule.Builder protocol(String protocol)
protocol
- IP protocol (icmp, tcp, udp, None).public abstract CreateFirewallRule.Builder ipVersion(IpVersion ipVersion)
ipVersion
- IP version (4, 6).public abstract CreateFirewallRule.Builder sourceIpAddress(String sourceIpAddress)
sourceIpAddress
- Source IP address or CIDR.public abstract CreateFirewallRule.Builder destinationIpAddress(String destinationIpAddress)
destinationIpAddress
- Destination IP address or CIDR.public abstract CreateFirewallRule.Builder sourcePort(String sourcePort)
sourcePort
- Source port number or a range.public abstract CreateFirewallRule.Builder destinationPort(String destinationPort)
destinationPort
- Destination port number or a range.public abstract CreateFirewallRule.Builder position(Integer position)
position
- This is a read-only attribute that gets assigned to this rule when the rule is associated with a firewall policy. It indicates the
position of this rule in that firewall policy.public abstract CreateFirewallRule.Builder action(String action)
action
- Action to be performed on the traffic matching the rule (allow, deny).public abstract CreateFirewallRule.Builder enabled(Boolean enabled)
enabled
- When set to False, disables this rule in the firewall policy. Facilitates selectively turning off rules without having to
disassociate the rule from the firewall policy.public abstract CreateFirewallRule build()
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.