Package com.ibm.cloud.is.vpc.v1.model
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 Classes Modifier and Type Class Description static interface
SecurityGroupRule.Direction
The direction of traffic to allow.static interface
SecurityGroupRule.IpVersion
The IP version to allow.static interface
SecurityGroupRule.Protocol
The protocol to allow.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
getCode()
Gets the code.String
getDirection()
Gets the direction.String
getHref()
Gets the href.String
getId()
Gets the id.String
getIpVersion()
Gets the ipVersion.SecurityGroupRuleLocal
getLocal()
Gets the local.Long
getPortMax()
Gets the portMax.Long
getPortMin()
Gets the portMin.String
getProtocol()
Gets the protocol.SecurityGroupRuleRemote
getRemote()
Gets the remote.Long
getType()
Gets the type.
-
-
-
Method Detail
-
getDirection
public String getDirection()
Gets the direction. The direction of traffic to allow.- Returns:
- the direction
-
getHref
public String getHref()
Gets the href. The URL for this security group rule.- Returns:
- the href
-
getId
public String getId()
Gets the id. The unique identifier for this security group rule.- Returns:
- the id
-
getIpVersion
public String 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
public SecurityGroupRuleLocal 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
public String 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
public SecurityGroupRuleRemote 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
public Long getCode()
Gets the code. The ICMP traffic code to allow. If absent, all codes are allowed.- Returns:
- the code
-
getType
public Long getType()
Gets the type. The ICMP traffic type to allow. If absent, all types are allowed.- Returns:
- the type
-
getPortMax
public Long getPortMax()
Gets the portMax. The inclusive upper bound of TCP/UDP destination port range.- Returns:
- the portMax
-
getPortMin
public Long getPortMin()
Gets the portMin. The inclusive lower bound of TCP/UDP destination port range.- Returns:
- the portMin
-
-