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

com.aliyun.sdk.service.waf_openapi20211001.models.DescribeApisecSuggestionsResponseBody 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 DescribeApisecSuggestionsResponseBody} extends {@link TeaModel}
 *
 * 

DescribeApisecSuggestionsResponseBody

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

The protection suggestions.

*/ 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; } public DescribeApisecSuggestionsResponseBody build() { return new DescribeApisecSuggestionsResponseBody(this); } } /** * * {@link DescribeApisecSuggestionsResponseBody} extends {@link TeaModel} * *

DescribeApisecSuggestionsResponseBody

*/ public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("ApiFormat") private String apiFormat; @com.aliyun.core.annotation.NameInMap("MatchedHost") private String matchedHost; @com.aliyun.core.annotation.NameInMap("SuggestId") private String suggestId; @com.aliyun.core.annotation.NameInMap("SuggestRule") private String suggestRule; @com.aliyun.core.annotation.NameInMap("SuggestType") private String suggestType; private Data(Builder builder) { this.apiFormat = builder.apiFormat; this.matchedHost = builder.matchedHost; this.suggestId = builder.suggestId; this.suggestRule = builder.suggestRule; this.suggestType = builder.suggestType; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return apiFormat */ public String getApiFormat() { return this.apiFormat; } /** * @return matchedHost */ public String getMatchedHost() { return this.matchedHost; } /** * @return suggestId */ public String getSuggestId() { return this.suggestId; } /** * @return suggestRule */ public String getSuggestRule() { return this.suggestRule; } /** * @return suggestType */ public String getSuggestType() { return this.suggestType; } public static final class Builder { private String apiFormat; private String matchedHost; private String suggestId; private String suggestRule; private String suggestType; /** *

The API.

* * example: *

/apisec/v1/saveinfo

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

The domain name or IP address of the API.

* * example: *

a.aliyun.com

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

The rule ID of the protection suggestion.

* * example: *

15060a1f8fed40130b7c4a7bf8d8733b

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

The rule content of the protection suggestion. The value is a string that consists of multiple parameters in the JSON format. Valid values:

*
    *
  • event_tags: event type
  • *
  • black_iplist: IP address blacklist
  • *
  • ip_baseline: IP address
  • *
  • freq_baseline: throttling frequency
  • *
  • client_id_baseline: client information
  • *
  • country_baseline: country information
  • *
  • province_baseline: province information
  • *
  • sensitive_type: sensitive information
  • *
* * example: *

{ * "rule": "ClientRule", * "client_id_baseline": ["Edge"] * }

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

The rule type of the protection suggestion. Valid values:

*
    *
  • BotRule: bot management rules
  • *
  • BlackIPRule: IP address blacklist rules
  • *
  • WhiteIPRule: IP address whitelist rules
  • *
  • RateLimitRule: throttling rules
  • *
  • ClientRule: client rules
  • *
  • GeoRule: region-related rules
  • *
  • SensitiveRule: sensitive information rules
  • *
  • UnauthRule: authentication rules
  • *
* * example: *

WhiteIPRule

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy