Skip to content

Commit 1960dff

Browse files
author
BitsAdmin
committed
Merge branch 'waf-Java-2023-12-25-online-1303-2025_06_19_01_23_40' into 'integration_2025-06-19_956533420802'
feat: [development task] waf-1303-Java (1359903) See merge request iaasng/volcengine-java-sdk!531
2 parents e546401 + 3b4f458 commit 1960dff

20 files changed

+1264
-131
lines changed

volcengine-java-sdk-waf/src/main/java/com/volcengine/waf/model/AutoTraversalForGetVulnerabilityConfigOutput.java

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import com.google.gson.annotations.SerializedName;
2020
import com.google.gson.stream.JsonReader;
2121
import com.google.gson.stream.JsonWriter;
22+
import com.volcengine.waf.model.RuleForGetVulnerabilityConfigOutput;
2223
import io.swagger.v3.oas.annotations.media.Schema;
2324
import java.io.IOException;
2425
import javax.validation.constraints.*;
@@ -33,6 +34,9 @@ public class AutoTraversalForGetVulnerabilityConfigOutput {
3334
@SerializedName("Enable")
3435
private Boolean enable = null;
3536

37+
@SerializedName("Rule")
38+
private RuleForGetVulnerabilityConfigOutput rule = null;
39+
3640
@SerializedName("RuleTag")
3741
private String ruleTag = null;
3842

@@ -54,6 +58,25 @@ public void setEnable(Boolean enable) {
5458
this.enable = enable;
5559
}
5660

61+
public AutoTraversalForGetVulnerabilityConfigOutput rule(RuleForGetVulnerabilityConfigOutput rule) {
62+
this.rule = rule;
63+
return this;
64+
}
65+
66+
/**
67+
* Get rule
68+
* @return rule
69+
**/
70+
@Valid
71+
@Schema(description = "")
72+
public RuleForGetVulnerabilityConfigOutput getRule() {
73+
return rule;
74+
}
75+
76+
public void setRule(RuleForGetVulnerabilityConfigOutput rule) {
77+
this.rule = rule;
78+
}
79+
5780
public AutoTraversalForGetVulnerabilityConfigOutput ruleTag(String ruleTag) {
5881
this.ruleTag = ruleTag;
5982
return this;
@@ -83,12 +106,13 @@ public boolean equals(java.lang.Object o) {
83106
}
84107
AutoTraversalForGetVulnerabilityConfigOutput autoTraversalForGetVulnerabilityConfigOutput = (AutoTraversalForGetVulnerabilityConfigOutput) o;
85108
return Objects.equals(this.enable, autoTraversalForGetVulnerabilityConfigOutput.enable) &&
109+
Objects.equals(this.rule, autoTraversalForGetVulnerabilityConfigOutput.rule) &&
86110
Objects.equals(this.ruleTag, autoTraversalForGetVulnerabilityConfigOutput.ruleTag);
87111
}
88112

89113
@Override
90114
public int hashCode() {
91-
return Objects.hash(enable, ruleTag);
115+
return Objects.hash(enable, rule, ruleTag);
92116
}
93117

94118

@@ -98,6 +122,7 @@ public String toString() {
98122
sb.append("class AutoTraversalForGetVulnerabilityConfigOutput {\n");
99123

100124
sb.append(" enable: ").append(toIndentedString(enable)).append("\n");
125+
sb.append(" rule: ").append(toIndentedString(rule)).append("\n");
101126
sb.append(" ruleTag: ").append(toIndentedString(ruleTag)).append("\n");
102127
sb.append("}");
103128
return sb.toString();

volcengine-java-sdk-waf/src/main/java/com/volcengine/waf/model/AutoTraversalForUpdateVulnerabilityConfigInput.java

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import com.google.gson.annotations.SerializedName;
2020
import com.google.gson.stream.JsonReader;
2121
import com.google.gson.stream.JsonWriter;
22+
import com.volcengine.waf.model.RuleForUpdateVulnerabilityConfigInput;
2223
import io.swagger.v3.oas.annotations.media.Schema;
2324
import java.io.IOException;
2425
import javax.validation.constraints.*;
@@ -33,6 +34,9 @@ public class AutoTraversalForUpdateVulnerabilityConfigInput {
3334
@SerializedName("Enable")
3435
private Boolean enable = null;
3536

37+
@SerializedName("Rule")
38+
private RuleForUpdateVulnerabilityConfigInput rule = null;
39+
3640
@SerializedName("RuleTag")
3741
private String ruleTag = null;
3842

@@ -54,6 +58,25 @@ public void setEnable(Boolean enable) {
5458
this.enable = enable;
5559
}
5660

61+
public AutoTraversalForUpdateVulnerabilityConfigInput rule(RuleForUpdateVulnerabilityConfigInput rule) {
62+
this.rule = rule;
63+
return this;
64+
}
65+
66+
/**
67+
* Get rule
68+
* @return rule
69+
**/
70+
@Valid
71+
@Schema(description = "")
72+
public RuleForUpdateVulnerabilityConfigInput getRule() {
73+
return rule;
74+
}
75+
76+
public void setRule(RuleForUpdateVulnerabilityConfigInput rule) {
77+
this.rule = rule;
78+
}
79+
5780
public AutoTraversalForUpdateVulnerabilityConfigInput ruleTag(String ruleTag) {
5881
this.ruleTag = ruleTag;
5982
return this;
@@ -83,12 +106,13 @@ public boolean equals(java.lang.Object o) {
83106
}
84107
AutoTraversalForUpdateVulnerabilityConfigInput autoTraversalForUpdateVulnerabilityConfigInput = (AutoTraversalForUpdateVulnerabilityConfigInput) o;
85108
return Objects.equals(this.enable, autoTraversalForUpdateVulnerabilityConfigInput.enable) &&
109+
Objects.equals(this.rule, autoTraversalForUpdateVulnerabilityConfigInput.rule) &&
86110
Objects.equals(this.ruleTag, autoTraversalForUpdateVulnerabilityConfigInput.ruleTag);
87111
}
88112

89113
@Override
90114
public int hashCode() {
91-
return Objects.hash(enable, ruleTag);
115+
return Objects.hash(enable, rule, ruleTag);
92116
}
93117

94118

@@ -98,6 +122,7 @@ public String toString() {
98122
sb.append("class AutoTraversalForUpdateVulnerabilityConfigInput {\n");
99123

100124
sb.append(" enable: ").append(toIndentedString(enable)).append("\n");
125+
sb.append(" rule: ").append(toIndentedString(rule)).append("\n");
101126
sb.append(" ruleTag: ").append(toIndentedString(ruleTag)).append("\n");
102127
sb.append("}");
103128
return sb.toString();
Lines changed: 209 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,209 @@
1+
/*
2+
* waf
3+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
4+
*
5+
* OpenAPI spec version: common-version
6+
*
7+
*
8+
* NOTE: This class is auto generated by the swagger code generator program.
9+
* https://github.com/swagger-api/swagger-codegen.git
10+
* Do not edit the class manually.
11+
*/
12+
13+
package com.volcengine.waf.model;
14+
15+
import java.util.Objects;
16+
import java.util.Arrays;
17+
import com.google.gson.TypeAdapter;
18+
import com.google.gson.annotations.JsonAdapter;
19+
import com.google.gson.annotations.SerializedName;
20+
import com.google.gson.stream.JsonReader;
21+
import com.google.gson.stream.JsonWriter;
22+
import io.swagger.v3.oas.annotations.media.Schema;
23+
import java.io.IOException;
24+
import javax.validation.constraints.*;
25+
import javax.validation.Valid;
26+
/**
27+
* ConvertRuleForGetVulnerabilityConfigOutput
28+
*/
29+
30+
31+
32+
public class ConvertRuleForGetVulnerabilityConfigOutput {
33+
@SerializedName("Action")
34+
private Integer action = null;
35+
36+
@SerializedName("CountTime")
37+
private Integer countTime = null;
38+
39+
@SerializedName("EffectTime")
40+
private Integer effectTime = null;
41+
42+
@SerializedName("EffectTimeViewUnit")
43+
private String effectTimeViewUnit = null;
44+
45+
@SerializedName("Field")
46+
private String field = null;
47+
48+
@SerializedName("HitRequestCount")
49+
private Integer hitRequestCount = null;
50+
51+
public ConvertRuleForGetVulnerabilityConfigOutput action(Integer action) {
52+
this.action = action;
53+
return this;
54+
}
55+
56+
/**
57+
* Get action
58+
* @return action
59+
**/
60+
@Schema(description = "")
61+
public Integer getAction() {
62+
return action;
63+
}
64+
65+
public void setAction(Integer action) {
66+
this.action = action;
67+
}
68+
69+
public ConvertRuleForGetVulnerabilityConfigOutput countTime(Integer countTime) {
70+
this.countTime = countTime;
71+
return this;
72+
}
73+
74+
/**
75+
* Get countTime
76+
* @return countTime
77+
**/
78+
@Schema(description = "")
79+
public Integer getCountTime() {
80+
return countTime;
81+
}
82+
83+
public void setCountTime(Integer countTime) {
84+
this.countTime = countTime;
85+
}
86+
87+
public ConvertRuleForGetVulnerabilityConfigOutput effectTime(Integer effectTime) {
88+
this.effectTime = effectTime;
89+
return this;
90+
}
91+
92+
/**
93+
* Get effectTime
94+
* @return effectTime
95+
**/
96+
@Schema(description = "")
97+
public Integer getEffectTime() {
98+
return effectTime;
99+
}
100+
101+
public void setEffectTime(Integer effectTime) {
102+
this.effectTime = effectTime;
103+
}
104+
105+
public ConvertRuleForGetVulnerabilityConfigOutput effectTimeViewUnit(String effectTimeViewUnit) {
106+
this.effectTimeViewUnit = effectTimeViewUnit;
107+
return this;
108+
}
109+
110+
/**
111+
* Get effectTimeViewUnit
112+
* @return effectTimeViewUnit
113+
**/
114+
@Schema(description = "")
115+
public String getEffectTimeViewUnit() {
116+
return effectTimeViewUnit;
117+
}
118+
119+
public void setEffectTimeViewUnit(String effectTimeViewUnit) {
120+
this.effectTimeViewUnit = effectTimeViewUnit;
121+
}
122+
123+
public ConvertRuleForGetVulnerabilityConfigOutput field(String field) {
124+
this.field = field;
125+
return this;
126+
}
127+
128+
/**
129+
* Get field
130+
* @return field
131+
**/
132+
@Schema(description = "")
133+
public String getField() {
134+
return field;
135+
}
136+
137+
public void setField(String field) {
138+
this.field = field;
139+
}
140+
141+
public ConvertRuleForGetVulnerabilityConfigOutput hitRequestCount(Integer hitRequestCount) {
142+
this.hitRequestCount = hitRequestCount;
143+
return this;
144+
}
145+
146+
/**
147+
* Get hitRequestCount
148+
* @return hitRequestCount
149+
**/
150+
@Schema(description = "")
151+
public Integer getHitRequestCount() {
152+
return hitRequestCount;
153+
}
154+
155+
public void setHitRequestCount(Integer hitRequestCount) {
156+
this.hitRequestCount = hitRequestCount;
157+
}
158+
159+
160+
@Override
161+
public boolean equals(java.lang.Object o) {
162+
if (this == o) {
163+
return true;
164+
}
165+
if (o == null || getClass() != o.getClass()) {
166+
return false;
167+
}
168+
ConvertRuleForGetVulnerabilityConfigOutput convertRuleForGetVulnerabilityConfigOutput = (ConvertRuleForGetVulnerabilityConfigOutput) o;
169+
return Objects.equals(this.action, convertRuleForGetVulnerabilityConfigOutput.action) &&
170+
Objects.equals(this.countTime, convertRuleForGetVulnerabilityConfigOutput.countTime) &&
171+
Objects.equals(this.effectTime, convertRuleForGetVulnerabilityConfigOutput.effectTime) &&
172+
Objects.equals(this.effectTimeViewUnit, convertRuleForGetVulnerabilityConfigOutput.effectTimeViewUnit) &&
173+
Objects.equals(this.field, convertRuleForGetVulnerabilityConfigOutput.field) &&
174+
Objects.equals(this.hitRequestCount, convertRuleForGetVulnerabilityConfigOutput.hitRequestCount);
175+
}
176+
177+
@Override
178+
public int hashCode() {
179+
return Objects.hash(action, countTime, effectTime, effectTimeViewUnit, field, hitRequestCount);
180+
}
181+
182+
183+
@Override
184+
public String toString() {
185+
StringBuilder sb = new StringBuilder();
186+
sb.append("class ConvertRuleForGetVulnerabilityConfigOutput {\n");
187+
188+
sb.append(" action: ").append(toIndentedString(action)).append("\n");
189+
sb.append(" countTime: ").append(toIndentedString(countTime)).append("\n");
190+
sb.append(" effectTime: ").append(toIndentedString(effectTime)).append("\n");
191+
sb.append(" effectTimeViewUnit: ").append(toIndentedString(effectTimeViewUnit)).append("\n");
192+
sb.append(" field: ").append(toIndentedString(field)).append("\n");
193+
sb.append(" hitRequestCount: ").append(toIndentedString(hitRequestCount)).append("\n");
194+
sb.append("}");
195+
return sb.toString();
196+
}
197+
198+
/**
199+
* Convert the given object to string with each line indented by 4 spaces
200+
* (except the first line).
201+
*/
202+
private String toIndentedString(java.lang.Object o) {
203+
if (o == null) {
204+
return "null";
205+
}
206+
return o.toString().replace("\n", "\n ");
207+
}
208+
209+
}

0 commit comments

Comments
 (0)