com.aliyun.sdk.service.waf_openapi20211001.models.DescribeDefenseResourcesResponseBody Maven / Gradle / Ivy
Show all versions of alibabacloud-waf_openapi20211001 Show documentation
// 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 DescribeDefenseResourcesResponseBody} extends {@link TeaModel}
*
* DescribeDefenseResourcesResponseBody
*/
public class DescribeDefenseResourcesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("Resources")
private java.util.List < Resources> resources;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Long totalCount;
private DescribeDefenseResourcesResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.resources = builder.resources;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDefenseResourcesResponseBody create() {
return builder().build();
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return resources
*/
public java.util.List < Resources> getResources() {
return this.resources;
}
/**
* @return totalCount
*/
public Long getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private String requestId;
private java.util.List < Resources> resources;
private Long totalCount;
/**
* The ID of the request.
*
* example:
* 618F2626-DB27-5187-8C6C-4E61A491DF29
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* The protected objects.
*/
public Builder resources(java.util.List < Resources> resources) {
this.resources = resources;
return this;
}
/**
* The total number of entries that are returned.
*
* example:
* 73
*/
public Builder totalCount(Long totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeDefenseResourcesResponseBody build() {
return new DescribeDefenseResourcesResponseBody(this);
}
}
/**
*
* {@link DescribeDefenseResourcesResponseBody} extends {@link TeaModel}
*
* DescribeDefenseResourcesResponseBody
*/
public static class Resources extends TeaModel {
@com.aliyun.core.annotation.NameInMap("AcwCookieStatus")
private Integer acwCookieStatus;
@com.aliyun.core.annotation.NameInMap("AcwSecureStatus")
private Integer acwSecureStatus;
@com.aliyun.core.annotation.NameInMap("AcwV3SecureStatus")
private Integer acwV3SecureStatus;
@com.aliyun.core.annotation.NameInMap("CustomHeaders")
private java.util.List < String > customHeaders;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("Detail")
private java.util.Map < String, ? > detail;
@com.aliyun.core.annotation.NameInMap("GmtCreate")
private Long gmtCreate;
@com.aliyun.core.annotation.NameInMap("GmtModified")
private Long gmtModified;
@com.aliyun.core.annotation.NameInMap("OwnerUserId")
private String ownerUserId;
@com.aliyun.core.annotation.NameInMap("Pattern")
private String pattern;
@com.aliyun.core.annotation.NameInMap("Product")
private String product;
@com.aliyun.core.annotation.NameInMap("Resource")
private String resource;
@com.aliyun.core.annotation.NameInMap("ResourceGroup")
private String resourceGroup;
@com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId")
private String resourceManagerResourceGroupId;
@com.aliyun.core.annotation.NameInMap("ResourceOrigin")
private String resourceOrigin;
@com.aliyun.core.annotation.NameInMap("XffStatus")
private Integer xffStatus;
private Resources(Builder builder) {
this.acwCookieStatus = builder.acwCookieStatus;
this.acwSecureStatus = builder.acwSecureStatus;
this.acwV3SecureStatus = builder.acwV3SecureStatus;
this.customHeaders = builder.customHeaders;
this.description = builder.description;
this.detail = builder.detail;
this.gmtCreate = builder.gmtCreate;
this.gmtModified = builder.gmtModified;
this.ownerUserId = builder.ownerUserId;
this.pattern = builder.pattern;
this.product = builder.product;
this.resource = builder.resource;
this.resourceGroup = builder.resourceGroup;
this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId;
this.resourceOrigin = builder.resourceOrigin;
this.xffStatus = builder.xffStatus;
}
public static Builder builder() {
return new Builder();
}
public static Resources create() {
return builder().build();
}
/**
* @return acwCookieStatus
*/
public Integer getAcwCookieStatus() {
return this.acwCookieStatus;
}
/**
* @return acwSecureStatus
*/
public Integer getAcwSecureStatus() {
return this.acwSecureStatus;
}
/**
* @return acwV3SecureStatus
*/
public Integer getAcwV3SecureStatus() {
return this.acwV3SecureStatus;
}
/**
* @return customHeaders
*/
public java.util.List < String > getCustomHeaders() {
return this.customHeaders;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return detail
*/
public java.util.Map < String, ? > getDetail() {
return this.detail;
}
/**
* @return gmtCreate
*/
public Long getGmtCreate() {
return this.gmtCreate;
}
/**
* @return gmtModified
*/
public Long getGmtModified() {
return this.gmtModified;
}
/**
* @return ownerUserId
*/
public String getOwnerUserId() {
return this.ownerUserId;
}
/**
* @return pattern
*/
public String getPattern() {
return this.pattern;
}
/**
* @return product
*/
public String getProduct() {
return this.product;
}
/**
* @return resource
*/
public String getResource() {
return this.resource;
}
/**
* @return resourceGroup
*/
public String getResourceGroup() {
return this.resourceGroup;
}
/**
* @return resourceManagerResourceGroupId
*/
public String getResourceManagerResourceGroupId() {
return this.resourceManagerResourceGroupId;
}
/**
* @return resourceOrigin
*/
public String getResourceOrigin() {
return this.resourceOrigin;
}
/**
* @return xffStatus
*/
public Integer getXffStatus() {
return this.xffStatus;
}
public static final class Builder {
private Integer acwCookieStatus;
private Integer acwSecureStatus;
private Integer acwV3SecureStatus;
private java.util.List < String > customHeaders;
private String description;
private java.util.Map < String, ? > detail;
private Long gmtCreate;
private Long gmtModified;
private String ownerUserId;
private String pattern;
private String product;
private String resource;
private String resourceGroup;
private String resourceManagerResourceGroupId;
private String resourceOrigin;
private Integer xffStatus;
/**
* The status of the tracking cookie.
*
* - 0: disabled.
* - 1: enabled.
*
*
* example:
* 1
*/
public Builder acwCookieStatus(Integer acwCookieStatus) {
this.acwCookieStatus = acwCookieStatus;
return this;
}
/**
* The status of the secure attribute in the tracking cookie.
*
* - 0: disabled.
* - 1: enabled.
*
*
* example:
* 0
*/
public Builder acwSecureStatus(Integer acwSecureStatus) {
this.acwSecureStatus = acwSecureStatus;
return this;
}
/**
* The status of the secure attribute in the slider CAPTCHA cookie.
*
* - 0: disabled.
* - 1: enabled.
*
*
* example:
* 0
*/
public Builder acwV3SecureStatus(Integer acwV3SecureStatus) {
this.acwV3SecureStatus = acwV3SecureStatus;
return this;
}
/**
* The custom XFF headers that are used to identify the originating IP addresses of clients. If the value of XffStatus is 1 and CustomHeaders is left empty, the first IP addresses in the XFF headers are used as the originating IP addresses of clients.
*/
public Builder customHeaders(java.util.List < String > customHeaders) {
this.customHeaders = customHeaders;
return this;
}
/**
* The description of the protected object.
*
* example:
* test
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* The details of the protected object. Different key-value pairs indicate different attributes of the protected object.
*/
public Builder detail(java.util.Map < String, ? > detail) {
this.detail = detail;
return this;
}
/**
* The time when the protected object was created. Unit: milliseconds.
*
* example:
* 1652149203187
*/
public Builder gmtCreate(Long gmtCreate) {
this.gmtCreate = gmtCreate;
return this;
}
/**
* The time when the protected object was modified. Unit: milliseconds.
*
* example:
* 1665633032000
*/
public Builder gmtModified(Long gmtModified) {
this.gmtModified = gmtModified;
return this;
}
/**
* The ID of the Alibaba Cloud account to which the resource belongs.
*
* example:
* 135*********46
*/
public Builder ownerUserId(String ownerUserId) {
this.ownerUserId = ownerUserId;
return this;
}
/**
* The pattern in which the protected object is protected.
*
* example:
* domain
*/
public Builder pattern(String pattern) {
this.pattern = pattern;
return this;
}
/**
* The name of the cloud service.
*
* example:
* alb
*/
public Builder product(String product) {
this.product = product;
return this;
}
/**
* The name of the protected object.
*
* example:
* alb-rencs***
*/
public Builder resource(String resource) {
this.resource = resource;
return this;
}
/**
* The name of the protected object group to which the protected object belongs.
*
* example:
* test
*/
public Builder resourceGroup(String resourceGroup) {
this.resourceGroup = resourceGroup;
return this;
}
/**
* The ID of the Alibaba Cloud resource group.
*
* example:
* rg-acfm***q
*/
public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) {
this.resourceManagerResourceGroupId = resourceManagerResourceGroupId;
return this;
}
/**
* The origin of the protected object.
*
* example:
* custom
*/
public Builder resourceOrigin(String resourceOrigin) {
this.resourceOrigin = resourceOrigin;
return this;
}
/**
* Indicates whether the X-Forwarded-For (XFF) proxy is enabled.
*
* example:
* 1
*/
public Builder xffStatus(Integer xffStatus) {
this.xffStatus = xffStatus;
return this;
}
public Resources build() {
return new Resources(this);
}
}
}
}