com.baidubce.services.bcc.model
Class SecurityGroupRuleModel
java.lang.Object
com.baidubce.services.bcc.model.SecurityGroupRuleModel
public class SecurityGroupRuleModel
- extends Object
The model about the rule of the securitygroup.
The tuple of (remark, protocol, direction, portRange, sourceIp|destIp, sourceGroupId|destGroupId) must be unique.
SecurityGroupRuleModel
public SecurityGroupRuleModel()
getRemark
public String getRemark()
setRemark
public void setRemark(String remark)
withRemark
public SecurityGroupRuleModel withRemark(String remark)
getDirection
public String getDirection()
setDirection
public void setDirection(String direction)
withDirection
public SecurityGroupRuleModel withDirection(String direction)
getEthertype
public String getEthertype()
setEthertype
public void setEthertype(String ethertype)
withEthertype
public SecurityGroupRuleModel withEthertype(String ethertype)
getPortRange
public String getPortRange()
setPortRange
public void setPortRange(String portRange)
withPortRange
public SecurityGroupRuleModel withPortRange(String portRange)
getProtocol
public String getProtocol()
setProtocol
public void setProtocol(String protocol)
withProtocol
public SecurityGroupRuleModel withProtocol(String protocol)
getSourceGroupId
public String getSourceGroupId()
setSourceGroupId
public void setSourceGroupId(String sourceGroupId)
withSourceGroupId
public SecurityGroupRuleModel withSourceGroupId(String sourceGroupId)
getSourceIp
public String getSourceIp()
setSourceIp
public void setSourceIp(String sourceIp)
withSourceIp
public SecurityGroupRuleModel withSourceIp(String sourceIp)
getDestGroupId
public String getDestGroupId()
setDestGroupId
public void setDestGroupId(String destGroupId)
withDestGroupId
public SecurityGroupRuleModel withDestGroupId(String destGroupId)
getDestIp
public String getDestIp()
setDestIp
public void setDestIp(String destIp)
withDestIp
public SecurityGroupRuleModel withDestIp(String destIp)
getSecurityGroupId
public String getSecurityGroupId()
setSecurityGroupId
public void setSecurityGroupId(String securityGroupId)
withSecurityGroupId
public SecurityGroupRuleModel withSecurityGroupId(String securityGroupId)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2018. All rights reserved.