All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ksyun.client.tidb.createsecurityrule.v20210520.CreateSecurityRuleRequest Maven / Gradle / Ivy

Go to download

The KSYUN Web Services SDK for Java provides Java APIs for building software on KSYUN' cost-effective, scalable, and reliable infrastructure products. The KSYUN Java SDK allows developers to code against APIs for all of KSYUN's infrastructure web services (KSC S3, KSC KEC, KSC RDS etc).

The newest version!
package ksyun.client.tidb.createsecurityrule.v20210520;

import common.annotation.KsYunField;
import lombok.Data;
import lombok.ToString;

import java.util.List;

/**
 * @Classname CreateSecurityRuleRequest
 * @Description 请求参数
 */
@Data
public class CreateSecurityRuleRequest {
    /**
     * 安全组ID。
     */
    @KsYunField(name = "SecurityGroupId")
    private String SecurityGroupId;

    /**
     * 安全组规则。格式:{Rules: [{"Cidr": "***", "Desc": "***", "AclAction": "***"}]}。
     * 请注意:1. Cidr为必填参数;2. AclAction(控制策略)可选:accept(放行),reject(拒绝);默认为accept。
     */
    @KsYunField(name = "Rules")

    private RulesDto RulesList;

    @Data
    @ToString
    public static class RulesDto {
        /**
         * 规则地址
         */
        @KsYunField(name = "Cidr")
        private List CidrList;
        /**
         * 描述
         */
        @KsYunField(name = "Desc")
        private List DescList;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy