public static final class FirewallRule.Builder
extends java.lang.Object
FirewallRule
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
FirewallRule . |
Modifier and Type | Method and Description |
---|---|
FirewallRule |
build() |
FirewallRule.Builder |
setAction(java.lang.String action)
Possible values are:
FirewallRule.ACTION_ALLOW FirewallRule.ACTION_DENY |
FirewallRule.Builder |
setApplicationIds(java.util.List<java.lang.String> applicationIds) |
FirewallRule.Builder |
setDestination(java.lang.String destination)
Optional.
|
FirewallRule.Builder |
setDestinationScope(FirewallRuleScope destinationScope) |
FirewallRule.Builder |
setId(java.lang.String id) |
FirewallRule.Builder |
setName(java.lang.String name) |
FirewallRule.Builder |
setRevision(java.lang.Long revision)
current revision of the list of firewall rules, used to protect against
concurrent modification (first writer wins) format: int32
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
FirewallRule.Builder |
setRuleInterface(java.lang.String ruleInterface)
Deprecated, left for backwards compatibility.
|
FirewallRule.Builder |
setRuleType(java.lang.String ruleType)
Possible values are:
FirewallRule.RULE_TYPE_USER FirewallRule.RULE_TYPE_DEFAULT |
FirewallRule.Builder |
setServices(java.util.List<FirewallService> services)
list of protocols and ports for this firewall rule
|
FirewallRule.Builder |
setSource(java.lang.String source)
Optional.
|
FirewallRule.Builder |
setSourceScope(FirewallRuleScope sourceScope) |
public Builder()
FirewallRule
.public FirewallRule.Builder setRuleType(java.lang.String ruleType)
ruleType
- New value for the property.public FirewallRule.Builder setApplicationIds(java.util.List<java.lang.String> applicationIds)
applicationIds
- New value for the property.public FirewallRule.Builder setName(java.lang.String name)
name
- New value for the property.public FirewallRule.Builder setRuleInterface(java.lang.String ruleInterface)
ruleInterface
- New value for the property.public FirewallRule.Builder setDestination(java.lang.String destination)
destination
- New value for the property.public FirewallRule.Builder setId(java.lang.String id)
id
- New value for the property.public FirewallRule.Builder setDestinationScope(FirewallRuleScope destinationScope)
destinationScope
- New value for the property.public FirewallRule.Builder setSource(java.lang.String source)
source
- New value for the property.public FirewallRule.Builder setSourceScope(FirewallRuleScope sourceScope)
sourceScope
- New value for the property.public FirewallRule.Builder setServices(java.util.List<FirewallService> services)
services
- New value for the property.public FirewallRule.Builder setAction(java.lang.String action)
action
- New value for the property.public FirewallRule.Builder setRevision(java.lang.Long revision)
revision
- New value for the property.public FirewallRule build()