Skip to content

Commit 76b75ac

Browse files
author
BitsAdmin
committed
Merge branch 'private_zone-Java-2022-06-01-online-1593-2025_09_17_18_21_02' into 'integration_2025-09-25_1060179278594'
feat: [development task] private_zone-1593-Java (1697073) See merge request iaasng/volcengine-java-sdk!673
2 parents 9c5e82e + 8705953 commit 76b75ac

File tree

2 files changed

+27
-17
lines changed

2 files changed

+27
-17
lines changed

volcengine-java-sdk-privatezone/src/main/java/com/volcengine/privatezone/model/IpConfigsForUpdateResolverEndpointInput.java renamed to volcengine-java-sdk-privatezone/src/main/java/com/volcengine/privatezone/model/IpConfigForUpdateResolverEndpointInput.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
import javax.validation.constraints.*;
2525
import javax.validation.Valid;
2626
/**
27-
* IpConfigsForUpdateResolverEndpointInput
27+
* IpConfigForUpdateResolverEndpointInput
2828
*/
2929

3030

3131

32-
public class IpConfigsForUpdateResolverEndpointInput {
32+
public class IpConfigForUpdateResolverEndpointInput {
3333
@SerializedName("AzID")
3434
private String azID = null;
3535

@@ -42,7 +42,7 @@ public class IpConfigsForUpdateResolverEndpointInput {
4242
@SerializedName("SubnetID")
4343
private String subnetID = null;
4444

45-
public IpConfigsForUpdateResolverEndpointInput azID(String azID) {
45+
public IpConfigForUpdateResolverEndpointInput azID(String azID) {
4646
this.azID = azID;
4747
return this;
4848
}
@@ -60,7 +60,7 @@ public void setAzID(String azID) {
6060
this.azID = azID;
6161
}
6262

63-
public IpConfigsForUpdateResolverEndpointInput IP(String IP) {
63+
public IpConfigForUpdateResolverEndpointInput IP(String IP) {
6464
this.IP = IP;
6565
return this;
6666
}
@@ -78,7 +78,7 @@ public void setIP(String IP) {
7878
this.IP = IP;
7979
}
8080

81-
public IpConfigsForUpdateResolverEndpointInput ipv6(String ipv6) {
81+
public IpConfigForUpdateResolverEndpointInput ipv6(String ipv6) {
8282
this.ipv6 = ipv6;
8383
return this;
8484
}
@@ -96,7 +96,7 @@ public void setIpv6(String ipv6) {
9696
this.ipv6 = ipv6;
9797
}
9898

99-
public IpConfigsForUpdateResolverEndpointInput subnetID(String subnetID) {
99+
public IpConfigForUpdateResolverEndpointInput subnetID(String subnetID) {
100100
this.subnetID = subnetID;
101101
return this;
102102
}
@@ -123,11 +123,11 @@ public boolean equals(java.lang.Object o) {
123123
if (o == null || getClass() != o.getClass()) {
124124
return false;
125125
}
126-
IpConfigsForUpdateResolverEndpointInput ipConfigsForUpdateResolverEndpointInput = (IpConfigsForUpdateResolverEndpointInput) o;
127-
return Objects.equals(this.azID, ipConfigsForUpdateResolverEndpointInput.azID) &&
128-
Objects.equals(this.IP, ipConfigsForUpdateResolverEndpointInput.IP) &&
129-
Objects.equals(this.ipv6, ipConfigsForUpdateResolverEndpointInput.ipv6) &&
130-
Objects.equals(this.subnetID, ipConfigsForUpdateResolverEndpointInput.subnetID);
126+
IpConfigForUpdateResolverEndpointInput ipConfigForUpdateResolverEndpointInput = (IpConfigForUpdateResolverEndpointInput) o;
127+
return Objects.equals(this.azID, ipConfigForUpdateResolverEndpointInput.azID) &&
128+
Objects.equals(this.IP, ipConfigForUpdateResolverEndpointInput.IP) &&
129+
Objects.equals(this.ipv6, ipConfigForUpdateResolverEndpointInput.ipv6) &&
130+
Objects.equals(this.subnetID, ipConfigForUpdateResolverEndpointInput.subnetID);
131131
}
132132

133133
@Override
@@ -139,7 +139,7 @@ public int hashCode() {
139139
@Override
140140
public String toString() {
141141
StringBuilder sb = new StringBuilder();
142-
sb.append("class IpConfigsForUpdateResolverEndpointInput {\n");
142+
sb.append("class IpConfigForUpdateResolverEndpointInput {\n");
143143

144144
sb.append(" azID: ").append(toIndentedString(azID)).append("\n");
145145
sb.append(" IP: ").append(toIndentedString(IP)).append("\n");

volcengine-java-sdk-privatezone/src/main/java/com/volcengine/privatezone/model/UpdateResolverEndpointRequest.java

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@
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.privatezone.model.IpConfigsForUpdateResolverEndpointInput;
22+
import com.volcengine.privatezone.model.IpConfigForUpdateResolverEndpointInput;
2323
import io.swagger.v3.oas.annotations.media.Schema;
2424
import java.io.IOException;
25+
import java.util.ArrayList;
26+
import java.util.List;
2527
import javax.validation.constraints.*;
2628
import javax.validation.Valid;
2729
/**
@@ -41,7 +43,7 @@ public class UpdateResolverEndpointRequest {
4143
private String endpointType = null;
4244

4345
@SerializedName("IpConfigs")
44-
private IpConfigsForUpdateResolverEndpointInput ipConfigs = null;
46+
private List<IpConfigForUpdateResolverEndpointInput> ipConfigs = null;
4547

4648
@SerializedName("Name")
4749
private String name = null;
@@ -101,22 +103,30 @@ public void setEndpointType(String endpointType) {
101103
this.endpointType = endpointType;
102104
}
103105

104-
public UpdateResolverEndpointRequest ipConfigs(IpConfigsForUpdateResolverEndpointInput ipConfigs) {
106+
public UpdateResolverEndpointRequest ipConfigs(List<IpConfigForUpdateResolverEndpointInput> ipConfigs) {
105107
this.ipConfigs = ipConfigs;
106108
return this;
107109
}
108110

111+
public UpdateResolverEndpointRequest addIpConfigsItem(IpConfigForUpdateResolverEndpointInput ipConfigsItem) {
112+
if (this.ipConfigs == null) {
113+
this.ipConfigs = new ArrayList<IpConfigForUpdateResolverEndpointInput>();
114+
}
115+
this.ipConfigs.add(ipConfigsItem);
116+
return this;
117+
}
118+
109119
/**
110120
* Get ipConfigs
111121
* @return ipConfigs
112122
**/
113123
@Valid
114124
@Schema(description = "")
115-
public IpConfigsForUpdateResolverEndpointInput getIpConfigs() {
125+
public List<IpConfigForUpdateResolverEndpointInput> getIpConfigs() {
116126
return ipConfigs;
117127
}
118128

119-
public void setIpConfigs(IpConfigsForUpdateResolverEndpointInput ipConfigs) {
129+
public void setIpConfigs(List<IpConfigForUpdateResolverEndpointInput> ipConfigs) {
120130
this.ipConfigs = ipConfigs;
121131
}
122132

0 commit comments

Comments
 (0)