Class CreateFirewallRule.Builder
java.lang.Object
org.jclouds.openstack.neutron.v2.domain.CreateFirewallRule.Builder
- Enclosing class:
CreateFirewallRule
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract CreateFirewallRule.Builder
abstract CreateFirewallRule
build()
abstract CreateFirewallRule.Builder
description
(String description) abstract CreateFirewallRule.Builder
destinationIpAddress
(String destinationIpAddress) abstract CreateFirewallRule.Builder
destinationPort
(String destinationPort) abstract CreateFirewallRule.Builder
abstract CreateFirewallRule.Builder
firewallPolicyId
(String firewallPolicyId) abstract String
abstract String
abstract String
abstract String
abstract Boolean
abstract String
abstract IpVersion
abstract String
getName()
abstract Integer
abstract String
abstract Boolean
abstract String
abstract String
abstract String
abstract CreateFirewallRule.Builder
abstract CreateFirewallRule.Builder
abstract CreateFirewallRule.Builder
abstract CreateFirewallRule.Builder
abstract CreateFirewallRule.Builder
abstract CreateFirewallRule.Builder
sourceIpAddress
(String sourceIpAddress) abstract CreateFirewallRule.Builder
sourcePort
(String sourcePort) abstract CreateFirewallRule.Builder
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
tenantId
- Parameters:
tenantId
- Owner of the firewall. Only admin users can specify a tenant_id other than its own.- Returns:
- The CreateFirewallRule builder.
-
name
- Parameters:
name
- Human readable name for the firewall (255 characters limit).- Returns:
- The CreateFirewallRule builder.
-
description
- Parameters:
description
- Human readable description for the firewall (1024 characters limit).- Returns:
- The CreateFirewallRule builder.
-
firewallPolicyId
- Parameters:
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.- Returns:
- The CreateFirewallRule builder.
-
protocol
- Parameters:
protocol
- IP protocol (icmp, tcp, udp, None).- Returns:
- The CreateFirewallRule builder.
-
ipVersion
- Parameters:
ipVersion
- IP version (4, 6).- Returns:
- The CreateFirewallRule builder.
-
sourceIpAddress
- Parameters:
sourceIpAddress
- Source IP address or CIDR.- Returns:
- The CreateFirewallRule builder.
-
destinationIpAddress
- Parameters:
destinationIpAddress
- Destination IP address or CIDR.- Returns:
- The CreateFirewallRule builder.
-
sourcePort
- Parameters:
sourcePort
- Source port number or a range.- Returns:
- The CreateFirewallRule builder.
-
destinationPort
- Parameters:
destinationPort
- Destination port number or a range.- Returns:
- The CreateFirewallRule builder.
-
position
- Parameters:
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.- Returns:
- The CreateFirewallRule builder.
-
action
- Parameters:
action
- Action to be performed on the traffic matching the rule (allow, deny).- Returns:
- The CreateFirewallRule builder.
-
enabled
- Parameters:
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.- Returns:
- The CreateFirewallRule builder.
-
getTenantId
-
getName
-
getDescription
-
getFirewallPolicyId
-
getProtocol
-
getIpVersion
-
getSourceIpAddress
-
getDestinationIpAddress
-
getSourcePort
-
getDestinationPort
-
getPosition
-
getAction
-
getEnabled
-
build
-