com.aliyun.sas20181203.models.ModifyWebLockUpdateConfigRequest Maven / Gradle / Ivy
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sas20181203.models;
import com.aliyun.tea.*;
public class ModifyWebLockUpdateConfigRequest extends TeaModel {
/**
* The prevention mode. Valid values:
*
* * **block**: Interception Mode
* * **audit**: Alert Mode
*/
@NameInMap("DefenceMode")
public String defenceMode;
/**
* The directory for which you want to enable web tamper proofing.
*/
@NameInMap("Dir")
public String dir;
/**
* The directory for which you want to disable web tamper proofing.
*
* > If you set **Mode** to **blacklist**, you must specify this parameter.
*/
@NameInMap("ExclusiveDir")
public String exclusiveDir;
/**
* The file for which you want to disable web tamper proofing.
*
* > If you set **Mode** to **blacklist**, you must specify this parameter.
*/
@NameInMap("ExclusiveFile")
public String exclusiveFile;
/**
* The type of the file for which you want to disable web tamper proofing. Separate multiple types with semicolons (;). Valid values:
*
* * php
* * jsp
* * asp
* * aspx
* * js
* * cgi
* * html
* * htm
* * xml
* * shtml
* * shtm
* * jpg
* * gif
* * png
*
* > If you set **Mode** to **blacklist**, you must specify this parameter.
*/
@NameInMap("ExclusiveFileType")
public String exclusiveFileType;
/**
* The ID of the protected directory for which you want to change the status of web tamper proofing.
*
* > You can call the [DescribeWebLockConfigList](~~DescribeWebLockConfigList~~) operation to query the IDs of protected directories.
*/
@NameInMap("Id")
public Integer id;
/**
* The file for which you want to enable web tamper proofing.
*
* > If you set **Mode** to **whitelist**, you must specify this parameter.
*/
@NameInMap("InclusiveFile")
public String inclusiveFile;
/**
* The type of the file for which you want to enable web tamper proofing. Separate multiple types with semicolons (;). Valid values:
*
* * php
* * jsp
* * asp
* * aspx
* * js
* * cgi
* * html
* * htm
* * xml
* * shtml
* * shtm
* * jpg
* * gif
* * png
*
* > If you set **Mode** to **whitelist**, you must specify this parameter.
*/
@NameInMap("InclusiveFileType")
public String inclusiveFileType;
/**
* The language of the content within the request and response. Valid values:
*
* * **zh**: Chinese
* * **en**: English
*/
@NameInMap("Lang")
public String lang;
/**
* The local path to the backup files of the protected directory.\
* The directory format of a Linux server is different from that of a Windows server. You must enter the directory in the required format based on your operating system. Examples:
*
* * Linux server: /usr/local/aegis/bak
* * Windows server: C:\Program Files (x86)\Alibaba\Aegis\bak
*/
@NameInMap("LocalBackupDir")
public String localBackupDir;
/**
* The protection mode of web tamper proofing. Valid values:
*
* * **whitelist**: In this mode, web tamper proofing is enabled for the specified directories and file types.
* * **blacklist**: In this mode, web tamper proofing is enabled for the unspecified subdirectories, file types, and files in the protected directory.
*/
@NameInMap("Mode")
public String mode;
/**
* The source IP address of the request.
*/
@NameInMap("SourceIp")
public String sourceIp;
/**
* The UUID of the server on which the protected directory is located.
*
* > You can call the [DescribeCloudCenterInstances](~~DescribeCloudCenterInstances~~) operation to query the UUIDs of servers.
*/
@NameInMap("Uuid")
public String uuid;
public static ModifyWebLockUpdateConfigRequest build(java.util.Map map) throws Exception {
ModifyWebLockUpdateConfigRequest self = new ModifyWebLockUpdateConfigRequest();
return TeaModel.build(map, self);
}
public ModifyWebLockUpdateConfigRequest setDefenceMode(String defenceMode) {
this.defenceMode = defenceMode;
return this;
}
public String getDefenceMode() {
return this.defenceMode;
}
public ModifyWebLockUpdateConfigRequest setDir(String dir) {
this.dir = dir;
return this;
}
public String getDir() {
return this.dir;
}
public ModifyWebLockUpdateConfigRequest setExclusiveDir(String exclusiveDir) {
this.exclusiveDir = exclusiveDir;
return this;
}
public String getExclusiveDir() {
return this.exclusiveDir;
}
public ModifyWebLockUpdateConfigRequest setExclusiveFile(String exclusiveFile) {
this.exclusiveFile = exclusiveFile;
return this;
}
public String getExclusiveFile() {
return this.exclusiveFile;
}
public ModifyWebLockUpdateConfigRequest setExclusiveFileType(String exclusiveFileType) {
this.exclusiveFileType = exclusiveFileType;
return this;
}
public String getExclusiveFileType() {
return this.exclusiveFileType;
}
public ModifyWebLockUpdateConfigRequest setId(Integer id) {
this.id = id;
return this;
}
public Integer getId() {
return this.id;
}
public ModifyWebLockUpdateConfigRequest setInclusiveFile(String inclusiveFile) {
this.inclusiveFile = inclusiveFile;
return this;
}
public String getInclusiveFile() {
return this.inclusiveFile;
}
public ModifyWebLockUpdateConfigRequest setInclusiveFileType(String inclusiveFileType) {
this.inclusiveFileType = inclusiveFileType;
return this;
}
public String getInclusiveFileType() {
return this.inclusiveFileType;
}
public ModifyWebLockUpdateConfigRequest setLang(String lang) {
this.lang = lang;
return this;
}
public String getLang() {
return this.lang;
}
public ModifyWebLockUpdateConfigRequest setLocalBackupDir(String localBackupDir) {
this.localBackupDir = localBackupDir;
return this;
}
public String getLocalBackupDir() {
return this.localBackupDir;
}
public ModifyWebLockUpdateConfigRequest setMode(String mode) {
this.mode = mode;
return this;
}
public String getMode() {
return this.mode;
}
public ModifyWebLockUpdateConfigRequest setSourceIp(String sourceIp) {
this.sourceIp = sourceIp;
return this;
}
public String getSourceIp() {
return this.sourceIp;
}
public ModifyWebLockUpdateConfigRequest setUuid(String uuid) {
this.uuid = uuid;
return this;
}
public String getUuid() {
return this.uuid;
}
}