public class CreateSecurityGroupRequest extends AbstractBceRequest
| Constructor and Description |
|---|
CreateSecurityGroupRequest() |
getRequestCredentials, setRequestCredentialspublic String getClientToken()
public void setClientToken(String clientToken)
public CreateSecurityGroupRequest withClientToken(String clientToken)
clientToken - An ASCII string whose length is less than 64.
See more detail at
BCE API docpublic String getName()
public void setName(String name)
public CreateSecurityGroupRequest withVpcId(String vpcId)
public String getVpcId()
public void setVpcId(String vpcId)
public CreateSecurityGroupRequest withName(String name)
name - The name of SecurityGroup that will be created.public String getDesc()
public void setDesc(String desc)
public CreateSecurityGroupRequest withDesc(String desc)
desc - The optional parameter to describe the SecurityGroup that will be created.public List<SecurityGroupRuleModel> getRules()
public void setRules(List<SecurityGroupRuleModel> rules)
public CreateSecurityGroupRequest withRules(List<SecurityGroupRuleModel> rules)
rules - The list of rules which define how the SecurityGroup works.public CreateSecurityGroupRequest withTags(List<TagModel> tags)
tags - The list of tags which define how the SecurityGroup works.public CreateSecurityGroupRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials in class AbstractBceRequestcredentials - a valid instance of BceCredentials.Copyright © 2022. All rights reserved.