Class SecurityGroupRule
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.is.vpc.v1.model.SecurityGroupRule
- All Implemented Interfaces:
 com.ibm.cloud.sdk.core.service.model.ObjectModel
- Direct Known Subclasses:
 SecurityGroupRuleSecurityGroupRuleProtocolAll,SecurityGroupRuleSecurityGroupRuleProtocolICMP,SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP
public class SecurityGroupRule
extends com.ibm.cloud.sdk.core.service.model.GenericModel
SecurityGroupRule.
 Classes which extend this class:
 - SecurityGroupRuleSecurityGroupRuleProtocolAll
 - SecurityGroupRuleSecurityGroupRuleProtocolICMP
 - SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe direction of traffic to allow.static interfaceThe IP version to allow.static interfaceThe protocol to allow. - 
Method Summary
Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString 
- 
Method Details
- 
getDirection
Gets the direction. The direction of traffic to allow.- Returns:
 - the direction
 
 - 
getHref
 - 
getId
Gets the id. The unique identifier for this security group rule.- Returns:
 - the id
 
 - 
getIpVersion
Gets the ipVersion. The IP version to allow. The format of `local.address`, `remote.address`, `local.cidr_block` or `remote.cidr_block` must match this property, if they are used. If `remote` references a security group, then this rule only applies to IP addresses in that group matching this IP version.- Returns:
 - the ipVersion
 
 - 
getLocal
Gets the local. The local IP address or range of local IP addresses to which this rule will allow inbound traffic (or from which, for outbound traffic). A CIDR block of `0.0.0.0/0` allows traffic to all local IP addresses (or from all local IP addresses, for outbound rules).- Returns:
 - the local
 
 - 
getProtocol
Gets the protocol. The protocol to allow. The enumerated values for this property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.- Returns:
 - the protocol
 
 - 
getRemote
Gets the remote. The remote IP addresses or security groups from which this rule allows traffic (or to which, for outbound rules). A CIDR block of `0.0.0.0/0` allows traffic from any source (or to any destination, for outbound rules).- Returns:
 - the remote
 
 - 
getCode
Gets the code. The ICMP traffic code to allow. If absent, all codes are allowed.- Returns:
 - the code
 
 - 
getType
Gets the type. The ICMP traffic type to allow. If absent, all types are allowed.- Returns:
 - the type
 
 - 
getPortMax
Gets the portMax. The inclusive upper bound of TCP/UDP destination port range.- Returns:
 - the portMax
 
 - 
getPortMin
Gets the portMin. The inclusive lower bound of TCP/UDP destination port range.- Returns:
 - the portMin
 
 
 -