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

com.aliyun.sdk.service.waf_openapi20211001.models.DescribeApisecRulesResponseBody Maven / Gradle / Ivy

// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.waf_openapi20211001.models;

import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * 
 * {@link DescribeApisecRulesResponseBody} extends {@link TeaModel}
 *
 * 

DescribeApisecRulesResponseBody

*/ public class DescribeApisecRulesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Data") private java.util.List < Data> data; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Long totalCount; private DescribeApisecRulesResponseBody(Builder builder) { this.data = builder.data; this.requestId = builder.requestId; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static DescribeApisecRulesResponseBody create() { return builder().build(); } /** * @return data */ public java.util.List < Data> getData() { return this.data; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } public static final class Builder { private java.util.List < Data> data; private String requestId; private Long totalCount; /** *

The policies.

*/ public Builder data(java.util.List < Data> data) { this.data = data; return this; } /** *

The request ID.

* * example: *

D7861F61-5B61-46CE-A47C-6B19160D5EB0

*/ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** *

The total number of entries returned.

* * example: *

6

*/ public Builder totalCount(Long totalCount) { this.totalCount = totalCount; return this; } public DescribeApisecRulesResponseBody build() { return new DescribeApisecRulesResponseBody(this); } } /** * * {@link DescribeApisecRulesResponseBody} extends {@link TeaModel} * *

DescribeApisecRulesResponseBody

*/ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("Id") private Long id; @com.aliyun.core.annotation.NameInMap("Rule") private String rule; @com.aliyun.core.annotation.NameInMap("Status") private Long status; @com.aliyun.core.annotation.NameInMap("Type") private String type; @com.aliyun.core.annotation.NameInMap("UpdateTime") private Long updateTime; private Data(Builder builder) { this.id = builder.id; this.rule = builder.rule; this.status = builder.status; this.type = builder.type; this.updateTime = builder.updateTime; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return id */ public Long getId() { return this.id; } /** * @return rule */ public String getRule() { return this.rule; } /** * @return status */ public Long getStatus() { return this.status; } /** * @return type */ public String getType() { return this.type; } /** * @return updateTime */ public Long getUpdateTime() { return this.updateTime; } public static final class Builder { private Long id; private String rule; private Long status; private String type; private Long updateTime; /** *

The ID of the policy.

* * example: *

34933

*/ public Builder id(Long id) { this.id = id; return this; } /** *

The details of the policy. The value is a string that consists of multiple parameters in the JSON format.

* * example: *

{ * "ext": "Date", * "regex": "-", * "code": "2009", * "level": "S1", * "origin": "default", * "name": "2009" * }

*/ public Builder rule(String rule) { this.rule = rule; return this; } /** *

The status of the policy. Valid values:

*
    *
  • 1: enabled
  • *
  • 0: disabled
  • *
* * example: *

1

*/ public Builder status(Long status) { this.status = status; return this; } /** *

The type of the policy. Valid values:

*
    *
  • risk: risk detection
  • *
  • event: security event
  • *
  • sensitive_word: sensitive data
  • *
  • auth_flag: authentication credential
  • *
  • api_tag: business purpose
  • *
  • desensitization: data masking
  • *
  • whitelist: whitelist
  • *
  • recognition: API recognition
  • *
  • offline_api: lifecycle management
  • *
* * example: *

risk

*/ public Builder type(String type) { this.type = type; return this; } /** *

The time when the policy was updated. The value is a UNIX timestamp displayed in UTC. Unit: seconds.

* * example: *

1721095301

*/ public Builder updateTime(Long updateTime) { this.updateTime = updateTime; return this; } public Data build() { return new Data(this); } } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy