Skip to content

Commit 81dba65

Browse files
committed
Generated java-async 2019-05-06 for sae.
1 parent 9e08be3 commit 81dba65

13 files changed

+1474
-1
lines changed

sae-20190506/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-06-09 Version: 2.0.12
2+
- Generated java-async 2019-05-06 for sae.
3+
14
2025-05-29 Version: 2.0.11
25
- Generated java-async 2019-05-06 for sae.
36

sae-20190506/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.aliyun</groupId>
55
<artifactId>alibabacloud-sae20190506</artifactId>
6-
<version>2.0.11</version>
6+
<version>2.0.12</version>
77
<packaging>jar</packaging>
88
<name>alibabacloud-sae20190506</name>
99
<description>Alibaba Cloud sae (20190506) Async SDK for Java

sae-20190506/src/main/java/com/aliyun/sdk/service/sae20190506/AsyncClient.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ static AsyncClient create() {
4343
*/
4444
CompletableFuture<BatchStopApplicationsResponse> batchStopApplications(BatchStopApplicationsRequest request);
4545

46+
/**
47+
* @param request the request parameters of BindNlb BindNlbRequest
48+
* @return BindNlbResponse
49+
*/
50+
CompletableFuture<BindNlbResponse> bindNlb(BindNlbRequest request);
51+
4652
/**
4753
* @param request the request parameters of BindSlb BindSlbRequest
4854
* @return BindSlbResponse
@@ -276,6 +282,12 @@ static AsyncClient create() {
276282
*/
277283
CompletableFuture<DescribeApplicationInstancesResponse> describeApplicationInstances(DescribeApplicationInstancesRequest request);
278284

285+
/**
286+
* @param request the request parameters of DescribeApplicationNlbs DescribeApplicationNlbsRequest
287+
* @return DescribeApplicationNlbsResponse
288+
*/
289+
CompletableFuture<DescribeApplicationNlbsResponse> describeApplicationNlbs(DescribeApplicationNlbsRequest request);
290+
279291
/**
280292
* @param request the request parameters of DescribeApplicationScalingRule DescribeApplicationScalingRuleRequest
281293
* @return DescribeApplicationScalingRuleResponse

sae-20190506/src/main/java/com/aliyun/sdk/service/sae20190506/DefaultAsyncClient.java

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,24 @@ public CompletableFuture<BatchStopApplicationsResponse> batchStopApplications(Ba
111111
}
112112
}
113113

114+
/**
115+
* @param request the request parameters of BindNlb BindNlbRequest
116+
* @return BindNlbResponse
117+
*/
118+
@Override
119+
public CompletableFuture<BindNlbResponse> bindNlb(BindNlbRequest request) {
120+
try {
121+
this.handler.validateRequestModel(request);
122+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("BindNlb").setMethod(HttpMethod.POST).setPathRegex("/pop/v1/sam/app/nlb").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
123+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(BindNlbResponse.create());
124+
return this.handler.execute(params);
125+
} catch (Exception e) {
126+
CompletableFuture<BindNlbResponse> future = new CompletableFuture<>();
127+
future.completeExceptionally(e);
128+
return future;
129+
}
130+
}
131+
114132
/**
115133
* @param request the request parameters of BindSlb BindSlbRequest
116134
* @return BindSlbResponse
@@ -752,6 +770,24 @@ public CompletableFuture<DescribeApplicationInstancesResponse> describeApplicati
752770
}
753771
}
754772

773+
/**
774+
* @param request the request parameters of DescribeApplicationNlbs DescribeApplicationNlbsRequest
775+
* @return DescribeApplicationNlbsResponse
776+
*/
777+
@Override
778+
public CompletableFuture<DescribeApplicationNlbsResponse> describeApplicationNlbs(DescribeApplicationNlbsRequest request) {
779+
try {
780+
this.handler.validateRequestModel(request);
781+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DescribeApplicationNlbs").setMethod(HttpMethod.GET).setPathRegex("/pop/v1/sam/app/nlb").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
782+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DescribeApplicationNlbsResponse.create());
783+
return this.handler.execute(params);
784+
} catch (Exception e) {
785+
CompletableFuture<DescribeApplicationNlbsResponse> future = new CompletableFuture<>();
786+
future.completeExceptionally(e);
787+
return future;
788+
}
789+
}
790+
755791
/**
756792
* @param request the request parameters of DescribeApplicationScalingRule DescribeApplicationScalingRuleRequest
757793
* @return DescribeApplicationScalingRuleResponse
Lines changed: 196 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,196 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sdk.service.sae20190506.models;
3+
4+
import com.aliyun.sdk.gateway.pop.*;
5+
import darabonba.core.*;
6+
import darabonba.core.async.*;
7+
import darabonba.core.sync.*;
8+
import darabonba.core.client.*;
9+
import darabonba.core.RequestModel;
10+
import darabonba.core.TeaModel;
11+
import com.aliyun.sdk.gateway.pop.models.*;
12+
13+
/**
14+
*
15+
* {@link BindNlbRequest} extends {@link RequestModel}
16+
*
17+
* <p>BindNlbRequest</p>
18+
*/
19+
public class BindNlbRequest extends Request {
20+
@com.aliyun.core.annotation.Query
21+
@com.aliyun.core.annotation.NameInMap("AddressType")
22+
private String addressType;
23+
24+
@com.aliyun.core.annotation.Query
25+
@com.aliyun.core.annotation.NameInMap("AppId")
26+
private String appId;
27+
28+
@com.aliyun.core.annotation.Query
29+
@com.aliyun.core.annotation.NameInMap("Listeners")
30+
private String listeners;
31+
32+
@com.aliyun.core.annotation.Query
33+
@com.aliyun.core.annotation.NameInMap("NlbId")
34+
private String nlbId;
35+
36+
@com.aliyun.core.annotation.Query
37+
@com.aliyun.core.annotation.NameInMap("ZoneMappings")
38+
private String zoneMappings;
39+
40+
private BindNlbRequest(Builder builder) {
41+
super(builder);
42+
this.addressType = builder.addressType;
43+
this.appId = builder.appId;
44+
this.listeners = builder.listeners;
45+
this.nlbId = builder.nlbId;
46+
this.zoneMappings = builder.zoneMappings;
47+
}
48+
49+
public static Builder builder() {
50+
return new Builder();
51+
}
52+
53+
public static BindNlbRequest create() {
54+
return builder().build();
55+
}
56+
57+
@Override
58+
public Builder toBuilder() {
59+
return new Builder(this);
60+
}
61+
62+
/**
63+
* @return addressType
64+
*/
65+
public String getAddressType() {
66+
return this.addressType;
67+
}
68+
69+
/**
70+
* @return appId
71+
*/
72+
public String getAppId() {
73+
return this.appId;
74+
}
75+
76+
/**
77+
* @return listeners
78+
*/
79+
public String getListeners() {
80+
return this.listeners;
81+
}
82+
83+
/**
84+
* @return nlbId
85+
*/
86+
public String getNlbId() {
87+
return this.nlbId;
88+
}
89+
90+
/**
91+
* @return zoneMappings
92+
*/
93+
public String getZoneMappings() {
94+
return this.zoneMappings;
95+
}
96+
97+
public static final class Builder extends Request.Builder<BindNlbRequest, Builder> {
98+
private String addressType;
99+
private String appId;
100+
private String listeners;
101+
private String nlbId;
102+
private String zoneMappings;
103+
104+
private Builder() {
105+
super();
106+
}
107+
108+
private Builder(BindNlbRequest request) {
109+
super(request);
110+
this.addressType = request.addressType;
111+
this.appId = request.appId;
112+
this.listeners = request.listeners;
113+
this.nlbId = request.nlbId;
114+
this.zoneMappings = request.zoneMappings;
115+
}
116+
117+
/**
118+
* <p>The type of the IP addresses. Valid values:</p>
119+
* <ul>
120+
* <li>Internet: public endpoint.</li>
121+
* <li>Intranet: private endpoint.</li>
122+
* </ul>
123+
*
124+
* <strong>example:</strong>
125+
* <p>Internet</p>
126+
*/
127+
public Builder addressType(String addressType) {
128+
this.putQueryParameter("AddressType", addressType);
129+
this.addressType = addressType;
130+
return this;
131+
}
132+
133+
/**
134+
* <p>The ID of the application to which the NLB instance is bound.</p>
135+
*
136+
* <strong>example:</strong>
137+
* <p>7171a6ca-d1cd-4928-8642-7d5cfe69****</p>
138+
*/
139+
public Builder appId(String appId) {
140+
this.putQueryParameter("AppId", appId);
141+
this.appId = appId;
142+
return this;
143+
}
144+
145+
/**
146+
* <p>The listener that you want to manage. The value is a string that consists of JSON arrays. Each listener contains the following fields:</p>
147+
* <ul>
148+
* <li><strong>port</strong>: the port number of the NLB listener. This field is required. Data type: integer. Valid values: 0 to 65535.</li>
149+
* <li><strong>TargetPort</strong>: the port number of the container listener. This field is required. Data type: integer. Valid values: 0 to 65535.</li>
150+
* <li><strong>Protocol</strong>: the listener protocol. This field is required. Data type: string. Valid values: TCP, UDP, and TCPSSL.</li>
151+
* <li><strong>CertIds</strong>: the IDs of the server certificates. This field is optional. Data type: string. This field is supported only by TCPSSL listeners.</li>
152+
* </ul>
153+
*/
154+
public Builder listeners(String listeners) {
155+
this.putQueryParameter("Listeners", listeners);
156+
this.listeners = listeners;
157+
return this;
158+
}
159+
160+
/**
161+
* <p>The ID of the NLB instance.</p>
162+
*
163+
* <strong>example:</strong>
164+
* <p>nlb-7z7jjbzz44d82c9***</p>
165+
*/
166+
public Builder nlbId(String nlbId) {
167+
this.putQueryParameter("NlbId", nlbId);
168+
this.nlbId = nlbId;
169+
return this;
170+
}
171+
172+
/**
173+
* <p>The mappings between zones and vSwitches. The value is a JSON string. You can specify at most 10 zones. If the region supports two or more zones, specify at least two zones. A ZoneMapping contains the following fields:</p>
174+
* <ul>
175+
* <li>The ID of the vSwitch in the zone. Each zone can contain only one vSwitch and one subnet. Data type: string.</li>
176+
* <li>The zone ID of the NLB instance. Data type: string.</li>
177+
* </ul>
178+
*
179+
* <strong>example:</strong>
180+
* <p>vsw-sersdf****
181+
* cn-hangzhou-a</p>
182+
*/
183+
public Builder zoneMappings(String zoneMappings) {
184+
this.putQueryParameter("ZoneMappings", zoneMappings);
185+
this.zoneMappings = zoneMappings;
186+
return this;
187+
}
188+
189+
@Override
190+
public BindNlbRequest build() {
191+
return new BindNlbRequest(this);
192+
}
193+
194+
}
195+
196+
}

0 commit comments

Comments
 (0)