Skip to content

Commit 8ce1f33

Browse files
committed
Merge 'fix/query-string' into 'alb-Java-2020-04-01-online-1968-2025_12_22_17_47_18'
fix: query-string field malformed See merge request: !812
2 parents 23c8fd5 + 94b62ba commit 8ce1f33

File tree

2 files changed

+117
-6
lines changed

2 files changed

+117
-6
lines changed

volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/QueryStringConfigForDescribeRulesOutput.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@
3333

3434
public class QueryStringConfigForDescribeRulesOutput {
3535
@SerializedName("Values")
36-
private List<String> values = null;
36+
private List<ValueForDescribeRulesOutput> values = null;
3737

38-
public QueryStringConfigForDescribeRulesOutput values(List<String> values) {
38+
public QueryStringConfigForDescribeRulesOutput values(List<ValueForDescribeRulesOutput> values) {
3939
this.values = values;
4040
return this;
4141
}
4242

43-
public QueryStringConfigForDescribeRulesOutput addValuesItem(String valuesItem) {
43+
public QueryStringConfigForDescribeRulesOutput addValuesItem(ValueForDescribeRulesOutput valuesItem) {
4444
if (this.values == null) {
45-
this.values = new ArrayList<String>();
45+
this.values = new ArrayList<ValueForDescribeRulesOutput>();
4646
}
4747
this.values.add(valuesItem);
4848
return this;
@@ -53,11 +53,11 @@ public QueryStringConfigForDescribeRulesOutput addValuesItem(String valuesItem)
5353
* @return values
5454
**/
5555
@Schema(description = "")
56-
public List<String> getValues() {
56+
public List<ValueForDescribeRulesOutput> getValues() {
5757
return values;
5858
}
5959

60-
public void setValues(List<String> values) {
60+
public void setValues(List<ValueForDescribeRulesOutput> values) {
6161
this.values = values;
6262
}
6363

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
/*
2+
* alb
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.alb.model;
14+
15+
import com.google.gson.annotations.SerializedName;
16+
import io.swagger.v3.oas.annotations.media.Schema;
17+
18+
import java.util.Objects;
19+
20+
/**
21+
* ValueForDescribeRulesOutput
22+
*/
23+
24+
25+
26+
public class ValueForDescribeRulesOutput {
27+
@SerializedName("Key")
28+
private String key = null;
29+
30+
@SerializedName("Value")
31+
private String value = null;
32+
33+
public ValueForDescribeRulesOutput key(String key) {
34+
this.key = key;
35+
return this;
36+
}
37+
38+
/**
39+
* Get key
40+
* @return key
41+
**/
42+
@Schema(description = "")
43+
public String getKey() {
44+
return key;
45+
}
46+
47+
public void setKey(String key) {
48+
this.key = key;
49+
}
50+
51+
public ValueForDescribeRulesOutput value(String value) {
52+
this.value = value;
53+
return this;
54+
}
55+
56+
/**
57+
* Get value
58+
* @return value
59+
**/
60+
@Schema(description = "")
61+
public String getValue() {
62+
return value;
63+
}
64+
65+
public void setValue(String value) {
66+
this.value = value;
67+
}
68+
69+
70+
@Override
71+
public boolean equals(Object o) {
72+
if (this == o) {
73+
return true;
74+
}
75+
if (o == null || getClass() != o.getClass()) {
76+
return false;
77+
}
78+
ValueForDescribeRulesOutput tagForDescribeRulesOutput = (ValueForDescribeRulesOutput) o;
79+
return Objects.equals(this.key, tagForDescribeRulesOutput.key) &&
80+
Objects.equals(this.value, tagForDescribeRulesOutput.value);
81+
}
82+
83+
@Override
84+
public int hashCode() {
85+
return Objects.hash(key, value);
86+
}
87+
88+
89+
@Override
90+
public String toString() {
91+
StringBuilder sb = new StringBuilder();
92+
sb.append("class ValueForDescribeRulesOutput {\n");
93+
94+
sb.append(" key: ").append(toIndentedString(key)).append("\n");
95+
sb.append(" value: ").append(toIndentedString(value)).append("\n");
96+
sb.append("}");
97+
return sb.toString();
98+
}
99+
100+
/**
101+
* Convert the given object to string with each line indented by 4 spaces
102+
* (except the first line).
103+
*/
104+
private String toIndentedString(Object o) {
105+
if (o == null) {
106+
return "null";
107+
}
108+
return o.toString().replace("\n", "\n ");
109+
}
110+
111+
}

0 commit comments

Comments
 (0)