Package com.ibm.cloud.is.vpc.v1.model
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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
NetworkACLRule.Action
The action to perform for a packet matching the rule.static interface
NetworkACLRule.Direction
The direction of traffic to match.static interface
NetworkACLRule.IpVersion
The IP version for this rule.static interface
NetworkACLRule.Protocol
The network protocol.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAction()
Gets the action.NetworkACLRuleReference
getBefore()
Gets the before.Long
getCode()
Gets the code.Date
getCreatedAt()
Gets the createdAt.String
getDestination()
Gets the destination.Long
getDestinationPortMax()
Gets the destinationPortMax.Long
getDestinationPortMin()
Gets the destinationPortMin.String
getDirection()
Gets the direction.String
getHref()
Gets the href.String
getId()
Gets the id.String
getIpVersion()
Gets the ipVersion.String
getName()
Gets the name.String
getProtocol()
Gets the protocol.String
getSource()
Gets the source.Long
getSourcePortMax()
Gets the sourcePortMax.Long
getSourcePortMin()
Gets the sourcePortMin.Long
getType()
Gets the type.
-
-
-
Method Detail
-
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
-
-