
com.tencentcloudapi.cynosdb.v20190107.models.ModifyAuditServiceRequest Maven / Gradle / Ivy
/*
* 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.cynosdb.v20190107.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 ModifyAuditServiceRequest extends AbstractModel {
/**
* Instance ID
*/
@SerializedName("InstanceId")
@Expose
private String InstanceId;
/**
* Log retention period
*/
@SerializedName("LogExpireDay")
@Expose
private Long LogExpireDay;
/**
* Frequent log retention period
*/
@SerializedName("HighLogExpireDay")
@Expose
private Long HighLogExpireDay;
/**
* The parameter used to change the audit rule of the instance to full audit
*/
@SerializedName("AuditAll")
@Expose
private Boolean AuditAll;
/**
* Rule audit
*/
@SerializedName("AuditRuleFilters")
@Expose
private AuditRuleFilters [] AuditRuleFilters;
/**
* Rule template ID
*/
@SerializedName("RuleTemplateIds")
@Expose
private String [] RuleTemplateIds;
/**
* Get Instance ID
* @return InstanceId Instance ID
*/
public String getInstanceId() {
return this.InstanceId;
}
/**
* Set Instance ID
* @param InstanceId Instance ID
*/
public void setInstanceId(String InstanceId) {
this.InstanceId = InstanceId;
}
/**
* Get Log retention period
* @return LogExpireDay Log retention period
*/
public Long getLogExpireDay() {
return this.LogExpireDay;
}
/**
* Set Log retention period
* @param LogExpireDay Log retention period
*/
public void setLogExpireDay(Long LogExpireDay) {
this.LogExpireDay = LogExpireDay;
}
/**
* Get Frequent log retention period
* @return HighLogExpireDay Frequent log retention period
*/
public Long getHighLogExpireDay() {
return this.HighLogExpireDay;
}
/**
* Set Frequent log retention period
* @param HighLogExpireDay Frequent log retention period
*/
public void setHighLogExpireDay(Long HighLogExpireDay) {
this.HighLogExpireDay = HighLogExpireDay;
}
/**
* Get The parameter used to change the audit rule of the instance to full audit
* @return AuditAll The parameter used to change the audit rule of the instance to full audit
*/
public Boolean getAuditAll() {
return this.AuditAll;
}
/**
* Set The parameter used to change the audit rule of the instance to full audit
* @param AuditAll The parameter used to change the audit rule of the instance to full audit
*/
public void setAuditAll(Boolean AuditAll) {
this.AuditAll = AuditAll;
}
/**
* Get Rule audit
* @return AuditRuleFilters Rule audit
*/
public AuditRuleFilters [] getAuditRuleFilters() {
return this.AuditRuleFilters;
}
/**
* Set Rule audit
* @param AuditRuleFilters Rule audit
*/
public void setAuditRuleFilters(AuditRuleFilters [] AuditRuleFilters) {
this.AuditRuleFilters = AuditRuleFilters;
}
/**
* Get Rule template ID
* @return RuleTemplateIds Rule template ID
*/
public String [] getRuleTemplateIds() {
return this.RuleTemplateIds;
}
/**
* Set Rule template ID
* @param RuleTemplateIds Rule template ID
*/
public void setRuleTemplateIds(String [] RuleTemplateIds) {
this.RuleTemplateIds = RuleTemplateIds;
}
public ModifyAuditServiceRequest() {
}
/**
* 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 ModifyAuditServiceRequest(ModifyAuditServiceRequest source) {
if (source.InstanceId != null) {
this.InstanceId = new String(source.InstanceId);
}
if (source.LogExpireDay != null) {
this.LogExpireDay = new Long(source.LogExpireDay);
}
if (source.HighLogExpireDay != null) {
this.HighLogExpireDay = new Long(source.HighLogExpireDay);
}
if (source.AuditAll != null) {
this.AuditAll = new Boolean(source.AuditAll);
}
if (source.AuditRuleFilters != null) {
this.AuditRuleFilters = new AuditRuleFilters[source.AuditRuleFilters.length];
for (int i = 0; i < source.AuditRuleFilters.length; i++) {
this.AuditRuleFilters[i] = new AuditRuleFilters(source.AuditRuleFilters[i]);
}
}
if (source.RuleTemplateIds != null) {
this.RuleTemplateIds = new String[source.RuleTemplateIds.length];
for (int i = 0; i < source.RuleTemplateIds.length; i++) {
this.RuleTemplateIds[i] = new String(source.RuleTemplateIds[i]);
}
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "InstanceId", this.InstanceId);
this.setParamSimple(map, prefix + "LogExpireDay", this.LogExpireDay);
this.setParamSimple(map, prefix + "HighLogExpireDay", this.HighLogExpireDay);
this.setParamSimple(map, prefix + "AuditAll", this.AuditAll);
this.setParamArrayObj(map, prefix + "AuditRuleFilters.", this.AuditRuleFilters);
this.setParamArraySimple(map, prefix + "RuleTemplateIds.", this.RuleTemplateIds);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy