Package com.ibm.cloud.is.vpc.v1.model
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 Classes Modifier and Type Class Description static interface
NetworkACLRulePatch.Action
The action to perform for a packet matching the rule.static class
NetworkACLRulePatch.Builder
Builder.static interface
NetworkACLRulePatch.Direction
The direction of traffic to match.static interface
NetworkACLRulePatch.Protocol
The network protocol.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
action()
Gets the action.Map<String,Object>
asPatch()
Construct a JSON merge-patch from the NetworkACLRulePatch.NetworkACLRuleBeforePatch
before()
Gets the before.Long
code()
Gets the code.String
destination()
Gets the destination.Long
destinationPortMax()
Gets the destinationPortMax.Long
destinationPortMin()
Gets the destinationPortMin.String
direction()
Gets the direction.String
name()
Gets the name.NetworkACLRulePatch.Builder
newBuilder()
New builder.String
protocol()
Gets the protocol.String
source()
Gets the source.Long
sourcePortMax()
Gets the sourcePortMax.Long
sourcePortMin()
Gets the sourcePortMin.Long
type()
Gets the type.
-
-
-
Method Detail
-
newBuilder
public NetworkACLRulePatch.Builder newBuilder()
New builder.- Returns:
- a NetworkACLRulePatch builder
-
action
public String action()
Gets the action. The action to perform for a packet matching the rule.- Returns:
- the action
-
before
public NetworkACLRuleBeforePatch 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
public Long 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
public String 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
public Long destinationPortMax()
Gets the destinationPortMax. The inclusive upper bound of TCP/UDP destination port range.- Returns:
- the destinationPortMax
-
destinationPortMin
public Long destinationPortMin()
Gets the destinationPortMin. The inclusive lower bound of TCP/UDP destination port range.- Returns:
- the destinationPortMin
-
direction
public String direction()
Gets the direction. The direction of traffic to match.- Returns:
- the direction
-
name
public String 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
-
protocol
public String protocol()
Gets the protocol. The network protocol.- Returns:
- the protocol
-
source
public String 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
public Long sourcePortMax()
Gets the sourcePortMax. The inclusive upper bound of TCP/UDP source port range.- Returns:
- the sourcePortMax
-
sourcePortMin
public Long sourcePortMin()
Gets the sourcePortMin. The inclusive lower bound of TCP/UDP source port range.- Returns:
- the sourcePortMin
-
type
public Long type()
Gets the type. The ICMP traffic type to match. Specify `null` to remove an existing ICMP traffic type value.- Returns:
- the type
-
asPatch
public Map<String,Object> 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
-
-