Skip to content

Commit 70f0137

Browse files
author
BitsAdmin
committed
Merge branch 'waf-Java-2023-12-25-online-728-2024_10_31_13_25_05' into 'integration_2024-10-31_519233252354'
feat: [development task] waf-728-Java (828531) See merge request iaasng/volcengine-java-sdk!278
2 parents 96d9572 + 4d1a914 commit 70f0137

File tree

101 files changed

+12372
-519
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+12372
-519
lines changed

volcengine-java-sdk-waf/src/main/java/com/volcengine/waf/WafApi.java

Lines changed: 1943 additions & 431 deletions
Large diffs are not rendered by default.
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
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+
* APIForCreateDomainOutput
28+
*/
29+
30+
31+
32+
public class APIForCreateDomainOutput {
33+
@SerializedName("ApiEnable")
34+
private Integer apiEnable = null;
35+
36+
@SerializedName("EnableAutoLearning")
37+
private Integer enableAutoLearning = null;
38+
39+
public APIForCreateDomainOutput apiEnable(Integer apiEnable) {
40+
this.apiEnable = apiEnable;
41+
return this;
42+
}
43+
44+
/**
45+
* Get apiEnable
46+
* @return apiEnable
47+
**/
48+
@Schema(description = "")
49+
public Integer getApiEnable() {
50+
return apiEnable;
51+
}
52+
53+
public void setApiEnable(Integer apiEnable) {
54+
this.apiEnable = apiEnable;
55+
}
56+
57+
public APIForCreateDomainOutput enableAutoLearning(Integer enableAutoLearning) {
58+
this.enableAutoLearning = enableAutoLearning;
59+
return this;
60+
}
61+
62+
/**
63+
* Get enableAutoLearning
64+
* @return enableAutoLearning
65+
**/
66+
@Schema(description = "")
67+
public Integer getEnableAutoLearning() {
68+
return enableAutoLearning;
69+
}
70+
71+
public void setEnableAutoLearning(Integer enableAutoLearning) {
72+
this.enableAutoLearning = enableAutoLearning;
73+
}
74+
75+
76+
@Override
77+
public boolean equals(java.lang.Object o) {
78+
if (this == o) {
79+
return true;
80+
}
81+
if (o == null || getClass() != o.getClass()) {
82+
return false;
83+
}
84+
APIForCreateDomainOutput apIForCreateDomainOutput = (APIForCreateDomainOutput) o;
85+
return Objects.equals(this.apiEnable, apIForCreateDomainOutput.apiEnable) &&
86+
Objects.equals(this.enableAutoLearning, apIForCreateDomainOutput.enableAutoLearning);
87+
}
88+
89+
@Override
90+
public int hashCode() {
91+
return Objects.hash(apiEnable, enableAutoLearning);
92+
}
93+
94+
95+
@Override
96+
public String toString() {
97+
StringBuilder sb = new StringBuilder();
98+
sb.append("class APIForCreateDomainOutput {\n");
99+
100+
sb.append(" apiEnable: ").append(toIndentedString(apiEnable)).append("\n");
101+
sb.append(" enableAutoLearning: ").append(toIndentedString(enableAutoLearning)).append("\n");
102+
sb.append("}");
103+
return sb.toString();
104+
}
105+
106+
/**
107+
* Convert the given object to string with each line indented by 4 spaces
108+
* (except the first line).
109+
*/
110+
private String toIndentedString(java.lang.Object o) {
111+
if (o == null) {
112+
return "null";
113+
}
114+
return o.toString().replace("\n", "\n ");
115+
}
116+
117+
}
Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
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 com.volcengine.waf.model.AccurateRuleForCreateAclRuleInput;
23+
import io.swagger.v3.oas.annotations.media.Schema;
24+
import java.io.IOException;
25+
import java.util.ArrayList;
26+
import java.util.List;
27+
import javax.validation.constraints.*;
28+
import javax.validation.Valid;
29+
/**
30+
* AccurateGroupForCreateAclRuleInput
31+
*/
32+
33+
34+
35+
public class AccurateGroupForCreateAclRuleInput {
36+
@SerializedName("AccurateGroupPriority")
37+
private Integer accurateGroupPriority = null;
38+
39+
@SerializedName("AccurateRules")
40+
private List<AccurateRuleForCreateAclRuleInput> accurateRules = null;
41+
42+
@SerializedName("Id")
43+
private Integer id = null;
44+
45+
@SerializedName("Logic")
46+
private Integer logic = null;
47+
48+
public AccurateGroupForCreateAclRuleInput accurateGroupPriority(Integer accurateGroupPriority) {
49+
this.accurateGroupPriority = accurateGroupPriority;
50+
return this;
51+
}
52+
53+
/**
54+
* Get accurateGroupPriority
55+
* @return accurateGroupPriority
56+
**/
57+
@Schema(description = "")
58+
public Integer getAccurateGroupPriority() {
59+
return accurateGroupPriority;
60+
}
61+
62+
public void setAccurateGroupPriority(Integer accurateGroupPriority) {
63+
this.accurateGroupPriority = accurateGroupPriority;
64+
}
65+
66+
public AccurateGroupForCreateAclRuleInput accurateRules(List<AccurateRuleForCreateAclRuleInput> accurateRules) {
67+
this.accurateRules = accurateRules;
68+
return this;
69+
}
70+
71+
public AccurateGroupForCreateAclRuleInput addAccurateRulesItem(AccurateRuleForCreateAclRuleInput accurateRulesItem) {
72+
if (this.accurateRules == null) {
73+
this.accurateRules = new ArrayList<AccurateRuleForCreateAclRuleInput>();
74+
}
75+
this.accurateRules.add(accurateRulesItem);
76+
return this;
77+
}
78+
79+
/**
80+
* Get accurateRules
81+
* @return accurateRules
82+
**/
83+
@Valid
84+
@Schema(description = "")
85+
public List<AccurateRuleForCreateAclRuleInput> getAccurateRules() {
86+
return accurateRules;
87+
}
88+
89+
public void setAccurateRules(List<AccurateRuleForCreateAclRuleInput> accurateRules) {
90+
this.accurateRules = accurateRules;
91+
}
92+
93+
public AccurateGroupForCreateAclRuleInput id(Integer id) {
94+
this.id = id;
95+
return this;
96+
}
97+
98+
/**
99+
* Get id
100+
* @return id
101+
**/
102+
@Schema(description = "")
103+
public Integer getId() {
104+
return id;
105+
}
106+
107+
public void setId(Integer id) {
108+
this.id = id;
109+
}
110+
111+
public AccurateGroupForCreateAclRuleInput logic(Integer logic) {
112+
this.logic = logic;
113+
return this;
114+
}
115+
116+
/**
117+
* Get logic
118+
* @return logic
119+
**/
120+
@Schema(description = "")
121+
public Integer getLogic() {
122+
return logic;
123+
}
124+
125+
public void setLogic(Integer logic) {
126+
this.logic = logic;
127+
}
128+
129+
130+
@Override
131+
public boolean equals(java.lang.Object o) {
132+
if (this == o) {
133+
return true;
134+
}
135+
if (o == null || getClass() != o.getClass()) {
136+
return false;
137+
}
138+
AccurateGroupForCreateAclRuleInput accurateGroupForCreateAclRuleInput = (AccurateGroupForCreateAclRuleInput) o;
139+
return Objects.equals(this.accurateGroupPriority, accurateGroupForCreateAclRuleInput.accurateGroupPriority) &&
140+
Objects.equals(this.accurateRules, accurateGroupForCreateAclRuleInput.accurateRules) &&
141+
Objects.equals(this.id, accurateGroupForCreateAclRuleInput.id) &&
142+
Objects.equals(this.logic, accurateGroupForCreateAclRuleInput.logic);
143+
}
144+
145+
@Override
146+
public int hashCode() {
147+
return Objects.hash(accurateGroupPriority, accurateRules, id, logic);
148+
}
149+
150+
151+
@Override
152+
public String toString() {
153+
StringBuilder sb = new StringBuilder();
154+
sb.append("class AccurateGroupForCreateAclRuleInput {\n");
155+
156+
sb.append(" accurateGroupPriority: ").append(toIndentedString(accurateGroupPriority)).append("\n");
157+
sb.append(" accurateRules: ").append(toIndentedString(accurateRules)).append("\n");
158+
sb.append(" id: ").append(toIndentedString(id)).append("\n");
159+
sb.append(" logic: ").append(toIndentedString(logic)).append("\n");
160+
sb.append("}");
161+
return sb.toString();
162+
}
163+
164+
/**
165+
* Convert the given object to string with each line indented by 4 spaces
166+
* (except the first line).
167+
*/
168+
private String toIndentedString(java.lang.Object o) {
169+
if (o == null) {
170+
return "null";
171+
}
172+
return o.toString().replace("\n", "\n ");
173+
}
174+
175+
}

0 commit comments

Comments
 (0)