类 CreateSecurityGroupRequest


  • public class CreateSecurityGroupRequest
    extends AbstractBceRequest
    The request for creating new SecurityGroup.
    • 构造器详细资料

      • CreateSecurityGroupRequest

        public CreateSecurityGroupRequest()
    • 方法详细资料

      • 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)
      • 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.
      • 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.