Class Rule
java.lang.Object
com.vmware.vra.jenkinsplugin.model.iaas.Rule
@Generated(value="io.swagger.codegen.v3.generators.java.JavaClientCodegen", date="2020-09-09T18:26:35.661905-04:00[America/New_York]") public class Rule extends Object
A rule used in a security group.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Rule.AccessEnum
Type of access (Allow, Deny or Drop) for the security rule.static class
Rule.DirectionEnum
Direction of the security rule (inbound or outboud). -
Constructor Summary
Constructors Constructor Description Rule()
-
Method Summary
Modifier and Type Method Description Rule
access(Rule.AccessEnum access)
Rule
direction(Rule.DirectionEnum direction)
boolean
equals(Object o)
Rule.AccessEnum
getAccess()
Type of access (Allow, Deny or Drop) for the security rule.Rule.DirectionEnum
getDirection()
Direction of the security rule (inbound or outboud).String
getIpRangeCidr()
IP address(es) in CIDR format which the security rule applies to.String
getName()
Name of security rule.String
getPorts()
Ports the security rule applies to.String
getProtocol()
Protocol the security rule applies to.String
getService()
Service defined by the provider (such as: SSH, HTTPS).int
hashCode()
Rule
ipRangeCidr(String ipRangeCidr)
Rule
name(String name)
Rule
ports(String ports)
Rule
protocol(String protocol)
Rule
service(String service)
void
setAccess(Rule.AccessEnum access)
void
setDirection(Rule.DirectionEnum direction)
void
setIpRangeCidr(String ipRangeCidr)
void
setName(String name)
void
setPorts(String ports)
void
setProtocol(String protocol)
void
setService(String service)
String
toString()
-
Constructor Details
-
Rule
public Rule()
-
-
Method Details
-
protocol
-
getProtocol
Protocol the security rule applies to.- Returns:
- protocol
-
setProtocol
-
access
-
getAccess
Type of access (Allow, Deny or Drop) for the security rule. Allow is default. Traffic that does not match any rules will be denied.- Returns:
- access
-
setAccess
-
service
-
getService
Service defined by the provider (such as: SSH, HTTPS). Either service or protocol have to be specified.- Returns:
- service
-
setService
-
ipRangeCidr
-
getIpRangeCidr
IP address(es) in CIDR format which the security rule applies to.- Returns:
- ipRangeCidr
-
setIpRangeCidr
-
name
-
getName
Name of security rule.- Returns:
- name
-
setName
-
ports
-
getPorts
Ports the security rule applies to.- Returns:
- ports
-
setPorts
-
direction
-
getDirection
Direction of the security rule (inbound or outboud).- Returns:
- direction
-
setDirection
-
equals
-
hashCode
public int hashCode() -
toString
-