类 CreateSecurityGroupRequest
- java.lang.Object
-
- com.baidubce.model.AbstractBceRequest
-
- com.baidubce.services.bcc.model.securitygroup.CreateSecurityGroupRequest
-
public class CreateSecurityGroupRequest extends AbstractBceRequest
The request for creating new SecurityGroup.
-
-
构造器概要
构造器 构造器 说明 CreateSecurityGroupRequest()
-
方法概要
-
从类继承的方法 com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
-
-
-
-
方法详细资料
-
getClientToken
public String getClientToken()
-
setClientToken
public void setClientToken(String clientToken)
-
withClientToken
public CreateSecurityGroupRequest withClientToken(String clientToken)
Configure optional client token for the request. The request will be idempotent if client token is provided. If the clientToken is not specified by the user, a random String generated by default algorithm will be used.- 参数:
clientToken- An ASCII string whose length is less than 64. See more detail at BCE API doc- 返回:
- CreateSecurityGroupRequest with specific clientToken
-
getName
public String getName()
-
setName
public void setName(String name)
-
withVpcId
public CreateSecurityGroupRequest withVpcId(String vpcId)
-
getVpcId
public String getVpcId()
-
setVpcId
public void setVpcId(String vpcId)
-
withName
public CreateSecurityGroupRequest withName(String name)
Configure name for the request.- 参数:
name- The name of SecurityGroup that will be created.- 返回:
- CreateSecurityGroupRequest with name.
-
getDesc
public String getDesc()
-
setDesc
public void setDesc(String desc)
-
withDesc
public CreateSecurityGroupRequest withDesc(String desc)
Configure desc for the request.- 参数:
desc- The optional parameter to describe the SecurityGroup that will be created.- 返回:
- CreateSecurityGroupRequest with desc.
-
getRules
public List<SecurityGroupRuleModel> getRules()
-
setRules
public void setRules(List<SecurityGroupRuleModel> rules)
-
withRules
public CreateSecurityGroupRequest withRules(List<SecurityGroupRuleModel> rules)
Configure rules for the request.- 参数:
rules- The list of rules which define how the SecurityGroup works.- 返回:
- CreateSecurityGroupRequest with rules.
-
withTags
public CreateSecurityGroupRequest withTags(List<TagModel> tags)
Configure tags for the request.- 参数:
tags- The list of tags which define how the SecurityGroup works.- 返回:
- CreateSecurityGroupRequest with tags.
-
withRequestCredentials
public CreateSecurityGroupRequest withRequestCredentials(BceCredentials credentials)
Configure request credential for the request.- 指定者:
withRequestCredentials在类中AbstractBceRequest- 参数:
credentials- a valid instance of BceCredentials.- 返回:
- CreateSecurityGroupRequest with credentials.
-
-