com.baidubce.services.bcc.model
Class SecurityGroupRuleModel

java.lang.Object
  extended by 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.


Constructor Summary
SecurityGroupRuleModel()
           
 
Method Summary
 String getDestGroupId()
           
 String getDestIp()
           
 String getDirection()
           
 String getEthertype()
           
 String getPortRange()
           
 String getProtocol()
           
 String getRemark()
           
 String getSecurityGroupId()
           
 String getSourceGroupId()
           
 String getSourceIp()
           
 void setDestGroupId(String destGroupId)
           
 void setDestIp(String destIp)
           
 void setDirection(String direction)
           
 void setEthertype(String ethertype)
           
 void setPortRange(String portRange)
           
 void setProtocol(String protocol)
           
 void setRemark(String remark)
           
 void setSecurityGroupId(String securityGroupId)
           
 void setSourceGroupId(String sourceGroupId)
           
 void setSourceIp(String sourceIp)
           
 String toString()
           
 SecurityGroupRuleModel withDestGroupId(String destGroupId)
           
 SecurityGroupRuleModel withDestIp(String destIp)
           
 SecurityGroupRuleModel withDirection(String direction)
           
 SecurityGroupRuleModel withEthertype(String ethertype)
           
 SecurityGroupRuleModel withPortRange(String portRange)
           
 SecurityGroupRuleModel withProtocol(String protocol)
           
 SecurityGroupRuleModel withRemark(String remark)
           
 SecurityGroupRuleModel withSecurityGroupId(String securityGroupId)
           
 SecurityGroupRuleModel withSourceGroupId(String sourceGroupId)
           
 SecurityGroupRuleModel withSourceIp(String sourceIp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SecurityGroupRuleModel

public SecurityGroupRuleModel()
Method Detail

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.