Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit feddd9f

Browse files
committed
domain sdk first commit
1 parent 9357aa9 commit feddd9f

13 files changed

+1790
-0
lines changed

aliyun-java-sdk-domain/pom.xml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<modelVersion>4.0.0</modelVersion>
3+
<groupId>com.aliyun</groupId>
4+
<artifactId>aliyun-java-sdk-domain</artifactId>
5+
<packaging>jar</packaging>
6+
<version>2.0.2</version>
7+
<name>aliyun-java-sdk-domain</name>
8+
<url>http://www.aliyun.com</url>
9+
<description>Aliyun Open API SDK for Java
10+
11+
Copyright (C) Alibaba Cloud Computing
12+
All rights reserved.
13+
14+
版权所有 (C)阿里云计算有限公司
15+
16+
http://www.aliyun.com</description>
17+
<dependencies>
18+
<dependency>
19+
<groupId>com.aliyun</groupId>
20+
<artifactId>aliyun-java-sdk-core</artifactId>
21+
<optional>true</optional>
22+
<version>2.4.4</version>
23+
</dependency>
24+
</dependencies>
25+
<licenses>
26+
<license>
27+
<name></name>
28+
<url></url>
29+
<distribution></distribution>
30+
</license>
31+
</licenses>
32+
<scm>
33+
<url></url>
34+
<connection></connection>
35+
</scm>
36+
<developers>
37+
<developer>
38+
<id>aliyunproducts</id>
39+
<name>Aliyun SDK</name>
40+
<email>[email protected]</email>
41+
</developer>
42+
</developers>
43+
<build>
44+
<plugins>
45+
<plugin>
46+
<artifactId>maven-compiler-plugin</artifactId>
47+
<version>2.3.2</version>
48+
<configuration>
49+
<source>1.6</source>
50+
<target>1.6</target>
51+
<encoding>UTF-8</encoding>
52+
</configuration>
53+
</plugin>
54+
<plugin>
55+
<groupId>org.apache.maven.plugins</groupId>
56+
<artifactId>maven-jar-plugin</artifactId>
57+
<version>2.3.2</version>
58+
<configuration>
59+
<excludes>
60+
</excludes>
61+
</configuration>
62+
</plugin>
63+
<plugin>
64+
<groupId>org.apache.maven.plugins</groupId>
65+
<artifactId>maven-surefire-plugin</artifactId>
66+
<version>2.10</version>
67+
<configuration>
68+
<argLine>-Dfile.encoding=UTF-8</argLine>
69+
</configuration>
70+
</plugin>
71+
<plugin>
72+
<groupId>org.apache.maven.plugins</groupId>
73+
<artifactId>maven-javadoc-plugin</artifactId>
74+
<version>2.8</version>
75+
<configuration>
76+
<encoding>UTF-8</encoding>
77+
</configuration>
78+
</plugin>
79+
</plugins>
80+
</build>
81+
</project>
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
package com.aliyuncs.domain.model.v20160511;
20+
21+
import com.aliyuncs.RpcAcsRequest;
22+
23+
/**
24+
* @author auto create
25+
* @version
26+
*/
27+
public class CheckDomainRequest extends RpcAcsRequest<CheckDomainResponse> {
28+
29+
public CheckDomainRequest() {
30+
super("Domain", "2016-05-11", "CheckDomain");
31+
}
32+
33+
private String domainName;
34+
35+
public String getDomainName() {
36+
return this.domainName;
37+
}
38+
39+
public void setDomainName(String domainName) {
40+
this.domainName = domainName;
41+
putQueryParameter("DomainName", domainName);
42+
}
43+
44+
@Override
45+
public Class<CheckDomainResponse> getResponseClass() {
46+
return CheckDomainResponse.class;
47+
}
48+
49+
}
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
package com.aliyuncs.domain.model.v20160511;
20+
21+
import com.aliyuncs.AcsResponse;
22+
import com.aliyuncs.domain.transform.v20160511.CheckDomainResponseUnmarshaller;
23+
import com.aliyuncs.transform.UnmarshallerContext;
24+
25+
/**
26+
* @author auto create
27+
* @version
28+
*/
29+
public class CheckDomainResponse extends AcsResponse {
30+
31+
private String requestId;
32+
33+
private String name;
34+
35+
private Integer avail;
36+
37+
private String reason;
38+
39+
private String feeCurrency;
40+
41+
private Integer feePeriod;
42+
43+
private String feeFee;
44+
45+
private String rmbFee;
46+
47+
private String feeCommand;
48+
49+
public String getRequestId() {
50+
return this.requestId;
51+
}
52+
53+
public void setRequestId(String requestId) {
54+
this.requestId = requestId;
55+
}
56+
57+
public String getName() {
58+
return this.name;
59+
}
60+
61+
public void setName(String name) {
62+
this.name = name;
63+
}
64+
65+
public Integer getAvail() {
66+
return this.avail;
67+
}
68+
69+
public void setAvail(Integer avail) {
70+
this.avail = avail;
71+
}
72+
73+
public String getReason() {
74+
return this.reason;
75+
}
76+
77+
public void setReason(String reason) {
78+
this.reason = reason;
79+
}
80+
81+
public String getFeeCurrency() {
82+
return this.feeCurrency;
83+
}
84+
85+
public void setFeeCurrency(String feeCurrency) {
86+
this.feeCurrency = feeCurrency;
87+
}
88+
89+
public Integer getFeePeriod() {
90+
return this.feePeriod;
91+
}
92+
93+
public void setFeePeriod(Integer feePeriod) {
94+
this.feePeriod = feePeriod;
95+
}
96+
97+
public String getFeeFee() {
98+
return this.feeFee;
99+
}
100+
101+
public void setFeeFee(String feeFee) {
102+
this.feeFee = feeFee;
103+
}
104+
105+
public String getRmbFee() {
106+
return this.rmbFee;
107+
}
108+
109+
public void setRmbFee(String rmbFee) {
110+
this.rmbFee = rmbFee;
111+
}
112+
113+
public String getFeeCommand() {
114+
return this.feeCommand;
115+
}
116+
117+
public void setFeeCommand(String feeCommand) {
118+
this.feeCommand = feeCommand;
119+
}
120+
121+
@Override
122+
public CheckDomainResponse getInstance(UnmarshallerContext context) {
123+
return CheckDomainResponseUnmarshaller.unmarshall(this, context);
124+
}
125+
}
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
package com.aliyuncs.domain.model.v20160511;
20+
21+
import com.aliyuncs.RpcAcsRequest;
22+
import java.util.List;
23+
24+
/**
25+
* @author auto create
26+
* @version
27+
*/
28+
public class CreateOrderRequest extends RpcAcsRequest<CreateOrderResponse> {
29+
30+
public CreateOrderRequest() {
31+
super("Domain", "2016-05-11", "CreateOrder");
32+
}
33+
34+
private List<SubOrderParam> subOrderParams;
35+
36+
public List<SubOrderParam> getSubOrderParams() {
37+
return this.subOrderParams;
38+
}
39+
40+
public void setSubOrderParams(List<SubOrderParam> subOrderParams) {
41+
this.subOrderParams = subOrderParams;
42+
for (int i = 0; i < subOrderParams.size(); i++) {
43+
putQueryParameter("SubOrderParam." + (i + 1) + ".SaleID" , subOrderParams.get(i).getSaleID());
44+
putQueryParameter("SubOrderParam." + (i + 1) + ".RelatedName" , subOrderParams.get(i).getRelatedName());
45+
putQueryParameter("SubOrderParam." + (i + 1) + ".Action" , subOrderParams.get(i).getAction());
46+
putQueryParameter("SubOrderParam." + (i + 1) + ".Period" , subOrderParams.get(i).getPeriod());
47+
putQueryParameter("SubOrderParam." + (i + 1) + ".DomainTemplateID" , subOrderParams.get(i).getDomainTemplateID());
48+
}
49+
}
50+
51+
public static class SubOrderParam {
52+
53+
private String saleID;
54+
55+
private String relatedName;
56+
57+
private String action;
58+
59+
private Integer period;
60+
61+
private String domainTemplateID;
62+
63+
public String getSaleID() {
64+
return this.saleID;
65+
}
66+
67+
public void setSaleID(String saleID) {
68+
this.saleID = saleID;
69+
}
70+
71+
public String getRelatedName() {
72+
return this.relatedName;
73+
}
74+
75+
public void setRelatedName(String relatedName) {
76+
this.relatedName = relatedName;
77+
}
78+
79+
public String getAction() {
80+
return this.action;
81+
}
82+
83+
public void setAction(String action) {
84+
this.action = action;
85+
}
86+
87+
public Integer getPeriod() {
88+
return this.period;
89+
}
90+
91+
public void setPeriod(Integer period) {
92+
this.period = period;
93+
}
94+
95+
public String getDomainTemplateID() {
96+
return this.domainTemplateID;
97+
}
98+
99+
public void setDomainTemplateID(String domainTemplateID) {
100+
this.domainTemplateID = domainTemplateID;
101+
}
102+
}
103+
104+
@Override
105+
public Class<CreateOrderResponse> getResponseClass() {
106+
return CreateOrderResponse.class;
107+
}
108+
109+
}

0 commit comments

Comments
 (0)