com.aliyuncs.sddp.model.v20190103.ModifyRuleRequest Maven / Gradle / Ivy
/*
* 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.aliyuncs.sddp.model.v20190103;
import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.sddp.Endpoint;
/**
* @author auto create
* @version
*/
public class ModifyRuleRequest extends RpcAcsRequest {
private Integer warnLevel;
private String productCode;
private Long productId;
private Long riskLevelId;
private String content;
private Integer matchType;
private Long id;
private String lang;
private Integer supportForm;
private Integer ruleType;
private String name;
private Integer category;
public ModifyRuleRequest() {
super("Sddp", "2019-01-03", "ModifyRule", "sddp");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}
public Integer getWarnLevel() {
return this.warnLevel;
}
public void setWarnLevel(Integer warnLevel) {
this.warnLevel = warnLevel;
if(warnLevel != null){
putQueryParameter("WarnLevel", warnLevel.toString());
}
}
public String getProductCode() {
return this.productCode;
}
public void setProductCode(String productCode) {
this.productCode = productCode;
if(productCode != null){
putQueryParameter("ProductCode", productCode);
}
}
public Long getProductId() {
return this.productId;
}
public void setProductId(Long productId) {
this.productId = productId;
if(productId != null){
putQueryParameter("ProductId", productId.toString());
}
}
public Long getRiskLevelId() {
return this.riskLevelId;
}
public void setRiskLevelId(Long riskLevelId) {
this.riskLevelId = riskLevelId;
if(riskLevelId != null){
putQueryParameter("RiskLevelId", riskLevelId.toString());
}
}
public String getContent() {
return this.content;
}
public void setContent(String content) {
this.content = content;
if(content != null){
putQueryParameter("Content", content);
}
}
public Integer getMatchType() {
return this.matchType;
}
public void setMatchType(Integer matchType) {
this.matchType = matchType;
if(matchType != null){
putQueryParameter("MatchType", matchType.toString());
}
}
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
if(id != null){
putQueryParameter("Id", id.toString());
}
}
public String getLang() {
return this.lang;
}
public void setLang(String lang) {
this.lang = lang;
if(lang != null){
putQueryParameter("Lang", lang);
}
}
public Integer getSupportForm() {
return this.supportForm;
}
public void setSupportForm(Integer supportForm) {
this.supportForm = supportForm;
if(supportForm != null){
putQueryParameter("SupportForm", supportForm.toString());
}
}
public Integer getRuleType() {
return this.ruleType;
}
public void setRuleType(Integer ruleType) {
this.ruleType = ruleType;
if(ruleType != null){
putQueryParameter("RuleType", ruleType.toString());
}
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
if(name != null){
putQueryParameter("Name", name);
}
}
public Integer getCategory() {
return this.category;
}
public void setCategory(Integer category) {
this.category = category;
if(category != null){
putQueryParameter("Category", category.toString());
}
}
@Override
public Class getResponseClass() {
return ModifyRuleResponse.class;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy