Class NetworkACLRulePatch
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.is.vpc.v1.model.NetworkACLRulePatch
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class NetworkACLRulePatch
extends com.ibm.cloud.sdk.core.service.model.GenericModel
NetworkACLRulePatch.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
The action to perform for a packet matching the rule.static class
Builder.static interface
The direction of traffic to match. -
Method Summary
Modifier and TypeMethodDescriptionaction()
Gets the action.asPatch()
Construct a JSON merge-patch from the NetworkACLRulePatch.before()
Gets the before.code()
Gets the code.Gets the destination.Gets the destinationPortMax.Gets the destinationPortMin.Gets the direction.name()
Gets the name.New builder.source()
Gets the source.Gets the sourcePortMax.Gets the sourcePortMin.type()
Gets the type.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
-
action
Gets the action. The action to perform for a packet matching the rule.- Returns:
- the action
-
before
Gets the before. The rule to move this rule immediately before. Specify `null` to move this rule after all existing rules.- Returns:
- the before
-
code
Gets the code. The ICMP traffic code to match. If set, `type` must also be set. Specify `null` to remove an existing ICMP traffic code.- Returns:
- the code
-
destination
Gets the destination. The destination IP address or CIDR block to match. The CIDR block `0.0.0.0/0` matches all destination addresses.- Returns:
- the destination
-
destinationPortMax
Gets the destinationPortMax. The inclusive upper bound of TCP/UDP destination port range.- Returns:
- the destinationPortMax
-
destinationPortMin
Gets the destinationPortMin. The inclusive lower bound of TCP/UDP destination port range.- Returns:
- the destinationPortMin
-
direction
Gets the direction. The direction of traffic to match.- Returns:
- the direction
-
name
Gets the name. The name for this network ACL rule. The name must not be used by another rule for the network ACL.- Returns:
- the name
-
source
Gets the source. The source IP address or CIDR block to match. The CIDR block `0.0.0.0/0` matches all source addresses.- Returns:
- the source
-
sourcePortMax
Gets the sourcePortMax. The inclusive upper bound of TCP/UDP source port range.- Returns:
- the sourcePortMax
-
sourcePortMin
Gets the sourcePortMin. The inclusive lower bound of TCP/UDP source port range.- Returns:
- the sourcePortMin
-
type
Gets the type. The ICMP traffic type to match. Specify `null` to remove an existing ICMP traffic type value.- Returns:
- the type
-
asPatch
Construct a JSON merge-patch from the NetworkACLRulePatch. Note that properties of the NetworkACLRulePatch with null values are not represented in the constructed JSON merge-patch object, but can be explicitly set afterward to signify a property delete.- Returns:
- a JSON merge-patch for the NetworkACLRulePatch
-