com.tencentcloudapi.tcss.v20201101.models.AccessControlChildRuleInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud API SDK for Java
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.tcss.v20201101.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class AccessControlChildRuleInfo extends AbstractModel {
/**
* Policy mode. `RULE_MODE_RELEASE`: Allow.
`RULE_MODE_ALERT`: Alert.
`RULE_MODE_HOLDUP`: Block.
*/
@SerializedName("RuleMode")
@Expose
private String RuleMode;
/**
* Process path
*/
@SerializedName("ProcessPath")
@Expose
private String ProcessPath;
/**
* Accessed file path, which is valid only for access control.
*/
@SerializedName("TargetFilePath")
@Expose
private String TargetFilePath;
/**
* Sub-policy ID
Note: This field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("RuleId")
@Expose
private String RuleId;
/**
* Get Policy mode. `RULE_MODE_RELEASE`: Allow.
`RULE_MODE_ALERT`: Alert.
`RULE_MODE_HOLDUP`: Block.
* @return RuleMode Policy mode. `RULE_MODE_RELEASE`: Allow.
`RULE_MODE_ALERT`: Alert.
`RULE_MODE_HOLDUP`: Block.
*/
public String getRuleMode() {
return this.RuleMode;
}
/**
* Set Policy mode. `RULE_MODE_RELEASE`: Allow.
`RULE_MODE_ALERT`: Alert.
`RULE_MODE_HOLDUP`: Block.
* @param RuleMode Policy mode. `RULE_MODE_RELEASE`: Allow.
`RULE_MODE_ALERT`: Alert.
`RULE_MODE_HOLDUP`: Block.
*/
public void setRuleMode(String RuleMode) {
this.RuleMode = RuleMode;
}
/**
* Get Process path
* @return ProcessPath Process path
*/
public String getProcessPath() {
return this.ProcessPath;
}
/**
* Set Process path
* @param ProcessPath Process path
*/
public void setProcessPath(String ProcessPath) {
this.ProcessPath = ProcessPath;
}
/**
* Get Accessed file path, which is valid only for access control.
* @return TargetFilePath Accessed file path, which is valid only for access control.
*/
public String getTargetFilePath() {
return this.TargetFilePath;
}
/**
* Set Accessed file path, which is valid only for access control.
* @param TargetFilePath Accessed file path, which is valid only for access control.
*/
public void setTargetFilePath(String TargetFilePath) {
this.TargetFilePath = TargetFilePath;
}
/**
* Get Sub-policy ID
Note: This field may return null, indicating that no valid values can be obtained.
* @return RuleId Sub-policy ID
Note: This field may return null, indicating that no valid values can be obtained.
*/
public String getRuleId() {
return this.RuleId;
}
/**
* Set Sub-policy ID
Note: This field may return null, indicating that no valid values can be obtained.
* @param RuleId Sub-policy ID
Note: This field may return null, indicating that no valid values can be obtained.
*/
public void setRuleId(String RuleId) {
this.RuleId = RuleId;
}
public AccessControlChildRuleInfo() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public AccessControlChildRuleInfo(AccessControlChildRuleInfo source) {
if (source.RuleMode != null) {
this.RuleMode = new String(source.RuleMode);
}
if (source.ProcessPath != null) {
this.ProcessPath = new String(source.ProcessPath);
}
if (source.TargetFilePath != null) {
this.TargetFilePath = new String(source.TargetFilePath);
}
if (source.RuleId != null) {
this.RuleId = new String(source.RuleId);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "RuleMode", this.RuleMode);
this.setParamSimple(map, prefix + "ProcessPath", this.ProcessPath);
this.setParamSimple(map, prefix + "TargetFilePath", this.TargetFilePath);
this.setParamSimple(map, prefix + "RuleId", this.RuleId);
}
}