|
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.ecs.model.v20140526; |
16 | | - |
| 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.ecs.model.v20140526; |
| 16 | + |
17 | 17 | import com.aliyuncs.RpcAcsRequest; |
18 | | - |
19 | | -/** |
20 | | - * @author auto create |
21 | | - * @version |
22 | | - */ |
23 | | -public class ActivateRouterInterfaceRequest extends RpcAcsRequest<ActivateRouterInterfaceResponse> { |
24 | | - |
25 | | - public ActivateRouterInterfaceRequest() { |
26 | | - super("Ecs", "2014-05-26", "ActivateRouterInterface", "ecs"); |
| 18 | +import com.aliyuncs.ecs.Endpoint; |
| 19 | + |
| 20 | +/** |
| 21 | + * @author auto create |
| 22 | + * @version |
| 23 | + */ |
| 24 | +public class ActivateRouterInterfaceRequest extends RpcAcsRequest<ActivateRouterInterfaceResponse> { |
| 25 | + |
| 26 | + public ActivateRouterInterfaceRequest() { |
| 27 | + super("Ecs", "2014-05-26", "ActivateRouterInterface", "ecs"); |
| 28 | + try { |
| 29 | + this.getClass().getDeclaredField("ProductEndpointMap").set(this, Endpoint.endpointMap); |
| 30 | + this.getClass().getDeclaredField("ProductEndpointRegional").set(this, Endpoint.endpointRegionalType); |
| 31 | + } catch (Exception e) {} |
27 | 32 | } |
28 | 33 |
|
29 | 34 | private Long resourceOwnerId; |
@@ -76,11 +81,11 @@ public void setRouterInterfaceId(String routerInterfaceId) { |
76 | 81 | if(routerInterfaceId != null){ |
77 | 82 | putQueryParameter("RouterInterfaceId", routerInterfaceId); |
78 | 83 | } |
79 | | - } |
80 | | - |
81 | | - @Override |
82 | | - public Class<ActivateRouterInterfaceResponse> getResponseClass() { |
83 | | - return ActivateRouterInterfaceResponse.class; |
84 | | - } |
85 | | - |
86 | | -} |
| 84 | + } |
| 85 | + |
| 86 | + @Override |
| 87 | + public Class<ActivateRouterInterfaceResponse> getResponseClass() { |
| 88 | + return ActivateRouterInterfaceResponse.class; |
| 89 | + } |
| 90 | + |
| 91 | +} |
0 commit comments