Class 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.
    • Method Detail

      • 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