Skip to content

Commit 39d99da

Browse files
committed
vod sdk 增加消息回调设置和查询接口
1 parent d676587 commit 39d99da

File tree

7 files changed

+393
-1
lines changed

7 files changed

+393
-1
lines changed

aliyun-java-sdk-vod/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<groupId>com.aliyun</groupId>
44
<artifactId>aliyun-java-sdk-vod</artifactId>
55
<packaging>jar</packaging>
6-
<version>2.0.2</version>
6+
<version>2.0.3</version>
77
<name>aliyun-java-sdk-vod</name>
88
<url>http://www.aliyun.com</url>
99
<description>Aliyun Open API SDK for Java
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
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.vod.model.v20170321;
20+
21+
import com.aliyuncs.RpcAcsRequest;
22+
23+
/**
24+
* @author auto create
25+
* @version
26+
*/
27+
public class GetMessageCallbackRequest extends RpcAcsRequest<GetMessageCallbackResponse> {
28+
29+
public GetMessageCallbackRequest() {
30+
super("vod", "2017-03-21", "GetMessageCallback");
31+
}
32+
33+
private String ownerId;
34+
35+
private String resourceOwnerId;
36+
37+
private String resourceOwnerAccount;
38+
39+
private String ownerAccount;
40+
41+
public String getOwnerId() {
42+
return this.ownerId;
43+
}
44+
45+
public void setOwnerId(String ownerId) {
46+
this.ownerId = ownerId;
47+
putQueryParameter("OwnerId", ownerId);
48+
}
49+
50+
public String getResourceOwnerId() {
51+
return this.resourceOwnerId;
52+
}
53+
54+
public void setResourceOwnerId(String resourceOwnerId) {
55+
this.resourceOwnerId = resourceOwnerId;
56+
putQueryParameter("ResourceOwnerId", resourceOwnerId);
57+
}
58+
59+
public String getResourceOwnerAccount() {
60+
return this.resourceOwnerAccount;
61+
}
62+
63+
public void setResourceOwnerAccount(String resourceOwnerAccount) {
64+
this.resourceOwnerAccount = resourceOwnerAccount;
65+
putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
66+
}
67+
68+
public String getOwnerAccount() {
69+
return this.ownerAccount;
70+
}
71+
72+
public void setOwnerAccount(String ownerAccount) {
73+
this.ownerAccount = ownerAccount;
74+
putQueryParameter("OwnerAccount", ownerAccount);
75+
}
76+
77+
@Override
78+
public Class<GetMessageCallbackResponse> getResponseClass() {
79+
return GetMessageCallbackResponse.class;
80+
}
81+
82+
}
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
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.vod.model.v20170321;
20+
21+
import com.aliyuncs.AcsResponse;
22+
import com.aliyuncs.vod.transform.v20170321.GetMessageCallbackResponseUnmarshaller;
23+
import com.aliyuncs.transform.UnmarshallerContext;
24+
25+
/**
26+
* @author auto create
27+
* @version
28+
*/
29+
public class GetMessageCallbackResponse extends AcsResponse {
30+
31+
private String requestId;
32+
33+
private MessageCallback messageCallback;
34+
35+
public String getRequestId() {
36+
return this.requestId;
37+
}
38+
39+
public void setRequestId(String requestId) {
40+
this.requestId = requestId;
41+
}
42+
43+
public MessageCallback getMessageCallback() {
44+
return this.messageCallback;
45+
}
46+
47+
public void setMessageCallback(MessageCallback messageCallback) {
48+
this.messageCallback = messageCallback;
49+
}
50+
51+
public static class MessageCallback {
52+
53+
private String callbackSwitch;
54+
55+
private String callbackURL;
56+
57+
public String getCallbackSwitch() {
58+
return this.callbackSwitch;
59+
}
60+
61+
public void setCallbackSwitch(String callbackSwitch) {
62+
this.callbackSwitch = callbackSwitch;
63+
}
64+
65+
public String getCallbackURL() {
66+
return this.callbackURL;
67+
}
68+
69+
public void setCallbackURL(String callbackURL) {
70+
this.callbackURL = callbackURL;
71+
}
72+
}
73+
74+
@Override
75+
public GetMessageCallbackResponse getInstance(UnmarshallerContext context) {
76+
return GetMessageCallbackResponseUnmarshaller.unmarshall(this, context);
77+
}
78+
}
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
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.vod.model.v20170321;
20+
21+
import com.aliyuncs.RpcAcsRequest;
22+
23+
/**
24+
* @author auto create
25+
* @version
26+
*/
27+
public class SetMessageCallbackRequest extends RpcAcsRequest<SetMessageCallbackResponse> {
28+
29+
public SetMessageCallbackRequest() {
30+
super("vod", "2017-03-21", "SetMessageCallback");
31+
}
32+
33+
private String ownerId;
34+
35+
private String resourceOwnerId;
36+
37+
private String resourceOwnerAccount;
38+
39+
private String ownerAccount;
40+
41+
private String callbackSwitch;
42+
43+
private String callbackType;
44+
45+
private String callbackURL;
46+
47+
public String getOwnerId() {
48+
return this.ownerId;
49+
}
50+
51+
public void setOwnerId(String ownerId) {
52+
this.ownerId = ownerId;
53+
putQueryParameter("OwnerId", ownerId);
54+
}
55+
56+
public String getResourceOwnerId() {
57+
return this.resourceOwnerId;
58+
}
59+
60+
public void setResourceOwnerId(String resourceOwnerId) {
61+
this.resourceOwnerId = resourceOwnerId;
62+
putQueryParameter("ResourceOwnerId", resourceOwnerId);
63+
}
64+
65+
public String getResourceOwnerAccount() {
66+
return this.resourceOwnerAccount;
67+
}
68+
69+
public void setResourceOwnerAccount(String resourceOwnerAccount) {
70+
this.resourceOwnerAccount = resourceOwnerAccount;
71+
putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
72+
}
73+
74+
public String getOwnerAccount() {
75+
return this.ownerAccount;
76+
}
77+
78+
public void setOwnerAccount(String ownerAccount) {
79+
this.ownerAccount = ownerAccount;
80+
putQueryParameter("OwnerAccount", ownerAccount);
81+
}
82+
83+
public String getCallbackSwitch() {
84+
return this.callbackSwitch;
85+
}
86+
87+
public void setCallbackSwitch(String callbackSwitch) {
88+
this.callbackSwitch = callbackSwitch;
89+
putQueryParameter("CallbackSwitch", callbackSwitch);
90+
}
91+
92+
public String getCallbackType() {
93+
return this.callbackType;
94+
}
95+
96+
public void setCallbackType(String callbackType) {
97+
this.callbackType = callbackType;
98+
putQueryParameter("CallbackType", callbackType);
99+
}
100+
101+
public String getCallbackURL() {
102+
return this.callbackURL;
103+
}
104+
105+
public void setCallbackURL(String callbackURL) {
106+
this.callbackURL = callbackURL;
107+
putQueryParameter("CallbackURL", callbackURL);
108+
}
109+
110+
@Override
111+
public Class<SetMessageCallbackResponse> getResponseClass() {
112+
return SetMessageCallbackResponse.class;
113+
}
114+
115+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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.vod.model.v20170321;
20+
21+
import com.aliyuncs.AcsResponse;
22+
import com.aliyuncs.vod.transform.v20170321.SetMessageCallbackResponseUnmarshaller;
23+
import com.aliyuncs.transform.UnmarshallerContext;
24+
25+
/**
26+
* @author auto create
27+
* @version
28+
*/
29+
public class SetMessageCallbackResponse extends AcsResponse {
30+
31+
private String requestId;
32+
33+
public String getRequestId() {
34+
return this.requestId;
35+
}
36+
37+
public void setRequestId(String requestId) {
38+
this.requestId = requestId;
39+
}
40+
41+
@Override
42+
public SetMessageCallbackResponse getInstance(UnmarshallerContext context) {
43+
return SetMessageCallbackResponseUnmarshaller.unmarshall(this, context);
44+
}
45+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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.vod.transform.v20170321;
20+
21+
import com.aliyuncs.vod.model.v20170321.GetMessageCallbackResponse;
22+
import com.aliyuncs.vod.model.v20170321.GetMessageCallbackResponse.MessageCallback;
23+
import com.aliyuncs.transform.UnmarshallerContext;
24+
25+
26+
public class GetMessageCallbackResponseUnmarshaller {
27+
28+
public static GetMessageCallbackResponse unmarshall(GetMessageCallbackResponse getMessageCallbackResponse, UnmarshallerContext context) {
29+
30+
getMessageCallbackResponse.setRequestId(context.stringValue("GetMessageCallbackResponse.RequestId"));
31+
32+
MessageCallback messageCallback = new MessageCallback();
33+
messageCallback.setCallbackSwitch(context.stringValue("GetMessageCallbackResponse.MessageCallback.CallbackSwitch"));
34+
messageCallback.setCallbackURL(context.stringValue("GetMessageCallbackResponse.MessageCallback.CallbackURL"));
35+
getMessageCallbackResponse.setMessageCallback(messageCallback);
36+
37+
return getMessageCallbackResponse;
38+
}
39+
}

0 commit comments

Comments
 (0)