Class NetworkACLRule

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.is.vpc.v1.model.NetworkACLRule
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
Direct Known Subclasses:
NetworkACLRuleNetworkACLRuleProtocolAll, NetworkACLRuleNetworkACLRuleProtocolICMP, NetworkACLRuleNetworkACLRuleProtocolTCPUDP

public class NetworkACLRule extends com.ibm.cloud.sdk.core.service.model.GenericModel
NetworkACLRule. Classes which extend this class: - NetworkACLRuleNetworkACLRuleProtocolTCPUDP - NetworkACLRuleNetworkACLRuleProtocolICMP - NetworkACLRuleNetworkACLRuleProtocolAll
  • Method Details

    • getAction

      public String getAction()
      Gets the action. The action to perform for a packet matching the rule.
      Returns:
      the action
    • getBefore

      public NetworkACLRuleReference getBefore()
      Gets the before. The rule that this rule is immediately before. If absent, this is the last rule.
      Returns:
      the before
    • getCreatedAt

      public Date getCreatedAt()
      Gets the createdAt. The date and time that the rule was created.
      Returns:
      the createdAt
    • getDestination

      public String getDestination()
      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
    • getDirection

      public String getDirection()
      Gets the direction. The direction of traffic to match.
      Returns:
      the direction
    • getHref

      public String getHref()
      Gets the href. The URL for this network ACL rule.
      Returns:
      the href
    • getId

      public String getId()
      Gets the id. The unique identifier for this network ACL rule.
      Returns:
      the id
    • getIpVersion

      public String getIpVersion()
      Gets the ipVersion. The IP version for this rule.
      Returns:
      the ipVersion
    • getName

      public String getName()
      Gets the name. The name for this network ACL rule. The name is unique across all rules for the network ACL.
      Returns:
      the name
    • getProtocol

      public String getProtocol()
      Gets the protocol. The network protocol.
      Returns:
      the protocol
    • getSource

      public String getSource()
      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
    • getDestinationPortMax

      public Long getDestinationPortMax()
      Gets the destinationPortMax. The inclusive upper bound of TCP/UDP destination port range.
      Returns:
      the destinationPortMax
    • getDestinationPortMin

      public Long getDestinationPortMin()
      Gets the destinationPortMin. The inclusive lower bound of TCP/UDP destination port range.
      Returns:
      the destinationPortMin
    • getSourcePortMax

      public Long getSourcePortMax()
      Gets the sourcePortMax. The inclusive upper bound of TCP/UDP source port range.
      Returns:
      the sourcePortMax
    • getSourcePortMin

      public Long getSourcePortMin()
      Gets the sourcePortMin. The inclusive lower bound of TCP/UDP source port range.
      Returns:
      the sourcePortMin
    • getCode

      public Long getCode()
      Gets the code. The ICMP traffic code to match. If absent, all codes are matched.
      Returns:
      the code
    • getType

      public Long getType()
      Gets the type. The ICMP traffic type to match. If absent, all types are matched.
      Returns:
      the type