Skip to content

Commit f4b2f19

Browse files
committed
Generated 2019-01-01 for Cassandra.
1 parent 96bda8a commit f4b2f19

19 files changed

+893
-5
lines changed

aliyun-java-sdk-cassandra/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2020-04-22 Version: 1.0.1
2+
- Generated 2019-01-01 for `Cassandra`.
3+
14
2020-04-10 Version: 1.0.0
25
- Generated 2019-01-01 for `Cassandra`.
36

aliyun-java-sdk-cassandra/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.aliyun</groupId>
55
<artifactId>aliyun-java-sdk-cassandra</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.0.0</version>
7+
<version>1.0.1</version>
88
<name>aliyun-java-sdk-cassandra</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java

aliyun-java-sdk-cassandra/src/main/java/com/aliyuncs/cassandra/model/v20190101/DescribeClusterResponse.java

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
*/
1414

1515
package com.aliyuncs.cassandra.model.v20190101;
16-
16+
17+
import java.util.List;
1718
import com.aliyuncs.AcsResponse;
1819
import com.aliyuncs.cassandra.transform.v20190101.DescribeClusterResponseUnmarshaller;
1920
import com.aliyuncs.transform.UnmarshallerContext;
@@ -72,6 +73,8 @@ public static class Cluster {
7273

7374
private String lockMode;
7475

76+
private List<Tag> tags;
77+
7578
public String getClusterId() {
7679
return this.clusterId;
7780
}
@@ -175,6 +178,37 @@ public String getLockMode() {
175178
public void setLockMode(String lockMode) {
176179
this.lockMode = lockMode;
177180
}
181+
182+
public List<Tag> getTags() {
183+
return this.tags;
184+
}
185+
186+
public void setTags(List<Tag> tags) {
187+
this.tags = tags;
188+
}
189+
190+
public static class Tag {
191+
192+
private String key;
193+
194+
private String value;
195+
196+
public String getKey() {
197+
return this.key;
198+
}
199+
200+
public void setKey(String key) {
201+
this.key = key;
202+
}
203+
204+
public String getValue() {
205+
return this.value;
206+
}
207+
208+
public void setValue(String value) {
209+
this.value = value;
210+
}
211+
}
178212
}
179213

180214
@Override

aliyun-java-sdk-cassandra/src/main/java/com/aliyuncs/cassandra/model/v20190101/DescribeClustersRequest.java

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
package com.aliyuncs.cassandra.model.v20190101;
1616

1717
import com.aliyuncs.RpcAcsRequest;
18+
import java.util.List;
1819
import com.aliyuncs.http.MethodType;
1920
import com.aliyuncs.cassandra.Endpoint;
2021

@@ -25,9 +26,13 @@
2526
public class DescribeClustersRequest extends RpcAcsRequest<DescribeClustersResponse> {
2627

2728

29+
private String clusterName;
30+
2831
private Integer pageNumber;
2932

30-
private Integer pageSize;
33+
private Integer pageSize;
34+
35+
private List<Tag> tags;
3136
public DescribeClustersRequest() {
3237
super("Cassandra", "2019-01-01", "DescribeClusters", "Cassandra");
3338
setMethod(MethodType.POST);
@@ -37,6 +42,17 @@ public DescribeClustersRequest() {
3742
} catch (Exception e) {}
3843
}
3944

45+
public String getClusterName() {
46+
return this.clusterName;
47+
}
48+
49+
public void setClusterName(String clusterName) {
50+
this.clusterName = clusterName;
51+
if(clusterName != null){
52+
putQueryParameter("ClusterName", clusterName);
53+
}
54+
}
55+
4056
public Integer getPageNumber() {
4157
return this.pageNumber;
4258
}
@@ -57,6 +73,43 @@ public void setPageSize(Integer pageSize) {
5773
if(pageSize != null){
5874
putQueryParameter("PageSize", pageSize.toString());
5975
}
76+
}
77+
78+
public List<Tag> getTags() {
79+
return this.tags;
80+
}
81+
82+
public void setTags(List<Tag> tags) {
83+
this.tags = tags;
84+
if (tags != null) {
85+
for (int depth1 = 0; depth1 < tags.size(); depth1++) {
86+
putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue());
87+
putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey());
88+
}
89+
}
90+
}
91+
92+
public static class Tag {
93+
94+
private String value;
95+
96+
private String key;
97+
98+
public String getValue() {
99+
return this.value;
100+
}
101+
102+
public void setValue(String value) {
103+
this.value = value;
104+
}
105+
106+
public String getKey() {
107+
return this.key;
108+
}
109+
110+
public void setKey(String key) {
111+
this.key = key;
112+
}
60113
}
61114

62115
@Override

aliyun-java-sdk-cassandra/src/main/java/com/aliyuncs/cassandra/model/v20190101/DescribeClustersResponse.java

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ public static class Cluster {
9797

9898
private String lockMode;
9999

100+
private List<Tag> tags;
101+
100102
public String getClusterId() {
101103
return this.clusterId;
102104
}
@@ -176,6 +178,37 @@ public String getLockMode() {
176178
public void setLockMode(String lockMode) {
177179
this.lockMode = lockMode;
178180
}
181+
182+
public List<Tag> getTags() {
183+
return this.tags;
184+
}
185+
186+
public void setTags(List<Tag> tags) {
187+
this.tags = tags;
188+
}
189+
190+
public static class Tag {
191+
192+
private String key;
193+
194+
private String value;
195+
196+
public String getKey() {
197+
return this.key;
198+
}
199+
200+
public void setKey(String key) {
201+
this.key = key;
202+
}
203+
204+
public String getValue() {
205+
return this.value;
206+
}
207+
208+
public void setValue(String value) {
209+
this.value = value;
210+
}
211+
}
179212
}
180213

181214
@Override
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.cassandra.model.v20190101;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import java.util.List;
19+
import com.aliyuncs.http.MethodType;
20+
import com.aliyuncs.cassandra.Endpoint;
21+
22+
/**
23+
* @author auto create
24+
* @version
25+
*/
26+
public class ListTagResourcesRequest extends RpcAcsRequest<ListTagResourcesResponse> {
27+
28+
29+
private String nextToken;
30+
31+
private List<Tag> tags;
32+
33+
private List<String> resourceIds;
34+
public ListTagResourcesRequest() {
35+
super("Cassandra", "2019-01-01", "ListTagResources", "Cassandra");
36+
setMethod(MethodType.POST);
37+
try {
38+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
39+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
40+
} catch (Exception e) {}
41+
}
42+
43+
public String getNextToken() {
44+
return this.nextToken;
45+
}
46+
47+
public void setNextToken(String nextToken) {
48+
this.nextToken = nextToken;
49+
if(nextToken != null){
50+
putQueryParameter("NextToken", nextToken);
51+
}
52+
}
53+
54+
public List<Tag> getTags() {
55+
return this.tags;
56+
}
57+
58+
public void setTags(List<Tag> tags) {
59+
this.tags = tags;
60+
if (tags != null) {
61+
for (int depth1 = 0; depth1 < tags.size(); depth1++) {
62+
putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue());
63+
putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey());
64+
}
65+
}
66+
}
67+
68+
public List<String> getResourceIds() {
69+
return this.resourceIds;
70+
}
71+
72+
public void setResourceIds(List<String> resourceIds) {
73+
this.resourceIds = resourceIds;
74+
if (resourceIds != null) {
75+
for (int i = 0; i < resourceIds.size(); i++) {
76+
putQueryParameter("ResourceId." + (i + 1) , resourceIds.get(i));
77+
}
78+
}
79+
}
80+
81+
public static class Tag {
82+
83+
private String value;
84+
85+
private String key;
86+
87+
public String getValue() {
88+
return this.value;
89+
}
90+
91+
public void setValue(String value) {
92+
this.value = value;
93+
}
94+
95+
public String getKey() {
96+
return this.key;
97+
}
98+
99+
public void setKey(String key) {
100+
this.key = key;
101+
}
102+
}
103+
104+
@Override
105+
public Class<ListTagResourcesResponse> getResponseClass() {
106+
return ListTagResourcesResponse.class;
107+
}
108+
109+
}

0 commit comments

Comments
 (0)