diff --git a/aliyun-java-sdk-ecs/ChangeLog.txt b/aliyun-java-sdk-ecs/ChangeLog.txt index 717a8b482f..3b23165663 100644 --- a/aliyun-java-sdk-ecs/ChangeLog.txt +++ b/aliyun-java-sdk-ecs/ChangeLog.txt @@ -1,3 +1,6 @@ +2023-05-25 Version: 4.24.63 +- DescribeDemands add PrivatePoolId. + 2023-04-26 Version: 5.10.56 - Adjust migrate instance. diff --git a/aliyun-java-sdk-ecs/pom.xml b/aliyun-java-sdk-ecs/pom.xml index 6b9fec745d..2f15aeb192 100644 --- a/aliyun-java-sdk-ecs/pom.xml +++ b/aliyun-java-sdk-ecs/pom.xml @@ -4,7 +4,7 @@ com.aliyun aliyun-java-sdk-ecs jar - 5.10.56 + 4.24.63 aliyun-java-sdk-ecs http://www.aliyun.com Aliyun Open API SDK for Java diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AcceptInquiredSystemEventRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AcceptInquiredSystemEventRequest.java new file mode 100644 index 0000000000..7dfbaacab1 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AcceptInquiredSystemEventRequest.java @@ -0,0 +1,119 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class AcceptInquiredSystemEventRequest extends RpcAcsRequest { + + + private String eventId; + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String choice; + public AcceptInquiredSystemEventRequest() { + super("Ecs", "2014-05-26", "AcceptInquiredSystemEvent", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getEventId() { + return this.eventId; + } + + public void setEventId(String eventId) { + this.eventId = eventId; + if(eventId != null){ + putQueryParameter("EventId", eventId); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getChoice() { + return this.choice; + } + + public void setChoice(String choice) { + this.choice = choice; + if(choice != null){ + putQueryParameter("Choice", choice); + } + } + + @Override + public Class getResponseClass() { + return AcceptInquiredSystemEventResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AcceptInquiredSystemEventResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AcceptInquiredSystemEventResponse.java new file mode 100644 index 0000000000..9d790cb15e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AcceptInquiredSystemEventResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.AcceptInquiredSystemEventResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class AcceptInquiredSystemEventResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public AcceptInquiredSystemEventResponse getInstance(UnmarshallerContext context) { + return AcceptInquiredSystemEventResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ActivateRouterInterfaceRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ActivateRouterInterfaceRequest.java new file mode 100644 index 0000000000..190ec982d2 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ActivateRouterInterfaceRequest.java @@ -0,0 +1,93 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ActivateRouterInterfaceRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private Long ownerId; + + private String routerInterfaceId; + public ActivateRouterInterfaceRequest() { + super("Ecs", "2014-05-26", "ActivateRouterInterface", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getRouterInterfaceId() { + return this.routerInterfaceId; + } + + public void setRouterInterfaceId(String routerInterfaceId) { + this.routerInterfaceId = routerInterfaceId; + if(routerInterfaceId != null){ + putQueryParameter("RouterInterfaceId", routerInterfaceId); + } + } + + @Override + public Class getResponseClass() { + return ActivateRouterInterfaceResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ActivateRouterInterfaceResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ActivateRouterInterfaceResponse.java new file mode 100644 index 0000000000..1a79cde7b2 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ActivateRouterInterfaceResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ActivateRouterInterfaceResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ActivateRouterInterfaceResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ActivateRouterInterfaceResponse getInstance(UnmarshallerContext context) { + return ActivateRouterInterfaceResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AddBandwidthPackageIpsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AddBandwidthPackageIpsRequest.java new file mode 100644 index 0000000000..caf34d4bac --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AddBandwidthPackageIpsRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class AddBandwidthPackageIpsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private String bandwidthPackageId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String ipCount; + public AddBandwidthPackageIpsRequest() { + super("Ecs", "2014-05-26", "AddBandwidthPackageIps", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getBandwidthPackageId() { + return this.bandwidthPackageId; + } + + public void setBandwidthPackageId(String bandwidthPackageId) { + this.bandwidthPackageId = bandwidthPackageId; + if(bandwidthPackageId != null){ + putQueryParameter("BandwidthPackageId", bandwidthPackageId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getIpCount() { + return this.ipCount; + } + + public void setIpCount(String ipCount) { + this.ipCount = ipCount; + if(ipCount != null){ + putQueryParameter("IpCount", ipCount); + } + } + + @Override + public Class getResponseClass() { + return AddBandwidthPackageIpsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AddBandwidthPackageIpsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AddBandwidthPackageIpsResponse.java new file mode 100644 index 0000000000..b7fb6f7651 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AddBandwidthPackageIpsResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.AddBandwidthPackageIpsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class AddBandwidthPackageIpsResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public AddBandwidthPackageIpsResponse getInstance(UnmarshallerContext context) { + return AddBandwidthPackageIpsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AddTagsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AddTagsRequest.java new file mode 100644 index 0000000000..e2de091727 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AddTagsRequest.java @@ -0,0 +1,146 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class AddTagsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private List tags; + + private String resourceId; + + private String resourceOwnerAccount; + + private Long ownerId; + + private String resourceType; + public AddTagsRequest() { + super("Ecs", "2014-05-26", "AddTags", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + } + } + } + + public String getResourceId() { + return this.resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + if(resourceId != null){ + putQueryParameter("ResourceId", resourceId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getResourceType() { + return this.resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + if(resourceType != null){ + putQueryParameter("ResourceType", resourceType); + } + } + + public static class Tag { + + private String value; + + private String key; + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + } + + @Override + public Class getResponseClass() { + return AddTagsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AddTagsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AddTagsResponse.java new file mode 100644 index 0000000000..d5d95c69f9 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AddTagsResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.AddTagsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class AddTagsResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public AddTagsResponse getInstance(UnmarshallerContext context) { + return AddTagsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/AllocateDedicatedHostsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AllocateDedicatedHostsRequest.java similarity index 86% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/AllocateDedicatedHostsRequest.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AllocateDedicatedHostsRequest.java index bd11e82eea..8b7b823b2e 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/AllocateDedicatedHostsRequest.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AllocateDedicatedHostsRequest.java @@ -12,7 +12,7 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.RpcAcsRequest; import java.util.List; @@ -46,8 +46,6 @@ public class AllocateDedicatedHostsRequest extends RpcAcsRequest dedicatedHostIdSets; - public String getOrderId() { - return this.orderId; - } - - public void setOrderId(String orderId) { - this.orderId = orderId; - } - public String getRequestId() { return this.requestId; } diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AllocateEipAddressRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AllocateEipAddressRequest.java new file mode 100644 index 0000000000..c474829af4 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AllocateEipAddressRequest.java @@ -0,0 +1,158 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class AllocateEipAddressRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private String iSP; + + private String resourceOwnerAccount; + + private String bandwidth; + + private String ownerAccount; + + private Long ownerId; + + private Long activityId; + + private String internetChargeType; + public AllocateEipAddressRequest() { + super("Ecs", "2014-05-26", "AllocateEipAddress", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getISP() { + return this.iSP; + } + + public void setISP(String iSP) { + this.iSP = iSP; + if(iSP != null){ + putQueryParameter("ISP", iSP); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getBandwidth() { + return this.bandwidth; + } + + public void setBandwidth(String bandwidth) { + this.bandwidth = bandwidth; + if(bandwidth != null){ + putQueryParameter("Bandwidth", bandwidth); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public Long getActivityId() { + return this.activityId; + } + + public void setActivityId(Long activityId) { + this.activityId = activityId; + if(activityId != null){ + putQueryParameter("ActivityId", activityId.toString()); + } + } + + public String getInternetChargeType() { + return this.internetChargeType; + } + + public void setInternetChargeType(String internetChargeType) { + this.internetChargeType = internetChargeType; + if(internetChargeType != null){ + putQueryParameter("InternetChargeType", internetChargeType); + } + } + + @Override + public Class getResponseClass() { + return AllocateEipAddressResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AllocateEipAddressResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AllocateEipAddressResponse.java new file mode 100644 index 0000000000..797f0377f2 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AllocateEipAddressResponse.java @@ -0,0 +1,61 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.AllocateEipAddressResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class AllocateEipAddressResponse extends AcsResponse { + + private String requestId; + + private String allocationId; + + private String eipAddress; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getAllocationId() { + return this.allocationId; + } + + public void setAllocationId(String allocationId) { + this.allocationId = allocationId; + } + + public String getEipAddress() { + return this.eipAddress; + } + + public void setEipAddress(String eipAddress) { + this.eipAddress = eipAddress; + } + + @Override + public AllocateEipAddressResponse getInstance(UnmarshallerContext context) { + return AllocateEipAddressResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AllocatePublicIpAddressRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AllocatePublicIpAddressRequest.java new file mode 100644 index 0000000000..f8aceb395b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AllocatePublicIpAddressRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class AllocatePublicIpAddressRequest extends RpcAcsRequest { + + + private String ipAddress; + + private Long resourceOwnerId; + + private String vlanId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceId; + public AllocatePublicIpAddressRequest() { + super("Ecs", "2014-05-26", "AllocatePublicIpAddress", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getIpAddress() { + return this.ipAddress; + } + + public void setIpAddress(String ipAddress) { + this.ipAddress = ipAddress; + if(ipAddress != null){ + putQueryParameter("IpAddress", ipAddress); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getVlanId() { + return this.vlanId; + } + + public void setVlanId(String vlanId) { + this.vlanId = vlanId; + if(vlanId != null){ + putQueryParameter("VlanId", vlanId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + @Override + public Class getResponseClass() { + return AllocatePublicIpAddressResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AllocatePublicIpAddressResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AllocatePublicIpAddressResponse.java new file mode 100644 index 0000000000..d530c7b582 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AllocatePublicIpAddressResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.AllocatePublicIpAddressResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class AllocatePublicIpAddressResponse extends AcsResponse { + + private String ipAddress; + + private String requestId; + + public String getIpAddress() { + return this.ipAddress; + } + + public void setIpAddress(String ipAddress) { + this.ipAddress = ipAddress; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public AllocatePublicIpAddressResponse getInstance(UnmarshallerContext context) { + return AllocatePublicIpAddressResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ApplyAutoSnapshotPolicyRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ApplyAutoSnapshotPolicyRequest.java new file mode 100644 index 0000000000..13c13824d2 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ApplyAutoSnapshotPolicyRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ApplyAutoSnapshotPolicyRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String autoSnapshotPolicyId; + + private String diskIds; + + private String resourceOwnerAccount; + + private Long ownerId; + public ApplyAutoSnapshotPolicyRequest() { + super("Ecs", "2014-05-26", "ApplyAutoSnapshotPolicy", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getAutoSnapshotPolicyId() { + return this.autoSnapshotPolicyId; + } + + public void setAutoSnapshotPolicyId(String autoSnapshotPolicyId) { + this.autoSnapshotPolicyId = autoSnapshotPolicyId; + if(autoSnapshotPolicyId != null){ + putQueryParameter("autoSnapshotPolicyId", autoSnapshotPolicyId); + } + } + + public String getDiskIds() { + return this.diskIds; + } + + public void setDiskIds(String diskIds) { + this.diskIds = diskIds; + if(diskIds != null){ + putQueryParameter("diskIds", diskIds); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return ApplyAutoSnapshotPolicyResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ApplyAutoSnapshotPolicyResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ApplyAutoSnapshotPolicyResponse.java new file mode 100644 index 0000000000..ef660977e5 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ApplyAutoSnapshotPolicyResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ApplyAutoSnapshotPolicyResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ApplyAutoSnapshotPolicyResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ApplyAutoSnapshotPolicyResponse getInstance(UnmarshallerContext context) { + return ApplyAutoSnapshotPolicyResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AssignIpv6AddressesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AssignIpv6AddressesRequest.java new file mode 100644 index 0000000000..eaf466e392 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AssignIpv6AddressesRequest.java @@ -0,0 +1,176 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class AssignIpv6AddressesRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private List ipv6Prefixs; + + private Integer ipv6PrefixCount; + + private String resourceOwnerAccount; + + private Integer ipv6AddressCount; + + private String ownerAccount; + + private Long ownerId; + + private String networkInterfaceId; + + private List ipv6Addresss; + public AssignIpv6AddressesRequest() { + super("Ecs", "2014-05-26", "AssignIpv6Addresses", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public List getIpv6Prefixs() { + return this.ipv6Prefixs; + } + + public void setIpv6Prefixs(List ipv6Prefixs) { + this.ipv6Prefixs = ipv6Prefixs; + if (ipv6Prefixs != null) { + for (int i = 0; i < ipv6Prefixs.size(); i++) { + putQueryParameter("Ipv6Prefix." + (i + 1) , ipv6Prefixs.get(i)); + } + } + } + + public Integer getIpv6PrefixCount() { + return this.ipv6PrefixCount; + } + + public void setIpv6PrefixCount(Integer ipv6PrefixCount) { + this.ipv6PrefixCount = ipv6PrefixCount; + if(ipv6PrefixCount != null){ + putQueryParameter("Ipv6PrefixCount", ipv6PrefixCount.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Integer getIpv6AddressCount() { + return this.ipv6AddressCount; + } + + public void setIpv6AddressCount(Integer ipv6AddressCount) { + this.ipv6AddressCount = ipv6AddressCount; + if(ipv6AddressCount != null){ + putQueryParameter("Ipv6AddressCount", ipv6AddressCount.toString()); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getNetworkInterfaceId() { + return this.networkInterfaceId; + } + + public void setNetworkInterfaceId(String networkInterfaceId) { + this.networkInterfaceId = networkInterfaceId; + if(networkInterfaceId != null){ + putQueryParameter("NetworkInterfaceId", networkInterfaceId); + } + } + + public List getIpv6Addresss() { + return this.ipv6Addresss; + } + + public void setIpv6Addresss(List ipv6Addresss) { + this.ipv6Addresss = ipv6Addresss; + if (ipv6Addresss != null) { + for (int i = 0; i < ipv6Addresss.size(); i++) { + putQueryParameter("Ipv6Address." + (i + 1) , ipv6Addresss.get(i)); + } + } + } + + @Override + public Class getResponseClass() { + return AssignIpv6AddressesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AssignIpv6AddressesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AssignIpv6AddressesResponse.java new file mode 100644 index 0000000000..bc86a25090 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AssignIpv6AddressesResponse.java @@ -0,0 +1,72 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.AssignIpv6AddressesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class AssignIpv6AddressesResponse extends AcsResponse { + + private String requestId; + + private String networkInterfaceId; + + private List ipv6Sets; + + private List ipv6PrefixSets; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getNetworkInterfaceId() { + return this.networkInterfaceId; + } + + public void setNetworkInterfaceId(String networkInterfaceId) { + this.networkInterfaceId = networkInterfaceId; + } + + public List getIpv6Sets() { + return this.ipv6Sets; + } + + public void setIpv6Sets(List ipv6Sets) { + this.ipv6Sets = ipv6Sets; + } + + public List getIpv6PrefixSets() { + return this.ipv6PrefixSets; + } + + public void setIpv6PrefixSets(List ipv6PrefixSets) { + this.ipv6PrefixSets = ipv6PrefixSets; + } + + @Override + public AssignIpv6AddressesResponse getInstance(UnmarshallerContext context) { + return AssignIpv6AddressesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AssignPrivateIpAddressesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AssignPrivateIpAddressesRequest.java new file mode 100644 index 0000000000..8590884738 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AssignPrivateIpAddressesRequest.java @@ -0,0 +1,176 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class AssignPrivateIpAddressesRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private List ipv4Prefixs; + + private String clientToken; + + private Integer secondaryPrivateIpAddressCount; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private Integer ipv4PrefixCount; + + private List privateIpAddresss; + + private String networkInterfaceId; + public AssignPrivateIpAddressesRequest() { + super("Ecs", "2014-05-26", "AssignPrivateIpAddresses", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public List getIpv4Prefixs() { + return this.ipv4Prefixs; + } + + public void setIpv4Prefixs(List ipv4Prefixs) { + this.ipv4Prefixs = ipv4Prefixs; + if (ipv4Prefixs != null) { + for (int i = 0; i < ipv4Prefixs.size(); i++) { + putQueryParameter("Ipv4Prefix." + (i + 1) , ipv4Prefixs.get(i)); + } + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public Integer getSecondaryPrivateIpAddressCount() { + return this.secondaryPrivateIpAddressCount; + } + + public void setSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount) { + this.secondaryPrivateIpAddressCount = secondaryPrivateIpAddressCount; + if(secondaryPrivateIpAddressCount != null){ + putQueryParameter("SecondaryPrivateIpAddressCount", secondaryPrivateIpAddressCount.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public Integer getIpv4PrefixCount() { + return this.ipv4PrefixCount; + } + + public void setIpv4PrefixCount(Integer ipv4PrefixCount) { + this.ipv4PrefixCount = ipv4PrefixCount; + if(ipv4PrefixCount != null){ + putQueryParameter("Ipv4PrefixCount", ipv4PrefixCount.toString()); + } + } + + public List getPrivateIpAddresss() { + return this.privateIpAddresss; + } + + public void setPrivateIpAddresss(List privateIpAddresss) { + this.privateIpAddresss = privateIpAddresss; + if (privateIpAddresss != null) { + for (int i = 0; i < privateIpAddresss.size(); i++) { + putQueryParameter("PrivateIpAddress." + (i + 1) , privateIpAddresss.get(i)); + } + } + } + + public String getNetworkInterfaceId() { + return this.networkInterfaceId; + } + + public void setNetworkInterfaceId(String networkInterfaceId) { + this.networkInterfaceId = networkInterfaceId; + if(networkInterfaceId != null){ + putQueryParameter("NetworkInterfaceId", networkInterfaceId); + } + } + + @Override + public Class getResponseClass() { + return AssignPrivateIpAddressesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AssignPrivateIpAddressesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AssignPrivateIpAddressesResponse.java new file mode 100644 index 0000000000..a76c47da1b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AssignPrivateIpAddressesResponse.java @@ -0,0 +1,85 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.AssignPrivateIpAddressesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class AssignPrivateIpAddressesResponse extends AcsResponse { + + private String requestId; + + private AssignedPrivateIpAddressesSet assignedPrivateIpAddressesSet; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public AssignedPrivateIpAddressesSet getAssignedPrivateIpAddressesSet() { + return this.assignedPrivateIpAddressesSet; + } + + public void setAssignedPrivateIpAddressesSet(AssignedPrivateIpAddressesSet assignedPrivateIpAddressesSet) { + this.assignedPrivateIpAddressesSet = assignedPrivateIpAddressesSet; + } + + public static class AssignedPrivateIpAddressesSet { + + private String networkInterfaceId; + + private List privateIpSet; + + private List ipv4PrefixSet; + + public String getNetworkInterfaceId() { + return this.networkInterfaceId; + } + + public void setNetworkInterfaceId(String networkInterfaceId) { + this.networkInterfaceId = networkInterfaceId; + } + + public List getPrivateIpSet() { + return this.privateIpSet; + } + + public void setPrivateIpSet(List privateIpSet) { + this.privateIpSet = privateIpSet; + } + + public List getIpv4PrefixSet() { + return this.ipv4PrefixSet; + } + + public void setIpv4PrefixSet(List ipv4PrefixSet) { + this.ipv4PrefixSet = ipv4PrefixSet; + } + } + + @Override + public AssignPrivateIpAddressesResponse getInstance(UnmarshallerContext context) { + return AssignPrivateIpAddressesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AssociateEipAddressRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AssociateEipAddressRequest.java new file mode 100644 index 0000000000..0d7d0d7894 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AssociateEipAddressRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class AssociateEipAddressRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String allocationId; + + private String instanceType; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceId; + public AssociateEipAddressRequest() { + super("Ecs", "2014-05-26", "AssociateEipAddress", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getAllocationId() { + return this.allocationId; + } + + public void setAllocationId(String allocationId) { + this.allocationId = allocationId; + if(allocationId != null){ + putQueryParameter("AllocationId", allocationId); + } + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + if(instanceType != null){ + putQueryParameter("InstanceType", instanceType); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + @Override + public Class getResponseClass() { + return AssociateEipAddressResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AssociateEipAddressResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AssociateEipAddressResponse.java new file mode 100644 index 0000000000..48b5e07890 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AssociateEipAddressResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.AssociateEipAddressResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class AssociateEipAddressResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public AssociateEipAddressResponse getInstance(UnmarshallerContext context) { + return AssociateEipAddressResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AssociateHaVipRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AssociateHaVipRequest.java new file mode 100644 index 0000000000..4086f66f03 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AssociateHaVipRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class AssociateHaVipRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private String haVipId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceId; + public AssociateHaVipRequest() { + super("Ecs", "2014-05-26", "AssociateHaVip", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getHaVipId() { + return this.haVipId; + } + + public void setHaVipId(String haVipId) { + this.haVipId = haVipId; + if(haVipId != null){ + putQueryParameter("HaVipId", haVipId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + @Override + public Class getResponseClass() { + return AssociateHaVipResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AssociateHaVipResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AssociateHaVipResponse.java new file mode 100644 index 0000000000..e4e89bfc13 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AssociateHaVipResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.AssociateHaVipResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class AssociateHaVipResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public AssociateHaVipResponse getInstance(UnmarshallerContext context) { + return AssociateHaVipResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AttachClassicLinkVpcRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AttachClassicLinkVpcRequest.java new file mode 100644 index 0000000000..93ba53317c --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AttachClassicLinkVpcRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class AttachClassicLinkVpcRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private Long ownerId; + + private String instanceId; + + private String vpcId; + public AttachClassicLinkVpcRequest() { + super("Ecs", "2014-05-26", "AttachClassicLinkVpc", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + if(vpcId != null){ + putQueryParameter("VpcId", vpcId); + } + } + + @Override + public Class getResponseClass() { + return AttachClassicLinkVpcResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AttachClassicLinkVpcResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AttachClassicLinkVpcResponse.java new file mode 100644 index 0000000000..a171c4ddfc --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AttachClassicLinkVpcResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.AttachClassicLinkVpcResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class AttachClassicLinkVpcResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public AttachClassicLinkVpcResponse getInstance(UnmarshallerContext context) { + return AttachClassicLinkVpcResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AttachDiskRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AttachDiskRequest.java new file mode 100644 index 0000000000..4ad90897ad --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AttachDiskRequest.java @@ -0,0 +1,184 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class AttachDiskRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String keyPairName; + + private Boolean bootable; + + private String password; + + private String diskId; + + private Boolean deleteWithInstance; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceId; + + private String device; + public AttachDiskRequest() { + super("Ecs", "2014-05-26", "AttachDisk", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getKeyPairName() { + return this.keyPairName; + } + + public void setKeyPairName(String keyPairName) { + this.keyPairName = keyPairName; + if(keyPairName != null){ + putQueryParameter("KeyPairName", keyPairName); + } + } + + public Boolean getBootable() { + return this.bootable; + } + + public void setBootable(Boolean bootable) { + this.bootable = bootable; + if(bootable != null){ + putQueryParameter("Bootable", bootable.toString()); + } + } + + public String getPassword() { + return this.password; + } + + public void setPassword(String password) { + this.password = password; + if(password != null){ + putQueryParameter("Password", password); + } + } + + public String getDiskId() { + return this.diskId; + } + + public void setDiskId(String diskId) { + this.diskId = diskId; + if(diskId != null){ + putQueryParameter("DiskId", diskId); + } + } + + public Boolean getDeleteWithInstance() { + return this.deleteWithInstance; + } + + public void setDeleteWithInstance(Boolean deleteWithInstance) { + this.deleteWithInstance = deleteWithInstance; + if(deleteWithInstance != null){ + putQueryParameter("DeleteWithInstance", deleteWithInstance.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public String getDevice() { + return this.device; + } + + public void setDevice(String device) { + this.device = device; + if(device != null){ + putQueryParameter("Device", device); + } + } + + @Override + public Class getResponseClass() { + return AttachDiskResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AttachDiskResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AttachDiskResponse.java new file mode 100644 index 0000000000..5f3fac806b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AttachDiskResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.AttachDiskResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class AttachDiskResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public AttachDiskResponse getInstance(UnmarshallerContext context) { + return AttachDiskResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AttachInstanceRamRoleRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AttachInstanceRamRoleRequest.java new file mode 100644 index 0000000000..ca62e21399 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AttachInstanceRamRoleRequest.java @@ -0,0 +1,119 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class AttachInstanceRamRoleRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String policy; + + private String resourceOwnerAccount; + + private String ramRoleName; + + private Long ownerId; + + private String instanceIds; + public AttachInstanceRamRoleRequest() { + super("Ecs", "2014-05-26", "AttachInstanceRamRole", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getPolicy() { + return this.policy; + } + + public void setPolicy(String policy) { + this.policy = policy; + if(policy != null){ + putQueryParameter("Policy", policy); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getRamRoleName() { + return this.ramRoleName; + } + + public void setRamRoleName(String ramRoleName) { + this.ramRoleName = ramRoleName; + if(ramRoleName != null){ + putQueryParameter("RamRoleName", ramRoleName); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceIds() { + return this.instanceIds; + } + + public void setInstanceIds(String instanceIds) { + this.instanceIds = instanceIds; + if(instanceIds != null){ + putQueryParameter("InstanceIds", instanceIds); + } + } + + @Override + public Class getResponseClass() { + return AttachInstanceRamRoleResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AttachInstanceRamRoleResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AttachInstanceRamRoleResponse.java new file mode 100644 index 0000000000..0aeadaa8a9 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AttachInstanceRamRoleResponse.java @@ -0,0 +1,125 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.AttachInstanceRamRoleResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class AttachInstanceRamRoleResponse extends AcsResponse { + + private String ramRoleName; + + private String requestId; + + private Integer totalCount; + + private Integer failCount; + + private List attachInstanceRamRoleResults; + + public String getRamRoleName() { + return this.ramRoleName; + } + + public void setRamRoleName(String ramRoleName) { + this.ramRoleName = ramRoleName; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public Integer getFailCount() { + return this.failCount; + } + + public void setFailCount(Integer failCount) { + this.failCount = failCount; + } + + public List getAttachInstanceRamRoleResults() { + return this.attachInstanceRamRoleResults; + } + + public void setAttachInstanceRamRoleResults(List attachInstanceRamRoleResults) { + this.attachInstanceRamRoleResults = attachInstanceRamRoleResults; + } + + public static class AttachInstanceRamRoleResult { + + private String code; + + private String message; + + private String instanceId; + + private Boolean success; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getMessage() { + return this.message; + } + + public void setMessage(String message) { + this.message = message; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public Boolean getSuccess() { + return this.success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + } + + @Override + public AttachInstanceRamRoleResponse getInstance(UnmarshallerContext context) { + return AttachInstanceRamRoleResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AttachKeyPairRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AttachKeyPairRequest.java new file mode 100644 index 0000000000..eb2b6b8d5d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AttachKeyPairRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class AttachKeyPairRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String keyPairName; + + private String resourceOwnerAccount; + + private Long ownerId; + + private String instanceIds; + public AttachKeyPairRequest() { + super("Ecs", "2014-05-26", "AttachKeyPair", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getKeyPairName() { + return this.keyPairName; + } + + public void setKeyPairName(String keyPairName) { + this.keyPairName = keyPairName; + if(keyPairName != null){ + putQueryParameter("KeyPairName", keyPairName); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceIds() { + return this.instanceIds; + } + + public void setInstanceIds(String instanceIds) { + this.instanceIds = instanceIds; + if(instanceIds != null){ + putQueryParameter("InstanceIds", instanceIds); + } + } + + @Override + public Class getResponseClass() { + return AttachKeyPairResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AttachKeyPairResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AttachKeyPairResponse.java new file mode 100644 index 0000000000..6ad3e5b2c8 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AttachKeyPairResponse.java @@ -0,0 +1,125 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.AttachKeyPairResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class AttachKeyPairResponse extends AcsResponse { + + private String keyPairName; + + private String requestId; + + private String totalCount; + + private String failCount; + + private List results; + + public String getKeyPairName() { + return this.keyPairName; + } + + public void setKeyPairName(String keyPairName) { + this.keyPairName = keyPairName; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getFailCount() { + return this.failCount; + } + + public void setFailCount(String failCount) { + this.failCount = failCount; + } + + public List getResults() { + return this.results; + } + + public void setResults(List results) { + this.results = results; + } + + public static class Result { + + private String code; + + private String message; + + private String instanceId; + + private String success; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getMessage() { + return this.message; + } + + public void setMessage(String message) { + this.message = message; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getSuccess() { + return this.success; + } + + public void setSuccess(String success) { + this.success = success; + } + } + + @Override + public AttachKeyPairResponse getInstance(UnmarshallerContext context) { + return AttachKeyPairResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AttachNetworkInterfaceRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AttachNetworkInterfaceRequest.java new file mode 100644 index 0000000000..da6b0d6fb9 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AttachNetworkInterfaceRequest.java @@ -0,0 +1,158 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class AttachNetworkInterfaceRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String trunkNetworkInstanceId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Boolean waitForNetworkConfigurationReady; + + private Long ownerId; + + private Integer networkCardIndex; + + private String instanceId; + + private String networkInterfaceId; + public AttachNetworkInterfaceRequest() { + super("Ecs", "2014-05-26", "AttachNetworkInterface", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getTrunkNetworkInstanceId() { + return this.trunkNetworkInstanceId; + } + + public void setTrunkNetworkInstanceId(String trunkNetworkInstanceId) { + this.trunkNetworkInstanceId = trunkNetworkInstanceId; + if(trunkNetworkInstanceId != null){ + putQueryParameter("TrunkNetworkInstanceId", trunkNetworkInstanceId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Boolean getWaitForNetworkConfigurationReady() { + return this.waitForNetworkConfigurationReady; + } + + public void setWaitForNetworkConfigurationReady(Boolean waitForNetworkConfigurationReady) { + this.waitForNetworkConfigurationReady = waitForNetworkConfigurationReady; + if(waitForNetworkConfigurationReady != null){ + putQueryParameter("WaitForNetworkConfigurationReady", waitForNetworkConfigurationReady.toString()); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public Integer getNetworkCardIndex() { + return this.networkCardIndex; + } + + public void setNetworkCardIndex(Integer networkCardIndex) { + this.networkCardIndex = networkCardIndex; + if(networkCardIndex != null){ + putQueryParameter("NetworkCardIndex", networkCardIndex.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public String getNetworkInterfaceId() { + return this.networkInterfaceId; + } + + public void setNetworkInterfaceId(String networkInterfaceId) { + this.networkInterfaceId = networkInterfaceId; + if(networkInterfaceId != null){ + putQueryParameter("NetworkInterfaceId", networkInterfaceId); + } + } + + @Override + public Class getResponseClass() { + return AttachNetworkInterfaceResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AttachNetworkInterfaceResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AttachNetworkInterfaceResponse.java new file mode 100644 index 0000000000..7a63087176 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AttachNetworkInterfaceResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.AttachNetworkInterfaceResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class AttachNetworkInterfaceResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public AttachNetworkInterfaceResponse getInstance(UnmarshallerContext context) { + return AttachNetworkInterfaceResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AuthorizeSecurityGroupEgressRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AuthorizeSecurityGroupEgressRequest.java new file mode 100644 index 0000000000..cb5be96bc1 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AuthorizeSecurityGroupEgressRequest.java @@ -0,0 +1,500 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class AuthorizeSecurityGroupEgressRequest extends RpcAcsRequest { + + + private String nicType; + + private Long resourceOwnerId; + + private String sourcePortRange; + + private String clientToken; + + private String destPrefixListId; + + private String securityGroupId; + + private String description; + + private List permissions; + + private String policy; + + private String ipv6DestCidrIp; + + private String ipv6SourceCidrIp; + + private String portRange; + + private String resourceOwnerAccount; + + private String ipProtocol; + + private String ownerAccount; + + private String sourceCidrIp; + + private String destGroupId; + + private Long ownerId; + + private String priority; + + private String destGroupOwnerAccount; + + private String destCidrIp; + + private Long destGroupOwnerId; + public AuthorizeSecurityGroupEgressRequest() { + super("Ecs", "2014-05-26", "AuthorizeSecurityGroupEgress", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getNicType() { + return this.nicType; + } + + public void setNicType(String nicType) { + this.nicType = nicType; + if(nicType != null){ + putQueryParameter("NicType", nicType); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getSourcePortRange() { + return this.sourcePortRange; + } + + public void setSourcePortRange(String sourcePortRange) { + this.sourcePortRange = sourcePortRange; + if(sourcePortRange != null){ + putQueryParameter("SourcePortRange", sourcePortRange); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getDestPrefixListId() { + return this.destPrefixListId; + } + + public void setDestPrefixListId(String destPrefixListId) { + this.destPrefixListId = destPrefixListId; + if(destPrefixListId != null){ + putQueryParameter("DestPrefixListId", destPrefixListId); + } + } + + public String getSecurityGroupId() { + return this.securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + if(securityGroupId != null){ + putQueryParameter("SecurityGroupId", securityGroupId); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public List getPermissions() { + return this.permissions; + } + + public void setPermissions(List permissions) { + this.permissions = permissions; + if (permissions != null) { + for (int depth1 = 0; depth1 < permissions.size(); depth1++) { + if (permissions.get(depth1) != null) { + + putQueryParameter("Permissions." + (depth1 + 1) + ".Policy" , permissions.get(depth1).getPolicy()); + putQueryParameter("Permissions." + (depth1 + 1) + ".Priority" , permissions.get(depth1).getPriority()); + putQueryParameter("Permissions." + (depth1 + 1) + ".IpProtocol" , permissions.get(depth1).getIpProtocol()); + putQueryParameter("Permissions." + (depth1 + 1) + ".DestCidrIp" , permissions.get(depth1).getDestCidrIp()); + putQueryParameter("Permissions." + (depth1 + 1) + ".Ipv6DestCidrIp" , permissions.get(depth1).getIpv6DestCidrIp()); + putQueryParameter("Permissions." + (depth1 + 1) + ".DestGroupId" , permissions.get(depth1).getDestGroupId()); + putQueryParameter("Permissions." + (depth1 + 1) + ".DestPrefixListId" , permissions.get(depth1).getDestPrefixListId()); + putQueryParameter("Permissions." + (depth1 + 1) + ".PortRange" , permissions.get(depth1).getPortRange()); + putQueryParameter("Permissions." + (depth1 + 1) + ".SourceCidrIp" , permissions.get(depth1).getSourceCidrIp()); + putQueryParameter("Permissions." + (depth1 + 1) + ".Ipv6SourceCidrIp" , permissions.get(depth1).getIpv6SourceCidrIp()); + putQueryParameter("Permissions." + (depth1 + 1) + ".SourcePortRange" , permissions.get(depth1).getSourcePortRange()); + putQueryParameter("Permissions." + (depth1 + 1) + ".DestGroupOwnerAccount" , permissions.get(depth1).getDestGroupOwnerAccount()); + putQueryParameter("Permissions." + (depth1 + 1) + ".DestGroupOwnerId" , permissions.get(depth1).getDestGroupOwnerId()); + putQueryParameter("Permissions." + (depth1 + 1) + ".NicType" , permissions.get(depth1).getNicType()); + putQueryParameter("Permissions." + (depth1 + 1) + ".Description" , permissions.get(depth1).getDescription()); + } + } + } + } + + public String getPolicy() { + return this.policy; + } + + public void setPolicy(String policy) { + this.policy = policy; + if(policy != null){ + putQueryParameter("Policy", policy); + } + } + + public String getIpv6DestCidrIp() { + return this.ipv6DestCidrIp; + } + + public void setIpv6DestCidrIp(String ipv6DestCidrIp) { + this.ipv6DestCidrIp = ipv6DestCidrIp; + if(ipv6DestCidrIp != null){ + putQueryParameter("Ipv6DestCidrIp", ipv6DestCidrIp); + } + } + + public String getIpv6SourceCidrIp() { + return this.ipv6SourceCidrIp; + } + + public void setIpv6SourceCidrIp(String ipv6SourceCidrIp) { + this.ipv6SourceCidrIp = ipv6SourceCidrIp; + if(ipv6SourceCidrIp != null){ + putQueryParameter("Ipv6SourceCidrIp", ipv6SourceCidrIp); + } + } + + public String getPortRange() { + return this.portRange; + } + + public void setPortRange(String portRange) { + this.portRange = portRange; + if(portRange != null){ + putQueryParameter("PortRange", portRange); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getIpProtocol() { + return this.ipProtocol; + } + + public void setIpProtocol(String ipProtocol) { + this.ipProtocol = ipProtocol; + if(ipProtocol != null){ + putQueryParameter("IpProtocol", ipProtocol); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getSourceCidrIp() { + return this.sourceCidrIp; + } + + public void setSourceCidrIp(String sourceCidrIp) { + this.sourceCidrIp = sourceCidrIp; + if(sourceCidrIp != null){ + putQueryParameter("SourceCidrIp", sourceCidrIp); + } + } + + public String getDestGroupId() { + return this.destGroupId; + } + + public void setDestGroupId(String destGroupId) { + this.destGroupId = destGroupId; + if(destGroupId != null){ + putQueryParameter("DestGroupId", destGroupId); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getPriority() { + return this.priority; + } + + public void setPriority(String priority) { + this.priority = priority; + if(priority != null){ + putQueryParameter("Priority", priority); + } + } + + public String getDestGroupOwnerAccount() { + return this.destGroupOwnerAccount; + } + + public void setDestGroupOwnerAccount(String destGroupOwnerAccount) { + this.destGroupOwnerAccount = destGroupOwnerAccount; + if(destGroupOwnerAccount != null){ + putQueryParameter("DestGroupOwnerAccount", destGroupOwnerAccount); + } + } + + public String getDestCidrIp() { + return this.destCidrIp; + } + + public void setDestCidrIp(String destCidrIp) { + this.destCidrIp = destCidrIp; + if(destCidrIp != null){ + putQueryParameter("DestCidrIp", destCidrIp); + } + } + + public Long getDestGroupOwnerId() { + return this.destGroupOwnerId; + } + + public void setDestGroupOwnerId(Long destGroupOwnerId) { + this.destGroupOwnerId = destGroupOwnerId; + if(destGroupOwnerId != null){ + putQueryParameter("DestGroupOwnerId", destGroupOwnerId.toString()); + } + } + + public static class Permissions { + + private String policy; + + private String priority; + + private String ipProtocol; + + private String destCidrIp; + + private String ipv6DestCidrIp; + + private String destGroupId; + + private String destPrefixListId; + + private String portRange; + + private String sourceCidrIp; + + private String ipv6SourceCidrIp; + + private String sourcePortRange; + + private String destGroupOwnerAccount; + + private Long destGroupOwnerId; + + private String nicType; + + private String description; + + public String getPolicy() { + return this.policy; + } + + public void setPolicy(String policy) { + this.policy = policy; + } + + public String getPriority() { + return this.priority; + } + + public void setPriority(String priority) { + this.priority = priority; + } + + public String getIpProtocol() { + return this.ipProtocol; + } + + public void setIpProtocol(String ipProtocol) { + this.ipProtocol = ipProtocol; + } + + public String getDestCidrIp() { + return this.destCidrIp; + } + + public void setDestCidrIp(String destCidrIp) { + this.destCidrIp = destCidrIp; + } + + public String getIpv6DestCidrIp() { + return this.ipv6DestCidrIp; + } + + public void setIpv6DestCidrIp(String ipv6DestCidrIp) { + this.ipv6DestCidrIp = ipv6DestCidrIp; + } + + public String getDestGroupId() { + return this.destGroupId; + } + + public void setDestGroupId(String destGroupId) { + this.destGroupId = destGroupId; + } + + public String getDestPrefixListId() { + return this.destPrefixListId; + } + + public void setDestPrefixListId(String destPrefixListId) { + this.destPrefixListId = destPrefixListId; + } + + public String getPortRange() { + return this.portRange; + } + + public void setPortRange(String portRange) { + this.portRange = portRange; + } + + public String getSourceCidrIp() { + return this.sourceCidrIp; + } + + public void setSourceCidrIp(String sourceCidrIp) { + this.sourceCidrIp = sourceCidrIp; + } + + public String getIpv6SourceCidrIp() { + return this.ipv6SourceCidrIp; + } + + public void setIpv6SourceCidrIp(String ipv6SourceCidrIp) { + this.ipv6SourceCidrIp = ipv6SourceCidrIp; + } + + public String getSourcePortRange() { + return this.sourcePortRange; + } + + public void setSourcePortRange(String sourcePortRange) { + this.sourcePortRange = sourcePortRange; + } + + public String getDestGroupOwnerAccount() { + return this.destGroupOwnerAccount; + } + + public void setDestGroupOwnerAccount(String destGroupOwnerAccount) { + this.destGroupOwnerAccount = destGroupOwnerAccount; + } + + public Long getDestGroupOwnerId() { + return this.destGroupOwnerId; + } + + public void setDestGroupOwnerId(Long destGroupOwnerId) { + this.destGroupOwnerId = destGroupOwnerId; + } + + public String getNicType() { + return this.nicType; + } + + public void setNicType(String nicType) { + this.nicType = nicType; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + } + + @Override + public Class getResponseClass() { + return AuthorizeSecurityGroupEgressResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AuthorizeSecurityGroupEgressResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AuthorizeSecurityGroupEgressResponse.java new file mode 100644 index 0000000000..19bcacdf19 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AuthorizeSecurityGroupEgressResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.AuthorizeSecurityGroupEgressResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class AuthorizeSecurityGroupEgressResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public AuthorizeSecurityGroupEgressResponse getInstance(UnmarshallerContext context) { + return AuthorizeSecurityGroupEgressResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AuthorizeSecurityGroupRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AuthorizeSecurityGroupRequest.java new file mode 100644 index 0000000000..68d48a0469 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AuthorizeSecurityGroupRequest.java @@ -0,0 +1,500 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class AuthorizeSecurityGroupRequest extends RpcAcsRequest { + + + private String nicType; + + private Long resourceOwnerId; + + private String sourcePrefixListId; + + private String sourcePortRange; + + private String clientToken; + + private String securityGroupId; + + private String description; + + private Long sourceGroupOwnerId; + + private String sourceGroupOwnerAccount; + + private List permissions; + + private String policy; + + private String ipv6SourceCidrIp; + + private String ipv6DestCidrIp; + + private String portRange; + + private String resourceOwnerAccount; + + private String ipProtocol; + + private String ownerAccount; + + private String sourceCidrIp; + + private Long ownerId; + + private String priority; + + private String destCidrIp; + + private String sourceGroupId; + public AuthorizeSecurityGroupRequest() { + super("Ecs", "2014-05-26", "AuthorizeSecurityGroup", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getNicType() { + return this.nicType; + } + + public void setNicType(String nicType) { + this.nicType = nicType; + if(nicType != null){ + putQueryParameter("NicType", nicType); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getSourcePrefixListId() { + return this.sourcePrefixListId; + } + + public void setSourcePrefixListId(String sourcePrefixListId) { + this.sourcePrefixListId = sourcePrefixListId; + if(sourcePrefixListId != null){ + putQueryParameter("SourcePrefixListId", sourcePrefixListId); + } + } + + public String getSourcePortRange() { + return this.sourcePortRange; + } + + public void setSourcePortRange(String sourcePortRange) { + this.sourcePortRange = sourcePortRange; + if(sourcePortRange != null){ + putQueryParameter("SourcePortRange", sourcePortRange); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getSecurityGroupId() { + return this.securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + if(securityGroupId != null){ + putQueryParameter("SecurityGroupId", securityGroupId); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public Long getSourceGroupOwnerId() { + return this.sourceGroupOwnerId; + } + + public void setSourceGroupOwnerId(Long sourceGroupOwnerId) { + this.sourceGroupOwnerId = sourceGroupOwnerId; + if(sourceGroupOwnerId != null){ + putQueryParameter("SourceGroupOwnerId", sourceGroupOwnerId.toString()); + } + } + + public String getSourceGroupOwnerAccount() { + return this.sourceGroupOwnerAccount; + } + + public void setSourceGroupOwnerAccount(String sourceGroupOwnerAccount) { + this.sourceGroupOwnerAccount = sourceGroupOwnerAccount; + if(sourceGroupOwnerAccount != null){ + putQueryParameter("SourceGroupOwnerAccount", sourceGroupOwnerAccount); + } + } + + public List getPermissions() { + return this.permissions; + } + + public void setPermissions(List permissions) { + this.permissions = permissions; + if (permissions != null) { + for (int depth1 = 0; depth1 < permissions.size(); depth1++) { + if (permissions.get(depth1) != null) { + + putQueryParameter("Permissions." + (depth1 + 1) + ".Policy" , permissions.get(depth1).getPolicy()); + putQueryParameter("Permissions." + (depth1 + 1) + ".Priority" , permissions.get(depth1).getPriority()); + putQueryParameter("Permissions." + (depth1 + 1) + ".IpProtocol" , permissions.get(depth1).getIpProtocol()); + putQueryParameter("Permissions." + (depth1 + 1) + ".SourceCidrIp" , permissions.get(depth1).getSourceCidrIp()); + putQueryParameter("Permissions." + (depth1 + 1) + ".Ipv6SourceCidrIp" , permissions.get(depth1).getIpv6SourceCidrIp()); + putQueryParameter("Permissions." + (depth1 + 1) + ".SourceGroupId" , permissions.get(depth1).getSourceGroupId()); + putQueryParameter("Permissions." + (depth1 + 1) + ".SourcePrefixListId" , permissions.get(depth1).getSourcePrefixListId()); + putQueryParameter("Permissions." + (depth1 + 1) + ".PortRange" , permissions.get(depth1).getPortRange()); + putQueryParameter("Permissions." + (depth1 + 1) + ".DestCidrIp" , permissions.get(depth1).getDestCidrIp()); + putQueryParameter("Permissions." + (depth1 + 1) + ".Ipv6DestCidrIp" , permissions.get(depth1).getIpv6DestCidrIp()); + putQueryParameter("Permissions." + (depth1 + 1) + ".SourcePortRange" , permissions.get(depth1).getSourcePortRange()); + putQueryParameter("Permissions." + (depth1 + 1) + ".SourceGroupOwnerAccount" , permissions.get(depth1).getSourceGroupOwnerAccount()); + putQueryParameter("Permissions." + (depth1 + 1) + ".SourceGroupOwnerId" , permissions.get(depth1).getSourceGroupOwnerId()); + putQueryParameter("Permissions." + (depth1 + 1) + ".NicType" , permissions.get(depth1).getNicType()); + putQueryParameter("Permissions." + (depth1 + 1) + ".Description" , permissions.get(depth1).getDescription()); + } + } + } + } + + public String getPolicy() { + return this.policy; + } + + public void setPolicy(String policy) { + this.policy = policy; + if(policy != null){ + putQueryParameter("Policy", policy); + } + } + + public String getIpv6SourceCidrIp() { + return this.ipv6SourceCidrIp; + } + + public void setIpv6SourceCidrIp(String ipv6SourceCidrIp) { + this.ipv6SourceCidrIp = ipv6SourceCidrIp; + if(ipv6SourceCidrIp != null){ + putQueryParameter("Ipv6SourceCidrIp", ipv6SourceCidrIp); + } + } + + public String getIpv6DestCidrIp() { + return this.ipv6DestCidrIp; + } + + public void setIpv6DestCidrIp(String ipv6DestCidrIp) { + this.ipv6DestCidrIp = ipv6DestCidrIp; + if(ipv6DestCidrIp != null){ + putQueryParameter("Ipv6DestCidrIp", ipv6DestCidrIp); + } + } + + public String getPortRange() { + return this.portRange; + } + + public void setPortRange(String portRange) { + this.portRange = portRange; + if(portRange != null){ + putQueryParameter("PortRange", portRange); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getIpProtocol() { + return this.ipProtocol; + } + + public void setIpProtocol(String ipProtocol) { + this.ipProtocol = ipProtocol; + if(ipProtocol != null){ + putQueryParameter("IpProtocol", ipProtocol); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getSourceCidrIp() { + return this.sourceCidrIp; + } + + public void setSourceCidrIp(String sourceCidrIp) { + this.sourceCidrIp = sourceCidrIp; + if(sourceCidrIp != null){ + putQueryParameter("SourceCidrIp", sourceCidrIp); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getPriority() { + return this.priority; + } + + public void setPriority(String priority) { + this.priority = priority; + if(priority != null){ + putQueryParameter("Priority", priority); + } + } + + public String getDestCidrIp() { + return this.destCidrIp; + } + + public void setDestCidrIp(String destCidrIp) { + this.destCidrIp = destCidrIp; + if(destCidrIp != null){ + putQueryParameter("DestCidrIp", destCidrIp); + } + } + + public String getSourceGroupId() { + return this.sourceGroupId; + } + + public void setSourceGroupId(String sourceGroupId) { + this.sourceGroupId = sourceGroupId; + if(sourceGroupId != null){ + putQueryParameter("SourceGroupId", sourceGroupId); + } + } + + public static class Permissions { + + private String policy; + + private String priority; + + private String ipProtocol; + + private String sourceCidrIp; + + private String ipv6SourceCidrIp; + + private String sourceGroupId; + + private String sourcePrefixListId; + + private String portRange; + + private String destCidrIp; + + private String ipv6DestCidrIp; + + private String sourcePortRange; + + private String sourceGroupOwnerAccount; + + private Long sourceGroupOwnerId; + + private String nicType; + + private String description; + + public String getPolicy() { + return this.policy; + } + + public void setPolicy(String policy) { + this.policy = policy; + } + + public String getPriority() { + return this.priority; + } + + public void setPriority(String priority) { + this.priority = priority; + } + + public String getIpProtocol() { + return this.ipProtocol; + } + + public void setIpProtocol(String ipProtocol) { + this.ipProtocol = ipProtocol; + } + + public String getSourceCidrIp() { + return this.sourceCidrIp; + } + + public void setSourceCidrIp(String sourceCidrIp) { + this.sourceCidrIp = sourceCidrIp; + } + + public String getIpv6SourceCidrIp() { + return this.ipv6SourceCidrIp; + } + + public void setIpv6SourceCidrIp(String ipv6SourceCidrIp) { + this.ipv6SourceCidrIp = ipv6SourceCidrIp; + } + + public String getSourceGroupId() { + return this.sourceGroupId; + } + + public void setSourceGroupId(String sourceGroupId) { + this.sourceGroupId = sourceGroupId; + } + + public String getSourcePrefixListId() { + return this.sourcePrefixListId; + } + + public void setSourcePrefixListId(String sourcePrefixListId) { + this.sourcePrefixListId = sourcePrefixListId; + } + + public String getPortRange() { + return this.portRange; + } + + public void setPortRange(String portRange) { + this.portRange = portRange; + } + + public String getDestCidrIp() { + return this.destCidrIp; + } + + public void setDestCidrIp(String destCidrIp) { + this.destCidrIp = destCidrIp; + } + + public String getIpv6DestCidrIp() { + return this.ipv6DestCidrIp; + } + + public void setIpv6DestCidrIp(String ipv6DestCidrIp) { + this.ipv6DestCidrIp = ipv6DestCidrIp; + } + + public String getSourcePortRange() { + return this.sourcePortRange; + } + + public void setSourcePortRange(String sourcePortRange) { + this.sourcePortRange = sourcePortRange; + } + + public String getSourceGroupOwnerAccount() { + return this.sourceGroupOwnerAccount; + } + + public void setSourceGroupOwnerAccount(String sourceGroupOwnerAccount) { + this.sourceGroupOwnerAccount = sourceGroupOwnerAccount; + } + + public Long getSourceGroupOwnerId() { + return this.sourceGroupOwnerId; + } + + public void setSourceGroupOwnerId(Long sourceGroupOwnerId) { + this.sourceGroupOwnerId = sourceGroupOwnerId; + } + + public String getNicType() { + return this.nicType; + } + + public void setNicType(String nicType) { + this.nicType = nicType; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + } + + @Override + public Class getResponseClass() { + return AuthorizeSecurityGroupResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AuthorizeSecurityGroupResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AuthorizeSecurityGroupResponse.java new file mode 100644 index 0000000000..7fdc72f485 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AuthorizeSecurityGroupResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.AuthorizeSecurityGroupResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class AuthorizeSecurityGroupResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public AuthorizeSecurityGroupResponse getInstance(UnmarshallerContext context) { + return AuthorizeSecurityGroupResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelAutoSnapshotPolicyRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelAutoSnapshotPolicyRequest.java new file mode 100644 index 0000000000..1b993c7cc0 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelAutoSnapshotPolicyRequest.java @@ -0,0 +1,93 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CancelAutoSnapshotPolicyRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String diskIds; + + private String resourceOwnerAccount; + + private Long ownerId; + public CancelAutoSnapshotPolicyRequest() { + super("Ecs", "2014-05-26", "CancelAutoSnapshotPolicy", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getDiskIds() { + return this.diskIds; + } + + public void setDiskIds(String diskIds) { + this.diskIds = diskIds; + if(diskIds != null){ + putQueryParameter("diskIds", diskIds); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return CancelAutoSnapshotPolicyResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelAutoSnapshotPolicyResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelAutoSnapshotPolicyResponse.java new file mode 100644 index 0000000000..f4b69cd9a9 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelAutoSnapshotPolicyResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CancelAutoSnapshotPolicyResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CancelAutoSnapshotPolicyResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public CancelAutoSnapshotPolicyResponse getInstance(UnmarshallerContext context) { + return CancelAutoSnapshotPolicyResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelCopyImageRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelCopyImageRequest.java new file mode 100644 index 0000000000..4556785a5f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelCopyImageRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CancelCopyImageRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String imageId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public CancelCopyImageRequest() { + super("Ecs", "2014-05-26", "CancelCopyImage", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getImageId() { + return this.imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + if(imageId != null){ + putQueryParameter("ImageId", imageId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return CancelCopyImageResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelCopyImageResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelCopyImageResponse.java new file mode 100644 index 0000000000..4868662f32 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelCopyImageResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CancelCopyImageResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CancelCopyImageResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public CancelCopyImageResponse getInstance(UnmarshallerContext context) { + return CancelCopyImageResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelImagePipelineExecutionRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelImagePipelineExecutionRequest.java new file mode 100644 index 0000000000..14fc077cb4 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelImagePipelineExecutionRequest.java @@ -0,0 +1,146 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CancelImagePipelineExecutionRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String executionId; + + private List templateTags; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public CancelImagePipelineExecutionRequest() { + super("Ecs", "2014-05-26", "CancelImagePipelineExecution", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getExecutionId() { + return this.executionId; + } + + public void setExecutionId(String executionId) { + this.executionId = executionId; + if(executionId != null){ + putQueryParameter("ExecutionId", executionId); + } + } + + public List getTemplateTags() { + return this.templateTags; + } + + public void setTemplateTags(List templateTags) { + this.templateTags = templateTags; + if (templateTags != null) { + for (int depth1 = 0; depth1 < templateTags.size(); depth1++) { + putQueryParameter("TemplateTag." + (depth1 + 1) + ".Key" , templateTags.get(depth1).getKey()); + putQueryParameter("TemplateTag." + (depth1 + 1) + ".Value" , templateTags.get(depth1).getValue()); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public static class TemplateTag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return CancelImagePipelineExecutionResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelImagePipelineExecutionResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelImagePipelineExecutionResponse.java new file mode 100644 index 0000000000..80de5341bf --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelImagePipelineExecutionResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CancelImagePipelineExecutionResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CancelImagePipelineExecutionResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public CancelImagePipelineExecutionResponse getInstance(UnmarshallerContext context) { + return CancelImagePipelineExecutionResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelPhysicalConnectionRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelPhysicalConnectionRequest.java new file mode 100644 index 0000000000..4f04d3fd28 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelPhysicalConnectionRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CancelPhysicalConnectionRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private String userCidr; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String physicalConnectionId; + public CancelPhysicalConnectionRequest() { + super("Ecs", "2014-05-26", "CancelPhysicalConnection", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getUserCidr() { + return this.userCidr; + } + + public void setUserCidr(String userCidr) { + this.userCidr = userCidr; + if(userCidr != null){ + putQueryParameter("UserCidr", userCidr); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getPhysicalConnectionId() { + return this.physicalConnectionId; + } + + public void setPhysicalConnectionId(String physicalConnectionId) { + this.physicalConnectionId = physicalConnectionId; + if(physicalConnectionId != null){ + putQueryParameter("PhysicalConnectionId", physicalConnectionId); + } + } + + @Override + public Class getResponseClass() { + return CancelPhysicalConnectionResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelPhysicalConnectionResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelPhysicalConnectionResponse.java new file mode 100644 index 0000000000..2016c5e56e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelPhysicalConnectionResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CancelPhysicalConnectionResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CancelPhysicalConnectionResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public CancelPhysicalConnectionResponse getInstance(UnmarshallerContext context) { + return CancelPhysicalConnectionResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelSimulatedSystemEventsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelSimulatedSystemEventsRequest.java new file mode 100644 index 0000000000..09f47ba225 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelSimulatedSystemEventsRequest.java @@ -0,0 +1,109 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CancelSimulatedSystemEventsRequest extends RpcAcsRequest { + + + private List eventIds; + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public CancelSimulatedSystemEventsRequest() { + super("Ecs", "2014-05-26", "CancelSimulatedSystemEvents", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public List getEventIds() { + return this.eventIds; + } + + public void setEventIds(List eventIds) { + this.eventIds = eventIds; + if (eventIds != null) { + for (int i = 0; i < eventIds.size(); i++) { + putQueryParameter("EventId." + (i + 1) , eventIds.get(i)); + } + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return CancelSimulatedSystemEventsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelSimulatedSystemEventsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelSimulatedSystemEventsResponse.java new file mode 100644 index 0000000000..3fb43b8451 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelSimulatedSystemEventsResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CancelSimulatedSystemEventsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CancelSimulatedSystemEventsResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public CancelSimulatedSystemEventsResponse getInstance(UnmarshallerContext context) { + return CancelSimulatedSystemEventsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelTaskRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelTaskRequest.java new file mode 100644 index 0000000000..ea4898574d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelTaskRequest.java @@ -0,0 +1,93 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CancelTaskRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String taskId; + + private String resourceOwnerAccount; + + private Long ownerId; + public CancelTaskRequest() { + super("Ecs", "2014-05-26", "CancelTask", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getTaskId() { + return this.taskId; + } + + public void setTaskId(String taskId) { + this.taskId = taskId; + if(taskId != null){ + putQueryParameter("TaskId", taskId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return CancelTaskResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelTaskResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelTaskResponse.java new file mode 100644 index 0000000000..88c9b6d352 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CancelTaskResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CancelTaskResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CancelTaskResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public CancelTaskResponse getInstance(UnmarshallerContext context) { + return CancelTaskResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ConnectRouterInterfaceRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ConnectRouterInterfaceRequest.java new file mode 100644 index 0000000000..9b91be76ca --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ConnectRouterInterfaceRequest.java @@ -0,0 +1,93 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ConnectRouterInterfaceRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private Long ownerId; + + private String routerInterfaceId; + public ConnectRouterInterfaceRequest() { + super("Ecs", "2014-05-26", "ConnectRouterInterface", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getRouterInterfaceId() { + return this.routerInterfaceId; + } + + public void setRouterInterfaceId(String routerInterfaceId) { + this.routerInterfaceId = routerInterfaceId; + if(routerInterfaceId != null){ + putQueryParameter("RouterInterfaceId", routerInterfaceId); + } + } + + @Override + public Class getResponseClass() { + return ConnectRouterInterfaceResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ConnectRouterInterfaceResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ConnectRouterInterfaceResponse.java new file mode 100644 index 0000000000..1baaddb217 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ConnectRouterInterfaceResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ConnectRouterInterfaceResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ConnectRouterInterfaceResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ConnectRouterInterfaceResponse getInstance(UnmarshallerContext context) { + return ConnectRouterInterfaceResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ConvertNatPublicIpToEipRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ConvertNatPublicIpToEipRequest.java new file mode 100644 index 0000000000..5102ed2073 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ConvertNatPublicIpToEipRequest.java @@ -0,0 +1,93 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ConvertNatPublicIpToEipRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private Long ownerId; + + private String instanceId; + public ConvertNatPublicIpToEipRequest() { + super("Ecs", "2014-05-26", "ConvertNatPublicIpToEip", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + @Override + public Class getResponseClass() { + return ConvertNatPublicIpToEipResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ConvertNatPublicIpToEipResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ConvertNatPublicIpToEipResponse.java new file mode 100644 index 0000000000..73b5e4e0a0 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ConvertNatPublicIpToEipResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ConvertNatPublicIpToEipResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ConvertNatPublicIpToEipResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ConvertNatPublicIpToEipResponse getInstance(UnmarshallerContext context) { + return ConvertNatPublicIpToEipResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CopyImageRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CopyImageRequest.java new file mode 100644 index 0000000000..3c88f14f39 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CopyImageRequest.java @@ -0,0 +1,237 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CopyImageRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String imageId; + + private String encryptAlgorithm; + + private String destinationRegionId; + + private String resourceGroupId; + + private List tags; + + private String resourceOwnerAccount; + + private String destinationImageName; + + private String ownerAccount; + + private Long ownerId; + + private Boolean encrypted; + + private String kMSKeyId; + + private String destinationDescription; + public CopyImageRequest() { + super("Ecs", "2014-05-26", "CopyImage", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getImageId() { + return this.imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + if(imageId != null){ + putQueryParameter("ImageId", imageId); + } + } + + public String getEncryptAlgorithm() { + return this.encryptAlgorithm; + } + + public void setEncryptAlgorithm(String encryptAlgorithm) { + this.encryptAlgorithm = encryptAlgorithm; + if(encryptAlgorithm != null){ + putQueryParameter("EncryptAlgorithm", encryptAlgorithm); + } + } + + public String getDestinationRegionId() { + return this.destinationRegionId; + } + + public void setDestinationRegionId(String destinationRegionId) { + this.destinationRegionId = destinationRegionId; + if(destinationRegionId != null){ + putQueryParameter("DestinationRegionId", destinationRegionId); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getDestinationImageName() { + return this.destinationImageName; + } + + public void setDestinationImageName(String destinationImageName) { + this.destinationImageName = destinationImageName; + if(destinationImageName != null){ + putQueryParameter("DestinationImageName", destinationImageName); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public Boolean getEncrypted() { + return this.encrypted; + } + + public void setEncrypted(Boolean encrypted) { + this.encrypted = encrypted; + if(encrypted != null){ + putQueryParameter("Encrypted", encrypted.toString()); + } + } + + public String getKMSKeyId() { + return this.kMSKeyId; + } + + public void setKMSKeyId(String kMSKeyId) { + this.kMSKeyId = kMSKeyId; + if(kMSKeyId != null){ + putQueryParameter("KMSKeyId", kMSKeyId); + } + } + + public String getDestinationDescription() { + return this.destinationDescription; + } + + public void setDestinationDescription(String destinationDescription) { + this.destinationDescription = destinationDescription; + if(destinationDescription != null){ + putQueryParameter("DestinationDescription", destinationDescription); + } + } + + public static class Tag { + + private String value; + + private String key; + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + } + + @Override + public Class getResponseClass() { + return CopyImageResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CopyImageResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CopyImageResponse.java new file mode 100644 index 0000000000..a06a9e2d05 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CopyImageResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CopyImageResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CopyImageResponse extends AcsResponse { + + private String imageId; + + private String requestId; + + public String getImageId() { + return this.imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public CopyImageResponse getInstance(UnmarshallerContext context) { + return CopyImageResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CopySnapshotRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CopySnapshotRequest.java new file mode 100644 index 0000000000..0b29396761 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CopySnapshotRequest.java @@ -0,0 +1,274 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CopySnapshotRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String snapshotId; + + private String destinationRegionId; + + private String resourceGroupId; + + private List tags; + + private List arns; + + private String resourceOwnerAccount; + + private Long ownerId; + + private String destinationSnapshotName; + + private String destinationSnapshotDescription; + + private Boolean encrypted; + + private Integer retentionDays; + + private String kMSKeyId; + public CopySnapshotRequest() { + super("Ecs", "2014-05-26", "CopySnapshot", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getSnapshotId() { + return this.snapshotId; + } + + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; + if(snapshotId != null){ + putQueryParameter("SnapshotId", snapshotId); + } + } + + public String getDestinationRegionId() { + return this.destinationRegionId; + } + + public void setDestinationRegionId(String destinationRegionId) { + this.destinationRegionId = destinationRegionId; + if(destinationRegionId != null){ + putQueryParameter("DestinationRegionId", destinationRegionId); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public List getArns() { + return this.arns; + } + + public void setArns(List arns) { + this.arns = arns; + if (arns != null) { + for (int depth1 = 0; depth1 < arns.size(); depth1++) { + putQueryParameter("Arn." + (depth1 + 1) + ".RoleType" , arns.get(depth1).getRoleType()); + putQueryParameter("Arn." + (depth1 + 1) + ".Rolearn" , arns.get(depth1).getRolearn()); + putQueryParameter("Arn." + (depth1 + 1) + ".AssumeRoleFor" , arns.get(depth1).getAssumeRoleFor()); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getDestinationSnapshotName() { + return this.destinationSnapshotName; + } + + public void setDestinationSnapshotName(String destinationSnapshotName) { + this.destinationSnapshotName = destinationSnapshotName; + if(destinationSnapshotName != null){ + putQueryParameter("DestinationSnapshotName", destinationSnapshotName); + } + } + + public String getDestinationSnapshotDescription() { + return this.destinationSnapshotDescription; + } + + public void setDestinationSnapshotDescription(String destinationSnapshotDescription) { + this.destinationSnapshotDescription = destinationSnapshotDescription; + if(destinationSnapshotDescription != null){ + putQueryParameter("DestinationSnapshotDescription", destinationSnapshotDescription); + } + } + + public Boolean getEncrypted() { + return this.encrypted; + } + + public void setEncrypted(Boolean encrypted) { + this.encrypted = encrypted; + if(encrypted != null){ + putQueryParameter("Encrypted", encrypted.toString()); + } + } + + public Integer getRetentionDays() { + return this.retentionDays; + } + + public void setRetentionDays(Integer retentionDays) { + this.retentionDays = retentionDays; + if(retentionDays != null){ + putQueryParameter("RetentionDays", retentionDays.toString()); + } + } + + public String getKMSKeyId() { + return this.kMSKeyId; + } + + public void setKMSKeyId(String kMSKeyId) { + this.kMSKeyId = kMSKeyId; + if(kMSKeyId != null){ + putQueryParameter("KMSKeyId", kMSKeyId); + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + public static class Arn { + + private String roleType; + + private String rolearn; + + private Long assumeRoleFor; + + public String getRoleType() { + return this.roleType; + } + + public void setRoleType(String roleType) { + this.roleType = roleType; + } + + public String getRolearn() { + return this.rolearn; + } + + public void setRolearn(String rolearn) { + this.rolearn = rolearn; + } + + public Long getAssumeRoleFor() { + return this.assumeRoleFor; + } + + public void setAssumeRoleFor(Long assumeRoleFor) { + this.assumeRoleFor = assumeRoleFor; + } + } + + @Override + public Class getResponseClass() { + return CopySnapshotResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CopySnapshotResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CopySnapshotResponse.java new file mode 100644 index 0000000000..f2376e72a1 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CopySnapshotResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CopySnapshotResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CopySnapshotResponse extends AcsResponse { + + private String snapshotId; + + private String requestId; + + public String getSnapshotId() { + return this.snapshotId; + } + + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public CopySnapshotResponse getInstance(UnmarshallerContext context) { + return CopySnapshotResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateActivationRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateActivationRequest.java new file mode 100644 index 0000000000..8292c30c9a --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateActivationRequest.java @@ -0,0 +1,198 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreateActivationRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String description; + + private Integer instanceCount; + + private List tags; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceName; + + private Long timeToLiveInHours; + + private String ipAddressRange; + public CreateActivationRequest() { + super("Ecs", "2014-05-26", "CreateActivation", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public Integer getInstanceCount() { + return this.instanceCount; + } + + public void setInstanceCount(Integer instanceCount) { + this.instanceCount = instanceCount; + if(instanceCount != null){ + putQueryParameter("InstanceCount", instanceCount.toString()); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceName() { + return this.instanceName; + } + + public void setInstanceName(String instanceName) { + this.instanceName = instanceName; + if(instanceName != null){ + putQueryParameter("InstanceName", instanceName); + } + } + + public Long getTimeToLiveInHours() { + return this.timeToLiveInHours; + } + + public void setTimeToLiveInHours(Long timeToLiveInHours) { + this.timeToLiveInHours = timeToLiveInHours; + if(timeToLiveInHours != null){ + putQueryParameter("TimeToLiveInHours", timeToLiveInHours.toString()); + } + } + + public String getIpAddressRange() { + return this.ipAddressRange; + } + + public void setIpAddressRange(String ipAddressRange) { + this.ipAddressRange = ipAddressRange; + if(ipAddressRange != null){ + putQueryParameter("IpAddressRange", ipAddressRange); + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return CreateActivationResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateActivationResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateActivationResponse.java new file mode 100644 index 0000000000..6714e7d55c --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateActivationResponse.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreateActivationResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateActivationResponse extends AcsResponse { + + private String requestId; + + private String activationCode; + + private String activationId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getActivationCode() { + return this.activationCode; + } + + public void setActivationCode(String activationCode) { + this.activationCode = activationCode; + } + + public String getActivationId() { + return this.activationId; + } + + public void setActivationId(String activationId) { + this.activationId = activationId; + } + + @Override + public CreateActivationResponse getInstance(UnmarshallerContext context) { + return CreateActivationResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateAutoProvisioningGroupRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateAutoProvisioningGroupRequest.java new file mode 100644 index 0000000000..77198bfe18 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateAutoProvisioningGroupRequest.java @@ -0,0 +1,1221 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreateAutoProvisioningGroupRequest extends RpcAcsRequest { + + + private List launchConfigurationDataDisks; + + private Long resourceOwnerId; + + private String launchConfigurationSystemDiskCategory; + + private String autoProvisioningGroupType; + + private String launchConfigurationSystemDiskPerformanceLevel; + + private List launchConfigurationHostNamess; + + private List launchConfigurationSecurityGroupIdss; + + private String resourceGroupId; + + private String launchConfigurationImageId; + + private String launchConfigurationResourceGroupId; + + private String launchConfigurationPassword; + + private String launchConfigurationAutoReleaseTime; + + private String payAsYouGoAllocationStrategy; + + private String defaultTargetCapacityType; + + private String launchConfigurationKeyPairName; + + private List systemDiskConfigs; + + private List dataDiskConfigs; + + private String validUntil; + + private String launchTemplateId; + + private Long ownerId; + + private Integer launchConfigurationSystemDiskSize; + + private Integer launchConfigurationInternetMaxBandwidthOut; + + private String launchConfigurationHostName; + + private String minTargetCapacity; + + private Float maxSpotPrice; + + private List launchConfigurationArns; + + private Boolean launchConfigurationPasswordInherit; + + private String clientToken; + + private String launchConfigurationSecurityGroupId; + + private String description; + + private Boolean terminateInstancesWithExpiration; + + private String launchConfigurationUserData; + + private String launchConfigurationCreditSpecification; + + private LaunchConfigurationSystemDisk launchConfigurationSystemDisk; + + private String launchConfigurationInstanceName; + + private String launchConfigurationInstanceDescription; + + private String spotAllocationStrategy; + + private Boolean terminateInstances; + + private String launchConfigurationSystemDiskName; + + private String launchConfigurationSystemDiskDescription; + + private String excessCapacityTerminationPolicy; + + private List launchTemplateConfigs; + + private String launchConfigurationRamRoleName; + + private Integer launchConfigurationInternetMaxBandwidthIn; + + private String spotInstanceInterruptionBehavior; + + private String launchConfigurationSecurityEnhancementStrategy; + + private List launchConfigurationTags; + + private String launchConfigurationDeploymentSetId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Integer spotInstancePoolsToUseCount; + + private String launchConfigurationInternetChargeType; + + private String launchTemplateVersion; + + private String launchConfigurationIoOptimized; + + private String payAsYouGoTargetCapacity; + + private Boolean hibernationOptionsConfigured; + + private String totalTargetCapacity; + + private String spotTargetCapacity; + + private String validFrom; + + private String autoProvisioningGroupName; + public CreateAutoProvisioningGroupRequest() { + super("Ecs", "2014-05-26", "CreateAutoProvisioningGroup", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public List getLaunchConfigurationDataDisks() { + return this.launchConfigurationDataDisks; + } + + public void setLaunchConfigurationDataDisks(List launchConfigurationDataDisks) { + this.launchConfigurationDataDisks = launchConfigurationDataDisks; + if (launchConfigurationDataDisks != null) { + for (int depth1 = 0; depth1 < launchConfigurationDataDisks.size(); depth1++) { + putQueryParameter("LaunchConfiguration.DataDisk." + (depth1 + 1) + ".PerformanceLevel" , launchConfigurationDataDisks.get(depth1).getPerformanceLevel()); + putQueryParameter("LaunchConfiguration.DataDisk." + (depth1 + 1) + ".KmsKeyId" , launchConfigurationDataDisks.get(depth1).getKmsKeyId()); + putQueryParameter("LaunchConfiguration.DataDisk." + (depth1 + 1) + ".Description" , launchConfigurationDataDisks.get(depth1).getDescription()); + putQueryParameter("LaunchConfiguration.DataDisk." + (depth1 + 1) + ".SnapshotId" , launchConfigurationDataDisks.get(depth1).getSnapshotId()); + putQueryParameter("LaunchConfiguration.DataDisk." + (depth1 + 1) + ".Size" , launchConfigurationDataDisks.get(depth1).getSize()); + putQueryParameter("LaunchConfiguration.DataDisk." + (depth1 + 1) + ".Device" , launchConfigurationDataDisks.get(depth1).getDevice()); + putQueryParameter("LaunchConfiguration.DataDisk." + (depth1 + 1) + ".DiskName" , launchConfigurationDataDisks.get(depth1).getDiskName()); + putQueryParameter("LaunchConfiguration.DataDisk." + (depth1 + 1) + ".Category" , launchConfigurationDataDisks.get(depth1).getCategory()); + putQueryParameter("LaunchConfiguration.DataDisk." + (depth1 + 1) + ".DeleteWithInstance" , launchConfigurationDataDisks.get(depth1).getDeleteWithInstance()); + putQueryParameter("LaunchConfiguration.DataDisk." + (depth1 + 1) + ".Encrypted" , launchConfigurationDataDisks.get(depth1).getEncrypted()); + } + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getLaunchConfigurationSystemDiskCategory() { + return this.launchConfigurationSystemDiskCategory; + } + + public void setLaunchConfigurationSystemDiskCategory(String launchConfigurationSystemDiskCategory) { + this.launchConfigurationSystemDiskCategory = launchConfigurationSystemDiskCategory; + if(launchConfigurationSystemDiskCategory != null){ + putQueryParameter("LaunchConfiguration.SystemDiskCategory", launchConfigurationSystemDiskCategory); + } + } + + public String getAutoProvisioningGroupType() { + return this.autoProvisioningGroupType; + } + + public void setAutoProvisioningGroupType(String autoProvisioningGroupType) { + this.autoProvisioningGroupType = autoProvisioningGroupType; + if(autoProvisioningGroupType != null){ + putQueryParameter("AutoProvisioningGroupType", autoProvisioningGroupType); + } + } + + public String getLaunchConfigurationSystemDiskPerformanceLevel() { + return this.launchConfigurationSystemDiskPerformanceLevel; + } + + public void setLaunchConfigurationSystemDiskPerformanceLevel(String launchConfigurationSystemDiskPerformanceLevel) { + this.launchConfigurationSystemDiskPerformanceLevel = launchConfigurationSystemDiskPerformanceLevel; + if(launchConfigurationSystemDiskPerformanceLevel != null){ + putQueryParameter("LaunchConfiguration.SystemDiskPerformanceLevel", launchConfigurationSystemDiskPerformanceLevel); + } + } + + public List getLaunchConfigurationHostNamess() { + return this.launchConfigurationHostNamess; + } + + public void setLaunchConfigurationHostNamess(List launchConfigurationHostNamess) { + this.launchConfigurationHostNamess = launchConfigurationHostNamess; + if (launchConfigurationHostNamess != null) { + for (int i = 0; i < launchConfigurationHostNamess.size(); i++) { + putQueryParameter("LaunchConfiguration.HostNames." + (i + 1) , launchConfigurationHostNamess.get(i)); + } + } + } + + public List getLaunchConfigurationSecurityGroupIdss() { + return this.launchConfigurationSecurityGroupIdss; + } + + public void setLaunchConfigurationSecurityGroupIdss(List launchConfigurationSecurityGroupIdss) { + this.launchConfigurationSecurityGroupIdss = launchConfigurationSecurityGroupIdss; + if (launchConfigurationSecurityGroupIdss != null) { + for (int i = 0; i < launchConfigurationSecurityGroupIdss.size(); i++) { + putQueryParameter("LaunchConfiguration.SecurityGroupIds." + (i + 1) , launchConfigurationSecurityGroupIdss.get(i)); + } + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public String getLaunchConfigurationImageId() { + return this.launchConfigurationImageId; + } + + public void setLaunchConfigurationImageId(String launchConfigurationImageId) { + this.launchConfigurationImageId = launchConfigurationImageId; + if(launchConfigurationImageId != null){ + putQueryParameter("LaunchConfiguration.ImageId", launchConfigurationImageId); + } + } + + public String getLaunchConfigurationResourceGroupId() { + return this.launchConfigurationResourceGroupId; + } + + public void setLaunchConfigurationResourceGroupId(String launchConfigurationResourceGroupId) { + this.launchConfigurationResourceGroupId = launchConfigurationResourceGroupId; + if(launchConfigurationResourceGroupId != null){ + putQueryParameter("LaunchConfiguration.ResourceGroupId", launchConfigurationResourceGroupId); + } + } + + public String getLaunchConfigurationPassword() { + return this.launchConfigurationPassword; + } + + public void setLaunchConfigurationPassword(String launchConfigurationPassword) { + this.launchConfigurationPassword = launchConfigurationPassword; + if(launchConfigurationPassword != null){ + putQueryParameter("LaunchConfiguration.Password", launchConfigurationPassword); + } + } + + public String getLaunchConfigurationAutoReleaseTime() { + return this.launchConfigurationAutoReleaseTime; + } + + public void setLaunchConfigurationAutoReleaseTime(String launchConfigurationAutoReleaseTime) { + this.launchConfigurationAutoReleaseTime = launchConfigurationAutoReleaseTime; + if(launchConfigurationAutoReleaseTime != null){ + putQueryParameter("LaunchConfiguration.AutoReleaseTime", launchConfigurationAutoReleaseTime); + } + } + + public String getPayAsYouGoAllocationStrategy() { + return this.payAsYouGoAllocationStrategy; + } + + public void setPayAsYouGoAllocationStrategy(String payAsYouGoAllocationStrategy) { + this.payAsYouGoAllocationStrategy = payAsYouGoAllocationStrategy; + if(payAsYouGoAllocationStrategy != null){ + putQueryParameter("PayAsYouGoAllocationStrategy", payAsYouGoAllocationStrategy); + } + } + + public String getDefaultTargetCapacityType() { + return this.defaultTargetCapacityType; + } + + public void setDefaultTargetCapacityType(String defaultTargetCapacityType) { + this.defaultTargetCapacityType = defaultTargetCapacityType; + if(defaultTargetCapacityType != null){ + putQueryParameter("DefaultTargetCapacityType", defaultTargetCapacityType); + } + } + + public String getLaunchConfigurationKeyPairName() { + return this.launchConfigurationKeyPairName; + } + + public void setLaunchConfigurationKeyPairName(String launchConfigurationKeyPairName) { + this.launchConfigurationKeyPairName = launchConfigurationKeyPairName; + if(launchConfigurationKeyPairName != null){ + putQueryParameter("LaunchConfiguration.KeyPairName", launchConfigurationKeyPairName); + } + } + + public List getSystemDiskConfigs() { + return this.systemDiskConfigs; + } + + public void setSystemDiskConfigs(List systemDiskConfigs) { + this.systemDiskConfigs = systemDiskConfigs; + if (systemDiskConfigs != null) { + for (int depth1 = 0; depth1 < systemDiskConfigs.size(); depth1++) { + putQueryParameter("SystemDiskConfig." + (depth1 + 1) + ".DiskCategory" , systemDiskConfigs.get(depth1).getDiskCategory()); + } + } + } + + public List getDataDiskConfigs() { + return this.dataDiskConfigs; + } + + public void setDataDiskConfigs(List dataDiskConfigs) { + this.dataDiskConfigs = dataDiskConfigs; + if (dataDiskConfigs != null) { + for (int depth1 = 0; depth1 < dataDiskConfigs.size(); depth1++) { + putQueryParameter("DataDiskConfig." + (depth1 + 1) + ".DiskCategory" , dataDiskConfigs.get(depth1).getDiskCategory()); + } + } + } + + public String getValidUntil() { + return this.validUntil; + } + + public void setValidUntil(String validUntil) { + this.validUntil = validUntil; + if(validUntil != null){ + putQueryParameter("ValidUntil", validUntil); + } + } + + public String getLaunchTemplateId() { + return this.launchTemplateId; + } + + public void setLaunchTemplateId(String launchTemplateId) { + this.launchTemplateId = launchTemplateId; + if(launchTemplateId != null){ + putQueryParameter("LaunchTemplateId", launchTemplateId); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public Integer getLaunchConfigurationSystemDiskSize() { + return this.launchConfigurationSystemDiskSize; + } + + public void setLaunchConfigurationSystemDiskSize(Integer launchConfigurationSystemDiskSize) { + this.launchConfigurationSystemDiskSize = launchConfigurationSystemDiskSize; + if(launchConfigurationSystemDiskSize != null){ + putQueryParameter("LaunchConfiguration.SystemDiskSize", launchConfigurationSystemDiskSize.toString()); + } + } + + public Integer getLaunchConfigurationInternetMaxBandwidthOut() { + return this.launchConfigurationInternetMaxBandwidthOut; + } + + public void setLaunchConfigurationInternetMaxBandwidthOut(Integer launchConfigurationInternetMaxBandwidthOut) { + this.launchConfigurationInternetMaxBandwidthOut = launchConfigurationInternetMaxBandwidthOut; + if(launchConfigurationInternetMaxBandwidthOut != null){ + putQueryParameter("LaunchConfiguration.InternetMaxBandwidthOut", launchConfigurationInternetMaxBandwidthOut.toString()); + } + } + + public String getLaunchConfigurationHostName() { + return this.launchConfigurationHostName; + } + + public void setLaunchConfigurationHostName(String launchConfigurationHostName) { + this.launchConfigurationHostName = launchConfigurationHostName; + if(launchConfigurationHostName != null){ + putQueryParameter("LaunchConfiguration.HostName", launchConfigurationHostName); + } + } + + public String getMinTargetCapacity() { + return this.minTargetCapacity; + } + + public void setMinTargetCapacity(String minTargetCapacity) { + this.minTargetCapacity = minTargetCapacity; + if(minTargetCapacity != null){ + putQueryParameter("MinTargetCapacity", minTargetCapacity); + } + } + + public Float getMaxSpotPrice() { + return this.maxSpotPrice; + } + + public void setMaxSpotPrice(Float maxSpotPrice) { + this.maxSpotPrice = maxSpotPrice; + if(maxSpotPrice != null){ + putQueryParameter("MaxSpotPrice", maxSpotPrice.toString()); + } + } + + public List getLaunchConfigurationArns() { + return this.launchConfigurationArns; + } + + public void setLaunchConfigurationArns(List launchConfigurationArns) { + this.launchConfigurationArns = launchConfigurationArns; + if (launchConfigurationArns != null) { + for (int depth1 = 0; depth1 < launchConfigurationArns.size(); depth1++) { + putQueryParameter("LaunchConfiguration.Arn." + (depth1 + 1) + ".Rolearn" , launchConfigurationArns.get(depth1).getRolearn()); + putQueryParameter("LaunchConfiguration.Arn." + (depth1 + 1) + ".RoleType" , launchConfigurationArns.get(depth1).getRoleType()); + putQueryParameter("LaunchConfiguration.Arn." + (depth1 + 1) + ".AssumeRoleFor" , launchConfigurationArns.get(depth1).getAssumeRoleFor()); + } + } + } + + public Boolean getLaunchConfigurationPasswordInherit() { + return this.launchConfigurationPasswordInherit; + } + + public void setLaunchConfigurationPasswordInherit(Boolean launchConfigurationPasswordInherit) { + this.launchConfigurationPasswordInherit = launchConfigurationPasswordInherit; + if(launchConfigurationPasswordInherit != null){ + putQueryParameter("LaunchConfiguration.PasswordInherit", launchConfigurationPasswordInherit.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getLaunchConfigurationSecurityGroupId() { + return this.launchConfigurationSecurityGroupId; + } + + public void setLaunchConfigurationSecurityGroupId(String launchConfigurationSecurityGroupId) { + this.launchConfigurationSecurityGroupId = launchConfigurationSecurityGroupId; + if(launchConfigurationSecurityGroupId != null){ + putQueryParameter("LaunchConfiguration.SecurityGroupId", launchConfigurationSecurityGroupId); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public Boolean getTerminateInstancesWithExpiration() { + return this.terminateInstancesWithExpiration; + } + + public void setTerminateInstancesWithExpiration(Boolean terminateInstancesWithExpiration) { + this.terminateInstancesWithExpiration = terminateInstancesWithExpiration; + if(terminateInstancesWithExpiration != null){ + putQueryParameter("TerminateInstancesWithExpiration", terminateInstancesWithExpiration.toString()); + } + } + + public String getLaunchConfigurationUserData() { + return this.launchConfigurationUserData; + } + + public void setLaunchConfigurationUserData(String launchConfigurationUserData) { + this.launchConfigurationUserData = launchConfigurationUserData; + if(launchConfigurationUserData != null){ + putQueryParameter("LaunchConfiguration.UserData", launchConfigurationUserData); + } + } + + public String getLaunchConfigurationCreditSpecification() { + return this.launchConfigurationCreditSpecification; + } + + public void setLaunchConfigurationCreditSpecification(String launchConfigurationCreditSpecification) { + this.launchConfigurationCreditSpecification = launchConfigurationCreditSpecification; + if(launchConfigurationCreditSpecification != null){ + putQueryParameter("LaunchConfiguration.CreditSpecification", launchConfigurationCreditSpecification); + } + } + + public LaunchConfigurationSystemDisk getLaunchConfigurationSystemDisk() { + return this.launchConfigurationSystemDisk; + } + + public void setLaunchConfigurationSystemDisk(LaunchConfigurationSystemDisk launchConfigurationSystemDisk) { + this.launchConfigurationSystemDisk = launchConfigurationSystemDisk; + if (launchConfigurationSystemDisk != null) { + + putQueryParameter("LaunchConfiguration.SystemDisk.Encrypted" , launchConfigurationSystemDisk.getEncrypted()); + putQueryParameter("LaunchConfiguration.SystemDisk.KMSKeyId" , launchConfigurationSystemDisk.getKMSKeyId()); + putQueryParameter("LaunchConfiguration.SystemDisk.EncryptAlgorithm" , launchConfigurationSystemDisk.getEncryptAlgorithm()); + } + } + + public String getLaunchConfigurationInstanceName() { + return this.launchConfigurationInstanceName; + } + + public void setLaunchConfigurationInstanceName(String launchConfigurationInstanceName) { + this.launchConfigurationInstanceName = launchConfigurationInstanceName; + if(launchConfigurationInstanceName != null){ + putQueryParameter("LaunchConfiguration.InstanceName", launchConfigurationInstanceName); + } + } + + public String getLaunchConfigurationInstanceDescription() { + return this.launchConfigurationInstanceDescription; + } + + public void setLaunchConfigurationInstanceDescription(String launchConfigurationInstanceDescription) { + this.launchConfigurationInstanceDescription = launchConfigurationInstanceDescription; + if(launchConfigurationInstanceDescription != null){ + putQueryParameter("LaunchConfiguration.InstanceDescription", launchConfigurationInstanceDescription); + } + } + + public String getSpotAllocationStrategy() { + return this.spotAllocationStrategy; + } + + public void setSpotAllocationStrategy(String spotAllocationStrategy) { + this.spotAllocationStrategy = spotAllocationStrategy; + if(spotAllocationStrategy != null){ + putQueryParameter("SpotAllocationStrategy", spotAllocationStrategy); + } + } + + public Boolean getTerminateInstances() { + return this.terminateInstances; + } + + public void setTerminateInstances(Boolean terminateInstances) { + this.terminateInstances = terminateInstances; + if(terminateInstances != null){ + putQueryParameter("TerminateInstances", terminateInstances.toString()); + } + } + + public String getLaunchConfigurationSystemDiskName() { + return this.launchConfigurationSystemDiskName; + } + + public void setLaunchConfigurationSystemDiskName(String launchConfigurationSystemDiskName) { + this.launchConfigurationSystemDiskName = launchConfigurationSystemDiskName; + if(launchConfigurationSystemDiskName != null){ + putQueryParameter("LaunchConfiguration.SystemDiskName", launchConfigurationSystemDiskName); + } + } + + public String getLaunchConfigurationSystemDiskDescription() { + return this.launchConfigurationSystemDiskDescription; + } + + public void setLaunchConfigurationSystemDiskDescription(String launchConfigurationSystemDiskDescription) { + this.launchConfigurationSystemDiskDescription = launchConfigurationSystemDiskDescription; + if(launchConfigurationSystemDiskDescription != null){ + putQueryParameter("LaunchConfiguration.SystemDiskDescription", launchConfigurationSystemDiskDescription); + } + } + + public String getExcessCapacityTerminationPolicy() { + return this.excessCapacityTerminationPolicy; + } + + public void setExcessCapacityTerminationPolicy(String excessCapacityTerminationPolicy) { + this.excessCapacityTerminationPolicy = excessCapacityTerminationPolicy; + if(excessCapacityTerminationPolicy != null){ + putQueryParameter("ExcessCapacityTerminationPolicy", excessCapacityTerminationPolicy); + } + } + + public List getLaunchTemplateConfigs() { + return this.launchTemplateConfigs; + } + + public void setLaunchTemplateConfigs(List launchTemplateConfigs) { + this.launchTemplateConfigs = launchTemplateConfigs; + if (launchTemplateConfigs != null) { + for (int depth1 = 0; depth1 < launchTemplateConfigs.size(); depth1++) { + putQueryParameter("LaunchTemplateConfig." + (depth1 + 1) + ".VSwitchId" , launchTemplateConfigs.get(depth1).getVSwitchId()); + putQueryParameter("LaunchTemplateConfig." + (depth1 + 1) + ".MaxPrice" , launchTemplateConfigs.get(depth1).getMaxPrice()); + putQueryParameter("LaunchTemplateConfig." + (depth1 + 1) + ".Priority" , launchTemplateConfigs.get(depth1).getPriority()); + putQueryParameter("LaunchTemplateConfig." + (depth1 + 1) + ".InstanceType" , launchTemplateConfigs.get(depth1).getInstanceType()); + putQueryParameter("LaunchTemplateConfig." + (depth1 + 1) + ".WeightedCapacity" , launchTemplateConfigs.get(depth1).getWeightedCapacity()); + putQueryParameter("LaunchTemplateConfig." + (depth1 + 1) + ".MaxQuantity" , launchTemplateConfigs.get(depth1).getMaxQuantity()); + if (launchTemplateConfigs.get(depth1).getCoress() != null) { + for (int i = 0; i < launchTemplateConfigs.get(depth1).getCoress().size(); i++) { + putQueryParameter("LaunchTemplateConfig." + (depth1 + 1) + ".Cores." + (i + 1) , launchTemplateConfigs.get(depth1).getCoress().get(i)); + } + } + if (launchTemplateConfigs.get(depth1).getMemoriess() != null) { + for (int i = 0; i < launchTemplateConfigs.get(depth1).getMemoriess().size(); i++) { + putQueryParameter("LaunchTemplateConfig." + (depth1 + 1) + ".Memories." + (i + 1) , launchTemplateConfigs.get(depth1).getMemoriess().get(i)); + } + } + putQueryParameter("LaunchTemplateConfig." + (depth1 + 1) + ".InstanceFamilyLevel" , launchTemplateConfigs.get(depth1).getInstanceFamilyLevel()); + if (launchTemplateConfigs.get(depth1).getExcludedInstanceTypess() != null) { + for (int i = 0; i < launchTemplateConfigs.get(depth1).getExcludedInstanceTypess().size(); i++) { + putQueryParameter("LaunchTemplateConfig." + (depth1 + 1) + ".ExcludedInstanceTypes." + (i + 1) , launchTemplateConfigs.get(depth1).getExcludedInstanceTypess().get(i)); + } + } + if (launchTemplateConfigs.get(depth1).getArchitecturess() != null) { + for (int i = 0; i < launchTemplateConfigs.get(depth1).getArchitecturess().size(); i++) { + putQueryParameter("LaunchTemplateConfig." + (depth1 + 1) + ".Architectures." + (i + 1) , launchTemplateConfigs.get(depth1).getArchitecturess().get(i)); + } + } + putQueryParameter("LaunchTemplateConfig." + (depth1 + 1) + ".BurstablePerformance" , launchTemplateConfigs.get(depth1).getBurstablePerformance()); + } + } + } + + public String getLaunchConfigurationRamRoleName() { + return this.launchConfigurationRamRoleName; + } + + public void setLaunchConfigurationRamRoleName(String launchConfigurationRamRoleName) { + this.launchConfigurationRamRoleName = launchConfigurationRamRoleName; + if(launchConfigurationRamRoleName != null){ + putQueryParameter("LaunchConfiguration.RamRoleName", launchConfigurationRamRoleName); + } + } + + public Integer getLaunchConfigurationInternetMaxBandwidthIn() { + return this.launchConfigurationInternetMaxBandwidthIn; + } + + public void setLaunchConfigurationInternetMaxBandwidthIn(Integer launchConfigurationInternetMaxBandwidthIn) { + this.launchConfigurationInternetMaxBandwidthIn = launchConfigurationInternetMaxBandwidthIn; + if(launchConfigurationInternetMaxBandwidthIn != null){ + putQueryParameter("LaunchConfiguration.InternetMaxBandwidthIn", launchConfigurationInternetMaxBandwidthIn.toString()); + } + } + + public String getSpotInstanceInterruptionBehavior() { + return this.spotInstanceInterruptionBehavior; + } + + public void setSpotInstanceInterruptionBehavior(String spotInstanceInterruptionBehavior) { + this.spotInstanceInterruptionBehavior = spotInstanceInterruptionBehavior; + if(spotInstanceInterruptionBehavior != null){ + putQueryParameter("SpotInstanceInterruptionBehavior", spotInstanceInterruptionBehavior); + } + } + + public String getLaunchConfigurationSecurityEnhancementStrategy() { + return this.launchConfigurationSecurityEnhancementStrategy; + } + + public void setLaunchConfigurationSecurityEnhancementStrategy(String launchConfigurationSecurityEnhancementStrategy) { + this.launchConfigurationSecurityEnhancementStrategy = launchConfigurationSecurityEnhancementStrategy; + if(launchConfigurationSecurityEnhancementStrategy != null){ + putQueryParameter("LaunchConfiguration.SecurityEnhancementStrategy", launchConfigurationSecurityEnhancementStrategy); + } + } + + public List getLaunchConfigurationTags() { + return this.launchConfigurationTags; + } + + public void setLaunchConfigurationTags(List launchConfigurationTags) { + this.launchConfigurationTags = launchConfigurationTags; + if (launchConfigurationTags != null) { + for (int depth1 = 0; depth1 < launchConfigurationTags.size(); depth1++) { + putQueryParameter("LaunchConfiguration.Tag." + (depth1 + 1) + ".Key" , launchConfigurationTags.get(depth1).getKey()); + putQueryParameter("LaunchConfiguration.Tag." + (depth1 + 1) + ".Value" , launchConfigurationTags.get(depth1).getValue()); + } + } + } + + public String getLaunchConfigurationDeploymentSetId() { + return this.launchConfigurationDeploymentSetId; + } + + public void setLaunchConfigurationDeploymentSetId(String launchConfigurationDeploymentSetId) { + this.launchConfigurationDeploymentSetId = launchConfigurationDeploymentSetId; + if(launchConfigurationDeploymentSetId != null){ + putQueryParameter("LaunchConfiguration.DeploymentSetId", launchConfigurationDeploymentSetId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Integer getSpotInstancePoolsToUseCount() { + return this.spotInstancePoolsToUseCount; + } + + public void setSpotInstancePoolsToUseCount(Integer spotInstancePoolsToUseCount) { + this.spotInstancePoolsToUseCount = spotInstancePoolsToUseCount; + if(spotInstancePoolsToUseCount != null){ + putQueryParameter("SpotInstancePoolsToUseCount", spotInstancePoolsToUseCount.toString()); + } + } + + public String getLaunchConfigurationInternetChargeType() { + return this.launchConfigurationInternetChargeType; + } + + public void setLaunchConfigurationInternetChargeType(String launchConfigurationInternetChargeType) { + this.launchConfigurationInternetChargeType = launchConfigurationInternetChargeType; + if(launchConfigurationInternetChargeType != null){ + putQueryParameter("LaunchConfiguration.InternetChargeType", launchConfigurationInternetChargeType); + } + } + + public String getLaunchTemplateVersion() { + return this.launchTemplateVersion; + } + + public void setLaunchTemplateVersion(String launchTemplateVersion) { + this.launchTemplateVersion = launchTemplateVersion; + if(launchTemplateVersion != null){ + putQueryParameter("LaunchTemplateVersion", launchTemplateVersion); + } + } + + public String getLaunchConfigurationIoOptimized() { + return this.launchConfigurationIoOptimized; + } + + public void setLaunchConfigurationIoOptimized(String launchConfigurationIoOptimized) { + this.launchConfigurationIoOptimized = launchConfigurationIoOptimized; + if(launchConfigurationIoOptimized != null){ + putQueryParameter("LaunchConfiguration.IoOptimized", launchConfigurationIoOptimized); + } + } + + public String getPayAsYouGoTargetCapacity() { + return this.payAsYouGoTargetCapacity; + } + + public void setPayAsYouGoTargetCapacity(String payAsYouGoTargetCapacity) { + this.payAsYouGoTargetCapacity = payAsYouGoTargetCapacity; + if(payAsYouGoTargetCapacity != null){ + putQueryParameter("PayAsYouGoTargetCapacity", payAsYouGoTargetCapacity); + } + } + + public Boolean getHibernationOptionsConfigured() { + return this.hibernationOptionsConfigured; + } + + public void setHibernationOptionsConfigured(Boolean hibernationOptionsConfigured) { + this.hibernationOptionsConfigured = hibernationOptionsConfigured; + if(hibernationOptionsConfigured != null){ + putQueryParameter("HibernationOptionsConfigured", hibernationOptionsConfigured.toString()); + } + } + + public String getTotalTargetCapacity() { + return this.totalTargetCapacity; + } + + public void setTotalTargetCapacity(String totalTargetCapacity) { + this.totalTargetCapacity = totalTargetCapacity; + if(totalTargetCapacity != null){ + putQueryParameter("TotalTargetCapacity", totalTargetCapacity); + } + } + + public String getSpotTargetCapacity() { + return this.spotTargetCapacity; + } + + public void setSpotTargetCapacity(String spotTargetCapacity) { + this.spotTargetCapacity = spotTargetCapacity; + if(spotTargetCapacity != null){ + putQueryParameter("SpotTargetCapacity", spotTargetCapacity); + } + } + + public String getValidFrom() { + return this.validFrom; + } + + public void setValidFrom(String validFrom) { + this.validFrom = validFrom; + if(validFrom != null){ + putQueryParameter("ValidFrom", validFrom); + } + } + + public String getAutoProvisioningGroupName() { + return this.autoProvisioningGroupName; + } + + public void setAutoProvisioningGroupName(String autoProvisioningGroupName) { + this.autoProvisioningGroupName = autoProvisioningGroupName; + if(autoProvisioningGroupName != null){ + putQueryParameter("AutoProvisioningGroupName", autoProvisioningGroupName); + } + } + + public static class LaunchConfigurationDataDisk { + + private String performanceLevel; + + private String kmsKeyId; + + private String description; + + private String snapshotId; + + private Integer size; + + private String device; + + private String diskName; + + private String category; + + private Boolean deleteWithInstance; + + private Boolean encrypted; + + public String getPerformanceLevel() { + return this.performanceLevel; + } + + public void setPerformanceLevel(String performanceLevel) { + this.performanceLevel = performanceLevel; + } + + public String getKmsKeyId() { + return this.kmsKeyId; + } + + public void setKmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getSnapshotId() { + return this.snapshotId; + } + + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; + } + + public Integer getSize() { + return this.size; + } + + public void setSize(Integer size) { + this.size = size; + } + + public String getDevice() { + return this.device; + } + + public void setDevice(String device) { + this.device = device; + } + + public String getDiskName() { + return this.diskName; + } + + public void setDiskName(String diskName) { + this.diskName = diskName; + } + + public String getCategory() { + return this.category; + } + + public void setCategory(String category) { + this.category = category; + } + + public Boolean getDeleteWithInstance() { + return this.deleteWithInstance; + } + + public void setDeleteWithInstance(Boolean deleteWithInstance) { + this.deleteWithInstance = deleteWithInstance; + } + + public Boolean getEncrypted() { + return this.encrypted; + } + + public void setEncrypted(Boolean encrypted) { + this.encrypted = encrypted; + } + } + + public static class SystemDiskConfig { + + private String diskCategory; + + public String getDiskCategory() { + return this.diskCategory; + } + + public void setDiskCategory(String diskCategory) { + this.diskCategory = diskCategory; + } + } + + public static class DataDiskConfig { + + private String diskCategory; + + public String getDiskCategory() { + return this.diskCategory; + } + + public void setDiskCategory(String diskCategory) { + this.diskCategory = diskCategory; + } + } + + public static class LaunchConfigurationArn { + + private String rolearn; + + private String roleType; + + private Long assumeRoleFor; + + public String getRolearn() { + return this.rolearn; + } + + public void setRolearn(String rolearn) { + this.rolearn = rolearn; + } + + public String getRoleType() { + return this.roleType; + } + + public void setRoleType(String roleType) { + this.roleType = roleType; + } + + public Long getAssumeRoleFor() { + return this.assumeRoleFor; + } + + public void setAssumeRoleFor(Long assumeRoleFor) { + this.assumeRoleFor = assumeRoleFor; + } + } + + public static class LaunchConfigurationSystemDisk { + + private String encrypted; + + private String kMSKeyId; + + private String encryptAlgorithm; + + public String getEncrypted() { + return this.encrypted; + } + + public void setEncrypted(String encrypted) { + this.encrypted = encrypted; + } + + public String getKMSKeyId() { + return this.kMSKeyId; + } + + public void setKMSKeyId(String kMSKeyId) { + this.kMSKeyId = kMSKeyId; + } + + public String getEncryptAlgorithm() { + return this.encryptAlgorithm; + } + + public void setEncryptAlgorithm(String encryptAlgorithm) { + this.encryptAlgorithm = encryptAlgorithm; + } + } + + public static class LaunchTemplateConfig { + + private String vSwitchId; + + private Double maxPrice; + + private Integer priority; + + private String instanceType; + + private Double weightedCapacity; + + private Integer maxQuantity; + + private List coress; + + private List memoriess; + + private String instanceFamilyLevel; + + private List excludedInstanceTypess; + + private List architecturess; + + private String burstablePerformance; + + public String getVSwitchId() { + return this.vSwitchId; + } + + public void setVSwitchId(String vSwitchId) { + this.vSwitchId = vSwitchId; + } + + public Double getMaxPrice() { + return this.maxPrice; + } + + public void setMaxPrice(Double maxPrice) { + this.maxPrice = maxPrice; + } + + public Integer getPriority() { + return this.priority; + } + + public void setPriority(Integer priority) { + this.priority = priority; + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public Double getWeightedCapacity() { + return this.weightedCapacity; + } + + public void setWeightedCapacity(Double weightedCapacity) { + this.weightedCapacity = weightedCapacity; + } + + public Integer getMaxQuantity() { + return this.maxQuantity; + } + + public void setMaxQuantity(Integer maxQuantity) { + this.maxQuantity = maxQuantity; + } + + public List getCoress() { + return this.coress; + } + + public void setCoress(List coress) { + this.coress = coress; + } + + public List getMemoriess() { + return this.memoriess; + } + + public void setMemoriess(List memoriess) { + this.memoriess = memoriess; + } + + public String getInstanceFamilyLevel() { + return this.instanceFamilyLevel; + } + + public void setInstanceFamilyLevel(String instanceFamilyLevel) { + this.instanceFamilyLevel = instanceFamilyLevel; + } + + public List getExcludedInstanceTypess() { + return this.excludedInstanceTypess; + } + + public void setExcludedInstanceTypess(List excludedInstanceTypess) { + this.excludedInstanceTypess = excludedInstanceTypess; + } + + public List getArchitecturess() { + return this.architecturess; + } + + public void setArchitecturess(List architecturess) { + this.architecturess = architecturess; + } + + public String getBurstablePerformance() { + return this.burstablePerformance; + } + + public void setBurstablePerformance(String burstablePerformance) { + this.burstablePerformance = burstablePerformance; + } + } + + public static class LaunchConfigurationTag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return CreateAutoProvisioningGroupResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateAutoProvisioningGroupResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateAutoProvisioningGroupResponse.java new file mode 100644 index 0000000000..6ddde9691e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateAutoProvisioningGroupResponse.java @@ -0,0 +1,125 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreateAutoProvisioningGroupResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateAutoProvisioningGroupResponse extends AcsResponse { + + private String autoProvisioningGroupId; + + private String requestId; + + private List launchResults; + + public String getAutoProvisioningGroupId() { + return this.autoProvisioningGroupId; + } + + public void setAutoProvisioningGroupId(String autoProvisioningGroupId) { + this.autoProvisioningGroupId = autoProvisioningGroupId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getLaunchResults() { + return this.launchResults; + } + + public void setLaunchResults(List launchResults) { + this.launchResults = launchResults; + } + + public static class LaunchResult { + + private String zoneId; + + private String errorMsg; + + private String instanceType; + + private String errorCode; + + private String spotStrategy; + + private List instanceIds; + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + } + + public String getErrorMsg() { + return this.errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public String getErrorCode() { + return this.errorCode; + } + + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + public String getSpotStrategy() { + return this.spotStrategy; + } + + public void setSpotStrategy(String spotStrategy) { + this.spotStrategy = spotStrategy; + } + + public List getInstanceIds() { + return this.instanceIds; + } + + public void setInstanceIds(List instanceIds) { + this.instanceIds = instanceIds; + } + } + + @Override + public CreateAutoProvisioningGroupResponse getInstance(UnmarshallerContext context) { + return CreateAutoProvisioningGroupResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateAutoSnapshotPolicyRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateAutoSnapshotPolicyRequest.java new file mode 100644 index 0000000000..1e5a8e9aae --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateAutoSnapshotPolicyRequest.java @@ -0,0 +1,237 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreateAutoSnapshotPolicyRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Integer copiedSnapshotsRetentionDays; + + private String timePoints; + + private String repeatWeekdays; + + private String resourceGroupId; + + private String storageLocationArn; + + private List tags; + + private Boolean enableCrossRegionCopy; + + private String resourceOwnerAccount; + + private Long ownerId; + + private String autoSnapshotPolicyName; + + private Integer retentionDays; + + private String targetCopyRegions; + public CreateAutoSnapshotPolicyRequest() { + super("Ecs", "2014-05-26", "CreateAutoSnapshotPolicy", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Integer getCopiedSnapshotsRetentionDays() { + return this.copiedSnapshotsRetentionDays; + } + + public void setCopiedSnapshotsRetentionDays(Integer copiedSnapshotsRetentionDays) { + this.copiedSnapshotsRetentionDays = copiedSnapshotsRetentionDays; + if(copiedSnapshotsRetentionDays != null){ + putQueryParameter("CopiedSnapshotsRetentionDays", copiedSnapshotsRetentionDays.toString()); + } + } + + public String getTimePoints() { + return this.timePoints; + } + + public void setTimePoints(String timePoints) { + this.timePoints = timePoints; + if(timePoints != null){ + putQueryParameter("timePoints", timePoints); + } + } + + public String getRepeatWeekdays() { + return this.repeatWeekdays; + } + + public void setRepeatWeekdays(String repeatWeekdays) { + this.repeatWeekdays = repeatWeekdays; + if(repeatWeekdays != null){ + putQueryParameter("repeatWeekdays", repeatWeekdays); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public String getStorageLocationArn() { + return this.storageLocationArn; + } + + public void setStorageLocationArn(String storageLocationArn) { + this.storageLocationArn = storageLocationArn; + if(storageLocationArn != null){ + putQueryParameter("StorageLocationArn", storageLocationArn); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + } + } + } + + public Boolean getEnableCrossRegionCopy() { + return this.enableCrossRegionCopy; + } + + public void setEnableCrossRegionCopy(Boolean enableCrossRegionCopy) { + this.enableCrossRegionCopy = enableCrossRegionCopy; + if(enableCrossRegionCopy != null){ + putQueryParameter("EnableCrossRegionCopy", enableCrossRegionCopy.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getAutoSnapshotPolicyName() { + return this.autoSnapshotPolicyName; + } + + public void setAutoSnapshotPolicyName(String autoSnapshotPolicyName) { + this.autoSnapshotPolicyName = autoSnapshotPolicyName; + if(autoSnapshotPolicyName != null){ + putQueryParameter("autoSnapshotPolicyName", autoSnapshotPolicyName); + } + } + + public Integer getRetentionDays() { + return this.retentionDays; + } + + public void setRetentionDays(Integer retentionDays) { + this.retentionDays = retentionDays; + if(retentionDays != null){ + putQueryParameter("retentionDays", retentionDays.toString()); + } + } + + public String getTargetCopyRegions() { + return this.targetCopyRegions; + } + + public void setTargetCopyRegions(String targetCopyRegions) { + this.targetCopyRegions = targetCopyRegions; + if(targetCopyRegions != null){ + putQueryParameter("TargetCopyRegions", targetCopyRegions); + } + } + + public static class Tag { + + private String value; + + private String key; + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + } + + @Override + public Class getResponseClass() { + return CreateAutoSnapshotPolicyResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateAutoSnapshotPolicyResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateAutoSnapshotPolicyResponse.java new file mode 100644 index 0000000000..ad087121c4 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateAutoSnapshotPolicyResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreateAutoSnapshotPolicyResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateAutoSnapshotPolicyResponse extends AcsResponse { + + private String autoSnapshotPolicyId; + + private String requestId; + + public String getAutoSnapshotPolicyId() { + return this.autoSnapshotPolicyId; + } + + public void setAutoSnapshotPolicyId(String autoSnapshotPolicyId) { + this.autoSnapshotPolicyId = autoSnapshotPolicyId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public CreateAutoSnapshotPolicyResponse getInstance(UnmarshallerContext context) { + return CreateAutoSnapshotPolicyResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateCapacityReservationRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateCapacityReservationRequest.java new file mode 100644 index 0000000000..2c37a25add --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateCapacityReservationRequest.java @@ -0,0 +1,291 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreateCapacityReservationRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private String description; + + private String startTime; + + private String platform; + + private String resourceGroupId; + + private String privatePoolOptionsMatchCriteria; + + private String instanceType; + + private List tags; + + private String endTimeType; + + private String resourceOwnerAccount; + + private String privatePoolOptionsName; + + private String ownerAccount; + + private String endTime; + + private Long ownerId; + + private List zoneIds; + + private Integer instanceAmount; + public CreateCapacityReservationRequest() { + super("Ecs", "2014-05-26", "CreateCapacityReservation", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getStartTime() { + return this.startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + if(startTime != null){ + putQueryParameter("StartTime", startTime); + } + } + + public String getPlatform() { + return this.platform; + } + + public void setPlatform(String platform) { + this.platform = platform; + if(platform != null){ + putQueryParameter("Platform", platform); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public String getPrivatePoolOptionsMatchCriteria() { + return this.privatePoolOptionsMatchCriteria; + } + + public void setPrivatePoolOptionsMatchCriteria(String privatePoolOptionsMatchCriteria) { + this.privatePoolOptionsMatchCriteria = privatePoolOptionsMatchCriteria; + if(privatePoolOptionsMatchCriteria != null){ + putQueryParameter("PrivatePoolOptions.MatchCriteria", privatePoolOptionsMatchCriteria); + } + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + if(instanceType != null){ + putQueryParameter("InstanceType", instanceType); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public String getEndTimeType() { + return this.endTimeType; + } + + public void setEndTimeType(String endTimeType) { + this.endTimeType = endTimeType; + if(endTimeType != null){ + putQueryParameter("EndTimeType", endTimeType); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getPrivatePoolOptionsName() { + return this.privatePoolOptionsName; + } + + public void setPrivatePoolOptionsName(String privatePoolOptionsName) { + this.privatePoolOptionsName = privatePoolOptionsName; + if(privatePoolOptionsName != null){ + putQueryParameter("PrivatePoolOptions.Name", privatePoolOptionsName); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getEndTime() { + return this.endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + if(endTime != null){ + putQueryParameter("EndTime", endTime); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getZoneIds() { + return this.zoneIds; + } + + public void setZoneIds(List zoneIds) { + this.zoneIds = zoneIds; + if (zoneIds != null) { + for (int i = 0; i < zoneIds.size(); i++) { + putQueryParameter("ZoneId." + (i + 1) , zoneIds.get(i)); + } + } + } + + public Integer getInstanceAmount() { + return this.instanceAmount; + } + + public void setInstanceAmount(Integer instanceAmount) { + this.instanceAmount = instanceAmount; + if(instanceAmount != null){ + putQueryParameter("InstanceAmount", instanceAmount.toString()); + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return CreateCapacityReservationResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateCapacityReservationResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateCapacityReservationResponse.java similarity index 75% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateCapacityReservationResponse.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateCapacityReservationResponse.java index cbe694d4ee..4a1e0e4253 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateCapacityReservationResponse.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateCapacityReservationResponse.java @@ -12,10 +12,10 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.CreateCapacityReservationResponseUnmarshaller; +import com.aliyuncs.ecs.transform.v20140526.CreateCapacityReservationResponseUnmarshaller; import com.aliyuncs.transform.UnmarshallerContext; /** @@ -24,16 +24,16 @@ */ public class CreateCapacityReservationResponse extends AcsResponse { - private String capacityReservationId; + private String privatePoolOptionsId; private String requestId; - public String getCapacityReservationId() { - return this.capacityReservationId; + public String getPrivatePoolOptionsId() { + return this.privatePoolOptionsId; } - public void setCapacityReservationId(String capacityReservationId) { - this.capacityReservationId = capacityReservationId; + public void setPrivatePoolOptionsId(String privatePoolOptionsId) { + this.privatePoolOptionsId = privatePoolOptionsId; } public String getRequestId() { diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateCommandRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateCommandRequest.java new file mode 100644 index 0000000000..d8956b53cd --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateCommandRequest.java @@ -0,0 +1,237 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreateCommandRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String workingDir; + + private String description; + + private String type; + + private String commandContent; + + private Long timeout; + + private String contentEncoding; + + private List tags; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String name; + + private Boolean enableParameter; + public CreateCommandRequest() { + super("Ecs", "2014-05-26", "CreateCommand", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getWorkingDir() { + return this.workingDir; + } + + public void setWorkingDir(String workingDir) { + this.workingDir = workingDir; + if(workingDir != null){ + putQueryParameter("WorkingDir", workingDir); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + if(type != null){ + putQueryParameter("Type", type); + } + } + + public String getCommandContent() { + return this.commandContent; + } + + public void setCommandContent(String commandContent) { + this.commandContent = commandContent; + if(commandContent != null){ + putQueryParameter("CommandContent", commandContent); + } + } + + public Long getTimeout() { + return this.timeout; + } + + public void setTimeout(Long timeout) { + this.timeout = timeout; + if(timeout != null){ + putQueryParameter("Timeout", timeout.toString()); + } + } + + public String getContentEncoding() { + return this.contentEncoding; + } + + public void setContentEncoding(String contentEncoding) { + this.contentEncoding = contentEncoding; + if(contentEncoding != null){ + putQueryParameter("ContentEncoding", contentEncoding); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + if(name != null){ + putQueryParameter("Name", name); + } + } + + public Boolean getEnableParameter() { + return this.enableParameter; + } + + public void setEnableParameter(Boolean enableParameter) { + this.enableParameter = enableParameter; + if(enableParameter != null){ + putQueryParameter("EnableParameter", enableParameter.toString()); + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return CreateCommandResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateCommandResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateCommandResponse.java new file mode 100644 index 0000000000..50cf15e16e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateCommandResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreateCommandResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateCommandResponse extends AcsResponse { + + private String commandId; + + private String requestId; + + public String getCommandId() { + return this.commandId; + } + + public void setCommandId(String commandId) { + this.commandId = commandId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public CreateCommandResponse getInstance(UnmarshallerContext context) { + return CreateCommandResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDedicatedHostClusterRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateDedicatedHostClusterRequest.java similarity index 85% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDedicatedHostClusterRequest.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateDedicatedHostClusterRequest.java index b437060c0d..52c45ea600 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDedicatedHostClusterRequest.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateDedicatedHostClusterRequest.java @@ -12,7 +12,7 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.RpcAcsRequest; import java.util.List; @@ -44,11 +44,9 @@ public class CreateDedicatedHostClusterRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private String startTime; + + private String demandDescription; + + private String instanceType; + + private String instanceChargeType; + + private String demandName; + + private Integer amount; + + private Integer period; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String endTime; + + private Long ownerId; + + private String periodUnit; + + private String zoneId; + public CreateDemandRequest() { + super("Ecs", "2014-05-26", "CreateDemand", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getStartTime() { + return this.startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + if(startTime != null){ + putQueryParameter("StartTime", startTime); + } + } + + public String getDemandDescription() { + return this.demandDescription; + } + + public void setDemandDescription(String demandDescription) { + this.demandDescription = demandDescription; + if(demandDescription != null){ + putQueryParameter("DemandDescription", demandDescription); + } + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + if(instanceType != null){ + putQueryParameter("InstanceType", instanceType); + } + } + + public String getInstanceChargeType() { + return this.instanceChargeType; + } + + public void setInstanceChargeType(String instanceChargeType) { + this.instanceChargeType = instanceChargeType; + if(instanceChargeType != null){ + putQueryParameter("InstanceChargeType", instanceChargeType); + } + } + + public String getDemandName() { + return this.demandName; + } + + public void setDemandName(String demandName) { + this.demandName = demandName; + if(demandName != null){ + putQueryParameter("DemandName", demandName); + } + } + + public Integer getAmount() { + return this.amount; + } + + public void setAmount(Integer amount) { + this.amount = amount; + if(amount != null){ + putQueryParameter("Amount", amount.toString()); + } + } + + public Integer getPeriod() { + return this.period; + } + + public void setPeriod(Integer period) { + this.period = period; + if(period != null){ + putQueryParameter("Period", period.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getEndTime() { + return this.endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + if(endTime != null){ + putQueryParameter("EndTime", endTime); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getPeriodUnit() { + return this.periodUnit; + } + + public void setPeriodUnit(String periodUnit) { + this.periodUnit = periodUnit; + if(periodUnit != null){ + putQueryParameter("PeriodUnit", periodUnit); + } + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + if(zoneId != null){ + putQueryParameter("ZoneId", zoneId); + } + } + + @Override + public Class getResponseClass() { + return CreateDemandResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateDemandResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateDemandResponse.java new file mode 100644 index 0000000000..e87a29b3d7 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateDemandResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreateDemandResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateDemandResponse extends AcsResponse { + + private String demandId; + + private String requestId; + + public String getDemandId() { + return this.demandId; + } + + public void setDemandId(String demandId) { + this.demandId = demandId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public CreateDemandResponse getInstance(UnmarshallerContext context) { + return CreateDemandResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateDeploymentSetRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateDeploymentSetRequest.java new file mode 100644 index 0000000000..f459c98e57 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateDeploymentSetRequest.java @@ -0,0 +1,197 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreateDeploymentSetRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private String description; + + private Long groupCount; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String deploymentSetName; + + private Long ownerId; + + private String onUnableToRedeployFailedInstance; + + private String granularity; + + private String domain; + + private String strategy; + public CreateDeploymentSetRequest() { + super("Ecs", "2014-05-26", "CreateDeploymentSet", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public Long getGroupCount() { + return this.groupCount; + } + + public void setGroupCount(Long groupCount) { + this.groupCount = groupCount; + if(groupCount != null){ + putQueryParameter("GroupCount", groupCount.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getDeploymentSetName() { + return this.deploymentSetName; + } + + public void setDeploymentSetName(String deploymentSetName) { + this.deploymentSetName = deploymentSetName; + if(deploymentSetName != null){ + putQueryParameter("DeploymentSetName", deploymentSetName); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getOnUnableToRedeployFailedInstance() { + return this.onUnableToRedeployFailedInstance; + } + + public void setOnUnableToRedeployFailedInstance(String onUnableToRedeployFailedInstance) { + this.onUnableToRedeployFailedInstance = onUnableToRedeployFailedInstance; + if(onUnableToRedeployFailedInstance != null){ + putQueryParameter("OnUnableToRedeployFailedInstance", onUnableToRedeployFailedInstance); + } + } + + public String getGranularity() { + return this.granularity; + } + + public void setGranularity(String granularity) { + this.granularity = granularity; + if(granularity != null){ + putQueryParameter("Granularity", granularity); + } + } + + public String getDomain() { + return this.domain; + } + + public void setDomain(String domain) { + this.domain = domain; + if(domain != null){ + putQueryParameter("Domain", domain); + } + } + + public String getStrategy() { + return this.strategy; + } + + public void setStrategy(String strategy) { + this.strategy = strategy; + if(strategy != null){ + putQueryParameter("Strategy", strategy); + } + } + + @Override + public Class getResponseClass() { + return CreateDeploymentSetResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateDeploymentSetResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateDeploymentSetResponse.java new file mode 100644 index 0000000000..4258ceffd1 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateDeploymentSetResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreateDeploymentSetResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateDeploymentSetResponse extends AcsResponse { + + private String deploymentSetId; + + private String requestId; + + public String getDeploymentSetId() { + return this.deploymentSetId; + } + + public void setDeploymentSetId(String deploymentSetId) { + this.deploymentSetId = deploymentSetId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public CreateDeploymentSetResponse getInstance(UnmarshallerContext context) { + return CreateDeploymentSetResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateDiagnosticMetricSetRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateDiagnosticMetricSetRequest.java new file mode 100644 index 0000000000..5e996a69c4 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateDiagnosticMetricSetRequest.java @@ -0,0 +1,96 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreateDiagnosticMetricSetRequest extends RpcAcsRequest { + + + private List metricIdss; + + private String description; + + private String metricSetName; + + private String resourceType; + public CreateDiagnosticMetricSetRequest() { + super("Ecs", "2014-05-26", "CreateDiagnosticMetricSet", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public List getMetricIdss() { + return this.metricIdss; + } + + public void setMetricIdss(List metricIdss) { + this.metricIdss = metricIdss; + if (metricIdss != null) { + for (int i = 0; i < metricIdss.size(); i++) { + putQueryParameter("MetricIds." + (i + 1) , metricIdss.get(i)); + } + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getMetricSetName() { + return this.metricSetName; + } + + public void setMetricSetName(String metricSetName) { + this.metricSetName = metricSetName; + if(metricSetName != null){ + putQueryParameter("MetricSetName", metricSetName); + } + } + + public String getResourceType() { + return this.resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + if(resourceType != null){ + putQueryParameter("ResourceType", resourceType); + } + } + + @Override + public Class getResponseClass() { + return CreateDiagnosticMetricSetResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateDiagnosticMetricSetResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateDiagnosticMetricSetResponse.java new file mode 100644 index 0000000000..b7c88890c0 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateDiagnosticMetricSetResponse.java @@ -0,0 +1,56 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreateDiagnosticMetricSetResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateDiagnosticMetricSetResponse extends AcsResponse { + + private String requestId; + + private String metricSetId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getMetricSetId() { + return this.metricSetId; + } + + public void setMetricSetId(String metricSetId) { + this.metricSetId = metricSetId; + } + + @Override + public CreateDiagnosticMetricSetResponse getInstance(UnmarshallerContext context) { + return CreateDiagnosticMetricSetResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateDiagnosticReportRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateDiagnosticReportRequest.java new file mode 100644 index 0000000000..5e2c2e548f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateDiagnosticReportRequest.java @@ -0,0 +1,93 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreateDiagnosticReportRequest extends RpcAcsRequest { + + + private String resourceId; + + private String metricSetId; + + private String endTime; + + private String startTime; + public CreateDiagnosticReportRequest() { + super("Ecs", "2014-05-26", "CreateDiagnosticReport", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getResourceId() { + return this.resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + if(resourceId != null){ + putQueryParameter("ResourceId", resourceId); + } + } + + public String getMetricSetId() { + return this.metricSetId; + } + + public void setMetricSetId(String metricSetId) { + this.metricSetId = metricSetId; + if(metricSetId != null){ + putQueryParameter("MetricSetId", metricSetId); + } + } + + public String getEndTime() { + return this.endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + if(endTime != null){ + putQueryParameter("EndTime", endTime); + } + } + + public String getStartTime() { + return this.startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + if(startTime != null){ + putQueryParameter("StartTime", startTime); + } + } + + @Override + public Class getResponseClass() { + return CreateDiagnosticReportResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateDiagnosticReportResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateDiagnosticReportResponse.java new file mode 100644 index 0000000000..478fd76e86 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateDiagnosticReportResponse.java @@ -0,0 +1,56 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreateDiagnosticReportResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateDiagnosticReportResponse extends AcsResponse { + + private String requestId; + + private String reportId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getReportId() { + return this.reportId; + } + + public void setReportId(String reportId) { + this.reportId = reportId; + } + + @Override + public CreateDiagnosticReportResponse getInstance(UnmarshallerContext context) { + return CreateDiagnosticReportResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateDiskRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateDiskRequest.java new file mode 100644 index 0000000000..40a99ceed2 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateDiskRequest.java @@ -0,0 +1,443 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreateDiskRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String encryptAlgorithm; + + private String diskName; + + private String resourceGroupId; + + private Integer storageSetPartitionNumber; + + private List tags; + + private Long ownerId; + + private Long provisionedIops; + + private String instanceId; + + private Integer size; + + private String zoneId; + + private String storageClusterId; + + private String snapshotId; + + private String clientToken; + + private String description; + + private String diskCategory; + + private String multiAttach; + + private String advancedFeatures; + + private List arns; + + private String resourceOwnerAccount; + + private String performanceLevel; + + private String ownerAccount; + + private Boolean burstingEnabled; + + private String storageSetId; + + private Boolean encrypted; + + private String kMSKeyId; + public CreateDiskRequest() { + super("Ecs", "2014-05-26", "CreateDisk", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getEncryptAlgorithm() { + return this.encryptAlgorithm; + } + + public void setEncryptAlgorithm(String encryptAlgorithm) { + this.encryptAlgorithm = encryptAlgorithm; + if(encryptAlgorithm != null){ + putQueryParameter("EncryptAlgorithm", encryptAlgorithm); + } + } + + public String getDiskName() { + return this.diskName; + } + + public void setDiskName(String diskName) { + this.diskName = diskName; + if(diskName != null){ + putQueryParameter("DiskName", diskName); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public Integer getStorageSetPartitionNumber() { + return this.storageSetPartitionNumber; + } + + public void setStorageSetPartitionNumber(Integer storageSetPartitionNumber) { + this.storageSetPartitionNumber = storageSetPartitionNumber; + if(storageSetPartitionNumber != null){ + putQueryParameter("StorageSetPartitionNumber", storageSetPartitionNumber.toString()); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + } + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public Long getProvisionedIops() { + return this.provisionedIops; + } + + public void setProvisionedIops(Long provisionedIops) { + this.provisionedIops = provisionedIops; + if(provisionedIops != null){ + putQueryParameter("ProvisionedIops", provisionedIops.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public Integer getSize() { + return this.size; + } + + public void setSize(Integer size) { + this.size = size; + if(size != null){ + putQueryParameter("Size", size.toString()); + } + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + if(zoneId != null){ + putQueryParameter("ZoneId", zoneId); + } + } + + public String getStorageClusterId() { + return this.storageClusterId; + } + + public void setStorageClusterId(String storageClusterId) { + this.storageClusterId = storageClusterId; + if(storageClusterId != null){ + putQueryParameter("StorageClusterId", storageClusterId); + } + } + + public String getSnapshotId() { + return this.snapshotId; + } + + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; + if(snapshotId != null){ + putQueryParameter("SnapshotId", snapshotId); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getDiskCategory() { + return this.diskCategory; + } + + public void setDiskCategory(String diskCategory) { + this.diskCategory = diskCategory; + if(diskCategory != null){ + putQueryParameter("DiskCategory", diskCategory); + } + } + + public String getMultiAttach() { + return this.multiAttach; + } + + public void setMultiAttach(String multiAttach) { + this.multiAttach = multiAttach; + if(multiAttach != null){ + putQueryParameter("MultiAttach", multiAttach); + } + } + + public String getAdvancedFeatures() { + return this.advancedFeatures; + } + + public void setAdvancedFeatures(String advancedFeatures) { + this.advancedFeatures = advancedFeatures; + if(advancedFeatures != null){ + putQueryParameter("AdvancedFeatures", advancedFeatures); + } + } + + public List getArns() { + return this.arns; + } + + public void setArns(List arns) { + this.arns = arns; + if (arns != null) { + for (int depth1 = 0; depth1 < arns.size(); depth1++) { + putQueryParameter("Arn." + (depth1 + 1) + ".Rolearn" , arns.get(depth1).getRolearn()); + putQueryParameter("Arn." + (depth1 + 1) + ".RoleType" , arns.get(depth1).getRoleType()); + putQueryParameter("Arn." + (depth1 + 1) + ".AssumeRoleFor" , arns.get(depth1).getAssumeRoleFor()); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getPerformanceLevel() { + return this.performanceLevel; + } + + public void setPerformanceLevel(String performanceLevel) { + this.performanceLevel = performanceLevel; + if(performanceLevel != null){ + putQueryParameter("PerformanceLevel", performanceLevel); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Boolean getBurstingEnabled() { + return this.burstingEnabled; + } + + public void setBurstingEnabled(Boolean burstingEnabled) { + this.burstingEnabled = burstingEnabled; + if(burstingEnabled != null){ + putQueryParameter("BurstingEnabled", burstingEnabled.toString()); + } + } + + public String getStorageSetId() { + return this.storageSetId; + } + + public void setStorageSetId(String storageSetId) { + this.storageSetId = storageSetId; + if(storageSetId != null){ + putQueryParameter("StorageSetId", storageSetId); + } + } + + public Boolean getEncrypted() { + return this.encrypted; + } + + public void setEncrypted(Boolean encrypted) { + this.encrypted = encrypted; + if(encrypted != null){ + putQueryParameter("Encrypted", encrypted.toString()); + } + } + + public String getKMSKeyId() { + return this.kMSKeyId; + } + + public void setKMSKeyId(String kMSKeyId) { + this.kMSKeyId = kMSKeyId; + if(kMSKeyId != null){ + putQueryParameter("KMSKeyId", kMSKeyId); + } + } + + public static class Tag { + + private String value; + + private String key; + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + } + + public static class Arn { + + private String rolearn; + + private String roleType; + + private Long assumeRoleFor; + + public String getRolearn() { + return this.rolearn; + } + + public void setRolearn(String rolearn) { + this.rolearn = rolearn; + } + + public String getRoleType() { + return this.roleType; + } + + public void setRoleType(String roleType) { + this.roleType = roleType; + } + + public Long getAssumeRoleFor() { + return this.assumeRoleFor; + } + + public void setAssumeRoleFor(Long assumeRoleFor) { + this.assumeRoleFor = assumeRoleFor; + } + } + + @Override + public Class getResponseClass() { + return CreateDiskResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateDiskResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateDiskResponse.java new file mode 100644 index 0000000000..4e22d8022d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateDiskResponse.java @@ -0,0 +1,61 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreateDiskResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateDiskResponse extends AcsResponse { + + private String diskId; + + private String requestId; + + private String orderId; + + public String getDiskId() { + return this.diskId; + } + + public void setDiskId(String diskId) { + this.diskId = diskId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getOrderId() { + return this.orderId; + } + + public void setOrderId(String orderId) { + this.orderId = orderId; + } + + @Override + public CreateDiskResponse getInstance(UnmarshallerContext context) { + return CreateDiskResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateElasticityAssuranceRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateElasticityAssuranceRequest.java similarity index 95% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateElasticityAssuranceRequest.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateElasticityAssuranceRequest.java index 72d8693eeb..080a968082 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateElasticityAssuranceRequest.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateElasticityAssuranceRequest.java @@ -12,7 +12,7 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.RpcAcsRequest; import java.util.List; @@ -62,7 +62,7 @@ public class CreateElasticityAssuranceRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String forwardTableId; + + private String internalIp; + + private String externalIp; + + private String resourceOwnerAccount; + + private String ipProtocol; + + private String ownerAccount; + + private Long ownerId; + + private String internalPort; + + private String externalPort; + public CreateForwardEntryRequest() { + super("Ecs", "2014-05-26", "CreateForwardEntry", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getForwardTableId() { + return this.forwardTableId; + } + + public void setForwardTableId(String forwardTableId) { + this.forwardTableId = forwardTableId; + if(forwardTableId != null){ + putQueryParameter("ForwardTableId", forwardTableId); + } + } + + public String getInternalIp() { + return this.internalIp; + } + + public void setInternalIp(String internalIp) { + this.internalIp = internalIp; + if(internalIp != null){ + putQueryParameter("InternalIp", internalIp); + } + } + + public String getExternalIp() { + return this.externalIp; + } + + public void setExternalIp(String externalIp) { + this.externalIp = externalIp; + if(externalIp != null){ + putQueryParameter("ExternalIp", externalIp); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getIpProtocol() { + return this.ipProtocol; + } + + public void setIpProtocol(String ipProtocol) { + this.ipProtocol = ipProtocol; + if(ipProtocol != null){ + putQueryParameter("IpProtocol", ipProtocol); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInternalPort() { + return this.internalPort; + } + + public void setInternalPort(String internalPort) { + this.internalPort = internalPort; + if(internalPort != null){ + putQueryParameter("InternalPort", internalPort); + } + } + + public String getExternalPort() { + return this.externalPort; + } + + public void setExternalPort(String externalPort) { + this.externalPort = externalPort; + if(externalPort != null){ + putQueryParameter("ExternalPort", externalPort); + } + } + + @Override + public Class getResponseClass() { + return CreateForwardEntryResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateForwardEntryResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateForwardEntryResponse.java new file mode 100644 index 0000000000..61f8711c75 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateForwardEntryResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreateForwardEntryResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateForwardEntryResponse extends AcsResponse { + + private String forwardEntryId; + + private String requestId; + + public String getForwardEntryId() { + return this.forwardEntryId; + } + + public void setForwardEntryId(String forwardEntryId) { + this.forwardEntryId = forwardEntryId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public CreateForwardEntryResponse getInstance(UnmarshallerContext context) { + return CreateForwardEntryResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateHaVipRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateHaVipRequest.java new file mode 100644 index 0000000000..166ca80904 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateHaVipRequest.java @@ -0,0 +1,145 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreateHaVipRequest extends RpcAcsRequest { + + + private String ipAddress; + + private Long resourceOwnerId; + + private String clientToken; + + private String description; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String vSwitchId; + public CreateHaVipRequest() { + super("Ecs", "2014-05-26", "CreateHaVip", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getIpAddress() { + return this.ipAddress; + } + + public void setIpAddress(String ipAddress) { + this.ipAddress = ipAddress; + if(ipAddress != null){ + putQueryParameter("IpAddress", ipAddress); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getVSwitchId() { + return this.vSwitchId; + } + + public void setVSwitchId(String vSwitchId) { + this.vSwitchId = vSwitchId; + if(vSwitchId != null){ + putQueryParameter("VSwitchId", vSwitchId); + } + } + + @Override + public Class getResponseClass() { + return CreateHaVipResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateHaVipResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateHaVipResponse.java new file mode 100644 index 0000000000..f2d2fcb788 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateHaVipResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreateHaVipResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateHaVipResponse extends AcsResponse { + + private String haVipId; + + private String requestId; + + public String getHaVipId() { + return this.haVipId; + } + + public void setHaVipId(String haVipId) { + this.haVipId = haVipId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public CreateHaVipResponse getInstance(UnmarshallerContext context) { + return CreateHaVipResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateHpcClusterRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateHpcClusterRequest.java new file mode 100644 index 0000000000..bd05e7ea6a --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateHpcClusterRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreateHpcClusterRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private String description; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String name; + public CreateHpcClusterRequest() { + super("Ecs", "2014-05-26", "CreateHpcCluster", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + if(name != null){ + putQueryParameter("Name", name); + } + } + + @Override + public Class getResponseClass() { + return CreateHpcClusterResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateHpcClusterResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateHpcClusterResponse.java new file mode 100644 index 0000000000..e42c7c8812 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateHpcClusterResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreateHpcClusterResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateHpcClusterResponse extends AcsResponse { + + private String hpcClusterId; + + private String requestId; + + public String getHpcClusterId() { + return this.hpcClusterId; + } + + public void setHpcClusterId(String hpcClusterId) { + this.hpcClusterId = hpcClusterId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public CreateHpcClusterResponse getInstance(UnmarshallerContext context) { + return CreateHpcClusterResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateImageComponentRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateImageComponentRequest.java new file mode 100644 index 0000000000..dd6386fe6b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateImageComponentRequest.java @@ -0,0 +1,224 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreateImageComponentRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private String description; + + private String systemType; + + private String content; + + private String resourceGroupId; + + private List tags; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String componentType; + + private String name; + public CreateImageComponentRequest() { + super("Ecs", "2014-05-26", "CreateImageComponent", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getSystemType() { + return this.systemType; + } + + public void setSystemType(String systemType) { + this.systemType = systemType; + if(systemType != null){ + putQueryParameter("SystemType", systemType); + } + } + + public String getContent() { + return this.content; + } + + public void setContent(String content) { + this.content = content; + if(content != null){ + putQueryParameter("Content", content); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getComponentType() { + return this.componentType; + } + + public void setComponentType(String componentType) { + this.componentType = componentType; + if(componentType != null){ + putQueryParameter("ComponentType", componentType); + } + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + if(name != null){ + putQueryParameter("Name", name); + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return CreateImageComponentResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateImageComponentResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateImageComponentResponse.java new file mode 100644 index 0000000000..0036f213c0 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateImageComponentResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreateImageComponentResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateImageComponentResponse extends AcsResponse { + + private String imageComponentId; + + private String requestId; + + public String getImageComponentId() { + return this.imageComponentId; + } + + public void setImageComponentId(String imageComponentId) { + this.imageComponentId = imageComponentId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public CreateImageComponentResponse getInstance(UnmarshallerContext context) { + return CreateImageComponentResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateImagePipelineRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateImagePipelineRequest.java new file mode 100644 index 0000000000..94ccb01a72 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateImagePipelineRequest.java @@ -0,0 +1,332 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreateImagePipelineRequest extends RpcAcsRequest { + + + private String baseImageType; + + private Long resourceOwnerId; + + private String clientToken; + + private List toRegionIds; + + private Integer internetMaxBandwidthOut; + + private String description; + + private String resourceGroupId; + + private String imageName; + + private Integer systemDiskSize; + + private String instanceType; + + private List tags; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String baseImage; + + private String vSwitchId; + + private List addAccounts; + + private Boolean deleteInstanceOnFailure; + + private String name; + + private String buildContent; + public CreateImagePipelineRequest() { + super("Ecs", "2014-05-26", "CreateImagePipeline", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getBaseImageType() { + return this.baseImageType; + } + + public void setBaseImageType(String baseImageType) { + this.baseImageType = baseImageType; + if(baseImageType != null){ + putQueryParameter("BaseImageType", baseImageType); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public List getToRegionIds() { + return this.toRegionIds; + } + + public void setToRegionIds(List toRegionIds) { + this.toRegionIds = toRegionIds; + if (toRegionIds != null) { + for (int i = 0; i < toRegionIds.size(); i++) { + putQueryParameter("ToRegionId." + (i + 1) , toRegionIds.get(i)); + } + } + } + + public Integer getInternetMaxBandwidthOut() { + return this.internetMaxBandwidthOut; + } + + public void setInternetMaxBandwidthOut(Integer internetMaxBandwidthOut) { + this.internetMaxBandwidthOut = internetMaxBandwidthOut; + if(internetMaxBandwidthOut != null){ + putQueryParameter("InternetMaxBandwidthOut", internetMaxBandwidthOut.toString()); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public String getImageName() { + return this.imageName; + } + + public void setImageName(String imageName) { + this.imageName = imageName; + if(imageName != null){ + putQueryParameter("ImageName", imageName); + } + } + + public Integer getSystemDiskSize() { + return this.systemDiskSize; + } + + public void setSystemDiskSize(Integer systemDiskSize) { + this.systemDiskSize = systemDiskSize; + if(systemDiskSize != null){ + putQueryParameter("SystemDiskSize", systemDiskSize.toString()); + } + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + if(instanceType != null){ + putQueryParameter("InstanceType", instanceType); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getBaseImage() { + return this.baseImage; + } + + public void setBaseImage(String baseImage) { + this.baseImage = baseImage; + if(baseImage != null){ + putQueryParameter("BaseImage", baseImage); + } + } + + public String getVSwitchId() { + return this.vSwitchId; + } + + public void setVSwitchId(String vSwitchId) { + this.vSwitchId = vSwitchId; + if(vSwitchId != null){ + putQueryParameter("VSwitchId", vSwitchId); + } + } + + public List getAddAccounts() { + return this.addAccounts; + } + + public void setAddAccounts(List addAccounts) { + this.addAccounts = addAccounts; + if (addAccounts != null) { + for (int i = 0; i < addAccounts.size(); i++) { + putQueryParameter("AddAccount." + (i + 1) , addAccounts.get(i)); + } + } + } + + public Boolean getDeleteInstanceOnFailure() { + return this.deleteInstanceOnFailure; + } + + public void setDeleteInstanceOnFailure(Boolean deleteInstanceOnFailure) { + this.deleteInstanceOnFailure = deleteInstanceOnFailure; + if(deleteInstanceOnFailure != null){ + putQueryParameter("DeleteInstanceOnFailure", deleteInstanceOnFailure.toString()); + } + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + if(name != null){ + putQueryParameter("Name", name); + } + } + + public String getBuildContent() { + return this.buildContent; + } + + public void setBuildContent(String buildContent) { + this.buildContent = buildContent; + if(buildContent != null){ + putQueryParameter("BuildContent", buildContent); + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return CreateImagePipelineResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateImagePipelineResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateImagePipelineResponse.java new file mode 100644 index 0000000000..e0205ee481 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateImagePipelineResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreateImagePipelineResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateImagePipelineResponse extends AcsResponse { + + private String imagePipelineId; + + private String requestId; + + public String getImagePipelineId() { + return this.imagePipelineId; + } + + public void setImagePipelineId(String imagePipelineId) { + this.imagePipelineId = imagePipelineId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public CreateImagePipelineResponse getInstance(UnmarshallerContext context) { + return CreateImagePipelineResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateImageRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateImageRequest.java new file mode 100644 index 0000000000..77b224da96 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateImageRequest.java @@ -0,0 +1,350 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreateImageRequest extends RpcAcsRequest { + + + private List diskDeviceMappings; + + private Long resourceOwnerId; + + private String snapshotId; + + private String clientToken; + + private String description; + + private String platform; + + private String resourceGroupId; + + private String bootMode; + + private String imageName; + + private List tags; + + private String architecture; + + private String detectionStrategy; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceId; + + private String imageFamily; + + private String imageVersion; + public CreateImageRequest() { + super("Ecs", "2014-05-26", "CreateImage", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public List getDiskDeviceMappings() { + return this.diskDeviceMappings; + } + + public void setDiskDeviceMappings(List diskDeviceMappings) { + this.diskDeviceMappings = diskDeviceMappings; + if (diskDeviceMappings != null) { + for (int depth1 = 0; depth1 < diskDeviceMappings.size(); depth1++) { + putQueryParameter("DiskDeviceMapping." + (depth1 + 1) + ".SnapshotId" , diskDeviceMappings.get(depth1).getSnapshotId()); + putQueryParameter("DiskDeviceMapping." + (depth1 + 1) + ".Size" , diskDeviceMappings.get(depth1).getSize()); + putQueryParameter("DiskDeviceMapping." + (depth1 + 1) + ".DiskType" , diskDeviceMappings.get(depth1).getDiskType()); + putQueryParameter("DiskDeviceMapping." + (depth1 + 1) + ".Device" , diskDeviceMappings.get(depth1).getDevice()); + } + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getSnapshotId() { + return this.snapshotId; + } + + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; + if(snapshotId != null){ + putQueryParameter("SnapshotId", snapshotId); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getPlatform() { + return this.platform; + } + + public void setPlatform(String platform) { + this.platform = platform; + if(platform != null){ + putQueryParameter("Platform", platform); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public String getBootMode() { + return this.bootMode; + } + + public void setBootMode(String bootMode) { + this.bootMode = bootMode; + if(bootMode != null){ + putQueryParameter("BootMode", bootMode); + } + } + + public String getImageName() { + return this.imageName; + } + + public void setImageName(String imageName) { + this.imageName = imageName; + if(imageName != null){ + putQueryParameter("ImageName", imageName); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + } + } + } + + public String getArchitecture() { + return this.architecture; + } + + public void setArchitecture(String architecture) { + this.architecture = architecture; + if(architecture != null){ + putQueryParameter("Architecture", architecture); + } + } + + public String getDetectionStrategy() { + return this.detectionStrategy; + } + + public void setDetectionStrategy(String detectionStrategy) { + this.detectionStrategy = detectionStrategy; + if(detectionStrategy != null){ + putQueryParameter("DetectionStrategy", detectionStrategy); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public String getImageFamily() { + return this.imageFamily; + } + + public void setImageFamily(String imageFamily) { + this.imageFamily = imageFamily; + if(imageFamily != null){ + putQueryParameter("ImageFamily", imageFamily); + } + } + + public String getImageVersion() { + return this.imageVersion; + } + + public void setImageVersion(String imageVersion) { + this.imageVersion = imageVersion; + if(imageVersion != null){ + putQueryParameter("ImageVersion", imageVersion); + } + } + + public static class DiskDeviceMapping { + + private String snapshotId; + + private Integer size; + + private String diskType; + + private String device; + + public String getSnapshotId() { + return this.snapshotId; + } + + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; + } + + public Integer getSize() { + return this.size; + } + + public void setSize(Integer size) { + this.size = size; + } + + public String getDiskType() { + return this.diskType; + } + + public void setDiskType(String diskType) { + this.diskType = diskType; + } + + public String getDevice() { + return this.device; + } + + public void setDevice(String device) { + this.device = device; + } + } + + public static class Tag { + + private String value; + + private String key; + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + } + + @Override + public Class getResponseClass() { + return CreateImageResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateImageResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateImageResponse.java new file mode 100644 index 0000000000..76ef07c3e7 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateImageResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreateImageResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateImageResponse extends AcsResponse { + + private String imageId; + + private String requestId; + + public String getImageId() { + return this.imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public CreateImageResponse getInstance(UnmarshallerContext context) { + return CreateImageResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateInstanceRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateInstanceRequest.java new file mode 100644 index 0000000000..5020783e80 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateInstanceRequest.java @@ -0,0 +1,1113 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreateInstanceRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String hpcClusterId; + + private Integer httpPutResponseHopLimit; + + private String securityEnhancementStrategy; + + private String keyPairName; + + private Float spotPriceLimit; + + private Boolean deletionProtection; + + private String resourceGroupId; + + private String privatePoolOptionsMatchCriteria; + + private String hostName; + + private String password; + + private SystemDisk systemDisk; + + private Integer deploymentSetGroupNo; + + private Integer storageSetPartitionNumber; + + private List tags; + + private String privatePoolOptionsId; + + private Integer autoRenewPeriod; + + private String nodeControllerId; + + private Integer period; + + private Boolean dryRun; + + private Long ownerId; + + private String vSwitchId; + + private String privateIpAddress; + + private String spotStrategy; + + private String periodUnit; + + private String instanceName; + + private Boolean autoRenew; + + private String internetChargeType; + + private String zoneId; + + private Integer internetMaxBandwidthIn; + + private Boolean useAdditionalService; + + private String affinity; + + private String imageId; + + private String clientToken; + + private String vlanId; + + private String spotInterruptionBehavior; + + private String ioOptimized; + + private String securityGroupId; + + private Integer internetMaxBandwidthOut; + + private Boolean hibernationOptionsConfigured; + + private String description; + + private String systemDiskCategory; + + private String systemDiskPerformanceLevel; + + private String userData; + + private Boolean passwordInherit; + + private String httpEndpoint; + + private String instanceType; + + private List arns; + + private String instanceChargeType; + + private String deploymentSetId; + + private String innerIpAddress; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String tenancy; + + private String systemDiskDiskName; + + private String ramRoleName; + + private String dedicatedHostId; + + private String clusterId; + + private String creditSpecification; + + private Integer spotDuration; + + private List dataDisks; + + private String storageSetId; + + private Integer systemDiskSize; + + private String imageFamily; + + private String httpTokens; + + private String systemDiskDescription; + public CreateInstanceRequest() { + super("Ecs", "2014-05-26", "CreateInstance", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getHpcClusterId() { + return this.hpcClusterId; + } + + public void setHpcClusterId(String hpcClusterId) { + this.hpcClusterId = hpcClusterId; + if(hpcClusterId != null){ + putQueryParameter("HpcClusterId", hpcClusterId); + } + } + + public Integer getHttpPutResponseHopLimit() { + return this.httpPutResponseHopLimit; + } + + public void setHttpPutResponseHopLimit(Integer httpPutResponseHopLimit) { + this.httpPutResponseHopLimit = httpPutResponseHopLimit; + if(httpPutResponseHopLimit != null){ + putQueryParameter("HttpPutResponseHopLimit", httpPutResponseHopLimit.toString()); + } + } + + public String getSecurityEnhancementStrategy() { + return this.securityEnhancementStrategy; + } + + public void setSecurityEnhancementStrategy(String securityEnhancementStrategy) { + this.securityEnhancementStrategy = securityEnhancementStrategy; + if(securityEnhancementStrategy != null){ + putQueryParameter("SecurityEnhancementStrategy", securityEnhancementStrategy); + } + } + + public String getKeyPairName() { + return this.keyPairName; + } + + public void setKeyPairName(String keyPairName) { + this.keyPairName = keyPairName; + if(keyPairName != null){ + putQueryParameter("KeyPairName", keyPairName); + } + } + + public Float getSpotPriceLimit() { + return this.spotPriceLimit; + } + + public void setSpotPriceLimit(Float spotPriceLimit) { + this.spotPriceLimit = spotPriceLimit; + if(spotPriceLimit != null){ + putQueryParameter("SpotPriceLimit", spotPriceLimit.toString()); + } + } + + public Boolean getDeletionProtection() { + return this.deletionProtection; + } + + public void setDeletionProtection(Boolean deletionProtection) { + this.deletionProtection = deletionProtection; + if(deletionProtection != null){ + putQueryParameter("DeletionProtection", deletionProtection.toString()); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public String getPrivatePoolOptionsMatchCriteria() { + return this.privatePoolOptionsMatchCriteria; + } + + public void setPrivatePoolOptionsMatchCriteria(String privatePoolOptionsMatchCriteria) { + this.privatePoolOptionsMatchCriteria = privatePoolOptionsMatchCriteria; + if(privatePoolOptionsMatchCriteria != null){ + putQueryParameter("PrivatePoolOptions.MatchCriteria", privatePoolOptionsMatchCriteria); + } + } + + public String getHostName() { + return this.hostName; + } + + public void setHostName(String hostName) { + this.hostName = hostName; + if(hostName != null){ + putQueryParameter("HostName", hostName); + } + } + + public String getPassword() { + return this.password; + } + + public void setPassword(String password) { + this.password = password; + if(password != null){ + putQueryParameter("Password", password); + } + } + + public SystemDisk getSystemDisk() { + return this.systemDisk; + } + + public void setSystemDisk(SystemDisk systemDisk) { + this.systemDisk = systemDisk; + if (systemDisk != null) { + + putQueryParameter("SystemDisk.StorageClusterId" , systemDisk.getStorageClusterId()); + } + } + + public Integer getDeploymentSetGroupNo() { + return this.deploymentSetGroupNo; + } + + public void setDeploymentSetGroupNo(Integer deploymentSetGroupNo) { + this.deploymentSetGroupNo = deploymentSetGroupNo; + if(deploymentSetGroupNo != null){ + putQueryParameter("DeploymentSetGroupNo", deploymentSetGroupNo.toString()); + } + } + + public Integer getStorageSetPartitionNumber() { + return this.storageSetPartitionNumber; + } + + public void setStorageSetPartitionNumber(Integer storageSetPartitionNumber) { + this.storageSetPartitionNumber = storageSetPartitionNumber; + if(storageSetPartitionNumber != null){ + putQueryParameter("StorageSetPartitionNumber", storageSetPartitionNumber.toString()); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + } + } + } + + public String getPrivatePoolOptionsId() { + return this.privatePoolOptionsId; + } + + public void setPrivatePoolOptionsId(String privatePoolOptionsId) { + this.privatePoolOptionsId = privatePoolOptionsId; + if(privatePoolOptionsId != null){ + putQueryParameter("PrivatePoolOptions.Id", privatePoolOptionsId); + } + } + + public Integer getAutoRenewPeriod() { + return this.autoRenewPeriod; + } + + public void setAutoRenewPeriod(Integer autoRenewPeriod) { + this.autoRenewPeriod = autoRenewPeriod; + if(autoRenewPeriod != null){ + putQueryParameter("AutoRenewPeriod", autoRenewPeriod.toString()); + } + } + + public String getNodeControllerId() { + return this.nodeControllerId; + } + + public void setNodeControllerId(String nodeControllerId) { + this.nodeControllerId = nodeControllerId; + if(nodeControllerId != null){ + putQueryParameter("NodeControllerId", nodeControllerId); + } + } + + public Integer getPeriod() { + return this.period; + } + + public void setPeriod(Integer period) { + this.period = period; + if(period != null){ + putQueryParameter("Period", period.toString()); + } + } + + public Boolean getDryRun() { + return this.dryRun; + } + + public void setDryRun(Boolean dryRun) { + this.dryRun = dryRun; + if(dryRun != null){ + putQueryParameter("DryRun", dryRun.toString()); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getVSwitchId() { + return this.vSwitchId; + } + + public void setVSwitchId(String vSwitchId) { + this.vSwitchId = vSwitchId; + if(vSwitchId != null){ + putQueryParameter("VSwitchId", vSwitchId); + } + } + + public String getPrivateIpAddress() { + return this.privateIpAddress; + } + + public void setPrivateIpAddress(String privateIpAddress) { + this.privateIpAddress = privateIpAddress; + if(privateIpAddress != null){ + putQueryParameter("PrivateIpAddress", privateIpAddress); + } + } + + public String getSpotStrategy() { + return this.spotStrategy; + } + + public void setSpotStrategy(String spotStrategy) { + this.spotStrategy = spotStrategy; + if(spotStrategy != null){ + putQueryParameter("SpotStrategy", spotStrategy); + } + } + + public String getPeriodUnit() { + return this.periodUnit; + } + + public void setPeriodUnit(String periodUnit) { + this.periodUnit = periodUnit; + if(periodUnit != null){ + putQueryParameter("PeriodUnit", periodUnit); + } + } + + public String getInstanceName() { + return this.instanceName; + } + + public void setInstanceName(String instanceName) { + this.instanceName = instanceName; + if(instanceName != null){ + putQueryParameter("InstanceName", instanceName); + } + } + + public Boolean getAutoRenew() { + return this.autoRenew; + } + + public void setAutoRenew(Boolean autoRenew) { + this.autoRenew = autoRenew; + if(autoRenew != null){ + putQueryParameter("AutoRenew", autoRenew.toString()); + } + } + + public String getInternetChargeType() { + return this.internetChargeType; + } + + public void setInternetChargeType(String internetChargeType) { + this.internetChargeType = internetChargeType; + if(internetChargeType != null){ + putQueryParameter("InternetChargeType", internetChargeType); + } + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + if(zoneId != null){ + putQueryParameter("ZoneId", zoneId); + } + } + + public Integer getInternetMaxBandwidthIn() { + return this.internetMaxBandwidthIn; + } + + public void setInternetMaxBandwidthIn(Integer internetMaxBandwidthIn) { + this.internetMaxBandwidthIn = internetMaxBandwidthIn; + if(internetMaxBandwidthIn != null){ + putQueryParameter("InternetMaxBandwidthIn", internetMaxBandwidthIn.toString()); + } + } + + public Boolean getUseAdditionalService() { + return this.useAdditionalService; + } + + public void setUseAdditionalService(Boolean useAdditionalService) { + this.useAdditionalService = useAdditionalService; + if(useAdditionalService != null){ + putQueryParameter("UseAdditionalService", useAdditionalService.toString()); + } + } + + public String getAffinity() { + return this.affinity; + } + + public void setAffinity(String affinity) { + this.affinity = affinity; + if(affinity != null){ + putQueryParameter("Affinity", affinity); + } + } + + public String getImageId() { + return this.imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + if(imageId != null){ + putQueryParameter("ImageId", imageId); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getVlanId() { + return this.vlanId; + } + + public void setVlanId(String vlanId) { + this.vlanId = vlanId; + if(vlanId != null){ + putQueryParameter("VlanId", vlanId); + } + } + + public String getSpotInterruptionBehavior() { + return this.spotInterruptionBehavior; + } + + public void setSpotInterruptionBehavior(String spotInterruptionBehavior) { + this.spotInterruptionBehavior = spotInterruptionBehavior; + if(spotInterruptionBehavior != null){ + putQueryParameter("SpotInterruptionBehavior", spotInterruptionBehavior); + } + } + + public String getIoOptimized() { + return this.ioOptimized; + } + + public void setIoOptimized(String ioOptimized) { + this.ioOptimized = ioOptimized; + if(ioOptimized != null){ + putQueryParameter("IoOptimized", ioOptimized); + } + } + + public String getSecurityGroupId() { + return this.securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + if(securityGroupId != null){ + putQueryParameter("SecurityGroupId", securityGroupId); + } + } + + public Integer getInternetMaxBandwidthOut() { + return this.internetMaxBandwidthOut; + } + + public void setInternetMaxBandwidthOut(Integer internetMaxBandwidthOut) { + this.internetMaxBandwidthOut = internetMaxBandwidthOut; + if(internetMaxBandwidthOut != null){ + putQueryParameter("InternetMaxBandwidthOut", internetMaxBandwidthOut.toString()); + } + } + + public Boolean getHibernationOptionsConfigured() { + return this.hibernationOptionsConfigured; + } + + public void setHibernationOptionsConfigured(Boolean hibernationOptionsConfigured) { + this.hibernationOptionsConfigured = hibernationOptionsConfigured; + if(hibernationOptionsConfigured != null){ + putQueryParameter("HibernationOptions.Configured", hibernationOptionsConfigured.toString()); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getSystemDiskCategory() { + return this.systemDiskCategory; + } + + public void setSystemDiskCategory(String systemDiskCategory) { + this.systemDiskCategory = systemDiskCategory; + if(systemDiskCategory != null){ + putQueryParameter("SystemDisk.Category", systemDiskCategory); + } + } + + public String getSystemDiskPerformanceLevel() { + return this.systemDiskPerformanceLevel; + } + + public void setSystemDiskPerformanceLevel(String systemDiskPerformanceLevel) { + this.systemDiskPerformanceLevel = systemDiskPerformanceLevel; + if(systemDiskPerformanceLevel != null){ + putQueryParameter("SystemDisk.PerformanceLevel", systemDiskPerformanceLevel); + } + } + + public String getUserData() { + return this.userData; + } + + public void setUserData(String userData) { + this.userData = userData; + if(userData != null){ + putQueryParameter("UserData", userData); + } + } + + public Boolean getPasswordInherit() { + return this.passwordInherit; + } + + public void setPasswordInherit(Boolean passwordInherit) { + this.passwordInherit = passwordInherit; + if(passwordInherit != null){ + putQueryParameter("PasswordInherit", passwordInherit.toString()); + } + } + + public String getHttpEndpoint() { + return this.httpEndpoint; + } + + public void setHttpEndpoint(String httpEndpoint) { + this.httpEndpoint = httpEndpoint; + if(httpEndpoint != null){ + putQueryParameter("HttpEndpoint", httpEndpoint); + } + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + if(instanceType != null){ + putQueryParameter("InstanceType", instanceType); + } + } + + public List getArns() { + return this.arns; + } + + public void setArns(List arns) { + this.arns = arns; + if (arns != null) { + for (int depth1 = 0; depth1 < arns.size(); depth1++) { + putQueryParameter("Arn." + (depth1 + 1) + ".Rolearn" , arns.get(depth1).getRolearn()); + putQueryParameter("Arn." + (depth1 + 1) + ".RoleType" , arns.get(depth1).getRoleType()); + putQueryParameter("Arn." + (depth1 + 1) + ".AssumeRoleFor" , arns.get(depth1).getAssumeRoleFor()); + } + } + } + + public String getInstanceChargeType() { + return this.instanceChargeType; + } + + public void setInstanceChargeType(String instanceChargeType) { + this.instanceChargeType = instanceChargeType; + if(instanceChargeType != null){ + putQueryParameter("InstanceChargeType", instanceChargeType); + } + } + + public String getDeploymentSetId() { + return this.deploymentSetId; + } + + public void setDeploymentSetId(String deploymentSetId) { + this.deploymentSetId = deploymentSetId; + if(deploymentSetId != null){ + putQueryParameter("DeploymentSetId", deploymentSetId); + } + } + + public String getInnerIpAddress() { + return this.innerIpAddress; + } + + public void setInnerIpAddress(String innerIpAddress) { + this.innerIpAddress = innerIpAddress; + if(innerIpAddress != null){ + putQueryParameter("InnerIpAddress", innerIpAddress); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getTenancy() { + return this.tenancy; + } + + public void setTenancy(String tenancy) { + this.tenancy = tenancy; + if(tenancy != null){ + putQueryParameter("Tenancy", tenancy); + } + } + + public String getSystemDiskDiskName() { + return this.systemDiskDiskName; + } + + public void setSystemDiskDiskName(String systemDiskDiskName) { + this.systemDiskDiskName = systemDiskDiskName; + if(systemDiskDiskName != null){ + putQueryParameter("SystemDisk.DiskName", systemDiskDiskName); + } + } + + public String getRamRoleName() { + return this.ramRoleName; + } + + public void setRamRoleName(String ramRoleName) { + this.ramRoleName = ramRoleName; + if(ramRoleName != null){ + putQueryParameter("RamRoleName", ramRoleName); + } + } + + public String getDedicatedHostId() { + return this.dedicatedHostId; + } + + public void setDedicatedHostId(String dedicatedHostId) { + this.dedicatedHostId = dedicatedHostId; + if(dedicatedHostId != null){ + putQueryParameter("DedicatedHostId", dedicatedHostId); + } + } + + public String getClusterId() { + return this.clusterId; + } + + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + if(clusterId != null){ + putQueryParameter("ClusterId", clusterId); + } + } + + public String getCreditSpecification() { + return this.creditSpecification; + } + + public void setCreditSpecification(String creditSpecification) { + this.creditSpecification = creditSpecification; + if(creditSpecification != null){ + putQueryParameter("CreditSpecification", creditSpecification); + } + } + + public Integer getSpotDuration() { + return this.spotDuration; + } + + public void setSpotDuration(Integer spotDuration) { + this.spotDuration = spotDuration; + if(spotDuration != null){ + putQueryParameter("SpotDuration", spotDuration.toString()); + } + } + + public List getDataDisks() { + return this.dataDisks; + } + + public void setDataDisks(List dataDisks) { + this.dataDisks = dataDisks; + if (dataDisks != null) { + for (int depth1 = 0; depth1 < dataDisks.size(); depth1++) { + putQueryParameter("DataDisk." + (depth1 + 1) + ".DiskName" , dataDisks.get(depth1).getDiskName()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".SnapshotId" , dataDisks.get(depth1).getSnapshotId()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".Size" , dataDisks.get(depth1).getSize()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".Encrypted" , dataDisks.get(depth1).getEncrypted()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".PerformanceLevel" , dataDisks.get(depth1).getPerformanceLevel()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".EncryptAlgorithm" , dataDisks.get(depth1).getEncryptAlgorithm()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".Description" , dataDisks.get(depth1).getDescription()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".StorageClusterId" , dataDisks.get(depth1).getStorageClusterId()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".Category" , dataDisks.get(depth1).getCategory()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".KMSKeyId" , dataDisks.get(depth1).getKMSKeyId()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".Device" , dataDisks.get(depth1).getDevice()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".DeleteWithInstance" , dataDisks.get(depth1).getDeleteWithInstance()); + } + } + } + + public String getStorageSetId() { + return this.storageSetId; + } + + public void setStorageSetId(String storageSetId) { + this.storageSetId = storageSetId; + if(storageSetId != null){ + putQueryParameter("StorageSetId", storageSetId); + } + } + + public Integer getSystemDiskSize() { + return this.systemDiskSize; + } + + public void setSystemDiskSize(Integer systemDiskSize) { + this.systemDiskSize = systemDiskSize; + if(systemDiskSize != null){ + putQueryParameter("SystemDisk.Size", systemDiskSize.toString()); + } + } + + public String getImageFamily() { + return this.imageFamily; + } + + public void setImageFamily(String imageFamily) { + this.imageFamily = imageFamily; + if(imageFamily != null){ + putQueryParameter("ImageFamily", imageFamily); + } + } + + public String getHttpTokens() { + return this.httpTokens; + } + + public void setHttpTokens(String httpTokens) { + this.httpTokens = httpTokens; + if(httpTokens != null){ + putQueryParameter("HttpTokens", httpTokens); + } + } + + public String getSystemDiskDescription() { + return this.systemDiskDescription; + } + + public void setSystemDiskDescription(String systemDiskDescription) { + this.systemDiskDescription = systemDiskDescription; + if(systemDiskDescription != null){ + putQueryParameter("SystemDisk.Description", systemDiskDescription); + } + } + + public static class SystemDisk { + + private String storageClusterId; + + public String getStorageClusterId() { + return this.storageClusterId; + } + + public void setStorageClusterId(String storageClusterId) { + this.storageClusterId = storageClusterId; + } + } + + public static class Tag { + + private String value; + + private String key; + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + } + + public static class Arn { + + private String rolearn; + + private String roleType; + + private Long assumeRoleFor; + + public String getRolearn() { + return this.rolearn; + } + + public void setRolearn(String rolearn) { + this.rolearn = rolearn; + } + + public String getRoleType() { + return this.roleType; + } + + public void setRoleType(String roleType) { + this.roleType = roleType; + } + + public Long getAssumeRoleFor() { + return this.assumeRoleFor; + } + + public void setAssumeRoleFor(Long assumeRoleFor) { + this.assumeRoleFor = assumeRoleFor; + } + } + + public static class DataDisk { + + private String diskName; + + private String snapshotId; + + private Integer size; + + private Boolean encrypted; + + private String performanceLevel; + + private String encryptAlgorithm; + + private String description; + + private String storageClusterId; + + private String category; + + private String kMSKeyId; + + private String device; + + private Boolean deleteWithInstance; + + public String getDiskName() { + return this.diskName; + } + + public void setDiskName(String diskName) { + this.diskName = diskName; + } + + public String getSnapshotId() { + return this.snapshotId; + } + + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; + } + + public Integer getSize() { + return this.size; + } + + public void setSize(Integer size) { + this.size = size; + } + + public Boolean getEncrypted() { + return this.encrypted; + } + + public void setEncrypted(Boolean encrypted) { + this.encrypted = encrypted; + } + + public String getPerformanceLevel() { + return this.performanceLevel; + } + + public void setPerformanceLevel(String performanceLevel) { + this.performanceLevel = performanceLevel; + } + + public String getEncryptAlgorithm() { + return this.encryptAlgorithm; + } + + public void setEncryptAlgorithm(String encryptAlgorithm) { + this.encryptAlgorithm = encryptAlgorithm; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getStorageClusterId() { + return this.storageClusterId; + } + + public void setStorageClusterId(String storageClusterId) { + this.storageClusterId = storageClusterId; + } + + public String getCategory() { + return this.category; + } + + public void setCategory(String category) { + this.category = category; + } + + public String getKMSKeyId() { + return this.kMSKeyId; + } + + public void setKMSKeyId(String kMSKeyId) { + this.kMSKeyId = kMSKeyId; + } + + public String getDevice() { + return this.device; + } + + public void setDevice(String device) { + this.device = device; + } + + public Boolean getDeleteWithInstance() { + return this.deleteWithInstance; + } + + public void setDeleteWithInstance(Boolean deleteWithInstance) { + this.deleteWithInstance = deleteWithInstance; + } + } + + @Override + public Class getResponseClass() { + return CreateInstanceResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateInstanceResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateInstanceResponse.java new file mode 100644 index 0000000000..f480ea6888 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateInstanceResponse.java @@ -0,0 +1,71 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreateInstanceResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateInstanceResponse extends AcsResponse { + + private String requestId; + + private String instanceId; + + private String orderId; + + private Float tradePrice; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getOrderId() { + return this.orderId; + } + + public void setOrderId(String orderId) { + this.orderId = orderId; + } + + public Float getTradePrice() { + return this.tradePrice; + } + + public void setTradePrice(Float tradePrice) { + this.tradePrice = tradePrice; + } + + @Override + public CreateInstanceResponse getInstance(UnmarshallerContext context) { + return CreateInstanceResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateKeyPairRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateKeyPairRequest.java new file mode 100644 index 0000000000..e76191c316 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateKeyPairRequest.java @@ -0,0 +1,146 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreateKeyPairRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String keyPairName; + + private String resourceGroupId; + + private List tags; + + private String resourceOwnerAccount; + + private Long ownerId; + public CreateKeyPairRequest() { + super("Ecs", "2014-05-26", "CreateKeyPair", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getKeyPairName() { + return this.keyPairName; + } + + public void setKeyPairName(String keyPairName) { + this.keyPairName = keyPairName; + if(keyPairName != null){ + putQueryParameter("KeyPairName", keyPairName); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public static class Tag { + + private String value; + + private String key; + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + } + + @Override + public Class getResponseClass() { + return CreateKeyPairResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateKeyPairResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateKeyPairResponse.java new file mode 100644 index 0000000000..b3208bc94d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateKeyPairResponse.java @@ -0,0 +1,81 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreateKeyPairResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateKeyPairResponse extends AcsResponse { + + private String privateKeyBody; + + private String keyPairName; + + private String keyPairId; + + private String requestId; + + private String keyPairFingerPrint; + + public String getPrivateKeyBody() { + return this.privateKeyBody; + } + + public void setPrivateKeyBody(String privateKeyBody) { + this.privateKeyBody = privateKeyBody; + } + + public String getKeyPairName() { + return this.keyPairName; + } + + public void setKeyPairName(String keyPairName) { + this.keyPairName = keyPairName; + } + + public String getKeyPairId() { + return this.keyPairId; + } + + public void setKeyPairId(String keyPairId) { + this.keyPairId = keyPairId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getKeyPairFingerPrint() { + return this.keyPairFingerPrint; + } + + public void setKeyPairFingerPrint(String keyPairFingerPrint) { + this.keyPairFingerPrint = keyPairFingerPrint; + } + + @Override + public CreateKeyPairResponse getInstance(UnmarshallerContext context) { + return CreateKeyPairResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateLaunchTemplateRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateLaunchTemplateRequest.java new file mode 100644 index 0000000000..7729601a3e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateLaunchTemplateRequest.java @@ -0,0 +1,1030 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreateLaunchTemplateRequest extends RpcAcsRequest { + + + private String launchTemplateName; + + private Long resourceOwnerId; + + private String securityEnhancementStrategy; + + private String networkType; + + private String keyPairName; + + private Float spotPriceLimit; + + private String imageOwnerAlias; + + private String resourceGroupId; + + private String hostName; + + private Integer systemDiskIops; + + private List templateTags; + + private List tags; + + private String systemDiskAutoSnapshotPolicyId; + + private Integer period; + + private Integer ipv6AddressCount; + + private String templateResourceGroupId; + + private Long ownerId; + + private String vSwitchId; + + private String spotStrategy; + + private String privateIpAddress; + + private Boolean systemDiskBurstingEnabled; + + private String instanceName; + + private String internetChargeType; + + private String zoneId; + + private Integer internetMaxBandwidthIn; + + private String versionDescription; + + private Boolean systemDiskDeleteWithInstance; + + private String imageId; + + private String ioOptimized; + + private String securityGroupId; + + private Integer internetMaxBandwidthOut; + + private String description; + + private String systemDiskCategory; + + private String systemDiskPerformanceLevel; + + private String userData; + + private Boolean passwordInherit; + + private String instanceType; + + private String instanceChargeType; + + private Boolean enableVmOsConfig; + + private String deploymentSetId; + + private List networkInterfaces; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String systemDiskDiskName; + + private String ramRoleName; + + private String autoReleaseTime; + + private Integer spotDuration; + + private List securityGroupIdss; + + private List dataDisks; + + private Long systemDiskProvisionedIops; + + private Integer systemDiskSize; + + private String vpcId; + + private String systemDiskDescription; + + private String systemDiskEncrypted; + public CreateLaunchTemplateRequest() { + super("Ecs", "2014-05-26", "CreateLaunchTemplate", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getLaunchTemplateName() { + return this.launchTemplateName; + } + + public void setLaunchTemplateName(String launchTemplateName) { + this.launchTemplateName = launchTemplateName; + if(launchTemplateName != null){ + putQueryParameter("LaunchTemplateName", launchTemplateName); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getSecurityEnhancementStrategy() { + return this.securityEnhancementStrategy; + } + + public void setSecurityEnhancementStrategy(String securityEnhancementStrategy) { + this.securityEnhancementStrategy = securityEnhancementStrategy; + if(securityEnhancementStrategy != null){ + putQueryParameter("SecurityEnhancementStrategy", securityEnhancementStrategy); + } + } + + public String getNetworkType() { + return this.networkType; + } + + public void setNetworkType(String networkType) { + this.networkType = networkType; + if(networkType != null){ + putQueryParameter("NetworkType", networkType); + } + } + + public String getKeyPairName() { + return this.keyPairName; + } + + public void setKeyPairName(String keyPairName) { + this.keyPairName = keyPairName; + if(keyPairName != null){ + putQueryParameter("KeyPairName", keyPairName); + } + } + + public Float getSpotPriceLimit() { + return this.spotPriceLimit; + } + + public void setSpotPriceLimit(Float spotPriceLimit) { + this.spotPriceLimit = spotPriceLimit; + if(spotPriceLimit != null){ + putQueryParameter("SpotPriceLimit", spotPriceLimit.toString()); + } + } + + public String getImageOwnerAlias() { + return this.imageOwnerAlias; + } + + public void setImageOwnerAlias(String imageOwnerAlias) { + this.imageOwnerAlias = imageOwnerAlias; + if(imageOwnerAlias != null){ + putQueryParameter("ImageOwnerAlias", imageOwnerAlias); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public String getHostName() { + return this.hostName; + } + + public void setHostName(String hostName) { + this.hostName = hostName; + if(hostName != null){ + putQueryParameter("HostName", hostName); + } + } + + public Integer getSystemDiskIops() { + return this.systemDiskIops; + } + + public void setSystemDiskIops(Integer systemDiskIops) { + this.systemDiskIops = systemDiskIops; + if(systemDiskIops != null){ + putQueryParameter("SystemDisk.Iops", systemDiskIops.toString()); + } + } + + public List getTemplateTags() { + return this.templateTags; + } + + public void setTemplateTags(List templateTags) { + this.templateTags = templateTags; + if (templateTags != null) { + for (int depth1 = 0; depth1 < templateTags.size(); depth1++) { + putQueryParameter("TemplateTag." + (depth1 + 1) + ".Key" , templateTags.get(depth1).getKey()); + putQueryParameter("TemplateTag." + (depth1 + 1) + ".Value" , templateTags.get(depth1).getValue()); + } + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public String getSystemDiskAutoSnapshotPolicyId() { + return this.systemDiskAutoSnapshotPolicyId; + } + + public void setSystemDiskAutoSnapshotPolicyId(String systemDiskAutoSnapshotPolicyId) { + this.systemDiskAutoSnapshotPolicyId = systemDiskAutoSnapshotPolicyId; + if(systemDiskAutoSnapshotPolicyId != null){ + putQueryParameter("SystemDisk.AutoSnapshotPolicyId", systemDiskAutoSnapshotPolicyId); + } + } + + public Integer getPeriod() { + return this.period; + } + + public void setPeriod(Integer period) { + this.period = period; + if(period != null){ + putQueryParameter("Period", period.toString()); + } + } + + public Integer getIpv6AddressCount() { + return this.ipv6AddressCount; + } + + public void setIpv6AddressCount(Integer ipv6AddressCount) { + this.ipv6AddressCount = ipv6AddressCount; + if(ipv6AddressCount != null){ + putQueryParameter("Ipv6AddressCount", ipv6AddressCount.toString()); + } + } + + public String getTemplateResourceGroupId() { + return this.templateResourceGroupId; + } + + public void setTemplateResourceGroupId(String templateResourceGroupId) { + this.templateResourceGroupId = templateResourceGroupId; + if(templateResourceGroupId != null){ + putQueryParameter("TemplateResourceGroupId", templateResourceGroupId); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getVSwitchId() { + return this.vSwitchId; + } + + public void setVSwitchId(String vSwitchId) { + this.vSwitchId = vSwitchId; + if(vSwitchId != null){ + putQueryParameter("VSwitchId", vSwitchId); + } + } + + public String getSpotStrategy() { + return this.spotStrategy; + } + + public void setSpotStrategy(String spotStrategy) { + this.spotStrategy = spotStrategy; + if(spotStrategy != null){ + putQueryParameter("SpotStrategy", spotStrategy); + } + } + + public String getPrivateIpAddress() { + return this.privateIpAddress; + } + + public void setPrivateIpAddress(String privateIpAddress) { + this.privateIpAddress = privateIpAddress; + if(privateIpAddress != null){ + putQueryParameter("PrivateIpAddress", privateIpAddress); + } + } + + public Boolean getSystemDiskBurstingEnabled() { + return this.systemDiskBurstingEnabled; + } + + public void setSystemDiskBurstingEnabled(Boolean systemDiskBurstingEnabled) { + this.systemDiskBurstingEnabled = systemDiskBurstingEnabled; + if(systemDiskBurstingEnabled != null){ + putQueryParameter("SystemDisk.BurstingEnabled", systemDiskBurstingEnabled.toString()); + } + } + + public String getInstanceName() { + return this.instanceName; + } + + public void setInstanceName(String instanceName) { + this.instanceName = instanceName; + if(instanceName != null){ + putQueryParameter("InstanceName", instanceName); + } + } + + public String getInternetChargeType() { + return this.internetChargeType; + } + + public void setInternetChargeType(String internetChargeType) { + this.internetChargeType = internetChargeType; + if(internetChargeType != null){ + putQueryParameter("InternetChargeType", internetChargeType); + } + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + if(zoneId != null){ + putQueryParameter("ZoneId", zoneId); + } + } + + public Integer getInternetMaxBandwidthIn() { + return this.internetMaxBandwidthIn; + } + + public void setInternetMaxBandwidthIn(Integer internetMaxBandwidthIn) { + this.internetMaxBandwidthIn = internetMaxBandwidthIn; + if(internetMaxBandwidthIn != null){ + putQueryParameter("InternetMaxBandwidthIn", internetMaxBandwidthIn.toString()); + } + } + + public String getVersionDescription() { + return this.versionDescription; + } + + public void setVersionDescription(String versionDescription) { + this.versionDescription = versionDescription; + if(versionDescription != null){ + putQueryParameter("VersionDescription", versionDescription); + } + } + + public Boolean getSystemDiskDeleteWithInstance() { + return this.systemDiskDeleteWithInstance; + } + + public void setSystemDiskDeleteWithInstance(Boolean systemDiskDeleteWithInstance) { + this.systemDiskDeleteWithInstance = systemDiskDeleteWithInstance; + if(systemDiskDeleteWithInstance != null){ + putQueryParameter("SystemDisk.DeleteWithInstance", systemDiskDeleteWithInstance.toString()); + } + } + + public String getImageId() { + return this.imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + if(imageId != null){ + putQueryParameter("ImageId", imageId); + } + } + + public String getIoOptimized() { + return this.ioOptimized; + } + + public void setIoOptimized(String ioOptimized) { + this.ioOptimized = ioOptimized; + if(ioOptimized != null){ + putQueryParameter("IoOptimized", ioOptimized); + } + } + + public String getSecurityGroupId() { + return this.securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + if(securityGroupId != null){ + putQueryParameter("SecurityGroupId", securityGroupId); + } + } + + public Integer getInternetMaxBandwidthOut() { + return this.internetMaxBandwidthOut; + } + + public void setInternetMaxBandwidthOut(Integer internetMaxBandwidthOut) { + this.internetMaxBandwidthOut = internetMaxBandwidthOut; + if(internetMaxBandwidthOut != null){ + putQueryParameter("InternetMaxBandwidthOut", internetMaxBandwidthOut.toString()); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getSystemDiskCategory() { + return this.systemDiskCategory; + } + + public void setSystemDiskCategory(String systemDiskCategory) { + this.systemDiskCategory = systemDiskCategory; + if(systemDiskCategory != null){ + putQueryParameter("SystemDisk.Category", systemDiskCategory); + } + } + + public String getSystemDiskPerformanceLevel() { + return this.systemDiskPerformanceLevel; + } + + public void setSystemDiskPerformanceLevel(String systemDiskPerformanceLevel) { + this.systemDiskPerformanceLevel = systemDiskPerformanceLevel; + if(systemDiskPerformanceLevel != null){ + putQueryParameter("SystemDisk.PerformanceLevel", systemDiskPerformanceLevel); + } + } + + public String getUserData() { + return this.userData; + } + + public void setUserData(String userData) { + this.userData = userData; + if(userData != null){ + putQueryParameter("UserData", userData); + } + } + + public Boolean getPasswordInherit() { + return this.passwordInherit; + } + + public void setPasswordInherit(Boolean passwordInherit) { + this.passwordInherit = passwordInherit; + if(passwordInherit != null){ + putQueryParameter("PasswordInherit", passwordInherit.toString()); + } + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + if(instanceType != null){ + putQueryParameter("InstanceType", instanceType); + } + } + + public String getInstanceChargeType() { + return this.instanceChargeType; + } + + public void setInstanceChargeType(String instanceChargeType) { + this.instanceChargeType = instanceChargeType; + if(instanceChargeType != null){ + putQueryParameter("InstanceChargeType", instanceChargeType); + } + } + + public Boolean getEnableVmOsConfig() { + return this.enableVmOsConfig; + } + + public void setEnableVmOsConfig(Boolean enableVmOsConfig) { + this.enableVmOsConfig = enableVmOsConfig; + if(enableVmOsConfig != null){ + putQueryParameter("EnableVmOsConfig", enableVmOsConfig.toString()); + } + } + + public String getDeploymentSetId() { + return this.deploymentSetId; + } + + public void setDeploymentSetId(String deploymentSetId) { + this.deploymentSetId = deploymentSetId; + if(deploymentSetId != null){ + putQueryParameter("DeploymentSetId", deploymentSetId); + } + } + + public List getNetworkInterfaces() { + return this.networkInterfaces; + } + + public void setNetworkInterfaces(List networkInterfaces) { + this.networkInterfaces = networkInterfaces; + if (networkInterfaces != null) { + for (int depth1 = 0; depth1 < networkInterfaces.size(); depth1++) { + putQueryParameter("NetworkInterface." + (depth1 + 1) + ".VSwitchId" , networkInterfaces.get(depth1).getVSwitchId()); + putQueryParameter("NetworkInterface." + (depth1 + 1) + ".NetworkInterfaceName" , networkInterfaces.get(depth1).getNetworkInterfaceName()); + putQueryParameter("NetworkInterface." + (depth1 + 1) + ".Description" , networkInterfaces.get(depth1).getDescription()); + putQueryParameter("NetworkInterface." + (depth1 + 1) + ".SecurityGroupId" , networkInterfaces.get(depth1).getSecurityGroupId()); + putQueryParameter("NetworkInterface." + (depth1 + 1) + ".PrimaryIpAddress" , networkInterfaces.get(depth1).getPrimaryIpAddress()); + if (networkInterfaces.get(depth1).getSecurityGroupIdss() != null) { + for (int i = 0; i < networkInterfaces.get(depth1).getSecurityGroupIdss().size(); i++) { + putQueryParameter("NetworkInterface." + (depth1 + 1) + ".SecurityGroupIds." + (i + 1) , networkInterfaces.get(depth1).getSecurityGroupIdss().get(i)); + } + } + putQueryParameter("NetworkInterface." + (depth1 + 1) + ".InstanceType" , networkInterfaces.get(depth1).getInstanceType()); + putQueryParameter("NetworkInterface." + (depth1 + 1) + ".NetworkInterfaceTrafficMode" , networkInterfaces.get(depth1).getNetworkInterfaceTrafficMode()); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getSystemDiskDiskName() { + return this.systemDiskDiskName; + } + + public void setSystemDiskDiskName(String systemDiskDiskName) { + this.systemDiskDiskName = systemDiskDiskName; + if(systemDiskDiskName != null){ + putQueryParameter("SystemDisk.DiskName", systemDiskDiskName); + } + } + + public String getRamRoleName() { + return this.ramRoleName; + } + + public void setRamRoleName(String ramRoleName) { + this.ramRoleName = ramRoleName; + if(ramRoleName != null){ + putQueryParameter("RamRoleName", ramRoleName); + } + } + + public String getAutoReleaseTime() { + return this.autoReleaseTime; + } + + public void setAutoReleaseTime(String autoReleaseTime) { + this.autoReleaseTime = autoReleaseTime; + if(autoReleaseTime != null){ + putQueryParameter("AutoReleaseTime", autoReleaseTime); + } + } + + public Integer getSpotDuration() { + return this.spotDuration; + } + + public void setSpotDuration(Integer spotDuration) { + this.spotDuration = spotDuration; + if(spotDuration != null){ + putQueryParameter("SpotDuration", spotDuration.toString()); + } + } + + public List getSecurityGroupIdss() { + return this.securityGroupIdss; + } + + public void setSecurityGroupIdss(List securityGroupIdss) { + this.securityGroupIdss = securityGroupIdss; + if (securityGroupIdss != null) { + for (int i = 0; i < securityGroupIdss.size(); i++) { + putQueryParameter("SecurityGroupIds." + (i + 1) , securityGroupIdss.get(i)); + } + } + } + + public List getDataDisks() { + return this.dataDisks; + } + + public void setDataDisks(List dataDisks) { + this.dataDisks = dataDisks; + if (dataDisks != null) { + for (int depth1 = 0; depth1 < dataDisks.size(); depth1++) { + putQueryParameter("DataDisk." + (depth1 + 1) + ".PerformanceLevel" , dataDisks.get(depth1).getPerformanceLevel()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".Description" , dataDisks.get(depth1).getDescription()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".SnapshotId" , dataDisks.get(depth1).getSnapshotId()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".Size" , dataDisks.get(depth1).getSize()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".Device" , dataDisks.get(depth1).getDevice()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".DiskName" , dataDisks.get(depth1).getDiskName()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".Category" , dataDisks.get(depth1).getCategory()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".DeleteWithInstance" , dataDisks.get(depth1).getDeleteWithInstance()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".Encrypted" , dataDisks.get(depth1).getEncrypted()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".AutoSnapshotPolicyId" , dataDisks.get(depth1).getAutoSnapshotPolicyId()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".ProvisionedIops" , dataDisks.get(depth1).getProvisionedIops()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".BurstingEnabled" , dataDisks.get(depth1).getBurstingEnabled()); + } + } + } + + public Long getSystemDiskProvisionedIops() { + return this.systemDiskProvisionedIops; + } + + public void setSystemDiskProvisionedIops(Long systemDiskProvisionedIops) { + this.systemDiskProvisionedIops = systemDiskProvisionedIops; + if(systemDiskProvisionedIops != null){ + putQueryParameter("SystemDisk.ProvisionedIops", systemDiskProvisionedIops.toString()); + } + } + + public Integer getSystemDiskSize() { + return this.systemDiskSize; + } + + public void setSystemDiskSize(Integer systemDiskSize) { + this.systemDiskSize = systemDiskSize; + if(systemDiskSize != null){ + putQueryParameter("SystemDisk.Size", systemDiskSize.toString()); + } + } + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + if(vpcId != null){ + putQueryParameter("VpcId", vpcId); + } + } + + public String getSystemDiskDescription() { + return this.systemDiskDescription; + } + + public void setSystemDiskDescription(String systemDiskDescription) { + this.systemDiskDescription = systemDiskDescription; + if(systemDiskDescription != null){ + putQueryParameter("SystemDisk.Description", systemDiskDescription); + } + } + + public String getSystemDiskEncrypted() { + return this.systemDiskEncrypted; + } + + public void setSystemDiskEncrypted(String systemDiskEncrypted) { + this.systemDiskEncrypted = systemDiskEncrypted; + if(systemDiskEncrypted != null){ + putQueryParameter("SystemDisk.Encrypted", systemDiskEncrypted); + } + } + + public static class TemplateTag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + public static class NetworkInterface { + + private String vSwitchId; + + private String networkInterfaceName; + + private String description; + + private String securityGroupId; + + private String primaryIpAddress; + + private List securityGroupIdss; + + private String instanceType; + + private String networkInterfaceTrafficMode; + + public String getVSwitchId() { + return this.vSwitchId; + } + + public void setVSwitchId(String vSwitchId) { + this.vSwitchId = vSwitchId; + } + + public String getNetworkInterfaceName() { + return this.networkInterfaceName; + } + + public void setNetworkInterfaceName(String networkInterfaceName) { + this.networkInterfaceName = networkInterfaceName; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getSecurityGroupId() { + return this.securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + } + + public String getPrimaryIpAddress() { + return this.primaryIpAddress; + } + + public void setPrimaryIpAddress(String primaryIpAddress) { + this.primaryIpAddress = primaryIpAddress; + } + + public List getSecurityGroupIdss() { + return this.securityGroupIdss; + } + + public void setSecurityGroupIdss(List securityGroupIdss) { + this.securityGroupIdss = securityGroupIdss; + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public String getNetworkInterfaceTrafficMode() { + return this.networkInterfaceTrafficMode; + } + + public void setNetworkInterfaceTrafficMode(String networkInterfaceTrafficMode) { + this.networkInterfaceTrafficMode = networkInterfaceTrafficMode; + } + } + + public static class DataDisk { + + private String performanceLevel; + + private String description; + + private String snapshotId; + + private Integer size; + + private String device; + + private String diskName; + + private String category; + + private Boolean deleteWithInstance; + + private String encrypted; + + private String autoSnapshotPolicyId; + + private Long provisionedIops; + + private Boolean burstingEnabled; + + public String getPerformanceLevel() { + return this.performanceLevel; + } + + public void setPerformanceLevel(String performanceLevel) { + this.performanceLevel = performanceLevel; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getSnapshotId() { + return this.snapshotId; + } + + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; + } + + public Integer getSize() { + return this.size; + } + + public void setSize(Integer size) { + this.size = size; + } + + public String getDevice() { + return this.device; + } + + public void setDevice(String device) { + this.device = device; + } + + public String getDiskName() { + return this.diskName; + } + + public void setDiskName(String diskName) { + this.diskName = diskName; + } + + public String getCategory() { + return this.category; + } + + public void setCategory(String category) { + this.category = category; + } + + public Boolean getDeleteWithInstance() { + return this.deleteWithInstance; + } + + public void setDeleteWithInstance(Boolean deleteWithInstance) { + this.deleteWithInstance = deleteWithInstance; + } + + public String getEncrypted() { + return this.encrypted; + } + + public void setEncrypted(String encrypted) { + this.encrypted = encrypted; + } + + public String getAutoSnapshotPolicyId() { + return this.autoSnapshotPolicyId; + } + + public void setAutoSnapshotPolicyId(String autoSnapshotPolicyId) { + this.autoSnapshotPolicyId = autoSnapshotPolicyId; + } + + public Long getProvisionedIops() { + return this.provisionedIops; + } + + public void setProvisionedIops(Long provisionedIops) { + this.provisionedIops = provisionedIops; + } + + public Boolean getBurstingEnabled() { + return this.burstingEnabled; + } + + public void setBurstingEnabled(Boolean burstingEnabled) { + this.burstingEnabled = burstingEnabled; + } + } + + @Override + public Class getResponseClass() { + return CreateLaunchTemplateResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateLaunchTemplateResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateLaunchTemplateResponse.java new file mode 100644 index 0000000000..dbdad4a017 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateLaunchTemplateResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreateLaunchTemplateResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateLaunchTemplateResponse extends AcsResponse { + + private String launchTemplateId; + + private String requestId; + + public String getLaunchTemplateId() { + return this.launchTemplateId; + } + + public void setLaunchTemplateId(String launchTemplateId) { + this.launchTemplateId = launchTemplateId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public CreateLaunchTemplateResponse getInstance(UnmarshallerContext context) { + return CreateLaunchTemplateResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateLaunchTemplateVersionRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateLaunchTemplateVersionRequest.java new file mode 100644 index 0000000000..ae78277a0e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateLaunchTemplateVersionRequest.java @@ -0,0 +1,991 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreateLaunchTemplateVersionRequest extends RpcAcsRequest { + + + private String launchTemplateName; + + private Long resourceOwnerId; + + private String securityEnhancementStrategy; + + private String networkType; + + private String keyPairName; + + private Float spotPriceLimit; + + private String imageOwnerAlias; + + private String resourceGroupId; + + private String hostName; + + private Integer systemDiskIops; + + private List tags; + + private String systemDiskAutoSnapshotPolicyId; + + private Integer period; + + private String launchTemplateId; + + private Integer ipv6AddressCount; + + private Long ownerId; + + private String vSwitchId; + + private String spotStrategy; + + private String privateIpAddress; + + private Boolean systemDiskBurstingEnabled; + + private String instanceName; + + private String internetChargeType; + + private String zoneId; + + private Integer internetMaxBandwidthIn; + + private String versionDescription; + + private Boolean systemDiskDeleteWithInstance; + + private String imageId; + + private String ioOptimized; + + private String securityGroupId; + + private Integer internetMaxBandwidthOut; + + private String description; + + private String systemDiskCategory; + + private String systemDiskPerformanceLevel; + + private String userData; + + private Boolean passwordInherit; + + private String instanceType; + + private String instanceChargeType; + + private Boolean enableVmOsConfig; + + private String deploymentSetId; + + private List networkInterfaces; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String systemDiskDiskName; + + private String ramRoleName; + + private String autoReleaseTime; + + private Integer spotDuration; + + private List securityGroupIdss; + + private List dataDisks; + + private Long systemDiskProvisionedIops; + + private Integer systemDiskSize; + + private String vpcId; + + private String systemDiskDescription; + + private String systemDiskEncrypted; + public CreateLaunchTemplateVersionRequest() { + super("Ecs", "2014-05-26", "CreateLaunchTemplateVersion", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getLaunchTemplateName() { + return this.launchTemplateName; + } + + public void setLaunchTemplateName(String launchTemplateName) { + this.launchTemplateName = launchTemplateName; + if(launchTemplateName != null){ + putQueryParameter("LaunchTemplateName", launchTemplateName); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getSecurityEnhancementStrategy() { + return this.securityEnhancementStrategy; + } + + public void setSecurityEnhancementStrategy(String securityEnhancementStrategy) { + this.securityEnhancementStrategy = securityEnhancementStrategy; + if(securityEnhancementStrategy != null){ + putQueryParameter("SecurityEnhancementStrategy", securityEnhancementStrategy); + } + } + + public String getNetworkType() { + return this.networkType; + } + + public void setNetworkType(String networkType) { + this.networkType = networkType; + if(networkType != null){ + putQueryParameter("NetworkType", networkType); + } + } + + public String getKeyPairName() { + return this.keyPairName; + } + + public void setKeyPairName(String keyPairName) { + this.keyPairName = keyPairName; + if(keyPairName != null){ + putQueryParameter("KeyPairName", keyPairName); + } + } + + public Float getSpotPriceLimit() { + return this.spotPriceLimit; + } + + public void setSpotPriceLimit(Float spotPriceLimit) { + this.spotPriceLimit = spotPriceLimit; + if(spotPriceLimit != null){ + putQueryParameter("SpotPriceLimit", spotPriceLimit.toString()); + } + } + + public String getImageOwnerAlias() { + return this.imageOwnerAlias; + } + + public void setImageOwnerAlias(String imageOwnerAlias) { + this.imageOwnerAlias = imageOwnerAlias; + if(imageOwnerAlias != null){ + putQueryParameter("ImageOwnerAlias", imageOwnerAlias); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public String getHostName() { + return this.hostName; + } + + public void setHostName(String hostName) { + this.hostName = hostName; + if(hostName != null){ + putQueryParameter("HostName", hostName); + } + } + + public Integer getSystemDiskIops() { + return this.systemDiskIops; + } + + public void setSystemDiskIops(Integer systemDiskIops) { + this.systemDiskIops = systemDiskIops; + if(systemDiskIops != null){ + putQueryParameter("SystemDisk.Iops", systemDiskIops.toString()); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public String getSystemDiskAutoSnapshotPolicyId() { + return this.systemDiskAutoSnapshotPolicyId; + } + + public void setSystemDiskAutoSnapshotPolicyId(String systemDiskAutoSnapshotPolicyId) { + this.systemDiskAutoSnapshotPolicyId = systemDiskAutoSnapshotPolicyId; + if(systemDiskAutoSnapshotPolicyId != null){ + putQueryParameter("SystemDisk.AutoSnapshotPolicyId", systemDiskAutoSnapshotPolicyId); + } + } + + public Integer getPeriod() { + return this.period; + } + + public void setPeriod(Integer period) { + this.period = period; + if(period != null){ + putQueryParameter("Period", period.toString()); + } + } + + public String getLaunchTemplateId() { + return this.launchTemplateId; + } + + public void setLaunchTemplateId(String launchTemplateId) { + this.launchTemplateId = launchTemplateId; + if(launchTemplateId != null){ + putQueryParameter("LaunchTemplateId", launchTemplateId); + } + } + + public Integer getIpv6AddressCount() { + return this.ipv6AddressCount; + } + + public void setIpv6AddressCount(Integer ipv6AddressCount) { + this.ipv6AddressCount = ipv6AddressCount; + if(ipv6AddressCount != null){ + putQueryParameter("Ipv6AddressCount", ipv6AddressCount.toString()); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getVSwitchId() { + return this.vSwitchId; + } + + public void setVSwitchId(String vSwitchId) { + this.vSwitchId = vSwitchId; + if(vSwitchId != null){ + putQueryParameter("VSwitchId", vSwitchId); + } + } + + public String getSpotStrategy() { + return this.spotStrategy; + } + + public void setSpotStrategy(String spotStrategy) { + this.spotStrategy = spotStrategy; + if(spotStrategy != null){ + putQueryParameter("SpotStrategy", spotStrategy); + } + } + + public String getPrivateIpAddress() { + return this.privateIpAddress; + } + + public void setPrivateIpAddress(String privateIpAddress) { + this.privateIpAddress = privateIpAddress; + if(privateIpAddress != null){ + putQueryParameter("PrivateIpAddress", privateIpAddress); + } + } + + public Boolean getSystemDiskBurstingEnabled() { + return this.systemDiskBurstingEnabled; + } + + public void setSystemDiskBurstingEnabled(Boolean systemDiskBurstingEnabled) { + this.systemDiskBurstingEnabled = systemDiskBurstingEnabled; + if(systemDiskBurstingEnabled != null){ + putQueryParameter("SystemDisk.BurstingEnabled", systemDiskBurstingEnabled.toString()); + } + } + + public String getInstanceName() { + return this.instanceName; + } + + public void setInstanceName(String instanceName) { + this.instanceName = instanceName; + if(instanceName != null){ + putQueryParameter("InstanceName", instanceName); + } + } + + public String getInternetChargeType() { + return this.internetChargeType; + } + + public void setInternetChargeType(String internetChargeType) { + this.internetChargeType = internetChargeType; + if(internetChargeType != null){ + putQueryParameter("InternetChargeType", internetChargeType); + } + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + if(zoneId != null){ + putQueryParameter("ZoneId", zoneId); + } + } + + public Integer getInternetMaxBandwidthIn() { + return this.internetMaxBandwidthIn; + } + + public void setInternetMaxBandwidthIn(Integer internetMaxBandwidthIn) { + this.internetMaxBandwidthIn = internetMaxBandwidthIn; + if(internetMaxBandwidthIn != null){ + putQueryParameter("InternetMaxBandwidthIn", internetMaxBandwidthIn.toString()); + } + } + + public String getVersionDescription() { + return this.versionDescription; + } + + public void setVersionDescription(String versionDescription) { + this.versionDescription = versionDescription; + if(versionDescription != null){ + putQueryParameter("VersionDescription", versionDescription); + } + } + + public Boolean getSystemDiskDeleteWithInstance() { + return this.systemDiskDeleteWithInstance; + } + + public void setSystemDiskDeleteWithInstance(Boolean systemDiskDeleteWithInstance) { + this.systemDiskDeleteWithInstance = systemDiskDeleteWithInstance; + if(systemDiskDeleteWithInstance != null){ + putQueryParameter("SystemDisk.DeleteWithInstance", systemDiskDeleteWithInstance.toString()); + } + } + + public String getImageId() { + return this.imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + if(imageId != null){ + putQueryParameter("ImageId", imageId); + } + } + + public String getIoOptimized() { + return this.ioOptimized; + } + + public void setIoOptimized(String ioOptimized) { + this.ioOptimized = ioOptimized; + if(ioOptimized != null){ + putQueryParameter("IoOptimized", ioOptimized); + } + } + + public String getSecurityGroupId() { + return this.securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + if(securityGroupId != null){ + putQueryParameter("SecurityGroupId", securityGroupId); + } + } + + public Integer getInternetMaxBandwidthOut() { + return this.internetMaxBandwidthOut; + } + + public void setInternetMaxBandwidthOut(Integer internetMaxBandwidthOut) { + this.internetMaxBandwidthOut = internetMaxBandwidthOut; + if(internetMaxBandwidthOut != null){ + putQueryParameter("InternetMaxBandwidthOut", internetMaxBandwidthOut.toString()); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getSystemDiskCategory() { + return this.systemDiskCategory; + } + + public void setSystemDiskCategory(String systemDiskCategory) { + this.systemDiskCategory = systemDiskCategory; + if(systemDiskCategory != null){ + putQueryParameter("SystemDisk.Category", systemDiskCategory); + } + } + + public String getSystemDiskPerformanceLevel() { + return this.systemDiskPerformanceLevel; + } + + public void setSystemDiskPerformanceLevel(String systemDiskPerformanceLevel) { + this.systemDiskPerformanceLevel = systemDiskPerformanceLevel; + if(systemDiskPerformanceLevel != null){ + putQueryParameter("SystemDisk.PerformanceLevel", systemDiskPerformanceLevel); + } + } + + public String getUserData() { + return this.userData; + } + + public void setUserData(String userData) { + this.userData = userData; + if(userData != null){ + putQueryParameter("UserData", userData); + } + } + + public Boolean getPasswordInherit() { + return this.passwordInherit; + } + + public void setPasswordInherit(Boolean passwordInherit) { + this.passwordInherit = passwordInherit; + if(passwordInherit != null){ + putQueryParameter("PasswordInherit", passwordInherit.toString()); + } + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + if(instanceType != null){ + putQueryParameter("InstanceType", instanceType); + } + } + + public String getInstanceChargeType() { + return this.instanceChargeType; + } + + public void setInstanceChargeType(String instanceChargeType) { + this.instanceChargeType = instanceChargeType; + if(instanceChargeType != null){ + putQueryParameter("InstanceChargeType", instanceChargeType); + } + } + + public Boolean getEnableVmOsConfig() { + return this.enableVmOsConfig; + } + + public void setEnableVmOsConfig(Boolean enableVmOsConfig) { + this.enableVmOsConfig = enableVmOsConfig; + if(enableVmOsConfig != null){ + putQueryParameter("EnableVmOsConfig", enableVmOsConfig.toString()); + } + } + + public String getDeploymentSetId() { + return this.deploymentSetId; + } + + public void setDeploymentSetId(String deploymentSetId) { + this.deploymentSetId = deploymentSetId; + if(deploymentSetId != null){ + putQueryParameter("DeploymentSetId", deploymentSetId); + } + } + + public List getNetworkInterfaces() { + return this.networkInterfaces; + } + + public void setNetworkInterfaces(List networkInterfaces) { + this.networkInterfaces = networkInterfaces; + if (networkInterfaces != null) { + for (int depth1 = 0; depth1 < networkInterfaces.size(); depth1++) { + putQueryParameter("NetworkInterface." + (depth1 + 1) + ".VSwitchId" , networkInterfaces.get(depth1).getVSwitchId()); + putQueryParameter("NetworkInterface." + (depth1 + 1) + ".NetworkInterfaceName" , networkInterfaces.get(depth1).getNetworkInterfaceName()); + putQueryParameter("NetworkInterface." + (depth1 + 1) + ".Description" , networkInterfaces.get(depth1).getDescription()); + putQueryParameter("NetworkInterface." + (depth1 + 1) + ".SecurityGroupId" , networkInterfaces.get(depth1).getSecurityGroupId()); + putQueryParameter("NetworkInterface." + (depth1 + 1) + ".PrimaryIpAddress" , networkInterfaces.get(depth1).getPrimaryIpAddress()); + if (networkInterfaces.get(depth1).getSecurityGroupIdss() != null) { + for (int i = 0; i < networkInterfaces.get(depth1).getSecurityGroupIdss().size(); i++) { + putQueryParameter("NetworkInterface." + (depth1 + 1) + ".SecurityGroupIds." + (i + 1) , networkInterfaces.get(depth1).getSecurityGroupIdss().get(i)); + } + } + putQueryParameter("NetworkInterface." + (depth1 + 1) + ".InstanceType" , networkInterfaces.get(depth1).getInstanceType()); + putQueryParameter("NetworkInterface." + (depth1 + 1) + ".NetworkInterfaceTrafficMode" , networkInterfaces.get(depth1).getNetworkInterfaceTrafficMode()); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getSystemDiskDiskName() { + return this.systemDiskDiskName; + } + + public void setSystemDiskDiskName(String systemDiskDiskName) { + this.systemDiskDiskName = systemDiskDiskName; + if(systemDiskDiskName != null){ + putQueryParameter("SystemDisk.DiskName", systemDiskDiskName); + } + } + + public String getRamRoleName() { + return this.ramRoleName; + } + + public void setRamRoleName(String ramRoleName) { + this.ramRoleName = ramRoleName; + if(ramRoleName != null){ + putQueryParameter("RamRoleName", ramRoleName); + } + } + + public String getAutoReleaseTime() { + return this.autoReleaseTime; + } + + public void setAutoReleaseTime(String autoReleaseTime) { + this.autoReleaseTime = autoReleaseTime; + if(autoReleaseTime != null){ + putQueryParameter("AutoReleaseTime", autoReleaseTime); + } + } + + public Integer getSpotDuration() { + return this.spotDuration; + } + + public void setSpotDuration(Integer spotDuration) { + this.spotDuration = spotDuration; + if(spotDuration != null){ + putQueryParameter("SpotDuration", spotDuration.toString()); + } + } + + public List getSecurityGroupIdss() { + return this.securityGroupIdss; + } + + public void setSecurityGroupIdss(List securityGroupIdss) { + this.securityGroupIdss = securityGroupIdss; + if (securityGroupIdss != null) { + for (int i = 0; i < securityGroupIdss.size(); i++) { + putQueryParameter("SecurityGroupIds." + (i + 1) , securityGroupIdss.get(i)); + } + } + } + + public List getDataDisks() { + return this.dataDisks; + } + + public void setDataDisks(List dataDisks) { + this.dataDisks = dataDisks; + if (dataDisks != null) { + for (int depth1 = 0; depth1 < dataDisks.size(); depth1++) { + putQueryParameter("DataDisk." + (depth1 + 1) + ".PerformanceLevel" , dataDisks.get(depth1).getPerformanceLevel()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".Description" , dataDisks.get(depth1).getDescription()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".SnapshotId" , dataDisks.get(depth1).getSnapshotId()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".Size" , dataDisks.get(depth1).getSize()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".Device" , dataDisks.get(depth1).getDevice()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".DiskName" , dataDisks.get(depth1).getDiskName()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".Category" , dataDisks.get(depth1).getCategory()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".DeleteWithInstance" , dataDisks.get(depth1).getDeleteWithInstance()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".Encrypted" , dataDisks.get(depth1).getEncrypted()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".ProvisionedIops" , dataDisks.get(depth1).getProvisionedIops()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".BurstingEnabled" , dataDisks.get(depth1).getBurstingEnabled()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".AutoSnapshotPolicyId" , dataDisks.get(depth1).getAutoSnapshotPolicyId()); + } + } + } + + public Long getSystemDiskProvisionedIops() { + return this.systemDiskProvisionedIops; + } + + public void setSystemDiskProvisionedIops(Long systemDiskProvisionedIops) { + this.systemDiskProvisionedIops = systemDiskProvisionedIops; + if(systemDiskProvisionedIops != null){ + putQueryParameter("SystemDisk.ProvisionedIops", systemDiskProvisionedIops.toString()); + } + } + + public Integer getSystemDiskSize() { + return this.systemDiskSize; + } + + public void setSystemDiskSize(Integer systemDiskSize) { + this.systemDiskSize = systemDiskSize; + if(systemDiskSize != null){ + putQueryParameter("SystemDisk.Size", systemDiskSize.toString()); + } + } + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + if(vpcId != null){ + putQueryParameter("VpcId", vpcId); + } + } + + public String getSystemDiskDescription() { + return this.systemDiskDescription; + } + + public void setSystemDiskDescription(String systemDiskDescription) { + this.systemDiskDescription = systemDiskDescription; + if(systemDiskDescription != null){ + putQueryParameter("SystemDisk.Description", systemDiskDescription); + } + } + + public String getSystemDiskEncrypted() { + return this.systemDiskEncrypted; + } + + public void setSystemDiskEncrypted(String systemDiskEncrypted) { + this.systemDiskEncrypted = systemDiskEncrypted; + if(systemDiskEncrypted != null){ + putQueryParameter("SystemDisk.Encrypted", systemDiskEncrypted); + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + public static class NetworkInterface { + + private String vSwitchId; + + private String networkInterfaceName; + + private String description; + + private String securityGroupId; + + private String primaryIpAddress; + + private List securityGroupIdss; + + private String instanceType; + + private String networkInterfaceTrafficMode; + + public String getVSwitchId() { + return this.vSwitchId; + } + + public void setVSwitchId(String vSwitchId) { + this.vSwitchId = vSwitchId; + } + + public String getNetworkInterfaceName() { + return this.networkInterfaceName; + } + + public void setNetworkInterfaceName(String networkInterfaceName) { + this.networkInterfaceName = networkInterfaceName; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getSecurityGroupId() { + return this.securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + } + + public String getPrimaryIpAddress() { + return this.primaryIpAddress; + } + + public void setPrimaryIpAddress(String primaryIpAddress) { + this.primaryIpAddress = primaryIpAddress; + } + + public List getSecurityGroupIdss() { + return this.securityGroupIdss; + } + + public void setSecurityGroupIdss(List securityGroupIdss) { + this.securityGroupIdss = securityGroupIdss; + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public String getNetworkInterfaceTrafficMode() { + return this.networkInterfaceTrafficMode; + } + + public void setNetworkInterfaceTrafficMode(String networkInterfaceTrafficMode) { + this.networkInterfaceTrafficMode = networkInterfaceTrafficMode; + } + } + + public static class DataDisk { + + private String performanceLevel; + + private String description; + + private String snapshotId; + + private Integer size; + + private String device; + + private String diskName; + + private String category; + + private Boolean deleteWithInstance; + + private String encrypted; + + private Long provisionedIops; + + private Boolean burstingEnabled; + + private String autoSnapshotPolicyId; + + public String getPerformanceLevel() { + return this.performanceLevel; + } + + public void setPerformanceLevel(String performanceLevel) { + this.performanceLevel = performanceLevel; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getSnapshotId() { + return this.snapshotId; + } + + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; + } + + public Integer getSize() { + return this.size; + } + + public void setSize(Integer size) { + this.size = size; + } + + public String getDevice() { + return this.device; + } + + public void setDevice(String device) { + this.device = device; + } + + public String getDiskName() { + return this.diskName; + } + + public void setDiskName(String diskName) { + this.diskName = diskName; + } + + public String getCategory() { + return this.category; + } + + public void setCategory(String category) { + this.category = category; + } + + public Boolean getDeleteWithInstance() { + return this.deleteWithInstance; + } + + public void setDeleteWithInstance(Boolean deleteWithInstance) { + this.deleteWithInstance = deleteWithInstance; + } + + public String getEncrypted() { + return this.encrypted; + } + + public void setEncrypted(String encrypted) { + this.encrypted = encrypted; + } + + public Long getProvisionedIops() { + return this.provisionedIops; + } + + public void setProvisionedIops(Long provisionedIops) { + this.provisionedIops = provisionedIops; + } + + public Boolean getBurstingEnabled() { + return this.burstingEnabled; + } + + public void setBurstingEnabled(Boolean burstingEnabled) { + this.burstingEnabled = burstingEnabled; + } + + public String getAutoSnapshotPolicyId() { + return this.autoSnapshotPolicyId; + } + + public void setAutoSnapshotPolicyId(String autoSnapshotPolicyId) { + this.autoSnapshotPolicyId = autoSnapshotPolicyId; + } + } + + @Override + public Class getResponseClass() { + return CreateLaunchTemplateVersionResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateLaunchTemplateVersionResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateLaunchTemplateVersionResponse.java new file mode 100644 index 0000000000..22b8f1d626 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateLaunchTemplateVersionResponse.java @@ -0,0 +1,61 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreateLaunchTemplateVersionResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateLaunchTemplateVersionResponse extends AcsResponse { + + private Long launchTemplateVersionNumber; + + private String requestId; + + private String launchTemplateId; + + public Long getLaunchTemplateVersionNumber() { + return this.launchTemplateVersionNumber; + } + + public void setLaunchTemplateVersionNumber(Long launchTemplateVersionNumber) { + this.launchTemplateVersionNumber = launchTemplateVersionNumber; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getLaunchTemplateId() { + return this.launchTemplateId; + } + + public void setLaunchTemplateId(String launchTemplateId) { + this.launchTemplateId = launchTemplateId; + } + + @Override + public CreateLaunchTemplateVersionResponse getInstance(UnmarshallerContext context) { + return CreateLaunchTemplateVersionResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateNatGatewayRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateNatGatewayRequest.java new file mode 100644 index 0000000000..a9bed6a579 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateNatGatewayRequest.java @@ -0,0 +1,196 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreateNatGatewayRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private String description; + + private List bandwidthPackages; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String vpcId; + + private String name; + public CreateNatGatewayRequest() { + super("Ecs", "2014-05-26", "CreateNatGateway", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public List getBandwidthPackages() { + return this.bandwidthPackages; + } + + public void setBandwidthPackages(List bandwidthPackages) { + this.bandwidthPackages = bandwidthPackages; + if (bandwidthPackages != null) { + for (int depth1 = 0; depth1 < bandwidthPackages.size(); depth1++) { + putQueryParameter("BandwidthPackage." + (depth1 + 1) + ".Bandwidth" , bandwidthPackages.get(depth1).getBandwidth()); + putQueryParameter("BandwidthPackage." + (depth1 + 1) + ".Zone" , bandwidthPackages.get(depth1).getZone()); + putQueryParameter("BandwidthPackage." + (depth1 + 1) + ".IpCount" , bandwidthPackages.get(depth1).getIpCount()); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + if(vpcId != null){ + putQueryParameter("VpcId", vpcId); + } + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + if(name != null){ + putQueryParameter("Name", name); + } + } + + public static class BandwidthPackage { + + private Integer bandwidth; + + private String zone; + + private Integer ipCount; + + public Integer getBandwidth() { + return this.bandwidth; + } + + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public String getZone() { + return this.zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public Integer getIpCount() { + return this.ipCount; + } + + public void setIpCount(Integer ipCount) { + this.ipCount = ipCount; + } + } + + @Override + public Class getResponseClass() { + return CreateNatGatewayResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateNatGatewayResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateNatGatewayResponse.java new file mode 100644 index 0000000000..a5c54dde10 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateNatGatewayResponse.java @@ -0,0 +1,72 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreateNatGatewayResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateNatGatewayResponse extends AcsResponse { + + private String natGatewayId; + + private String requestId; + + private List forwardTableIds; + + private List bandwidthPackageIds; + + public String getNatGatewayId() { + return this.natGatewayId; + } + + public void setNatGatewayId(String natGatewayId) { + this.natGatewayId = natGatewayId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getForwardTableIds() { + return this.forwardTableIds; + } + + public void setForwardTableIds(List forwardTableIds) { + this.forwardTableIds = forwardTableIds; + } + + public List getBandwidthPackageIds() { + return this.bandwidthPackageIds; + } + + public void setBandwidthPackageIds(List bandwidthPackageIds) { + this.bandwidthPackageIds = bandwidthPackageIds; + } + + @Override + public CreateNatGatewayResponse getInstance(UnmarshallerContext context) { + return CreateNatGatewayResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateNetworkInterfacePermissionRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateNetworkInterfacePermissionRequest.java new file mode 100644 index 0000000000..1c5a2ef4f0 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateNetworkInterfacePermissionRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreateNetworkInterfacePermissionRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Long accountId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String permission; + + private Long ownerId; + + private String networkInterfaceId; + public CreateNetworkInterfacePermissionRequest() { + super("Ecs", "2014-05-26", "CreateNetworkInterfacePermission", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Long getAccountId() { + return this.accountId; + } + + public void setAccountId(Long accountId) { + this.accountId = accountId; + if(accountId != null){ + putQueryParameter("AccountId", accountId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getPermission() { + return this.permission; + } + + public void setPermission(String permission) { + this.permission = permission; + if(permission != null){ + putQueryParameter("Permission", permission); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getNetworkInterfaceId() { + return this.networkInterfaceId; + } + + public void setNetworkInterfaceId(String networkInterfaceId) { + this.networkInterfaceId = networkInterfaceId; + if(networkInterfaceId != null){ + putQueryParameter("NetworkInterfaceId", networkInterfaceId); + } + } + + @Override + public Class getResponseClass() { + return CreateNetworkInterfacePermissionResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateNetworkInterfacePermissionResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateNetworkInterfacePermissionResponse.java new file mode 100644 index 0000000000..ddcd59ee2d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateNetworkInterfacePermissionResponse.java @@ -0,0 +1,114 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreateNetworkInterfacePermissionResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateNetworkInterfacePermissionResponse extends AcsResponse { + + private String requestId; + + private NetworkInterfacePermission networkInterfacePermission; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public NetworkInterfacePermission getNetworkInterfacePermission() { + return this.networkInterfacePermission; + } + + public void setNetworkInterfacePermission(NetworkInterfacePermission networkInterfacePermission) { + this.networkInterfacePermission = networkInterfacePermission; + } + + public static class NetworkInterfacePermission { + + private String permission; + + private String networkInterfaceId; + + private Long accountId; + + private String networkInterfacePermissionId; + + private String serviceName; + + private String permissionState; + + public String getPermission() { + return this.permission; + } + + public void setPermission(String permission) { + this.permission = permission; + } + + public String getNetworkInterfaceId() { + return this.networkInterfaceId; + } + + public void setNetworkInterfaceId(String networkInterfaceId) { + this.networkInterfaceId = networkInterfaceId; + } + + public Long getAccountId() { + return this.accountId; + } + + public void setAccountId(Long accountId) { + this.accountId = accountId; + } + + public String getNetworkInterfacePermissionId() { + return this.networkInterfacePermissionId; + } + + public void setNetworkInterfacePermissionId(String networkInterfacePermissionId) { + this.networkInterfacePermissionId = networkInterfacePermissionId; + } + + public String getServiceName() { + return this.serviceName; + } + + public void setServiceName(String serviceName) { + this.serviceName = serviceName; + } + + public String getPermissionState() { + return this.permissionState; + } + + public void setPermissionState(String permissionState) { + this.permissionState = permissionState; + } + } + + @Override + public CreateNetworkInterfacePermissionResponse getInstance(UnmarshallerContext context) { + return CreateNetworkInterfacePermissionResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateNetworkInterfaceRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateNetworkInterfaceRequest.java new file mode 100644 index 0000000000..de0f9b5c61 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateNetworkInterfaceRequest.java @@ -0,0 +1,429 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreateNetworkInterfaceRequest extends RpcAcsRequest { + + + private Integer queueNumber; + + private Long resourceOwnerId; + + private List ipv4Prefixs; + + private Integer secondaryPrivateIpAddressCount; + + private String businessType; + + private String resourceGroupId; + + private List tags; + + private String networkInterfaceName; + + private Boolean visible; + + private Integer ipv6AddressCount; + + private Long ownerId; + + private String vSwitchId; + + private List privateIpAddresss; + + private List ipv6Addresss; + + private String clientToken; + + private List ipv6Prefixs; + + private String securityGroupId; + + private String description; + + private Integer ipv6PrefixCount; + + private String instanceType; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Integer queuePairNumber; + + private List securityGroupIdss; + + private String networkInterfaceTrafficMode; + + private Integer ipv4PrefixCount; + + private String primaryIpAddress; + public CreateNetworkInterfaceRequest() { + super("Ecs", "2014-05-26", "CreateNetworkInterface", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Integer getQueueNumber() { + return this.queueNumber; + } + + public void setQueueNumber(Integer queueNumber) { + this.queueNumber = queueNumber; + if(queueNumber != null){ + putQueryParameter("QueueNumber", queueNumber.toString()); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public List getIpv4Prefixs() { + return this.ipv4Prefixs; + } + + public void setIpv4Prefixs(List ipv4Prefixs) { + this.ipv4Prefixs = ipv4Prefixs; + if (ipv4Prefixs != null) { + for (int i = 0; i < ipv4Prefixs.size(); i++) { + putQueryParameter("Ipv4Prefix." + (i + 1) , ipv4Prefixs.get(i)); + } + } + } + + public Integer getSecondaryPrivateIpAddressCount() { + return this.secondaryPrivateIpAddressCount; + } + + public void setSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount) { + this.secondaryPrivateIpAddressCount = secondaryPrivateIpAddressCount; + if(secondaryPrivateIpAddressCount != null){ + putQueryParameter("SecondaryPrivateIpAddressCount", secondaryPrivateIpAddressCount.toString()); + } + } + + public String getBusinessType() { + return this.businessType; + } + + public void setBusinessType(String businessType) { + this.businessType = businessType; + if(businessType != null){ + putQueryParameter("BusinessType", businessType); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public String getNetworkInterfaceName() { + return this.networkInterfaceName; + } + + public void setNetworkInterfaceName(String networkInterfaceName) { + this.networkInterfaceName = networkInterfaceName; + if(networkInterfaceName != null){ + putQueryParameter("NetworkInterfaceName", networkInterfaceName); + } + } + + public Boolean getVisible() { + return this.visible; + } + + public void setVisible(Boolean visible) { + this.visible = visible; + if(visible != null){ + putQueryParameter("Visible", visible.toString()); + } + } + + public Integer getIpv6AddressCount() { + return this.ipv6AddressCount; + } + + public void setIpv6AddressCount(Integer ipv6AddressCount) { + this.ipv6AddressCount = ipv6AddressCount; + if(ipv6AddressCount != null){ + putQueryParameter("Ipv6AddressCount", ipv6AddressCount.toString()); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getVSwitchId() { + return this.vSwitchId; + } + + public void setVSwitchId(String vSwitchId) { + this.vSwitchId = vSwitchId; + if(vSwitchId != null){ + putQueryParameter("VSwitchId", vSwitchId); + } + } + + public List getPrivateIpAddresss() { + return this.privateIpAddresss; + } + + public void setPrivateIpAddresss(List privateIpAddresss) { + this.privateIpAddresss = privateIpAddresss; + if (privateIpAddresss != null) { + for (int i = 0; i < privateIpAddresss.size(); i++) { + putQueryParameter("PrivateIpAddress." + (i + 1) , privateIpAddresss.get(i)); + } + } + } + + public List getIpv6Addresss() { + return this.ipv6Addresss; + } + + public void setIpv6Addresss(List ipv6Addresss) { + this.ipv6Addresss = ipv6Addresss; + if (ipv6Addresss != null) { + for (int i = 0; i < ipv6Addresss.size(); i++) { + putQueryParameter("Ipv6Address." + (i + 1) , ipv6Addresss.get(i)); + } + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public List getIpv6Prefixs() { + return this.ipv6Prefixs; + } + + public void setIpv6Prefixs(List ipv6Prefixs) { + this.ipv6Prefixs = ipv6Prefixs; + if (ipv6Prefixs != null) { + for (int i = 0; i < ipv6Prefixs.size(); i++) { + putQueryParameter("Ipv6Prefix." + (i + 1) , ipv6Prefixs.get(i)); + } + } + } + + public String getSecurityGroupId() { + return this.securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + if(securityGroupId != null){ + putQueryParameter("SecurityGroupId", securityGroupId); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public Integer getIpv6PrefixCount() { + return this.ipv6PrefixCount; + } + + public void setIpv6PrefixCount(Integer ipv6PrefixCount) { + this.ipv6PrefixCount = ipv6PrefixCount; + if(ipv6PrefixCount != null){ + putQueryParameter("Ipv6PrefixCount", ipv6PrefixCount.toString()); + } + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + if(instanceType != null){ + putQueryParameter("InstanceType", instanceType); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Integer getQueuePairNumber() { + return this.queuePairNumber; + } + + public void setQueuePairNumber(Integer queuePairNumber) { + this.queuePairNumber = queuePairNumber; + if(queuePairNumber != null){ + putQueryParameter("QueuePairNumber", queuePairNumber.toString()); + } + } + + public List getSecurityGroupIdss() { + return this.securityGroupIdss; + } + + public void setSecurityGroupIdss(List securityGroupIdss) { + this.securityGroupIdss = securityGroupIdss; + if (securityGroupIdss != null) { + for (int i = 0; i < securityGroupIdss.size(); i++) { + putQueryParameter("SecurityGroupIds." + (i + 1) , securityGroupIdss.get(i)); + } + } + } + + public String getNetworkInterfaceTrafficMode() { + return this.networkInterfaceTrafficMode; + } + + public void setNetworkInterfaceTrafficMode(String networkInterfaceTrafficMode) { + this.networkInterfaceTrafficMode = networkInterfaceTrafficMode; + if(networkInterfaceTrafficMode != null){ + putQueryParameter("NetworkInterfaceTrafficMode", networkInterfaceTrafficMode); + } + } + + public Integer getIpv4PrefixCount() { + return this.ipv4PrefixCount; + } + + public void setIpv4PrefixCount(Integer ipv4PrefixCount) { + this.ipv4PrefixCount = ipv4PrefixCount; + if(ipv4PrefixCount != null){ + putQueryParameter("Ipv4PrefixCount", ipv4PrefixCount.toString()); + } + } + + public String getPrimaryIpAddress() { + return this.primaryIpAddress; + } + + public void setPrimaryIpAddress(String primaryIpAddress) { + this.primaryIpAddress = primaryIpAddress; + if(primaryIpAddress != null){ + putQueryParameter("PrimaryIpAddress", primaryIpAddress); + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return CreateNetworkInterfaceResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateNetworkInterfaceResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateNetworkInterfaceResponse.java new file mode 100644 index 0000000000..27e99f31aa --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateNetworkInterfaceResponse.java @@ -0,0 +1,327 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreateNetworkInterfaceResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateNetworkInterfaceResponse extends AcsResponse { + + private String status; + + private String type; + + private String vpcId; + + private String networkInterfaceName; + + private String macAddress; + + private String networkInterfaceId; + + private Long serviceID; + + private String ownerId; + + private Boolean serviceManaged; + + private String vSwitchId; + + private String requestId; + + private String description; + + private String resourceGroupId; + + private String zoneId; + + private String privateIpAddress; + + private List privateIpSets; + + private List tags; + + private List ipv6Sets; + + private List ipv4PrefixSets; + + private List ipv6PrefixSets; + + private List securityGroupIds; + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + } + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + public String getNetworkInterfaceName() { + return this.networkInterfaceName; + } + + public void setNetworkInterfaceName(String networkInterfaceName) { + this.networkInterfaceName = networkInterfaceName; + } + + public String getMacAddress() { + return this.macAddress; + } + + public void setMacAddress(String macAddress) { + this.macAddress = macAddress; + } + + public String getNetworkInterfaceId() { + return this.networkInterfaceId; + } + + public void setNetworkInterfaceId(String networkInterfaceId) { + this.networkInterfaceId = networkInterfaceId; + } + + public Long getServiceID() { + return this.serviceID; + } + + public void setServiceID(Long serviceID) { + this.serviceID = serviceID; + } + + public String getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(String ownerId) { + this.ownerId = ownerId; + } + + public Boolean getServiceManaged() { + return this.serviceManaged; + } + + public void setServiceManaged(Boolean serviceManaged) { + this.serviceManaged = serviceManaged; + } + + public String getVSwitchId() { + return this.vSwitchId; + } + + public void setVSwitchId(String vSwitchId) { + this.vSwitchId = vSwitchId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + } + + public String getPrivateIpAddress() { + return this.privateIpAddress; + } + + public void setPrivateIpAddress(String privateIpAddress) { + this.privateIpAddress = privateIpAddress; + } + + public List getPrivateIpSets() { + return this.privateIpSets; + } + + public void setPrivateIpSets(List privateIpSets) { + this.privateIpSets = privateIpSets; + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public List getIpv6Sets() { + return this.ipv6Sets; + } + + public void setIpv6Sets(List ipv6Sets) { + this.ipv6Sets = ipv6Sets; + } + + public List getIpv4PrefixSets() { + return this.ipv4PrefixSets; + } + + public void setIpv4PrefixSets(List ipv4PrefixSets) { + this.ipv4PrefixSets = ipv4PrefixSets; + } + + public List getIpv6PrefixSets() { + return this.ipv6PrefixSets; + } + + public void setIpv6PrefixSets(List ipv6PrefixSets) { + this.ipv6PrefixSets = ipv6PrefixSets; + } + + public List getSecurityGroupIds() { + return this.securityGroupIds; + } + + public void setSecurityGroupIds(List securityGroupIds) { + this.securityGroupIds = securityGroupIds; + } + + public static class PrivateIpSet { + + private String privateIpAddress; + + private Boolean primary; + + public String getPrivateIpAddress() { + return this.privateIpAddress; + } + + public void setPrivateIpAddress(String privateIpAddress) { + this.privateIpAddress = privateIpAddress; + } + + public Boolean getPrimary() { + return this.primary; + } + + public void setPrimary(Boolean primary) { + this.primary = primary; + } + } + + public static class Tag { + + private String tagValue; + + private String tagKey; + + public String getTagValue() { + return this.tagValue; + } + + public void setTagValue(String tagValue) { + this.tagValue = tagValue; + } + + public String getTagKey() { + return this.tagKey; + } + + public void setTagKey(String tagKey) { + this.tagKey = tagKey; + } + } + + public static class Ipv6Set { + + private String ipv6Address; + + public String getIpv6Address() { + return this.ipv6Address; + } + + public void setIpv6Address(String ipv6Address) { + this.ipv6Address = ipv6Address; + } + } + + public static class Ipv4PrefixSet { + + private String ipv4Prefix; + + public String getIpv4Prefix() { + return this.ipv4Prefix; + } + + public void setIpv4Prefix(String ipv4Prefix) { + this.ipv4Prefix = ipv4Prefix; + } + } + + public static class Ipv6PrefixSet { + + private String ipv6Prefix; + + public String getIpv6Prefix() { + return this.ipv6Prefix; + } + + public void setIpv6Prefix(String ipv6Prefix) { + this.ipv6Prefix = ipv6Prefix; + } + } + + @Override + public CreateNetworkInterfaceResponse getInstance(UnmarshallerContext context) { + return CreateNetworkInterfaceResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreatePhysicalConnectionRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreatePhysicalConnectionRequest.java new file mode 100644 index 0000000000..6245b19b05 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreatePhysicalConnectionRequest.java @@ -0,0 +1,249 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreatePhysicalConnectionRequest extends RpcAcsRequest { + + + private String accessPointId; + + private Long resourceOwnerId; + + private String portType; + + private String circuitCode; + + private String clientToken; + + private String description; + + private String type; + + private String userCidr; + + private String redundantPhysicalConnectionId; + + private String peerLocation; + + private Integer bandwidth; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String lineOperator; + + private String name; + public CreatePhysicalConnectionRequest() { + super("Ecs", "2014-05-26", "CreatePhysicalConnection", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getAccessPointId() { + return this.accessPointId; + } + + public void setAccessPointId(String accessPointId) { + this.accessPointId = accessPointId; + if(accessPointId != null){ + putQueryParameter("AccessPointId", accessPointId); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getPortType() { + return this.portType; + } + + public void setPortType(String portType) { + this.portType = portType; + if(portType != null){ + putQueryParameter("PortType", portType); + } + } + + public String getCircuitCode() { + return this.circuitCode; + } + + public void setCircuitCode(String circuitCode) { + this.circuitCode = circuitCode; + if(circuitCode != null){ + putQueryParameter("CircuitCode", circuitCode); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + if(type != null){ + putQueryParameter("Type", type); + } + } + + public String getUserCidr() { + return this.userCidr; + } + + public void setUserCidr(String userCidr) { + this.userCidr = userCidr; + if(userCidr != null){ + putQueryParameter("UserCidr", userCidr); + } + } + + public String getRedundantPhysicalConnectionId() { + return this.redundantPhysicalConnectionId; + } + + public void setRedundantPhysicalConnectionId(String redundantPhysicalConnectionId) { + this.redundantPhysicalConnectionId = redundantPhysicalConnectionId; + if(redundantPhysicalConnectionId != null){ + putQueryParameter("RedundantPhysicalConnectionId", redundantPhysicalConnectionId); + } + } + + public String getPeerLocation() { + return this.peerLocation; + } + + public void setPeerLocation(String peerLocation) { + this.peerLocation = peerLocation; + if(peerLocation != null){ + putQueryParameter("PeerLocation", peerLocation); + } + } + + public Integer getBandwidth() { + return this.bandwidth; + } + + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + if(bandwidth != null){ + putQueryParameter("bandwidth", bandwidth.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getLineOperator() { + return this.lineOperator; + } + + public void setLineOperator(String lineOperator) { + this.lineOperator = lineOperator; + if(lineOperator != null){ + putQueryParameter("LineOperator", lineOperator); + } + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + if(name != null){ + putQueryParameter("Name", name); + } + } + + @Override + public Class getResponseClass() { + return CreatePhysicalConnectionResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreatePhysicalConnectionResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreatePhysicalConnectionResponse.java new file mode 100644 index 0000000000..c0605fc530 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreatePhysicalConnectionResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreatePhysicalConnectionResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreatePhysicalConnectionResponse extends AcsResponse { + + private String physicalConnectionId; + + private String requestId; + + public String getPhysicalConnectionId() { + return this.physicalConnectionId; + } + + public void setPhysicalConnectionId(String physicalConnectionId) { + this.physicalConnectionId = physicalConnectionId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public CreatePhysicalConnectionResponse getInstance(UnmarshallerContext context) { + return CreatePhysicalConnectionResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreatePrefixListRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreatePrefixListRequest.java new file mode 100644 index 0000000000..0fb709c08d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreatePrefixListRequest.java @@ -0,0 +1,198 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreatePrefixListRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private String description; + + private Integer maxEntries; + + private String addressFamily; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String prefixListName; + + private List entrys; + public CreatePrefixListRequest() { + super("Ecs", "2014-05-26", "CreatePrefixList", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public Integer getMaxEntries() { + return this.maxEntries; + } + + public void setMaxEntries(Integer maxEntries) { + this.maxEntries = maxEntries; + if(maxEntries != null){ + putQueryParameter("MaxEntries", maxEntries.toString()); + } + } + + public String getAddressFamily() { + return this.addressFamily; + } + + public void setAddressFamily(String addressFamily) { + this.addressFamily = addressFamily; + if(addressFamily != null){ + putQueryParameter("AddressFamily", addressFamily); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getPrefixListName() { + return this.prefixListName; + } + + public void setPrefixListName(String prefixListName) { + this.prefixListName = prefixListName; + if(prefixListName != null){ + putQueryParameter("PrefixListName", prefixListName); + } + } + + public List getEntrys() { + return this.entrys; + } + + public void setEntrys(List entrys) { + this.entrys = entrys; + if (entrys != null) { + for (int depth1 = 0; depth1 < entrys.size(); depth1++) { + putQueryParameter("Entry." + (depth1 + 1) + ".Description" , entrys.get(depth1).getDescription()); + putQueryParameter("Entry." + (depth1 + 1) + ".Cidr" , entrys.get(depth1).getCidr()); + } + } + } + + public static class Entry { + + private String description; + + private String cidr; + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getCidr() { + return this.cidr; + } + + public void setCidr(String cidr) { + this.cidr = cidr; + } + } + + @Override + public Class getResponseClass() { + return CreatePrefixListResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreatePrefixListResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreatePrefixListResponse.java new file mode 100644 index 0000000000..c32e09980b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreatePrefixListResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreatePrefixListResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreatePrefixListResponse extends AcsResponse { + + private String prefixListId; + + private String requestId; + + public String getPrefixListId() { + return this.prefixListId; + } + + public void setPrefixListId(String prefixListId) { + this.prefixListId = prefixListId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public CreatePrefixListResponse getInstance(UnmarshallerContext context) { + return CreatePrefixListResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateRouteEntryRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateRouteEntryRequest.java new file mode 100644 index 0000000000..0a01191531 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateRouteEntryRequest.java @@ -0,0 +1,198 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreateRouteEntryRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private String nextHopId; + + private String nextHopType; + + private String routeTableId; + + private String resourceOwnerAccount; + + private String destinationCidrBlock; + + private String ownerAccount; + + private Long ownerId; + + private List nextHopLists; + public CreateRouteEntryRequest() { + super("Ecs", "2014-05-26", "CreateRouteEntry", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getNextHopId() { + return this.nextHopId; + } + + public void setNextHopId(String nextHopId) { + this.nextHopId = nextHopId; + if(nextHopId != null){ + putQueryParameter("NextHopId", nextHopId); + } + } + + public String getNextHopType() { + return this.nextHopType; + } + + public void setNextHopType(String nextHopType) { + this.nextHopType = nextHopType; + if(nextHopType != null){ + putQueryParameter("NextHopType", nextHopType); + } + } + + public String getRouteTableId() { + return this.routeTableId; + } + + public void setRouteTableId(String routeTableId) { + this.routeTableId = routeTableId; + if(routeTableId != null){ + putQueryParameter("RouteTableId", routeTableId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getDestinationCidrBlock() { + return this.destinationCidrBlock; + } + + public void setDestinationCidrBlock(String destinationCidrBlock) { + this.destinationCidrBlock = destinationCidrBlock; + if(destinationCidrBlock != null){ + putQueryParameter("DestinationCidrBlock", destinationCidrBlock); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getNextHopLists() { + return this.nextHopLists; + } + + public void setNextHopLists(List nextHopLists) { + this.nextHopLists = nextHopLists; + if (nextHopLists != null) { + for (int depth1 = 0; depth1 < nextHopLists.size(); depth1++) { + putQueryParameter("NextHopList." + (depth1 + 1) + ".NextHopId" , nextHopLists.get(depth1).getNextHopId()); + putQueryParameter("NextHopList." + (depth1 + 1) + ".NextHopType" , nextHopLists.get(depth1).getNextHopType()); + } + } + } + + public static class NextHopList { + + private String nextHopId; + + private String nextHopType; + + public String getNextHopId() { + return this.nextHopId; + } + + public void setNextHopId(String nextHopId) { + this.nextHopId = nextHopId; + } + + public String getNextHopType() { + return this.nextHopType; + } + + public void setNextHopType(String nextHopType) { + this.nextHopType = nextHopType; + } + } + + @Override + public Class getResponseClass() { + return CreateRouteEntryResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateRouteEntryResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateRouteEntryResponse.java new file mode 100644 index 0000000000..2937d0a572 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateRouteEntryResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreateRouteEntryResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateRouteEntryResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public CreateRouteEntryResponse getInstance(UnmarshallerContext context) { + return CreateRouteEntryResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateRouterInterfaceRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateRouterInterfaceRequest.java new file mode 100644 index 0000000000..6b34272ffb --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateRouterInterfaceRequest.java @@ -0,0 +1,366 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreateRouterInterfaceRequest extends RpcAcsRequest { + + + private String accessPointId; + + private String oppositeRouterId; + + private String oppositeAccessPointId; + + private Long resourceOwnerId; + + private String role; + + private String clientToken; + + private String healthCheckTargetIp; + + private String description; + + private String spec; + + private String userCidr; + + private String oppositeInterfaceId; + + private String instanceChargeType; + + private Integer period; + + private Boolean autoPay; + + private String resourceOwnerAccount; + + private String oppositeRegionId; + + private String ownerAccount; + + private Long ownerId; + + private String oppositeInterfaceOwnerId; + + private String routerType; + + private String healthCheckSourceIp; + + private String routerId; + + private String oppositeRouterType; + + private String name; + + private String pricingCycle; + public CreateRouterInterfaceRequest() { + super("Ecs", "2014-05-26", "CreateRouterInterface", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getAccessPointId() { + return this.accessPointId; + } + + public void setAccessPointId(String accessPointId) { + this.accessPointId = accessPointId; + if(accessPointId != null){ + putQueryParameter("AccessPointId", accessPointId); + } + } + + public String getOppositeRouterId() { + return this.oppositeRouterId; + } + + public void setOppositeRouterId(String oppositeRouterId) { + this.oppositeRouterId = oppositeRouterId; + if(oppositeRouterId != null){ + putQueryParameter("OppositeRouterId", oppositeRouterId); + } + } + + public String getOppositeAccessPointId() { + return this.oppositeAccessPointId; + } + + public void setOppositeAccessPointId(String oppositeAccessPointId) { + this.oppositeAccessPointId = oppositeAccessPointId; + if(oppositeAccessPointId != null){ + putQueryParameter("OppositeAccessPointId", oppositeAccessPointId); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getRole() { + return this.role; + } + + public void setRole(String role) { + this.role = role; + if(role != null){ + putQueryParameter("Role", role); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getHealthCheckTargetIp() { + return this.healthCheckTargetIp; + } + + public void setHealthCheckTargetIp(String healthCheckTargetIp) { + this.healthCheckTargetIp = healthCheckTargetIp; + if(healthCheckTargetIp != null){ + putQueryParameter("HealthCheckTargetIp", healthCheckTargetIp); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getSpec() { + return this.spec; + } + + public void setSpec(String spec) { + this.spec = spec; + if(spec != null){ + putQueryParameter("Spec", spec); + } + } + + public String getUserCidr() { + return this.userCidr; + } + + public void setUserCidr(String userCidr) { + this.userCidr = userCidr; + if(userCidr != null){ + putQueryParameter("UserCidr", userCidr); + } + } + + public String getOppositeInterfaceId() { + return this.oppositeInterfaceId; + } + + public void setOppositeInterfaceId(String oppositeInterfaceId) { + this.oppositeInterfaceId = oppositeInterfaceId; + if(oppositeInterfaceId != null){ + putQueryParameter("OppositeInterfaceId", oppositeInterfaceId); + } + } + + public String getInstanceChargeType() { + return this.instanceChargeType; + } + + public void setInstanceChargeType(String instanceChargeType) { + this.instanceChargeType = instanceChargeType; + if(instanceChargeType != null){ + putQueryParameter("InstanceChargeType", instanceChargeType); + } + } + + public Integer getPeriod() { + return this.period; + } + + public void setPeriod(Integer period) { + this.period = period; + if(period != null){ + putQueryParameter("Period", period.toString()); + } + } + + public Boolean getAutoPay() { + return this.autoPay; + } + + public void setAutoPay(Boolean autoPay) { + this.autoPay = autoPay; + if(autoPay != null){ + putQueryParameter("AutoPay", autoPay.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOppositeRegionId() { + return this.oppositeRegionId; + } + + public void setOppositeRegionId(String oppositeRegionId) { + this.oppositeRegionId = oppositeRegionId; + if(oppositeRegionId != null){ + putQueryParameter("OppositeRegionId", oppositeRegionId); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getOppositeInterfaceOwnerId() { + return this.oppositeInterfaceOwnerId; + } + + public void setOppositeInterfaceOwnerId(String oppositeInterfaceOwnerId) { + this.oppositeInterfaceOwnerId = oppositeInterfaceOwnerId; + if(oppositeInterfaceOwnerId != null){ + putQueryParameter("OppositeInterfaceOwnerId", oppositeInterfaceOwnerId); + } + } + + public String getRouterType() { + return this.routerType; + } + + public void setRouterType(String routerType) { + this.routerType = routerType; + if(routerType != null){ + putQueryParameter("RouterType", routerType); + } + } + + public String getHealthCheckSourceIp() { + return this.healthCheckSourceIp; + } + + public void setHealthCheckSourceIp(String healthCheckSourceIp) { + this.healthCheckSourceIp = healthCheckSourceIp; + if(healthCheckSourceIp != null){ + putQueryParameter("HealthCheckSourceIp", healthCheckSourceIp); + } + } + + public String getRouterId() { + return this.routerId; + } + + public void setRouterId(String routerId) { + this.routerId = routerId; + if(routerId != null){ + putQueryParameter("RouterId", routerId); + } + } + + public String getOppositeRouterType() { + return this.oppositeRouterType; + } + + public void setOppositeRouterType(String oppositeRouterType) { + this.oppositeRouterType = oppositeRouterType; + if(oppositeRouterType != null){ + putQueryParameter("OppositeRouterType", oppositeRouterType); + } + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + if(name != null){ + putQueryParameter("Name", name); + } + } + + public String getPricingCycle() { + return this.pricingCycle; + } + + public void setPricingCycle(String pricingCycle) { + this.pricingCycle = pricingCycle; + if(pricingCycle != null){ + putQueryParameter("PricingCycle", pricingCycle); + } + } + + @Override + public Class getResponseClass() { + return CreateRouterInterfaceResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateRouterInterfaceResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateRouterInterfaceResponse.java new file mode 100644 index 0000000000..e2b708f45d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateRouterInterfaceResponse.java @@ -0,0 +1,61 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreateRouterInterfaceResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateRouterInterfaceResponse extends AcsResponse { + + private String requestId; + + private Long orderId; + + private String routerInterfaceId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Long getOrderId() { + return this.orderId; + } + + public void setOrderId(Long orderId) { + this.orderId = orderId; + } + + public String getRouterInterfaceId() { + return this.routerInterfaceId; + } + + public void setRouterInterfaceId(String routerInterfaceId) { + this.routerInterfaceId = routerInterfaceId; + } + + @Override + public CreateRouterInterfaceResponse getInstance(UnmarshallerContext context) { + return CreateRouterInterfaceResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateSecurityGroupRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateSecurityGroupRequest.java new file mode 100644 index 0000000000..e77a92da52 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateSecurityGroupRequest.java @@ -0,0 +1,224 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreateSecurityGroupRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private Boolean serviceManaged; + + private String description; + + private String securityGroupName; + + private String resourceGroupId; + + private List tags; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String securityGroupType; + + private String vpcId; + public CreateSecurityGroupRequest() { + super("Ecs", "2014-05-26", "CreateSecurityGroup", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public Boolean getServiceManaged() { + return this.serviceManaged; + } + + public void setServiceManaged(Boolean serviceManaged) { + this.serviceManaged = serviceManaged; + if(serviceManaged != null){ + putQueryParameter("ServiceManaged", serviceManaged.toString()); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getSecurityGroupName() { + return this.securityGroupName; + } + + public void setSecurityGroupName(String securityGroupName) { + this.securityGroupName = securityGroupName; + if(securityGroupName != null){ + putQueryParameter("SecurityGroupName", securityGroupName); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getSecurityGroupType() { + return this.securityGroupType; + } + + public void setSecurityGroupType(String securityGroupType) { + this.securityGroupType = securityGroupType; + if(securityGroupType != null){ + putQueryParameter("SecurityGroupType", securityGroupType); + } + } + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + if(vpcId != null){ + putQueryParameter("VpcId", vpcId); + } + } + + public static class Tag { + + private String value; + + private String key; + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + } + + @Override + public Class getResponseClass() { + return CreateSecurityGroupResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateSecurityGroupResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateSecurityGroupResponse.java new file mode 100644 index 0000000000..ac62778838 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateSecurityGroupResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreateSecurityGroupResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateSecurityGroupResponse extends AcsResponse { + + private String securityGroupId; + + private String requestId; + + public String getSecurityGroupId() { + return this.securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public CreateSecurityGroupResponse getInstance(UnmarshallerContext context) { + return CreateSecurityGroupResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateSimulatedSystemEventsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateSimulatedSystemEventsRequest.java new file mode 100644 index 0000000000..cee6d2fee9 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateSimulatedSystemEventsRequest.java @@ -0,0 +1,135 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreateSimulatedSystemEventsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String notBefore; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private List instanceIds; + + private String eventType; + public CreateSimulatedSystemEventsRequest() { + super("Ecs", "2014-05-26", "CreateSimulatedSystemEvents", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getNotBefore() { + return this.notBefore; + } + + public void setNotBefore(String notBefore) { + this.notBefore = notBefore; + if(notBefore != null){ + putQueryParameter("NotBefore", notBefore); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getInstanceIds() { + return this.instanceIds; + } + + public void setInstanceIds(List instanceIds) { + this.instanceIds = instanceIds; + if (instanceIds != null) { + for (int i = 0; i < instanceIds.size(); i++) { + putQueryParameter("InstanceId." + (i + 1) , instanceIds.get(i)); + } + } + } + + public String getEventType() { + return this.eventType; + } + + public void setEventType(String eventType) { + this.eventType = eventType; + if(eventType != null){ + putQueryParameter("EventType", eventType); + } + } + + @Override + public Class getResponseClass() { + return CreateSimulatedSystemEventsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateSimulatedSystemEventsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateSimulatedSystemEventsResponse.java new file mode 100644 index 0000000000..51279625e8 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateSimulatedSystemEventsResponse.java @@ -0,0 +1,52 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreateSimulatedSystemEventsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateSimulatedSystemEventsResponse extends AcsResponse { + + private String requestId; + + private List eventIdSet; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getEventIdSet() { + return this.eventIdSet; + } + + public void setEventIdSet(List eventIdSet) { + this.eventIdSet = eventIdSet; + } + + @Override + public CreateSimulatedSystemEventsResponse getInstance(UnmarshallerContext context) { + return CreateSimulatedSystemEventsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateSnapshotGroupRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateSnapshotGroupRequest.java new file mode 100644 index 0000000000..2a80fff271 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateSnapshotGroupRequest.java @@ -0,0 +1,254 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreateSnapshotGroupRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Boolean instantAccess; + + private List excludeDiskIds; + + private String description; + + private String resourceGroupId; + + private Integer instantAccessRetentionDays; + + private String storageLocationArn; + + private List diskIds; + + private List tags; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceId; + + private String name; + public CreateSnapshotGroupRequest() { + super("Ecs", "2014-05-26", "CreateSnapshotGroup", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Boolean getInstantAccess() { + return this.instantAccess; + } + + public void setInstantAccess(Boolean instantAccess) { + this.instantAccess = instantAccess; + if(instantAccess != null){ + putQueryParameter("InstantAccess", instantAccess.toString()); + } + } + + public List getExcludeDiskIds() { + return this.excludeDiskIds; + } + + public void setExcludeDiskIds(List excludeDiskIds) { + this.excludeDiskIds = excludeDiskIds; + if (excludeDiskIds != null) { + for (int i = 0; i < excludeDiskIds.size(); i++) { + putQueryParameter("ExcludeDiskId." + (i + 1) , excludeDiskIds.get(i)); + } + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public Integer getInstantAccessRetentionDays() { + return this.instantAccessRetentionDays; + } + + public void setInstantAccessRetentionDays(Integer instantAccessRetentionDays) { + this.instantAccessRetentionDays = instantAccessRetentionDays; + if(instantAccessRetentionDays != null){ + putQueryParameter("InstantAccessRetentionDays", instantAccessRetentionDays.toString()); + } + } + + public String getStorageLocationArn() { + return this.storageLocationArn; + } + + public void setStorageLocationArn(String storageLocationArn) { + this.storageLocationArn = storageLocationArn; + if(storageLocationArn != null){ + putQueryParameter("StorageLocationArn", storageLocationArn); + } + } + + public List getDiskIds() { + return this.diskIds; + } + + public void setDiskIds(List diskIds) { + this.diskIds = diskIds; + if (diskIds != null) { + for (int i = 0; i < diskIds.size(); i++) { + putQueryParameter("DiskId." + (i + 1) , diskIds.get(i)); + } + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + if(name != null){ + putQueryParameter("Name", name); + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return CreateSnapshotGroupResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateSnapshotGroupResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateSnapshotGroupResponse.java new file mode 100644 index 0000000000..c7794ca353 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateSnapshotGroupResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreateSnapshotGroupResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateSnapshotGroupResponse extends AcsResponse { + + private String snapshotGroupId; + + private String requestId; + + public String getSnapshotGroupId() { + return this.snapshotGroupId; + } + + public void setSnapshotGroupId(String snapshotGroupId) { + this.snapshotGroupId = snapshotGroupId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public CreateSnapshotGroupResponse getInstance(UnmarshallerContext context) { + return CreateSnapshotGroupResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateSnapshotRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateSnapshotRequest.java new file mode 100644 index 0000000000..1ed95ceb5f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateSnapshotRequest.java @@ -0,0 +1,263 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreateSnapshotRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private Boolean instantAccess; + + private String description; + + private String snapshotName; + + private String resourceGroupId; + + private Integer instantAccessRetentionDays; + + private String storageLocationArn; + + private String diskId; + + private List tags; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private Integer retentionDays; + + private String category; + public CreateSnapshotRequest() { + super("Ecs", "2014-05-26", "CreateSnapshot", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public Boolean getInstantAccess() { + return this.instantAccess; + } + + public void setInstantAccess(Boolean instantAccess) { + this.instantAccess = instantAccess; + if(instantAccess != null){ + putQueryParameter("InstantAccess", instantAccess.toString()); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getSnapshotName() { + return this.snapshotName; + } + + public void setSnapshotName(String snapshotName) { + this.snapshotName = snapshotName; + if(snapshotName != null){ + putQueryParameter("SnapshotName", snapshotName); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public Integer getInstantAccessRetentionDays() { + return this.instantAccessRetentionDays; + } + + public void setInstantAccessRetentionDays(Integer instantAccessRetentionDays) { + this.instantAccessRetentionDays = instantAccessRetentionDays; + if(instantAccessRetentionDays != null){ + putQueryParameter("InstantAccessRetentionDays", instantAccessRetentionDays.toString()); + } + } + + public String getStorageLocationArn() { + return this.storageLocationArn; + } + + public void setStorageLocationArn(String storageLocationArn) { + this.storageLocationArn = storageLocationArn; + if(storageLocationArn != null){ + putQueryParameter("StorageLocationArn", storageLocationArn); + } + } + + public String getDiskId() { + return this.diskId; + } + + public void setDiskId(String diskId) { + this.diskId = diskId; + if(diskId != null){ + putQueryParameter("DiskId", diskId); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public Integer getRetentionDays() { + return this.retentionDays; + } + + public void setRetentionDays(Integer retentionDays) { + this.retentionDays = retentionDays; + if(retentionDays != null){ + putQueryParameter("RetentionDays", retentionDays.toString()); + } + } + + public String getCategory() { + return this.category; + } + + public void setCategory(String category) { + this.category = category; + if(category != null){ + putQueryParameter("Category", category); + } + } + + public static class Tag { + + private String value; + + private String key; + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + } + + @Override + public Class getResponseClass() { + return CreateSnapshotResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateSnapshotResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateSnapshotResponse.java new file mode 100644 index 0000000000..a15f9c665b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateSnapshotResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreateSnapshotResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateSnapshotResponse extends AcsResponse { + + private String snapshotId; + + private String requestId; + + public String getSnapshotId() { + return this.snapshotId; + } + + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public CreateSnapshotResponse getInstance(UnmarshallerContext context) { + return CreateSnapshotResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateStorageSetRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateStorageSetRequest.java similarity index 95% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateStorageSetRequest.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateStorageSetRequest.java index 0ddbce3a2b..887a146d5d 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateStorageSetRequest.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateStorageSetRequest.java @@ -12,7 +12,7 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.RpcAcsRequest; import com.aliyuncs.http.MethodType; @@ -43,7 +43,7 @@ public class CreateStorageSetRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private String description; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String vpcId; + + private String vSwitchName; + + private String cidrBlock; + + private String zoneId; + public CreateVSwitchRequest() { + super("Ecs", "2014-05-26", "CreateVSwitch", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + if(vpcId != null){ + putQueryParameter("VpcId", vpcId); + } + } + + public String getVSwitchName() { + return this.vSwitchName; + } + + public void setVSwitchName(String vSwitchName) { + this.vSwitchName = vSwitchName; + if(vSwitchName != null){ + putQueryParameter("VSwitchName", vSwitchName); + } + } + + public String getCidrBlock() { + return this.cidrBlock; + } + + public void setCidrBlock(String cidrBlock) { + this.cidrBlock = cidrBlock; + if(cidrBlock != null){ + putQueryParameter("CidrBlock", cidrBlock); + } + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + if(zoneId != null){ + putQueryParameter("ZoneId", zoneId); + } + } + + @Override + public Class getResponseClass() { + return CreateVSwitchResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateVSwitchResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateVSwitchResponse.java new file mode 100644 index 0000000000..23494b5fdf --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateVSwitchResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreateVSwitchResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateVSwitchResponse extends AcsResponse { + + private String vSwitchId; + + private String requestId; + + public String getVSwitchId() { + return this.vSwitchId; + } + + public void setVSwitchId(String vSwitchId) { + this.vSwitchId = vSwitchId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public CreateVSwitchResponse getInstance(UnmarshallerContext context) { + return CreateVSwitchResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateVirtualBorderRouterRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateVirtualBorderRouterRequest.java new file mode 100644 index 0000000000..4193d17294 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateVirtualBorderRouterRequest.java @@ -0,0 +1,236 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreateVirtualBorderRouterRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String circuitCode; + + private Integer vlanId; + + private String clientToken; + + private String description; + + private String peerGatewayIp; + + private String peeringSubnetMask; + + private String localGatewayIp; + + private String userCidr; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String physicalConnectionId; + + private String name; + + private Long vbrOwnerId; + public CreateVirtualBorderRouterRequest() { + super("Ecs", "2014-05-26", "CreateVirtualBorderRouter", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getCircuitCode() { + return this.circuitCode; + } + + public void setCircuitCode(String circuitCode) { + this.circuitCode = circuitCode; + if(circuitCode != null){ + putQueryParameter("CircuitCode", circuitCode); + } + } + + public Integer getVlanId() { + return this.vlanId; + } + + public void setVlanId(Integer vlanId) { + this.vlanId = vlanId; + if(vlanId != null){ + putQueryParameter("VlanId", vlanId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getPeerGatewayIp() { + return this.peerGatewayIp; + } + + public void setPeerGatewayIp(String peerGatewayIp) { + this.peerGatewayIp = peerGatewayIp; + if(peerGatewayIp != null){ + putQueryParameter("PeerGatewayIp", peerGatewayIp); + } + } + + public String getPeeringSubnetMask() { + return this.peeringSubnetMask; + } + + public void setPeeringSubnetMask(String peeringSubnetMask) { + this.peeringSubnetMask = peeringSubnetMask; + if(peeringSubnetMask != null){ + putQueryParameter("PeeringSubnetMask", peeringSubnetMask); + } + } + + public String getLocalGatewayIp() { + return this.localGatewayIp; + } + + public void setLocalGatewayIp(String localGatewayIp) { + this.localGatewayIp = localGatewayIp; + if(localGatewayIp != null){ + putQueryParameter("LocalGatewayIp", localGatewayIp); + } + } + + public String getUserCidr() { + return this.userCidr; + } + + public void setUserCidr(String userCidr) { + this.userCidr = userCidr; + if(userCidr != null){ + putQueryParameter("UserCidr", userCidr); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getPhysicalConnectionId() { + return this.physicalConnectionId; + } + + public void setPhysicalConnectionId(String physicalConnectionId) { + this.physicalConnectionId = physicalConnectionId; + if(physicalConnectionId != null){ + putQueryParameter("PhysicalConnectionId", physicalConnectionId); + } + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + if(name != null){ + putQueryParameter("Name", name); + } + } + + public Long getVbrOwnerId() { + return this.vbrOwnerId; + } + + public void setVbrOwnerId(Long vbrOwnerId) { + this.vbrOwnerId = vbrOwnerId; + if(vbrOwnerId != null){ + putQueryParameter("VbrOwnerId", vbrOwnerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return CreateVirtualBorderRouterResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateVirtualBorderRouterResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateVirtualBorderRouterResponse.java new file mode 100644 index 0000000000..b4ae99f9da --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateVirtualBorderRouterResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreateVirtualBorderRouterResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateVirtualBorderRouterResponse extends AcsResponse { + + private String vbrId; + + private String requestId; + + public String getVbrId() { + return this.vbrId; + } + + public void setVbrId(String vbrId) { + this.vbrId = vbrId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public CreateVirtualBorderRouterResponse getInstance(UnmarshallerContext context) { + return CreateVirtualBorderRouterResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateVpcRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateVpcRequest.java new file mode 100644 index 0000000000..ecb8a6fed4 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateVpcRequest.java @@ -0,0 +1,158 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class CreateVpcRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private String description; + + private String vpcName; + + private String userCidr; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String cidrBlock; + public CreateVpcRequest() { + super("Ecs", "2014-05-26", "CreateVpc", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getVpcName() { + return this.vpcName; + } + + public void setVpcName(String vpcName) { + this.vpcName = vpcName; + if(vpcName != null){ + putQueryParameter("VpcName", vpcName); + } + } + + public String getUserCidr() { + return this.userCidr; + } + + public void setUserCidr(String userCidr) { + this.userCidr = userCidr; + if(userCidr != null){ + putQueryParameter("UserCidr", userCidr); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getCidrBlock() { + return this.cidrBlock; + } + + public void setCidrBlock(String cidrBlock) { + this.cidrBlock = cidrBlock; + if(cidrBlock != null){ + putQueryParameter("CidrBlock", cidrBlock); + } + } + + @Override + public Class getResponseClass() { + return CreateVpcResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateVpcResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateVpcResponse.java new file mode 100644 index 0000000000..ea45dcada9 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateVpcResponse.java @@ -0,0 +1,71 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.CreateVpcResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateVpcResponse extends AcsResponse { + + private String vpcId; + + private String vRouterId; + + private String requestId; + + private String routeTableId; + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + public String getVRouterId() { + return this.vRouterId; + } + + public void setVRouterId(String vRouterId) { + this.vRouterId = vRouterId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getRouteTableId() { + return this.routeTableId; + } + + public void setRouteTableId(String routeTableId) { + this.routeTableId = routeTableId; + } + + @Override + public CreateVpcResponse getInstance(UnmarshallerContext context) { + return CreateVpcResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeactivateRouterInterfaceRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeactivateRouterInterfaceRequest.java new file mode 100644 index 0000000000..864bb3131d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeactivateRouterInterfaceRequest.java @@ -0,0 +1,93 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeactivateRouterInterfaceRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private Long ownerId; + + private String routerInterfaceId; + public DeactivateRouterInterfaceRequest() { + super("Ecs", "2014-05-26", "DeactivateRouterInterface", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getRouterInterfaceId() { + return this.routerInterfaceId; + } + + public void setRouterInterfaceId(String routerInterfaceId) { + this.routerInterfaceId = routerInterfaceId; + if(routerInterfaceId != null){ + putQueryParameter("RouterInterfaceId", routerInterfaceId); + } + } + + @Override + public Class getResponseClass() { + return DeactivateRouterInterfaceResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeactivateRouterInterfaceResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeactivateRouterInterfaceResponse.java new file mode 100644 index 0000000000..a848aa5442 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeactivateRouterInterfaceResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeactivateRouterInterfaceResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeactivateRouterInterfaceResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeactivateRouterInterfaceResponse getInstance(UnmarshallerContext context) { + return DeactivateRouterInterfaceResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteActivationRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteActivationRequest.java new file mode 100644 index 0000000000..4d823687c1 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteActivationRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteActivationRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String activationId; + public DeleteActivationRequest() { + super("Ecs", "2014-05-26", "DeleteActivation", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getActivationId() { + return this.activationId; + } + + public void setActivationId(String activationId) { + this.activationId = activationId; + if(activationId != null){ + putQueryParameter("ActivationId", activationId); + } + } + + @Override + public Class getResponseClass() { + return DeleteActivationResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteActivationResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteActivationResponse.java new file mode 100644 index 0000000000..edbedbcac3 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteActivationResponse.java @@ -0,0 +1,149 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeleteActivationResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteActivationResponse extends AcsResponse { + + private String requestId; + + private Activation activation; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Activation getActivation() { + return this.activation; + } + + public void setActivation(Activation activation) { + this.activation = activation; + } + + public static class Activation { + + private String creationTime; + + private Integer deregisteredCount; + + private Integer instanceCount; + + private String description; + + private Integer registeredCount; + + private String instanceName; + + private String ipAddressRange; + + private Long timeToLiveInHours; + + private String activationId; + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public Integer getDeregisteredCount() { + return this.deregisteredCount; + } + + public void setDeregisteredCount(Integer deregisteredCount) { + this.deregisteredCount = deregisteredCount; + } + + public Integer getInstanceCount() { + return this.instanceCount; + } + + public void setInstanceCount(Integer instanceCount) { + this.instanceCount = instanceCount; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getRegisteredCount() { + return this.registeredCount; + } + + public void setRegisteredCount(Integer registeredCount) { + this.registeredCount = registeredCount; + } + + public String getInstanceName() { + return this.instanceName; + } + + public void setInstanceName(String instanceName) { + this.instanceName = instanceName; + } + + public String getIpAddressRange() { + return this.ipAddressRange; + } + + public void setIpAddressRange(String ipAddressRange) { + this.ipAddressRange = ipAddressRange; + } + + public Long getTimeToLiveInHours() { + return this.timeToLiveInHours; + } + + public void setTimeToLiveInHours(Long timeToLiveInHours) { + this.timeToLiveInHours = timeToLiveInHours; + } + + public String getActivationId() { + return this.activationId; + } + + public void setActivationId(String activationId) { + this.activationId = activationId; + } + } + + @Override + public DeleteActivationResponse getInstance(UnmarshallerContext context) { + return DeleteActivationResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteAutoProvisioningGroupRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteAutoProvisioningGroupRequest.java new file mode 100644 index 0000000000..11369fcd34 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteAutoProvisioningGroupRequest.java @@ -0,0 +1,119 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteAutoProvisioningGroupRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Boolean terminateInstances; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String autoProvisioningGroupId; + public DeleteAutoProvisioningGroupRequest() { + super("Ecs", "2014-05-26", "DeleteAutoProvisioningGroup", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Boolean getTerminateInstances() { + return this.terminateInstances; + } + + public void setTerminateInstances(Boolean terminateInstances) { + this.terminateInstances = terminateInstances; + if(terminateInstances != null){ + putQueryParameter("TerminateInstances", terminateInstances.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getAutoProvisioningGroupId() { + return this.autoProvisioningGroupId; + } + + public void setAutoProvisioningGroupId(String autoProvisioningGroupId) { + this.autoProvisioningGroupId = autoProvisioningGroupId; + if(autoProvisioningGroupId != null){ + putQueryParameter("AutoProvisioningGroupId", autoProvisioningGroupId); + } + } + + @Override + public Class getResponseClass() { + return DeleteAutoProvisioningGroupResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteAutoProvisioningGroupResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteAutoProvisioningGroupResponse.java new file mode 100644 index 0000000000..d69847b0b5 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteAutoProvisioningGroupResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeleteAutoProvisioningGroupResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteAutoProvisioningGroupResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeleteAutoProvisioningGroupResponse getInstance(UnmarshallerContext context) { + return DeleteAutoProvisioningGroupResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteAutoSnapshotPolicyRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteAutoSnapshotPolicyRequest.java new file mode 100644 index 0000000000..0107e150db --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteAutoSnapshotPolicyRequest.java @@ -0,0 +1,93 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteAutoSnapshotPolicyRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String autoSnapshotPolicyId; + + private String resourceOwnerAccount; + + private Long ownerId; + public DeleteAutoSnapshotPolicyRequest() { + super("Ecs", "2014-05-26", "DeleteAutoSnapshotPolicy", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getAutoSnapshotPolicyId() { + return this.autoSnapshotPolicyId; + } + + public void setAutoSnapshotPolicyId(String autoSnapshotPolicyId) { + this.autoSnapshotPolicyId = autoSnapshotPolicyId; + if(autoSnapshotPolicyId != null){ + putQueryParameter("autoSnapshotPolicyId", autoSnapshotPolicyId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DeleteAutoSnapshotPolicyResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteAutoSnapshotPolicyResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteAutoSnapshotPolicyResponse.java new file mode 100644 index 0000000000..347cd70431 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteAutoSnapshotPolicyResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeleteAutoSnapshotPolicyResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteAutoSnapshotPolicyResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeleteAutoSnapshotPolicyResponse getInstance(UnmarshallerContext context) { + return DeleteAutoSnapshotPolicyResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteBandwidthPackageRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteBandwidthPackageRequest.java new file mode 100644 index 0000000000..04857c4834 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteBandwidthPackageRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteBandwidthPackageRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String bandwidthPackageId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public DeleteBandwidthPackageRequest() { + super("Ecs", "2014-05-26", "DeleteBandwidthPackage", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getBandwidthPackageId() { + return this.bandwidthPackageId; + } + + public void setBandwidthPackageId(String bandwidthPackageId) { + this.bandwidthPackageId = bandwidthPackageId; + if(bandwidthPackageId != null){ + putQueryParameter("BandwidthPackageId", bandwidthPackageId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DeleteBandwidthPackageResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteBandwidthPackageResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteBandwidthPackageResponse.java new file mode 100644 index 0000000000..57bffd566a --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteBandwidthPackageResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeleteBandwidthPackageResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteBandwidthPackageResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeleteBandwidthPackageResponse getInstance(UnmarshallerContext context) { + return DeleteBandwidthPackageResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteCommandRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteCommandRequest.java new file mode 100644 index 0000000000..9e69466c8e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteCommandRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteCommandRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String commandId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public DeleteCommandRequest() { + super("Ecs", "2014-05-26", "DeleteCommand", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getCommandId() { + return this.commandId; + } + + public void setCommandId(String commandId) { + this.commandId = commandId; + if(commandId != null){ + putQueryParameter("CommandId", commandId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DeleteCommandResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteCommandResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteCommandResponse.java new file mode 100644 index 0000000000..25831751cd --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteCommandResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeleteCommandResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteCommandResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeleteCommandResponse getInstance(UnmarshallerContext context) { + return DeleteCommandResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteDedicatedHostClusterRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteDedicatedHostClusterRequest.java similarity index 94% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteDedicatedHostClusterRequest.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteDedicatedHostClusterRequest.java index 27e532fe36..6752d5e600 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteDedicatedHostClusterRequest.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteDedicatedHostClusterRequest.java @@ -12,7 +12,7 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.RpcAcsRequest; import com.aliyuncs.http.MethodType; @@ -35,7 +35,7 @@ public class DeleteDedicatedHostClusterRequest extends RpcAcsRequest { + + + private String reason; + + private Long resourceOwnerId; + + private String clientToken; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String demandId; + public DeleteDemandRequest() { + super("Ecs", "2014-05-26", "DeleteDemand", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getReason() { + return this.reason; + } + + public void setReason(String reason) { + this.reason = reason; + if(reason != null){ + putQueryParameter("Reason", reason); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getDemandId() { + return this.demandId; + } + + public void setDemandId(String demandId) { + this.demandId = demandId; + if(demandId != null){ + putQueryParameter("DemandId", demandId); + } + } + + @Override + public Class getResponseClass() { + return DeleteDemandResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteDemandResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteDemandResponse.java new file mode 100644 index 0000000000..0b5ecee529 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteDemandResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeleteDemandResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteDemandResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeleteDemandResponse getInstance(UnmarshallerContext context) { + return DeleteDemandResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteDeploymentSetRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteDeploymentSetRequest.java new file mode 100644 index 0000000000..1e5eb098af --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteDeploymentSetRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteDeploymentSetRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String deploymentSetId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public DeleteDeploymentSetRequest() { + super("Ecs", "2014-05-26", "DeleteDeploymentSet", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getDeploymentSetId() { + return this.deploymentSetId; + } + + public void setDeploymentSetId(String deploymentSetId) { + this.deploymentSetId = deploymentSetId; + if(deploymentSetId != null){ + putQueryParameter("DeploymentSetId", deploymentSetId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DeleteDeploymentSetResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteDeploymentSetResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteDeploymentSetResponse.java new file mode 100644 index 0000000000..155bb77421 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteDeploymentSetResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeleteDeploymentSetResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteDeploymentSetResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeleteDeploymentSetResponse getInstance(UnmarshallerContext context) { + return DeleteDeploymentSetResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteDiagnosticMetricSetsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteDiagnosticMetricSetsRequest.java new file mode 100644 index 0000000000..4041883e20 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteDiagnosticMetricSetsRequest.java @@ -0,0 +1,57 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteDiagnosticMetricSetsRequest extends RpcAcsRequest { + + + private List metricSetIdss; + public DeleteDiagnosticMetricSetsRequest() { + super("Ecs", "2014-05-26", "DeleteDiagnosticMetricSets", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public List getMetricSetIdss() { + return this.metricSetIdss; + } + + public void setMetricSetIdss(List metricSetIdss) { + this.metricSetIdss = metricSetIdss; + if (metricSetIdss != null) { + for (int i = 0; i < metricSetIdss.size(); i++) { + putQueryParameter("MetricSetIds." + (i + 1) , metricSetIdss.get(i)); + } + } + } + + @Override + public Class getResponseClass() { + return DeleteDiagnosticMetricSetsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteDiagnosticMetricSetsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteDiagnosticMetricSetsResponse.java new file mode 100644 index 0000000000..53c0c6016c --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteDiagnosticMetricSetsResponse.java @@ -0,0 +1,46 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeleteDiagnosticMetricSetsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteDiagnosticMetricSetsResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeleteDiagnosticMetricSetsResponse getInstance(UnmarshallerContext context) { + return DeleteDiagnosticMetricSetsResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteDiagnosticReportsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteDiagnosticReportsRequest.java new file mode 100644 index 0000000000..13abe57293 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteDiagnosticReportsRequest.java @@ -0,0 +1,57 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteDiagnosticReportsRequest extends RpcAcsRequest { + + + private List reportIdss; + public DeleteDiagnosticReportsRequest() { + super("Ecs", "2014-05-26", "DeleteDiagnosticReports", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public List getReportIdss() { + return this.reportIdss; + } + + public void setReportIdss(List reportIdss) { + this.reportIdss = reportIdss; + if (reportIdss != null) { + for (int i = 0; i < reportIdss.size(); i++) { + putQueryParameter("ReportIds." + (i + 1) , reportIdss.get(i)); + } + } + } + + @Override + public Class getResponseClass() { + return DeleteDiagnosticReportsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteDiagnosticReportsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteDiagnosticReportsResponse.java new file mode 100644 index 0000000000..c76dbb6bd2 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteDiagnosticReportsResponse.java @@ -0,0 +1,46 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeleteDiagnosticReportsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteDiagnosticReportsResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeleteDiagnosticReportsResponse getInstance(UnmarshallerContext context) { + return DeleteDiagnosticReportsResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteDiskRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteDiskRequest.java new file mode 100644 index 0000000000..393f16729a --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteDiskRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteDiskRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String diskId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public DeleteDiskRequest() { + super("Ecs", "2014-05-26", "DeleteDisk", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getDiskId() { + return this.diskId; + } + + public void setDiskId(String diskId) { + this.diskId = diskId; + if(diskId != null){ + putQueryParameter("DiskId", diskId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DeleteDiskResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteDiskResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteDiskResponse.java new file mode 100644 index 0000000000..436fd9634f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteDiskResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeleteDiskResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteDiskResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeleteDiskResponse getInstance(UnmarshallerContext context) { + return DeleteDiskResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteForwardEntryRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteForwardEntryRequest.java new file mode 100644 index 0000000000..50bc4b92fe --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteForwardEntryRequest.java @@ -0,0 +1,119 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteForwardEntryRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String forwardTableId; + + private String forwardEntryId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public DeleteForwardEntryRequest() { + super("Ecs", "2014-05-26", "DeleteForwardEntry", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getForwardTableId() { + return this.forwardTableId; + } + + public void setForwardTableId(String forwardTableId) { + this.forwardTableId = forwardTableId; + if(forwardTableId != null){ + putQueryParameter("ForwardTableId", forwardTableId); + } + } + + public String getForwardEntryId() { + return this.forwardEntryId; + } + + public void setForwardEntryId(String forwardEntryId) { + this.forwardEntryId = forwardEntryId; + if(forwardEntryId != null){ + putQueryParameter("ForwardEntryId", forwardEntryId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DeleteForwardEntryResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteForwardEntryResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteForwardEntryResponse.java new file mode 100644 index 0000000000..44565eae6e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteForwardEntryResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeleteForwardEntryResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteForwardEntryResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeleteForwardEntryResponse getInstance(UnmarshallerContext context) { + return DeleteForwardEntryResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteHaVipRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteHaVipRequest.java new file mode 100644 index 0000000000..9a0068a9bf --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteHaVipRequest.java @@ -0,0 +1,119 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteHaVipRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private String haVipId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public DeleteHaVipRequest() { + super("Ecs", "2014-05-26", "DeleteHaVip", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getHaVipId() { + return this.haVipId; + } + + public void setHaVipId(String haVipId) { + this.haVipId = haVipId; + if(haVipId != null){ + putQueryParameter("HaVipId", haVipId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DeleteHaVipResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteHaVipResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteHaVipResponse.java new file mode 100644 index 0000000000..ef27d42196 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteHaVipResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeleteHaVipResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteHaVipResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeleteHaVipResponse getInstance(UnmarshallerContext context) { + return DeleteHaVipResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteHpcClusterRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteHpcClusterRequest.java new file mode 100644 index 0000000000..a90e8c6486 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteHpcClusterRequest.java @@ -0,0 +1,119 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteHpcClusterRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String hpcClusterId; + + private String clientToken; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public DeleteHpcClusterRequest() { + super("Ecs", "2014-05-26", "DeleteHpcCluster", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getHpcClusterId() { + return this.hpcClusterId; + } + + public void setHpcClusterId(String hpcClusterId) { + this.hpcClusterId = hpcClusterId; + if(hpcClusterId != null){ + putQueryParameter("HpcClusterId", hpcClusterId); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DeleteHpcClusterResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteHpcClusterResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteHpcClusterResponse.java new file mode 100644 index 0000000000..ad0e2d261e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteHpcClusterResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeleteHpcClusterResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteHpcClusterResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeleteHpcClusterResponse getInstance(UnmarshallerContext context) { + return DeleteHpcClusterResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteImageComponentRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteImageComponentRequest.java new file mode 100644 index 0000000000..ac43014b90 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteImageComponentRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteImageComponentRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String imageComponentId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public DeleteImageComponentRequest() { + super("Ecs", "2014-05-26", "DeleteImageComponent", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getImageComponentId() { + return this.imageComponentId; + } + + public void setImageComponentId(String imageComponentId) { + this.imageComponentId = imageComponentId; + if(imageComponentId != null){ + putQueryParameter("ImageComponentId", imageComponentId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DeleteImageComponentResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteImageComponentResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteImageComponentResponse.java new file mode 100644 index 0000000000..a97304c206 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteImageComponentResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeleteImageComponentResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteImageComponentResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeleteImageComponentResponse getInstance(UnmarshallerContext context) { + return DeleteImageComponentResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteImagePipelineRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteImagePipelineRequest.java new file mode 100644 index 0000000000..8964d01408 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteImagePipelineRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteImagePipelineRequest extends RpcAcsRequest { + + + private String imagePipelineId; + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public DeleteImagePipelineRequest() { + super("Ecs", "2014-05-26", "DeleteImagePipeline", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getImagePipelineId() { + return this.imagePipelineId; + } + + public void setImagePipelineId(String imagePipelineId) { + this.imagePipelineId = imagePipelineId; + if(imagePipelineId != null){ + putQueryParameter("ImagePipelineId", imagePipelineId); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DeleteImagePipelineResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteImagePipelineResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteImagePipelineResponse.java new file mode 100644 index 0000000000..c5f470bbd7 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteImagePipelineResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeleteImagePipelineResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteImagePipelineResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeleteImagePipelineResponse getInstance(UnmarshallerContext context) { + return DeleteImagePipelineResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteImageRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteImageRequest.java new file mode 100644 index 0000000000..a3ab7e3717 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteImageRequest.java @@ -0,0 +1,119 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteImageRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String imageId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private Boolean force; + public DeleteImageRequest() { + super("Ecs", "2014-05-26", "DeleteImage", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getImageId() { + return this.imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + if(imageId != null){ + putQueryParameter("ImageId", imageId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public Boolean getForce() { + return this.force; + } + + public void setForce(Boolean force) { + this.force = force; + if(force != null){ + putQueryParameter("Force", force.toString()); + } + } + + @Override + public Class getResponseClass() { + return DeleteImageResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteImageResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteImageResponse.java new file mode 100644 index 0000000000..a08eee25a3 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteImageResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeleteImageResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteImageResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeleteImageResponse getInstance(UnmarshallerContext context) { + return DeleteImageResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteInstanceRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteInstanceRequest.java new file mode 100644 index 0000000000..d4175ba68c --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteInstanceRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteInstanceRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Boolean terminateSubscription; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceId; + + private Boolean force; + public DeleteInstanceRequest() { + super("Ecs", "2014-05-26", "DeleteInstance", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Boolean getTerminateSubscription() { + return this.terminateSubscription; + } + + public void setTerminateSubscription(Boolean terminateSubscription) { + this.terminateSubscription = terminateSubscription; + if(terminateSubscription != null){ + putQueryParameter("TerminateSubscription", terminateSubscription.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public Boolean getForce() { + return this.force; + } + + public void setForce(Boolean force) { + this.force = force; + if(force != null){ + putQueryParameter("Force", force.toString()); + } + } + + @Override + public Class getResponseClass() { + return DeleteInstanceResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteInstanceResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteInstanceResponse.java new file mode 100644 index 0000000000..06803f6d95 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteInstanceResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeleteInstanceResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteInstanceResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeleteInstanceResponse getInstance(UnmarshallerContext context) { + return DeleteInstanceResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteInstancesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteInstancesRequest.java new file mode 100644 index 0000000000..31ef129de3 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteInstancesRequest.java @@ -0,0 +1,161 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteInstancesRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private Boolean terminateSubscription; + + private Boolean dryRun; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private List instanceIds; + + private Boolean force; + public DeleteInstancesRequest() { + super("Ecs", "2014-05-26", "DeleteInstances", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public Boolean getTerminateSubscription() { + return this.terminateSubscription; + } + + public void setTerminateSubscription(Boolean terminateSubscription) { + this.terminateSubscription = terminateSubscription; + if(terminateSubscription != null){ + putQueryParameter("TerminateSubscription", terminateSubscription.toString()); + } + } + + public Boolean getDryRun() { + return this.dryRun; + } + + public void setDryRun(Boolean dryRun) { + this.dryRun = dryRun; + if(dryRun != null){ + putQueryParameter("DryRun", dryRun.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getInstanceIds() { + return this.instanceIds; + } + + public void setInstanceIds(List instanceIds) { + this.instanceIds = instanceIds; + if (instanceIds != null) { + for (int i = 0; i < instanceIds.size(); i++) { + putQueryParameter("InstanceId." + (i + 1) , instanceIds.get(i)); + } + } + } + + public Boolean getForce() { + return this.force; + } + + public void setForce(Boolean force) { + this.force = force; + if(force != null){ + putQueryParameter("Force", force.toString()); + } + } + + @Override + public Class getResponseClass() { + return DeleteInstancesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteInstancesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteInstancesResponse.java new file mode 100644 index 0000000000..5cbbf0aff0 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteInstancesResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeleteInstancesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteInstancesResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeleteInstancesResponse getInstance(UnmarshallerContext context) { + return DeleteInstancesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteKeyPairsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteKeyPairsRequest.java new file mode 100644 index 0000000000..e1259b7ebb --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteKeyPairsRequest.java @@ -0,0 +1,93 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteKeyPairsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String keyPairNames; + + private String resourceOwnerAccount; + + private Long ownerId; + public DeleteKeyPairsRequest() { + super("Ecs", "2014-05-26", "DeleteKeyPairs", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getKeyPairNames() { + return this.keyPairNames; + } + + public void setKeyPairNames(String keyPairNames) { + this.keyPairNames = keyPairNames; + if(keyPairNames != null){ + putQueryParameter("KeyPairNames", keyPairNames); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DeleteKeyPairsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteKeyPairsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteKeyPairsResponse.java new file mode 100644 index 0000000000..d15ad25dce --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteKeyPairsResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeleteKeyPairsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteKeyPairsResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeleteKeyPairsResponse getInstance(UnmarshallerContext context) { + return DeleteKeyPairsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteLaunchTemplateRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteLaunchTemplateRequest.java new file mode 100644 index 0000000000..773602a0d7 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteLaunchTemplateRequest.java @@ -0,0 +1,119 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteLaunchTemplateRequest extends RpcAcsRequest { + + + private String launchTemplateName; + + private Long resourceOwnerId; + + private String launchTemplateId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public DeleteLaunchTemplateRequest() { + super("Ecs", "2014-05-26", "DeleteLaunchTemplate", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getLaunchTemplateName() { + return this.launchTemplateName; + } + + public void setLaunchTemplateName(String launchTemplateName) { + this.launchTemplateName = launchTemplateName; + if(launchTemplateName != null){ + putQueryParameter("LaunchTemplateName", launchTemplateName); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getLaunchTemplateId() { + return this.launchTemplateId; + } + + public void setLaunchTemplateId(String launchTemplateId) { + this.launchTemplateId = launchTemplateId; + if(launchTemplateId != null){ + putQueryParameter("LaunchTemplateId", launchTemplateId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DeleteLaunchTemplateResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteLaunchTemplateResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteLaunchTemplateResponse.java new file mode 100644 index 0000000000..969a7b18f0 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteLaunchTemplateResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeleteLaunchTemplateResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteLaunchTemplateResponse extends AcsResponse { + + private String requestId; + + private String launchTemplateId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getLaunchTemplateId() { + return this.launchTemplateId; + } + + public void setLaunchTemplateId(String launchTemplateId) { + this.launchTemplateId = launchTemplateId; + } + + @Override + public DeleteLaunchTemplateResponse getInstance(UnmarshallerContext context) { + return DeleteLaunchTemplateResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteLaunchTemplateVersionRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteLaunchTemplateVersionRequest.java new file mode 100644 index 0000000000..ec2d8e66ba --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteLaunchTemplateVersionRequest.java @@ -0,0 +1,135 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteLaunchTemplateVersionRequest extends RpcAcsRequest { + + + private String launchTemplateName; + + private Long resourceOwnerId; + + private List deleteVersions; + + private String launchTemplateId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public DeleteLaunchTemplateVersionRequest() { + super("Ecs", "2014-05-26", "DeleteLaunchTemplateVersion", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getLaunchTemplateName() { + return this.launchTemplateName; + } + + public void setLaunchTemplateName(String launchTemplateName) { + this.launchTemplateName = launchTemplateName; + if(launchTemplateName != null){ + putQueryParameter("LaunchTemplateName", launchTemplateName); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public List getDeleteVersions() { + return this.deleteVersions; + } + + public void setDeleteVersions(List deleteVersions) { + this.deleteVersions = deleteVersions; + if (deleteVersions != null) { + for (int i = 0; i < deleteVersions.size(); i++) { + putQueryParameter("DeleteVersion." + (i + 1) , deleteVersions.get(i)); + } + } + } + + public String getLaunchTemplateId() { + return this.launchTemplateId; + } + + public void setLaunchTemplateId(String launchTemplateId) { + this.launchTemplateId = launchTemplateId; + if(launchTemplateId != null){ + putQueryParameter("LaunchTemplateId", launchTemplateId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DeleteLaunchTemplateVersionResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteLaunchTemplateVersionResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteLaunchTemplateVersionResponse.java new file mode 100644 index 0000000000..83a9c14daa --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteLaunchTemplateVersionResponse.java @@ -0,0 +1,75 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeleteLaunchTemplateVersionResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteLaunchTemplateVersionResponse extends AcsResponse { + + private String requestId; + + private List launchTemplateVersions; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getLaunchTemplateVersions() { + return this.launchTemplateVersions; + } + + public void setLaunchTemplateVersions(List launchTemplateVersions) { + this.launchTemplateVersions = launchTemplateVersions; + } + + public static class LaunchTemplateVersion { + + private String launchTemplateId; + + private Long launchTemplateVersionNumber; + + public String getLaunchTemplateId() { + return this.launchTemplateId; + } + + public void setLaunchTemplateId(String launchTemplateId) { + this.launchTemplateId = launchTemplateId; + } + + public Long getLaunchTemplateVersionNumber() { + return this.launchTemplateVersionNumber; + } + + public void setLaunchTemplateVersionNumber(Long launchTemplateVersionNumber) { + this.launchTemplateVersionNumber = launchTemplateVersionNumber; + } + } + + @Override + public DeleteLaunchTemplateVersionResponse getInstance(UnmarshallerContext context) { + return DeleteLaunchTemplateVersionResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteNatGatewayRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteNatGatewayRequest.java new file mode 100644 index 0000000000..565965f430 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteNatGatewayRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteNatGatewayRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String natGatewayId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public DeleteNatGatewayRequest() { + super("Ecs", "2014-05-26", "DeleteNatGateway", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getNatGatewayId() { + return this.natGatewayId; + } + + public void setNatGatewayId(String natGatewayId) { + this.natGatewayId = natGatewayId; + if(natGatewayId != null){ + putQueryParameter("NatGatewayId", natGatewayId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DeleteNatGatewayResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteNatGatewayResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteNatGatewayResponse.java new file mode 100644 index 0000000000..79389cb170 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteNatGatewayResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeleteNatGatewayResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteNatGatewayResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeleteNatGatewayResponse getInstance(UnmarshallerContext context) { + return DeleteNatGatewayResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteNetworkInterfacePermissionRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteNetworkInterfacePermissionRequest.java new file mode 100644 index 0000000000..aa3d992f83 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteNetworkInterfacePermissionRequest.java @@ -0,0 +1,119 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteNetworkInterfacePermissionRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String networkInterfacePermissionId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private Boolean force; + public DeleteNetworkInterfacePermissionRequest() { + super("Ecs", "2014-05-26", "DeleteNetworkInterfacePermission", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getNetworkInterfacePermissionId() { + return this.networkInterfacePermissionId; + } + + public void setNetworkInterfacePermissionId(String networkInterfacePermissionId) { + this.networkInterfacePermissionId = networkInterfacePermissionId; + if(networkInterfacePermissionId != null){ + putQueryParameter("NetworkInterfacePermissionId", networkInterfacePermissionId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public Boolean getForce() { + return this.force; + } + + public void setForce(Boolean force) { + this.force = force; + if(force != null){ + putQueryParameter("Force", force.toString()); + } + } + + @Override + public Class getResponseClass() { + return DeleteNetworkInterfacePermissionResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteNetworkInterfacePermissionResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteNetworkInterfacePermissionResponse.java new file mode 100644 index 0000000000..b174ce9ad5 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteNetworkInterfacePermissionResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeleteNetworkInterfacePermissionResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteNetworkInterfacePermissionResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeleteNetworkInterfacePermissionResponse getInstance(UnmarshallerContext context) { + return DeleteNetworkInterfacePermissionResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteNetworkInterfaceRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteNetworkInterfaceRequest.java new file mode 100644 index 0000000000..2c5b70ca75 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteNetworkInterfaceRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteNetworkInterfaceRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String networkInterfaceId; + public DeleteNetworkInterfaceRequest() { + super("Ecs", "2014-05-26", "DeleteNetworkInterface", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getNetworkInterfaceId() { + return this.networkInterfaceId; + } + + public void setNetworkInterfaceId(String networkInterfaceId) { + this.networkInterfaceId = networkInterfaceId; + if(networkInterfaceId != null){ + putQueryParameter("NetworkInterfaceId", networkInterfaceId); + } + } + + @Override + public Class getResponseClass() { + return DeleteNetworkInterfaceResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteNetworkInterfaceResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteNetworkInterfaceResponse.java new file mode 100644 index 0000000000..fc46db2974 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteNetworkInterfaceResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeleteNetworkInterfaceResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteNetworkInterfaceResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeleteNetworkInterfaceResponse getInstance(UnmarshallerContext context) { + return DeleteNetworkInterfaceResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeletePhysicalConnectionRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeletePhysicalConnectionRequest.java new file mode 100644 index 0000000000..8c8b4b8456 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeletePhysicalConnectionRequest.java @@ -0,0 +1,119 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeletePhysicalConnectionRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String physicalConnectionId; + public DeletePhysicalConnectionRequest() { + super("Ecs", "2014-05-26", "DeletePhysicalConnection", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getPhysicalConnectionId() { + return this.physicalConnectionId; + } + + public void setPhysicalConnectionId(String physicalConnectionId) { + this.physicalConnectionId = physicalConnectionId; + if(physicalConnectionId != null){ + putQueryParameter("PhysicalConnectionId", physicalConnectionId); + } + } + + @Override + public Class getResponseClass() { + return DeletePhysicalConnectionResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeletePhysicalConnectionResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeletePhysicalConnectionResponse.java new file mode 100644 index 0000000000..f20896c3e1 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeletePhysicalConnectionResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeletePhysicalConnectionResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeletePhysicalConnectionResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeletePhysicalConnectionResponse getInstance(UnmarshallerContext context) { + return DeletePhysicalConnectionResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeletePrefixListRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeletePrefixListRequest.java new file mode 100644 index 0000000000..ba7914f5ae --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeletePrefixListRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeletePrefixListRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String prefixListId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public DeletePrefixListRequest() { + super("Ecs", "2014-05-26", "DeletePrefixList", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getPrefixListId() { + return this.prefixListId; + } + + public void setPrefixListId(String prefixListId) { + this.prefixListId = prefixListId; + if(prefixListId != null){ + putQueryParameter("PrefixListId", prefixListId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DeletePrefixListResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeletePrefixListResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeletePrefixListResponse.java new file mode 100644 index 0000000000..1d31c8331b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeletePrefixListResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeletePrefixListResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeletePrefixListResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeletePrefixListResponse getInstance(UnmarshallerContext context) { + return DeletePrefixListResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteRouteEntryRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteRouteEntryRequest.java new file mode 100644 index 0000000000..5ad0987c2c --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteRouteEntryRequest.java @@ -0,0 +1,172 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteRouteEntryRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String nextHopId; + + private String routeTableId; + + private String resourceOwnerAccount; + + private String destinationCidrBlock; + + private String ownerAccount; + + private Long ownerId; + + private List nextHopLists; + public DeleteRouteEntryRequest() { + super("Ecs", "2014-05-26", "DeleteRouteEntry", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getNextHopId() { + return this.nextHopId; + } + + public void setNextHopId(String nextHopId) { + this.nextHopId = nextHopId; + if(nextHopId != null){ + putQueryParameter("NextHopId", nextHopId); + } + } + + public String getRouteTableId() { + return this.routeTableId; + } + + public void setRouteTableId(String routeTableId) { + this.routeTableId = routeTableId; + if(routeTableId != null){ + putQueryParameter("RouteTableId", routeTableId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getDestinationCidrBlock() { + return this.destinationCidrBlock; + } + + public void setDestinationCidrBlock(String destinationCidrBlock) { + this.destinationCidrBlock = destinationCidrBlock; + if(destinationCidrBlock != null){ + putQueryParameter("DestinationCidrBlock", destinationCidrBlock); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getNextHopLists() { + return this.nextHopLists; + } + + public void setNextHopLists(List nextHopLists) { + this.nextHopLists = nextHopLists; + if (nextHopLists != null) { + for (int depth1 = 0; depth1 < nextHopLists.size(); depth1++) { + putQueryParameter("NextHopList." + (depth1 + 1) + ".NextHopId" , nextHopLists.get(depth1).getNextHopId()); + putQueryParameter("NextHopList." + (depth1 + 1) + ".NextHopType" , nextHopLists.get(depth1).getNextHopType()); + } + } + } + + public static class NextHopList { + + private String nextHopId; + + private String nextHopType; + + public String getNextHopId() { + return this.nextHopId; + } + + public void setNextHopId(String nextHopId) { + this.nextHopId = nextHopId; + } + + public String getNextHopType() { + return this.nextHopType; + } + + public void setNextHopType(String nextHopType) { + this.nextHopType = nextHopType; + } + } + + @Override + public Class getResponseClass() { + return DeleteRouteEntryResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteRouteEntryResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteRouteEntryResponse.java new file mode 100644 index 0000000000..51dbe3b25b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteRouteEntryResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeleteRouteEntryResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteRouteEntryResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeleteRouteEntryResponse getInstance(UnmarshallerContext context) { + return DeleteRouteEntryResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteRouterInterfaceRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteRouterInterfaceRequest.java new file mode 100644 index 0000000000..2e62cc911e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteRouterInterfaceRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteRouterInterfaceRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private String userCidr; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String routerInterfaceId; + + private Long ownerId; + public DeleteRouterInterfaceRequest() { + super("Ecs", "2014-05-26", "DeleteRouterInterface", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getUserCidr() { + return this.userCidr; + } + + public void setUserCidr(String userCidr) { + this.userCidr = userCidr; + if(userCidr != null){ + putQueryParameter("UserCidr", userCidr); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getRouterInterfaceId() { + return this.routerInterfaceId; + } + + public void setRouterInterfaceId(String routerInterfaceId) { + this.routerInterfaceId = routerInterfaceId; + if(routerInterfaceId != null){ + putQueryParameter("RouterInterfaceId", routerInterfaceId); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DeleteRouterInterfaceResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteRouterInterfaceResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteRouterInterfaceResponse.java new file mode 100644 index 0000000000..5d6b8e3bab --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteRouterInterfaceResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeleteRouterInterfaceResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteRouterInterfaceResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeleteRouterInterfaceResponse getInstance(UnmarshallerContext context) { + return DeleteRouterInterfaceResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteSecurityGroupRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteSecurityGroupRequest.java new file mode 100644 index 0000000000..f0b0baaf7c --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteSecurityGroupRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteSecurityGroupRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String securityGroupId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public DeleteSecurityGroupRequest() { + super("Ecs", "2014-05-26", "DeleteSecurityGroup", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getSecurityGroupId() { + return this.securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + if(securityGroupId != null){ + putQueryParameter("SecurityGroupId", securityGroupId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DeleteSecurityGroupResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteSecurityGroupResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteSecurityGroupResponse.java new file mode 100644 index 0000000000..2a22462907 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteSecurityGroupResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeleteSecurityGroupResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteSecurityGroupResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeleteSecurityGroupResponse getInstance(UnmarshallerContext context) { + return DeleteSecurityGroupResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteSnapshotGroupRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteSnapshotGroupRequest.java new file mode 100644 index 0000000000..28e5c29a93 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteSnapshotGroupRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteSnapshotGroupRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String snapshotGroupId; + + private Long ownerId; + public DeleteSnapshotGroupRequest() { + super("Ecs", "2014-05-26", "DeleteSnapshotGroup", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getSnapshotGroupId() { + return this.snapshotGroupId; + } + + public void setSnapshotGroupId(String snapshotGroupId) { + this.snapshotGroupId = snapshotGroupId; + if(snapshotGroupId != null){ + putQueryParameter("SnapshotGroupId", snapshotGroupId); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DeleteSnapshotGroupResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteSnapshotGroupResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteSnapshotGroupResponse.java new file mode 100644 index 0000000000..db082babd5 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteSnapshotGroupResponse.java @@ -0,0 +1,118 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeleteSnapshotGroupResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteSnapshotGroupResponse extends AcsResponse { + + private String requestId; + + private List operationProgressSet; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getOperationProgressSet() { + return this.operationProgressSet; + } + + public void setOperationProgressSet(List operationProgressSet) { + this.operationProgressSet = operationProgressSet; + } + + public static class OperationProgress { + + private String errorMsg; + + private String errorCode; + + private String operationStatus; + + private List relatedItemSet; + + public String getErrorMsg() { + return this.errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + public String getErrorCode() { + return this.errorCode; + } + + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + public String getOperationStatus() { + return this.operationStatus; + } + + public void setOperationStatus(String operationStatus) { + this.operationStatus = operationStatus; + } + + public List getRelatedItemSet() { + return this.relatedItemSet; + } + + public void setRelatedItemSet(List relatedItemSet) { + this.relatedItemSet = relatedItemSet; + } + + public static class RelatedItem { + + private String name; + + private String value; + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + } + + @Override + public DeleteSnapshotGroupResponse getInstance(UnmarshallerContext context) { + return DeleteSnapshotGroupResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteSnapshotRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteSnapshotRequest.java new file mode 100644 index 0000000000..30a2c44703 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteSnapshotRequest.java @@ -0,0 +1,119 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteSnapshotRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String snapshotId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private Boolean force; + public DeleteSnapshotRequest() { + super("Ecs", "2014-05-26", "DeleteSnapshot", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getSnapshotId() { + return this.snapshotId; + } + + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; + if(snapshotId != null){ + putQueryParameter("SnapshotId", snapshotId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public Boolean getForce() { + return this.force; + } + + public void setForce(Boolean force) { + this.force = force; + if(force != null){ + putQueryParameter("Force", force.toString()); + } + } + + @Override + public Class getResponseClass() { + return DeleteSnapshotResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteSnapshotResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteSnapshotResponse.java new file mode 100644 index 0000000000..9b3151010d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteSnapshotResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeleteSnapshotResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteSnapshotResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeleteSnapshotResponse getInstance(UnmarshallerContext context) { + return DeleteSnapshotResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteStorageSetRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteStorageSetRequest.java similarity index 94% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteStorageSetRequest.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteStorageSetRequest.java index 2b3a763c8b..71d0ffb2fa 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteStorageSetRequest.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteStorageSetRequest.java @@ -12,7 +12,7 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.RpcAcsRequest; import com.aliyuncs.http.MethodType; @@ -37,7 +37,7 @@ public class DeleteStorageSetRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String vSwitchId; + public DeleteVSwitchRequest() { + super("Ecs", "2014-05-26", "DeleteVSwitch", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getVSwitchId() { + return this.vSwitchId; + } + + public void setVSwitchId(String vSwitchId) { + this.vSwitchId = vSwitchId; + if(vSwitchId != null){ + putQueryParameter("VSwitchId", vSwitchId); + } + } + + @Override + public Class getResponseClass() { + return DeleteVSwitchResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteVSwitchResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteVSwitchResponse.java new file mode 100644 index 0000000000..9be255339c --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteVSwitchResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeleteVSwitchResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteVSwitchResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeleteVSwitchResponse getInstance(UnmarshallerContext context) { + return DeleteVSwitchResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteVirtualBorderRouterRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteVirtualBorderRouterRequest.java new file mode 100644 index 0000000000..6f7babe343 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteVirtualBorderRouterRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteVirtualBorderRouterRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private String vbrId; + + private String userCidr; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public DeleteVirtualBorderRouterRequest() { + super("Ecs", "2014-05-26", "DeleteVirtualBorderRouter", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getVbrId() { + return this.vbrId; + } + + public void setVbrId(String vbrId) { + this.vbrId = vbrId; + if(vbrId != null){ + putQueryParameter("VbrId", vbrId); + } + } + + public String getUserCidr() { + return this.userCidr; + } + + public void setUserCidr(String userCidr) { + this.userCidr = userCidr; + if(userCidr != null){ + putQueryParameter("UserCidr", userCidr); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DeleteVirtualBorderRouterResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteVirtualBorderRouterResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteVirtualBorderRouterResponse.java new file mode 100644 index 0000000000..8d1aff1d95 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteVirtualBorderRouterResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeleteVirtualBorderRouterResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteVirtualBorderRouterResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeleteVirtualBorderRouterResponse getInstance(UnmarshallerContext context) { + return DeleteVirtualBorderRouterResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteVpcRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteVpcRequest.java new file mode 100644 index 0000000000..1e76365690 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteVpcRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeleteVpcRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String vpcId; + public DeleteVpcRequest() { + super("Ecs", "2014-05-26", "DeleteVpc", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + if(vpcId != null){ + putQueryParameter("VpcId", vpcId); + } + } + + @Override + public Class getResponseClass() { + return DeleteVpcResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteVpcResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteVpcResponse.java new file mode 100644 index 0000000000..783c38c5db --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeleteVpcResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeleteVpcResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteVpcResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeleteVpcResponse getInstance(UnmarshallerContext context) { + return DeleteVpcResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeregisterManagedInstanceRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeregisterManagedInstanceRequest.java new file mode 100644 index 0000000000..5811de8b61 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeregisterManagedInstanceRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DeregisterManagedInstanceRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceId; + public DeregisterManagedInstanceRequest() { + super("Ecs", "2014-05-26", "DeregisterManagedInstance", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + @Override + public Class getResponseClass() { + return DeregisterManagedInstanceResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeregisterManagedInstanceResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeregisterManagedInstanceResponse.java new file mode 100644 index 0000000000..0d30edd004 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DeregisterManagedInstanceResponse.java @@ -0,0 +1,189 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DeregisterManagedInstanceResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeregisterManagedInstanceResponse extends AcsResponse { + + private String requestId; + + private Instance instance; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Instance getInstance() { + return this.instance; + } + + public void setInstance(Instance instance) { + this.instance = instance; + } + + public static class Instance { + + private String lastInvokedTime; + + private String internetIp; + + private String hostname; + + private String instanceId; + + private String activationId; + + private String intranetIp; + + private String agentVersion; + + private String registrationTime; + + private String instanceName; + + private String osType; + + private String osVersion; + + private Long invocationCount; + + private String machineId; + + public String getLastInvokedTime() { + return this.lastInvokedTime; + } + + public void setLastInvokedTime(String lastInvokedTime) { + this.lastInvokedTime = lastInvokedTime; + } + + public String getInternetIp() { + return this.internetIp; + } + + public void setInternetIp(String internetIp) { + this.internetIp = internetIp; + } + + public String getHostname() { + return this.hostname; + } + + public void setHostname(String hostname) { + this.hostname = hostname; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getActivationId() { + return this.activationId; + } + + public void setActivationId(String activationId) { + this.activationId = activationId; + } + + public String getIntranetIp() { + return this.intranetIp; + } + + public void setIntranetIp(String intranetIp) { + this.intranetIp = intranetIp; + } + + public String getAgentVersion() { + return this.agentVersion; + } + + public void setAgentVersion(String agentVersion) { + this.agentVersion = agentVersion; + } + + public String getRegistrationTime() { + return this.registrationTime; + } + + public void setRegistrationTime(String registrationTime) { + this.registrationTime = registrationTime; + } + + public String getInstanceName() { + return this.instanceName; + } + + public void setInstanceName(String instanceName) { + this.instanceName = instanceName; + } + + public String getOsType() { + return this.osType; + } + + public void setOsType(String osType) { + this.osType = osType; + } + + public String getOsVersion() { + return this.osVersion; + } + + public void setOsVersion(String osVersion) { + this.osVersion = osVersion; + } + + public Long getInvocationCount() { + return this.invocationCount; + } + + public void setInvocationCount(Long invocationCount) { + this.invocationCount = invocationCount; + } + + public String getMachineId() { + return this.machineId; + } + + public void setMachineId(String machineId) { + this.machineId = machineId; + } + } + + @Override + public DeregisterManagedInstanceResponse getInstance(UnmarshallerContext context) { + return DeregisterManagedInstanceResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAccessPointsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAccessPointsRequest.java new file mode 100644 index 0000000000..119cfa4e02 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAccessPointsRequest.java @@ -0,0 +1,163 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeAccessPointsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String type; + + private Integer pageNumber; + + private Integer pageSize; + + private String resourceOwnerAccount; + + private Long ownerId; + + private List filters; + public DescribeAccessPointsRequest() { + super("Ecs", "2014-05-26", "DescribeAccessPoints", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + if(type != null){ + putQueryParameter("Type", type); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getFilters() { + return this.filters; + } + + public void setFilters(List filters) { + this.filters = filters; + if (filters != null) { + for (int depth1 = 0; depth1 < filters.size(); depth1++) { + if (filters.get(depth1).getValues() != null) { + for (int i = 0; i < filters.get(depth1).getValues().size(); i++) { + putQueryParameter("Filter." + (depth1 + 1) + ".Value." + (i + 1) , filters.get(depth1).getValues().get(i)); + } + } + putQueryParameter("Filter." + (depth1 + 1) + ".Key" , filters.get(depth1).getKey()); + } + } + } + + public static class Filter { + + private List values; + + private String key; + + public List getValues() { + return this.values; + } + + public void setValues(List values) { + this.values = values; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + } + + @Override + public Class getResponseClass() { + return DescribeAccessPointsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAccessPointsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAccessPointsResponse.java new file mode 100644 index 0000000000..52a4fdcd60 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAccessPointsResponse.java @@ -0,0 +1,165 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeAccessPointsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeAccessPointsResponse extends AcsResponse { + + private String requestId; + + private Integer pageNumber; + + private Integer pageSize; + + private Integer totalCount; + + private List accessPointSet; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getAccessPointSet() { + return this.accessPointSet; + } + + public void setAccessPointSet(List accessPointSet) { + this.accessPointSet = accessPointSet; + } + + public static class AccessPointType { + + private String status; + + private String type; + + private String hostOperator; + + private String description; + + private String attachedRegionNo; + + private String name; + + private String accessPointId; + + private String location; + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + } + + public String getHostOperator() { + return this.hostOperator; + } + + public void setHostOperator(String hostOperator) { + this.hostOperator = hostOperator; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getAttachedRegionNo() { + return this.attachedRegionNo; + } + + public void setAttachedRegionNo(String attachedRegionNo) { + this.attachedRegionNo = attachedRegionNo; + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public String getAccessPointId() { + return this.accessPointId; + } + + public void setAccessPointId(String accessPointId) { + this.accessPointId = accessPointId; + } + + public String getLocation() { + return this.location; + } + + public void setLocation(String location) { + this.location = location; + } + } + + @Override + public DescribeAccessPointsResponse getInstance(UnmarshallerContext context) { + return DescribeAccessPointsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeAccountAttributesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAccountAttributesRequest.java similarity index 94% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeAccountAttributesRequest.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAccountAttributesRequest.java index ad6cf16f2c..f8240b95f7 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeAccountAttributesRequest.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAccountAttributesRequest.java @@ -12,7 +12,7 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.RpcAcsRequest; import java.util.List; @@ -36,7 +36,7 @@ public class DescribeAccountAttributesRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Long pageNumber; + + private Long pageSize; + + private List tags; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceName; + + private String activationId; + public DescribeActivationsRequest() { + super("Ecs", "2014-05-26", "DescribeActivations", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Long getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Long pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Long getPageSize() { + return this.pageSize; + } + + public void setPageSize(Long pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceName() { + return this.instanceName; + } + + public void setInstanceName(String instanceName) { + this.instanceName = instanceName; + if(instanceName != null){ + putQueryParameter("InstanceName", instanceName); + } + } + + public String getActivationId() { + return this.activationId; + } + + public void setActivationId(String activationId) { + this.activationId = activationId; + if(activationId != null){ + putQueryParameter("ActivationId", activationId); + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return DescribeActivationsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeActivationsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeActivationsResponse.java new file mode 100644 index 0000000000..47929b03fd --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeActivationsResponse.java @@ -0,0 +1,223 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeActivationsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeActivationsResponse extends AcsResponse { + + private Long pageSize; + + private String requestId; + + private Long pageNumber; + + private Long totalCount; + + private List activationList; + + public Long getPageSize() { + return this.pageSize; + } + + public void setPageSize(Long pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Long getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Long pageNumber) { + this.pageNumber = pageNumber; + } + + public Long getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Long totalCount) { + this.totalCount = totalCount; + } + + public List getActivationList() { + return this.activationList; + } + + public void setActivationList(List activationList) { + this.activationList = activationList; + } + + public static class Activation { + + private String creationTime; + + private Integer deregisteredCount; + + private Integer instanceCount; + + private String description; + + private Integer registeredCount; + + private String instanceName; + + private Boolean disabled; + + private String ipAddressRange; + + private Long timeToLiveInHours; + + private String activationId; + + private List tags; + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public Integer getDeregisteredCount() { + return this.deregisteredCount; + } + + public void setDeregisteredCount(Integer deregisteredCount) { + this.deregisteredCount = deregisteredCount; + } + + public Integer getInstanceCount() { + return this.instanceCount; + } + + public void setInstanceCount(Integer instanceCount) { + this.instanceCount = instanceCount; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getRegisteredCount() { + return this.registeredCount; + } + + public void setRegisteredCount(Integer registeredCount) { + this.registeredCount = registeredCount; + } + + public String getInstanceName() { + return this.instanceName; + } + + public void setInstanceName(String instanceName) { + this.instanceName = instanceName; + } + + public Boolean getDisabled() { + return this.disabled; + } + + public void setDisabled(Boolean disabled) { + this.disabled = disabled; + } + + public String getIpAddressRange() { + return this.ipAddressRange; + } + + public void setIpAddressRange(String ipAddressRange) { + this.ipAddressRange = ipAddressRange; + } + + public Long getTimeToLiveInHours() { + return this.timeToLiveInHours; + } + + public void setTimeToLiveInHours(Long timeToLiveInHours) { + this.timeToLiveInHours = timeToLiveInHours; + } + + public String getActivationId() { + return this.activationId; + } + + public void setActivationId(String activationId) { + this.activationId = activationId; + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public static class Tag { + + private String tagKey; + + private String tagValue; + + public String getTagKey() { + return this.tagKey; + } + + public void setTagKey(String tagKey) { + this.tagKey = tagKey; + } + + public String getTagValue() { + return this.tagValue; + } + + public void setTagValue(String tagValue) { + this.tagValue = tagValue; + } + } + } + + @Override + public DescribeActivationsResponse getInstance(UnmarshallerContext context) { + return DescribeActivationsResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAutoProvisioningGroupHistoryRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAutoProvisioningGroupHistoryRequest.java new file mode 100644 index 0000000000..1593a4755b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAutoProvisioningGroupHistoryRequest.java @@ -0,0 +1,158 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeAutoProvisioningGroupHistoryRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String startTime; + + private Integer pageNumber; + + private Integer pageSize; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String endTime; + + private Long ownerId; + + private String autoProvisioningGroupId; + public DescribeAutoProvisioningGroupHistoryRequest() { + super("Ecs", "2014-05-26", "DescribeAutoProvisioningGroupHistory", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getStartTime() { + return this.startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + if(startTime != null){ + putQueryParameter("StartTime", startTime); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getEndTime() { + return this.endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + if(endTime != null){ + putQueryParameter("EndTime", endTime); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getAutoProvisioningGroupId() { + return this.autoProvisioningGroupId; + } + + public void setAutoProvisioningGroupId(String autoProvisioningGroupId) { + this.autoProvisioningGroupId = autoProvisioningGroupId; + if(autoProvisioningGroupId != null){ + putQueryParameter("AutoProvisioningGroupId", autoProvisioningGroupId); + } + } + + @Override + public Class getResponseClass() { + return DescribeAutoProvisioningGroupHistoryResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAutoProvisioningGroupHistoryResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAutoProvisioningGroupHistoryResponse.java new file mode 100644 index 0000000000..560355ec11 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAutoProvisioningGroupHistoryResponse.java @@ -0,0 +1,158 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeAutoProvisioningGroupHistoryResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeAutoProvisioningGroupHistoryResponse extends AcsResponse { + + private Integer pageSize; + + private String requestId; + + private Integer pageNumber; + + private Integer totalCount; + + private List autoProvisioningGroupHistories; + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getAutoProvisioningGroupHistories() { + return this.autoProvisioningGroupHistories; + } + + public void setAutoProvisioningGroupHistories(List autoProvisioningGroupHistories) { + this.autoProvisioningGroupHistories = autoProvisioningGroupHistories; + } + + public static class AutoProvisioningGroupHistory { + + private String status; + + private String startTime; + + private String taskId; + + private String lastEventTime; + + private List activityDetails; + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getStartTime() { + return this.startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + public String getTaskId() { + return this.taskId; + } + + public void setTaskId(String taskId) { + this.taskId = taskId; + } + + public String getLastEventTime() { + return this.lastEventTime; + } + + public void setLastEventTime(String lastEventTime) { + this.lastEventTime = lastEventTime; + } + + public List getActivityDetails() { + return this.activityDetails; + } + + public void setActivityDetails(List activityDetails) { + this.activityDetails = activityDetails; + } + + public static class ActivityDetail { + + private String status; + + private String detail; + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getDetail() { + return this.detail; + } + + public void setDetail(String detail) { + this.detail = detail; + } + } + } + + @Override + public DescribeAutoProvisioningGroupHistoryResponse getInstance(UnmarshallerContext context) { + return DescribeAutoProvisioningGroupHistoryResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAutoProvisioningGroupInstancesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAutoProvisioningGroupInstancesRequest.java new file mode 100644 index 0000000000..cd88fc0cac --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAutoProvisioningGroupInstancesRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeAutoProvisioningGroupInstancesRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Integer pageNumber; + + private Integer pageSize; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String autoProvisioningGroupId; + public DescribeAutoProvisioningGroupInstancesRequest() { + super("Ecs", "2014-05-26", "DescribeAutoProvisioningGroupInstances", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getAutoProvisioningGroupId() { + return this.autoProvisioningGroupId; + } + + public void setAutoProvisioningGroupId(String autoProvisioningGroupId) { + this.autoProvisioningGroupId = autoProvisioningGroupId; + if(autoProvisioningGroupId != null){ + putQueryParameter("AutoProvisioningGroupId", autoProvisioningGroupId); + } + } + + @Override + public Class getResponseClass() { + return DescribeAutoProvisioningGroupInstancesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAutoProvisioningGroupInstancesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAutoProvisioningGroupInstancesResponse.java new file mode 100644 index 0000000000..749c67f5ca --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAutoProvisioningGroupInstancesResponse.java @@ -0,0 +1,205 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeAutoProvisioningGroupInstancesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeAutoProvisioningGroupInstancesResponse extends AcsResponse { + + private Integer pageSize; + + private String requestId; + + private Integer pageNumber; + + private Integer totalCount; + + private List instances; + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getInstances() { + return this.instances; + } + + public void setInstances(List instances) { + this.instances = instances; + } + + public static class Instance { + + private String status; + + private String creationTime; + + private Boolean isSpot; + + private Integer cPU; + + private String instanceId; + + private String networkType; + + private String instanceType; + + private String regionId; + + private Boolean ioOptimized; + + private String osType; + + private String zoneId; + + private Integer memory; + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public Boolean getIsSpot() { + return this.isSpot; + } + + public void setIsSpot(Boolean isSpot) { + this.isSpot = isSpot; + } + + public Integer getCPU() { + return this.cPU; + } + + public void setCPU(Integer cPU) { + this.cPU = cPU; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getNetworkType() { + return this.networkType; + } + + public void setNetworkType(String networkType) { + this.networkType = networkType; + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public Boolean getIoOptimized() { + return this.ioOptimized; + } + + public void setIoOptimized(Boolean ioOptimized) { + this.ioOptimized = ioOptimized; + } + + public String getOsType() { + return this.osType; + } + + public void setOsType(String osType) { + this.osType = osType; + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + } + + public Integer getMemory() { + return this.memory; + } + + public void setMemory(Integer memory) { + this.memory = memory; + } + } + + @Override + public DescribeAutoProvisioningGroupInstancesResponse getInstance(UnmarshallerContext context) { + return DescribeAutoProvisioningGroupInstancesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAutoProvisioningGroupsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAutoProvisioningGroupsRequest.java new file mode 100644 index 0000000000..b99b756b63 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAutoProvisioningGroupsRequest.java @@ -0,0 +1,163 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeAutoProvisioningGroupsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Integer pageNumber; + + private Integer pageSize; + + private List autoProvisioningGroupStatuss; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private List autoProvisioningGroupIds; + + private String autoProvisioningGroupName; + public DescribeAutoProvisioningGroupsRequest() { + super("Ecs", "2014-05-26", "DescribeAutoProvisioningGroups", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public List getAutoProvisioningGroupStatuss() { + return this.autoProvisioningGroupStatuss; + } + + public void setAutoProvisioningGroupStatuss(List autoProvisioningGroupStatuss) { + this.autoProvisioningGroupStatuss = autoProvisioningGroupStatuss; + if (autoProvisioningGroupStatuss != null) { + for (int i = 0; i < autoProvisioningGroupStatuss.size(); i++) { + putQueryParameter("AutoProvisioningGroupStatus." + (i + 1) , autoProvisioningGroupStatuss.get(i)); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getAutoProvisioningGroupIds() { + return this.autoProvisioningGroupIds; + } + + public void setAutoProvisioningGroupIds(List autoProvisioningGroupIds) { + this.autoProvisioningGroupIds = autoProvisioningGroupIds; + if (autoProvisioningGroupIds != null) { + for (int i = 0; i < autoProvisioningGroupIds.size(); i++) { + putQueryParameter("AutoProvisioningGroupId." + (i + 1) , autoProvisioningGroupIds.get(i)); + } + } + } + + public String getAutoProvisioningGroupName() { + return this.autoProvisioningGroupName; + } + + public void setAutoProvisioningGroupName(String autoProvisioningGroupName) { + this.autoProvisioningGroupName = autoProvisioningGroupName; + if(autoProvisioningGroupName != null){ + putQueryParameter("AutoProvisioningGroupName", autoProvisioningGroupName); + } + } + + @Override + public Class getResponseClass() { + return DescribeAutoProvisioningGroupsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAutoProvisioningGroupsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAutoProvisioningGroupsResponse.java new file mode 100644 index 0000000000..9b9a509014 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAutoProvisioningGroupsResponse.java @@ -0,0 +1,417 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeAutoProvisioningGroupsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeAutoProvisioningGroupsResponse extends AcsResponse { + + private Integer pageSize; + + private String requestId; + + private Integer pageNumber; + + private Integer totalCount; + + private List autoProvisioningGroups; + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getAutoProvisioningGroups() { + return this.autoProvisioningGroups; + } + + public void setAutoProvisioningGroups(List autoProvisioningGroups) { + this.autoProvisioningGroups = autoProvisioningGroups; + } + + public static class AutoProvisioningGroup { + + private String creationTime; + + private String autoProvisioningGroupName; + + private String status; + + private Boolean terminateInstances; + + private Float maxSpotPrice; + + private String state; + + private String launchTemplateId; + + private String validFrom; + + private String launchTemplateVersion; + + private Boolean terminateInstancesWithExpiration; + + private String regionId; + + private String validUntil; + + private String autoProvisioningGroupType; + + private String autoProvisioningGroupId; + + private String excessCapacityTerminationPolicy; + + private List launchTemplateConfigs; + + private SpotOptions spotOptions; + + private PayAsYouGoOptions payAsYouGoOptions; + + private TargetCapacitySpecification targetCapacitySpecification; + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getAutoProvisioningGroupName() { + return this.autoProvisioningGroupName; + } + + public void setAutoProvisioningGroupName(String autoProvisioningGroupName) { + this.autoProvisioningGroupName = autoProvisioningGroupName; + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public Boolean getTerminateInstances() { + return this.terminateInstances; + } + + public void setTerminateInstances(Boolean terminateInstances) { + this.terminateInstances = terminateInstances; + } + + public Float getMaxSpotPrice() { + return this.maxSpotPrice; + } + + public void setMaxSpotPrice(Float maxSpotPrice) { + this.maxSpotPrice = maxSpotPrice; + } + + public String getState() { + return this.state; + } + + public void setState(String state) { + this.state = state; + } + + public String getLaunchTemplateId() { + return this.launchTemplateId; + } + + public void setLaunchTemplateId(String launchTemplateId) { + this.launchTemplateId = launchTemplateId; + } + + public String getValidFrom() { + return this.validFrom; + } + + public void setValidFrom(String validFrom) { + this.validFrom = validFrom; + } + + public String getLaunchTemplateVersion() { + return this.launchTemplateVersion; + } + + public void setLaunchTemplateVersion(String launchTemplateVersion) { + this.launchTemplateVersion = launchTemplateVersion; + } + + public Boolean getTerminateInstancesWithExpiration() { + return this.terminateInstancesWithExpiration; + } + + public void setTerminateInstancesWithExpiration(Boolean terminateInstancesWithExpiration) { + this.terminateInstancesWithExpiration = terminateInstancesWithExpiration; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public String getValidUntil() { + return this.validUntil; + } + + public void setValidUntil(String validUntil) { + this.validUntil = validUntil; + } + + public String getAutoProvisioningGroupType() { + return this.autoProvisioningGroupType; + } + + public void setAutoProvisioningGroupType(String autoProvisioningGroupType) { + this.autoProvisioningGroupType = autoProvisioningGroupType; + } + + public String getAutoProvisioningGroupId() { + return this.autoProvisioningGroupId; + } + + public void setAutoProvisioningGroupId(String autoProvisioningGroupId) { + this.autoProvisioningGroupId = autoProvisioningGroupId; + } + + public String getExcessCapacityTerminationPolicy() { + return this.excessCapacityTerminationPolicy; + } + + public void setExcessCapacityTerminationPolicy(String excessCapacityTerminationPolicy) { + this.excessCapacityTerminationPolicy = excessCapacityTerminationPolicy; + } + + public List getLaunchTemplateConfigs() { + return this.launchTemplateConfigs; + } + + public void setLaunchTemplateConfigs(List launchTemplateConfigs) { + this.launchTemplateConfigs = launchTemplateConfigs; + } + + public SpotOptions getSpotOptions() { + return this.spotOptions; + } + + public void setSpotOptions(SpotOptions spotOptions) { + this.spotOptions = spotOptions; + } + + public PayAsYouGoOptions getPayAsYouGoOptions() { + return this.payAsYouGoOptions; + } + + public void setPayAsYouGoOptions(PayAsYouGoOptions payAsYouGoOptions) { + this.payAsYouGoOptions = payAsYouGoOptions; + } + + public TargetCapacitySpecification getTargetCapacitySpecification() { + return this.targetCapacitySpecification; + } + + public void setTargetCapacitySpecification(TargetCapacitySpecification targetCapacitySpecification) { + this.targetCapacitySpecification = targetCapacitySpecification; + } + + public static class LaunchTemplateConfig { + + private Float maxPrice; + + private Float priority; + + private String vSwitchId; + + private Float weightedCapacity; + + private String instanceType; + + public Float getMaxPrice() { + return this.maxPrice; + } + + public void setMaxPrice(Float maxPrice) { + this.maxPrice = maxPrice; + } + + public Float getPriority() { + return this.priority; + } + + public void setPriority(Float priority) { + this.priority = priority; + } + + public String getVSwitchId() { + return this.vSwitchId; + } + + public void setVSwitchId(String vSwitchId) { + this.vSwitchId = vSwitchId; + } + + public Float getWeightedCapacity() { + return this.weightedCapacity; + } + + public void setWeightedCapacity(Float weightedCapacity) { + this.weightedCapacity = weightedCapacity; + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + } + + public static class SpotOptions { + + private Integer instancePoolsToUseCount; + + private String allocationStrategy; + + private String instanceInterruptionBehavior; + + public Integer getInstancePoolsToUseCount() { + return this.instancePoolsToUseCount; + } + + public void setInstancePoolsToUseCount(Integer instancePoolsToUseCount) { + this.instancePoolsToUseCount = instancePoolsToUseCount; + } + + public String getAllocationStrategy() { + return this.allocationStrategy; + } + + public void setAllocationStrategy(String allocationStrategy) { + this.allocationStrategy = allocationStrategy; + } + + public String getInstanceInterruptionBehavior() { + return this.instanceInterruptionBehavior; + } + + public void setInstanceInterruptionBehavior(String instanceInterruptionBehavior) { + this.instanceInterruptionBehavior = instanceInterruptionBehavior; + } + } + + public static class PayAsYouGoOptions { + + private String allocationStrategy; + + public String getAllocationStrategy() { + return this.allocationStrategy; + } + + public void setAllocationStrategy(String allocationStrategy) { + this.allocationStrategy = allocationStrategy; + } + } + + public static class TargetCapacitySpecification { + + private Float spotTargetCapacity; + + private Float payAsYouGoTargetCapacity; + + private String defaultTargetCapacityType; + + private Float totalTargetCapacity; + + public Float getSpotTargetCapacity() { + return this.spotTargetCapacity; + } + + public void setSpotTargetCapacity(Float spotTargetCapacity) { + this.spotTargetCapacity = spotTargetCapacity; + } + + public Float getPayAsYouGoTargetCapacity() { + return this.payAsYouGoTargetCapacity; + } + + public void setPayAsYouGoTargetCapacity(Float payAsYouGoTargetCapacity) { + this.payAsYouGoTargetCapacity = payAsYouGoTargetCapacity; + } + + public String getDefaultTargetCapacityType() { + return this.defaultTargetCapacityType; + } + + public void setDefaultTargetCapacityType(String defaultTargetCapacityType) { + this.defaultTargetCapacityType = defaultTargetCapacityType; + } + + public Float getTotalTargetCapacity() { + return this.totalTargetCapacity; + } + + public void setTotalTargetCapacity(Float totalTargetCapacity) { + this.totalTargetCapacity = totalTargetCapacity; + } + } + } + + @Override + public DescribeAutoProvisioningGroupsResponse getInstance(UnmarshallerContext context) { + return DescribeAutoProvisioningGroupsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAutoSnapshotPolicyExRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAutoSnapshotPolicyExRequest.java new file mode 100644 index 0000000000..1c53a480ba --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAutoSnapshotPolicyExRequest.java @@ -0,0 +1,198 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeAutoSnapshotPolicyExRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String autoSnapshotPolicyId; + + private Integer pageNumber; + + private String resourceGroupId; + + private Integer pageSize; + + private List tags; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String autoSnapshotPolicyName; + public DescribeAutoSnapshotPolicyExRequest() { + super("Ecs", "2014-05-26", "DescribeAutoSnapshotPolicyEx", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getAutoSnapshotPolicyId() { + return this.autoSnapshotPolicyId; + } + + public void setAutoSnapshotPolicyId(String autoSnapshotPolicyId) { + this.autoSnapshotPolicyId = autoSnapshotPolicyId; + if(autoSnapshotPolicyId != null){ + putQueryParameter("AutoSnapshotPolicyId", autoSnapshotPolicyId); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getAutoSnapshotPolicyName() { + return this.autoSnapshotPolicyName; + } + + public void setAutoSnapshotPolicyName(String autoSnapshotPolicyName) { + this.autoSnapshotPolicyName = autoSnapshotPolicyName; + if(autoSnapshotPolicyName != null){ + putQueryParameter("AutoSnapshotPolicyName", autoSnapshotPolicyName); + } + } + + public static class Tag { + + private String value; + + private String key; + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + } + + @Override + public Class getResponseClass() { + return DescribeAutoSnapshotPolicyExResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAutoSnapshotPolicyExResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAutoSnapshotPolicyExResponse.java new file mode 100644 index 0000000000..15f704e098 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAutoSnapshotPolicyExResponse.java @@ -0,0 +1,258 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeAutoSnapshotPolicyExResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeAutoSnapshotPolicyExResponse extends AcsResponse { + + private Integer pageSize; + + private String requestId; + + private Integer pageNumber; + + private Integer totalCount; + + private List autoSnapshotPolicies; + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getAutoSnapshotPolicies() { + return this.autoSnapshotPolicies; + } + + public void setAutoSnapshotPolicies(List autoSnapshotPolicies) { + this.autoSnapshotPolicies = autoSnapshotPolicies; + } + + public static class AutoSnapshotPolicy { + + private String timePoints; + + private String creationTime; + + private String status; + + private String autoSnapshotPolicyName; + + private String targetCopyRegions; + + private Integer copiedSnapshotsRetentionDays; + + private String autoSnapshotPolicyId; + + private Integer retentionDays; + + private String regionId; + + private Integer diskNums; + + private Boolean enableCrossRegionCopy; + + private String repeatWeekdays; + + private Integer volumeNums; + + private String resourceGroupId; + + private List tags; + + public String getTimePoints() { + return this.timePoints; + } + + public void setTimePoints(String timePoints) { + this.timePoints = timePoints; + } + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getAutoSnapshotPolicyName() { + return this.autoSnapshotPolicyName; + } + + public void setAutoSnapshotPolicyName(String autoSnapshotPolicyName) { + this.autoSnapshotPolicyName = autoSnapshotPolicyName; + } + + public String getTargetCopyRegions() { + return this.targetCopyRegions; + } + + public void setTargetCopyRegions(String targetCopyRegions) { + this.targetCopyRegions = targetCopyRegions; + } + + public Integer getCopiedSnapshotsRetentionDays() { + return this.copiedSnapshotsRetentionDays; + } + + public void setCopiedSnapshotsRetentionDays(Integer copiedSnapshotsRetentionDays) { + this.copiedSnapshotsRetentionDays = copiedSnapshotsRetentionDays; + } + + public String getAutoSnapshotPolicyId() { + return this.autoSnapshotPolicyId; + } + + public void setAutoSnapshotPolicyId(String autoSnapshotPolicyId) { + this.autoSnapshotPolicyId = autoSnapshotPolicyId; + } + + public Integer getRetentionDays() { + return this.retentionDays; + } + + public void setRetentionDays(Integer retentionDays) { + this.retentionDays = retentionDays; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public Integer getDiskNums() { + return this.diskNums; + } + + public void setDiskNums(Integer diskNums) { + this.diskNums = diskNums; + } + + public Boolean getEnableCrossRegionCopy() { + return this.enableCrossRegionCopy; + } + + public void setEnableCrossRegionCopy(Boolean enableCrossRegionCopy) { + this.enableCrossRegionCopy = enableCrossRegionCopy; + } + + public String getRepeatWeekdays() { + return this.repeatWeekdays; + } + + public void setRepeatWeekdays(String repeatWeekdays) { + this.repeatWeekdays = repeatWeekdays; + } + + public Integer getVolumeNums() { + return this.volumeNums; + } + + public void setVolumeNums(Integer volumeNums) { + this.volumeNums = volumeNums; + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public static class Tag { + + private String tagValue; + + private String tagKey; + + public String getTagValue() { + return this.tagValue; + } + + public void setTagValue(String tagValue) { + this.tagValue = tagValue; + } + + public String getTagKey() { + return this.tagKey; + } + + public void setTagKey(String tagKey) { + this.tagKey = tagKey; + } + } + } + + @Override + public DescribeAutoSnapshotPolicyExResponse getInstance(UnmarshallerContext context) { + return DescribeAutoSnapshotPolicyExResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAvailableResourceRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAvailableResourceRequest.java new file mode 100644 index 0000000000..efdba22f0c --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAvailableResourceRequest.java @@ -0,0 +1,288 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeAvailableResourceRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Float memory; + + private String ioOptimized; + + private String dataDiskCategory; + + private Integer cores; + + private String systemDiskCategory; + + private String scope; + + private String instanceType; + + private String networkCategory; + + private String instanceChargeType; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String dedicatedHostId; + + private Long ownerId; + + private Integer spotDuration; + + private String resourceType; + + private String spotStrategy; + + private String destinationResource; + + private String zoneId; + public DescribeAvailableResourceRequest() { + super("Ecs", "2014-05-26", "DescribeAvailableResource", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Float getMemory() { + return this.memory; + } + + public void setMemory(Float memory) { + this.memory = memory; + if(memory != null){ + putQueryParameter("Memory", memory.toString()); + } + } + + public String getIoOptimized() { + return this.ioOptimized; + } + + public void setIoOptimized(String ioOptimized) { + this.ioOptimized = ioOptimized; + if(ioOptimized != null){ + putQueryParameter("IoOptimized", ioOptimized); + } + } + + public String getDataDiskCategory() { + return this.dataDiskCategory; + } + + public void setDataDiskCategory(String dataDiskCategory) { + this.dataDiskCategory = dataDiskCategory; + if(dataDiskCategory != null){ + putQueryParameter("DataDiskCategory", dataDiskCategory); + } + } + + public Integer getCores() { + return this.cores; + } + + public void setCores(Integer cores) { + this.cores = cores; + if(cores != null){ + putQueryParameter("Cores", cores.toString()); + } + } + + public String getSystemDiskCategory() { + return this.systemDiskCategory; + } + + public void setSystemDiskCategory(String systemDiskCategory) { + this.systemDiskCategory = systemDiskCategory; + if(systemDiskCategory != null){ + putQueryParameter("SystemDiskCategory", systemDiskCategory); + } + } + + public String getScope() { + return this.scope; + } + + public void setScope(String scope) { + this.scope = scope; + if(scope != null){ + putQueryParameter("Scope", scope); + } + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + if(instanceType != null){ + putQueryParameter("InstanceType", instanceType); + } + } + + public String getNetworkCategory() { + return this.networkCategory; + } + + public void setNetworkCategory(String networkCategory) { + this.networkCategory = networkCategory; + if(networkCategory != null){ + putQueryParameter("NetworkCategory", networkCategory); + } + } + + public String getInstanceChargeType() { + return this.instanceChargeType; + } + + public void setInstanceChargeType(String instanceChargeType) { + this.instanceChargeType = instanceChargeType; + if(instanceChargeType != null){ + putQueryParameter("InstanceChargeType", instanceChargeType); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getDedicatedHostId() { + return this.dedicatedHostId; + } + + public void setDedicatedHostId(String dedicatedHostId) { + this.dedicatedHostId = dedicatedHostId; + if(dedicatedHostId != null){ + putQueryParameter("DedicatedHostId", dedicatedHostId); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public Integer getSpotDuration() { + return this.spotDuration; + } + + public void setSpotDuration(Integer spotDuration) { + this.spotDuration = spotDuration; + if(spotDuration != null){ + putQueryParameter("SpotDuration", spotDuration.toString()); + } + } + + public String getResourceType() { + return this.resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + if(resourceType != null){ + putQueryParameter("ResourceType", resourceType); + } + } + + public String getSpotStrategy() { + return this.spotStrategy; + } + + public void setSpotStrategy(String spotStrategy) { + this.spotStrategy = spotStrategy; + if(spotStrategy != null){ + putQueryParameter("SpotStrategy", spotStrategy); + } + } + + public String getDestinationResource() { + return this.destinationResource; + } + + public void setDestinationResource(String destinationResource) { + this.destinationResource = destinationResource; + if(destinationResource != null){ + putQueryParameter("DestinationResource", destinationResource); + } + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + if(zoneId != null){ + putQueryParameter("ZoneId", zoneId); + } + } + + @Override + public Class getResponseClass() { + return DescribeAvailableResourceResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAvailableResourceResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAvailableResourceResponse.java new file mode 100644 index 0000000000..76b0711c4f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeAvailableResourceResponse.java @@ -0,0 +1,191 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeAvailableResourceResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeAvailableResourceResponse extends AcsResponse { + + private String requestId; + + private List availableZones; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getAvailableZones() { + return this.availableZones; + } + + public void setAvailableZones(List availableZones) { + this.availableZones = availableZones; + } + + public static class AvailableZone { + + private String zoneId; + + private String status; + + private String statusCategory; + + private String regionId; + + private List availableResources; + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getStatusCategory() { + return this.statusCategory; + } + + public void setStatusCategory(String statusCategory) { + this.statusCategory = statusCategory; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public List getAvailableResources() { + return this.availableResources; + } + + public void setAvailableResources(List availableResources) { + this.availableResources = availableResources; + } + + public static class AvailableResource { + + private String type; + + private List supportedResources; + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + } + + public List getSupportedResources() { + return this.supportedResources; + } + + public void setSupportedResources(List supportedResources) { + this.supportedResources = supportedResources; + } + + public static class SupportedResource { + + private String status; + + private String value; + + private Integer max; + + private String unit; + + private String statusCategory; + + private Integer min; + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public Integer getMax() { + return this.max; + } + + public void setMax(Integer max) { + this.max = max; + } + + public String getUnit() { + return this.unit; + } + + public void setUnit(String unit) { + this.unit = unit; + } + + public String getStatusCategory() { + return this.statusCategory; + } + + public void setStatusCategory(String statusCategory) { + this.statusCategory = statusCategory; + } + + public Integer getMin() { + return this.min; + } + + public void setMin(Integer min) { + this.min = min; + } + } + } + } + + @Override + public DescribeAvailableResourceResponse getInstance(UnmarshallerContext context) { + return DescribeAvailableResourceResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeBandwidthLimitationRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeBandwidthLimitationRequest.java new file mode 100644 index 0000000000..6bda8c3210 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeBandwidthLimitationRequest.java @@ -0,0 +1,158 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeBandwidthLimitationRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String instanceType; + + private String instanceChargeType; + + private String resourceId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String operationType; + + private Long ownerId; + + private String spotStrategy; + public DescribeBandwidthLimitationRequest() { + super("Ecs", "2014-05-26", "DescribeBandwidthLimitation", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + if(instanceType != null){ + putQueryParameter("InstanceType", instanceType); + } + } + + public String getInstanceChargeType() { + return this.instanceChargeType; + } + + public void setInstanceChargeType(String instanceChargeType) { + this.instanceChargeType = instanceChargeType; + if(instanceChargeType != null){ + putQueryParameter("InstanceChargeType", instanceChargeType); + } + } + + public String getResourceId() { + return this.resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + if(resourceId != null){ + putQueryParameter("ResourceId", resourceId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getOperationType() { + return this.operationType; + } + + public void setOperationType(String operationType) { + this.operationType = operationType; + if(operationType != null){ + putQueryParameter("OperationType", operationType); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getSpotStrategy() { + return this.spotStrategy; + } + + public void setSpotStrategy(String spotStrategy) { + this.spotStrategy = spotStrategy; + if(spotStrategy != null){ + putQueryParameter("SpotStrategy", spotStrategy); + } + } + + @Override + public Class getResponseClass() { + return DescribeBandwidthLimitationResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeBandwidthLimitationResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeBandwidthLimitationResponse.java new file mode 100644 index 0000000000..21c1986452 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeBandwidthLimitationResponse.java @@ -0,0 +1,95 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeBandwidthLimitationResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeBandwidthLimitationResponse extends AcsResponse { + + private String requestId; + + private List bandwidths; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getBandwidths() { + return this.bandwidths; + } + + public void setBandwidths(List bandwidths) { + this.bandwidths = bandwidths; + } + + public static class Bandwidth { + + private String internetChargeType; + + private Integer max; + + private Integer min; + + private String unit; + + public String getInternetChargeType() { + return this.internetChargeType; + } + + public void setInternetChargeType(String internetChargeType) { + this.internetChargeType = internetChargeType; + } + + public Integer getMax() { + return this.max; + } + + public void setMax(Integer max) { + this.max = max; + } + + public Integer getMin() { + return this.min; + } + + public void setMin(Integer min) { + this.min = min; + } + + public String getUnit() { + return this.unit; + } + + public void setUnit(String unit) { + this.unit = unit; + } + } + + @Override + public DescribeBandwidthLimitationResponse getInstance(UnmarshallerContext context) { + return DescribeBandwidthLimitationResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeBandwidthPackagesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeBandwidthPackagesRequest.java new file mode 100644 index 0000000000..530af7f790 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeBandwidthPackagesRequest.java @@ -0,0 +1,145 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeBandwidthPackagesRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Integer pageNumber; + + private Integer pageSize; + + private String natGatewayId; + + private String bandwidthPackageId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public DescribeBandwidthPackagesRequest() { + super("Ecs", "2014-05-26", "DescribeBandwidthPackages", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getNatGatewayId() { + return this.natGatewayId; + } + + public void setNatGatewayId(String natGatewayId) { + this.natGatewayId = natGatewayId; + if(natGatewayId != null){ + putQueryParameter("NatGatewayId", natGatewayId); + } + } + + public String getBandwidthPackageId() { + return this.bandwidthPackageId; + } + + public void setBandwidthPackageId(String bandwidthPackageId) { + this.bandwidthPackageId = bandwidthPackageId; + if(bandwidthPackageId != null){ + putQueryParameter("BandwidthPackageId", bandwidthPackageId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DescribeBandwidthPackagesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeBandwidthPackagesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeBandwidthPackagesResponse.java new file mode 100644 index 0000000000..2fe0e84da8 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeBandwidthPackagesResponse.java @@ -0,0 +1,258 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeBandwidthPackagesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeBandwidthPackagesResponse extends AcsResponse { + + private Integer pageSize; + + private String requestId; + + private Integer pageNumber; + + private Integer totalCount; + + private List bandwidthPackages; + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getBandwidthPackages() { + return this.bandwidthPackages; + } + + public void setBandwidthPackages(List bandwidthPackages) { + this.bandwidthPackages = bandwidthPackages; + } + + public static class BandwidthPackage { + + private String status; + + private String creationTime; + + private String ipCount; + + private String regionId; + + private String instanceChargeType; + + private String bandwidthPackageId; + + private String description; + + private String bandwidth; + + private String natGatewayId; + + private String zoneId; + + private String internetChargeType; + + private String businessStatus; + + private String name; + + private String iSP; + + private List publicIpAddresses; + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getIpCount() { + return this.ipCount; + } + + public void setIpCount(String ipCount) { + this.ipCount = ipCount; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public String getInstanceChargeType() { + return this.instanceChargeType; + } + + public void setInstanceChargeType(String instanceChargeType) { + this.instanceChargeType = instanceChargeType; + } + + public String getBandwidthPackageId() { + return this.bandwidthPackageId; + } + + public void setBandwidthPackageId(String bandwidthPackageId) { + this.bandwidthPackageId = bandwidthPackageId; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getBandwidth() { + return this.bandwidth; + } + + public void setBandwidth(String bandwidth) { + this.bandwidth = bandwidth; + } + + public String getNatGatewayId() { + return this.natGatewayId; + } + + public void setNatGatewayId(String natGatewayId) { + this.natGatewayId = natGatewayId; + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + } + + public String getInternetChargeType() { + return this.internetChargeType; + } + + public void setInternetChargeType(String internetChargeType) { + this.internetChargeType = internetChargeType; + } + + public String getBusinessStatus() { + return this.businessStatus; + } + + public void setBusinessStatus(String businessStatus) { + this.businessStatus = businessStatus; + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public String getISP() { + return this.iSP; + } + + public void setISP(String iSP) { + this.iSP = iSP; + } + + public List getPublicIpAddresses() { + return this.publicIpAddresses; + } + + public void setPublicIpAddresses(List publicIpAddresses) { + this.publicIpAddresses = publicIpAddresses; + } + + public static class PublicIpAddresse { + + private String ipAddress; + + private String allocationId; + + public String getIpAddress() { + return this.ipAddress; + } + + public void setIpAddress(String ipAddress) { + this.ipAddress = ipAddress; + } + + public String getAllocationId() { + return this.allocationId; + } + + public void setAllocationId(String allocationId) { + this.allocationId = allocationId; + } + } + } + + @Override + public DescribeBandwidthPackagesResponse getInstance(UnmarshallerContext context) { + return DescribeBandwidthPackagesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeCapacityReservationInstancesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeCapacityReservationInstancesRequest.java new file mode 100644 index 0000000000..f67b905597 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeCapacityReservationInstancesRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeCapacityReservationInstancesRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String nextToken; + + private String privatePoolOptionsId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private Integer maxResults; + public DescribeCapacityReservationInstancesRequest() { + super("Ecs", "2014-05-26", "DescribeCapacityReservationInstances", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + if(nextToken != null){ + putQueryParameter("NextToken", nextToken); + } + } + + public String getPrivatePoolOptionsId() { + return this.privatePoolOptionsId; + } + + public void setPrivatePoolOptionsId(String privatePoolOptionsId) { + this.privatePoolOptionsId = privatePoolOptionsId; + if(privatePoolOptionsId != null){ + putQueryParameter("PrivatePoolOptions.Id", privatePoolOptionsId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public Integer getMaxResults() { + return this.maxResults; + } + + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + if(maxResults != null){ + putQueryParameter("MaxResults", maxResults.toString()); + } + } + + @Override + public Class getResponseClass() { + return DescribeCapacityReservationInstancesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeCapacityReservationInstancesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeCapacityReservationInstancesResponse.java new file mode 100644 index 0000000000..83025e3f12 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeCapacityReservationInstancesResponse.java @@ -0,0 +1,95 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeCapacityReservationInstancesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeCapacityReservationInstancesResponse extends AcsResponse { + + private String nextToken; + + private String requestId; + + private Integer totalCount; + + private Integer maxResults; + + private List capacityReservationItem; + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public Integer getMaxResults() { + return this.maxResults; + } + + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + } + + public List getCapacityReservationItem() { + return this.capacityReservationItem; + } + + public void setCapacityReservationItem(List capacityReservationItem) { + this.capacityReservationItem = capacityReservationItem; + } + + public static class InstanceIdSet { + + private String instanceId; + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + } + + @Override + public DescribeCapacityReservationInstancesResponse getInstance(UnmarshallerContext context) { + return DescribeCapacityReservationInstancesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeCapacityReservationsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeCapacityReservationsRequest.java new file mode 100644 index 0000000000..19323eaea4 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeCapacityReservationsRequest.java @@ -0,0 +1,250 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeCapacityReservationsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String platform; + + private String resourceGroupId; + + private String nextToken; + + private String instanceType; + + private List tags; + + private String instanceChargeType; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String privatePoolOptionsIds; + + private Integer maxResults; + + private String zoneId; + + private String status; + public DescribeCapacityReservationsRequest() { + super("Ecs", "2014-05-26", "DescribeCapacityReservations", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getPlatform() { + return this.platform; + } + + public void setPlatform(String platform) { + this.platform = platform; + if(platform != null){ + putQueryParameter("Platform", platform); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + if(nextToken != null){ + putQueryParameter("NextToken", nextToken); + } + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + if(instanceType != null){ + putQueryParameter("InstanceType", instanceType); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public String getInstanceChargeType() { + return this.instanceChargeType; + } + + public void setInstanceChargeType(String instanceChargeType) { + this.instanceChargeType = instanceChargeType; + if(instanceChargeType != null){ + putQueryParameter("InstanceChargeType", instanceChargeType); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getPrivatePoolOptionsIds() { + return this.privatePoolOptionsIds; + } + + public void setPrivatePoolOptionsIds(String privatePoolOptionsIds) { + this.privatePoolOptionsIds = privatePoolOptionsIds; + if(privatePoolOptionsIds != null){ + putQueryParameter("PrivatePoolOptions.Ids", privatePoolOptionsIds); + } + } + + public Integer getMaxResults() { + return this.maxResults; + } + + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + if(maxResults != null){ + putQueryParameter("MaxResults", maxResults.toString()); + } + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + if(zoneId != null){ + putQueryParameter("ZoneId", zoneId); + } + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + if(status != null){ + putQueryParameter("Status", status); + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return DescribeCapacityReservationsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeCapacityReservationsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeCapacityReservationsResponse.java new file mode 100644 index 0000000000..7a6be8555f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeCapacityReservationsResponse.java @@ -0,0 +1,331 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeCapacityReservationsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeCapacityReservationsResponse extends AcsResponse { + + private String nextToken; + + private String requestId; + + private Integer totalCount; + + private Integer maxResults; + + private List capacityReservationSet; + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public Integer getMaxResults() { + return this.maxResults; + } + + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + } + + public List getCapacityReservationSet() { + return this.capacityReservationSet; + } + + public void setCapacityReservationSet(List capacityReservationSet) { + this.capacityReservationSet = capacityReservationSet; + } + + public static class CapacityReservationItem { + + private String status; + + private String timeSlot; + + private String privatePoolOptionsMatchCriteria; + + private String privatePoolOptionsId; + + private String privatePoolOptionsName; + + private String regionId; + + private String instanceChargeType; + + private String endTime; + + private String startTime; + + private String description; + + private String endTimeType; + + private String resourceGroupId; + + private String platform; + + private String startTimeType; + + private String savingPlanId; + + private String reservedInstanceId; + + private List allocatedResources; + + private List tags; + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getTimeSlot() { + return this.timeSlot; + } + + public void setTimeSlot(String timeSlot) { + this.timeSlot = timeSlot; + } + + public String getPrivatePoolOptionsMatchCriteria() { + return this.privatePoolOptionsMatchCriteria; + } + + public void setPrivatePoolOptionsMatchCriteria(String privatePoolOptionsMatchCriteria) { + this.privatePoolOptionsMatchCriteria = privatePoolOptionsMatchCriteria; + } + + public String getPrivatePoolOptionsId() { + return this.privatePoolOptionsId; + } + + public void setPrivatePoolOptionsId(String privatePoolOptionsId) { + this.privatePoolOptionsId = privatePoolOptionsId; + } + + public String getPrivatePoolOptionsName() { + return this.privatePoolOptionsName; + } + + public void setPrivatePoolOptionsName(String privatePoolOptionsName) { + this.privatePoolOptionsName = privatePoolOptionsName; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public String getInstanceChargeType() { + return this.instanceChargeType; + } + + public void setInstanceChargeType(String instanceChargeType) { + this.instanceChargeType = instanceChargeType; + } + + public String getEndTime() { + return this.endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + + public String getStartTime() { + return this.startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getEndTimeType() { + return this.endTimeType; + } + + public void setEndTimeType(String endTimeType) { + this.endTimeType = endTimeType; + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + } + + public String getPlatform() { + return this.platform; + } + + public void setPlatform(String platform) { + this.platform = platform; + } + + public String getStartTimeType() { + return this.startTimeType; + } + + public void setStartTimeType(String startTimeType) { + this.startTimeType = startTimeType; + } + + public String getSavingPlanId() { + return this.savingPlanId; + } + + public void setSavingPlanId(String savingPlanId) { + this.savingPlanId = savingPlanId; + } + + public String getReservedInstanceId() { + return this.reservedInstanceId; + } + + public void setReservedInstanceId(String reservedInstanceId) { + this.reservedInstanceId = reservedInstanceId; + } + + public List getAllocatedResources() { + return this.allocatedResources; + } + + public void setAllocatedResources(List allocatedResources) { + this.allocatedResources = allocatedResources; + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public static class AllocatedResource { + + private Integer usedAmount; + + private Integer totalAmount; + + private String zoneId; + + private String instanceType; + + public Integer getUsedAmount() { + return this.usedAmount; + } + + public void setUsedAmount(Integer usedAmount) { + this.usedAmount = usedAmount; + } + + public Integer getTotalAmount() { + return this.totalAmount; + } + + public void setTotalAmount(Integer totalAmount) { + this.totalAmount = totalAmount; + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + } + + public static class Tag { + + private String tagValue; + + private String tagKey; + + public String getTagValue() { + return this.tagValue; + } + + public void setTagValue(String tagValue) { + this.tagValue = tagValue; + } + + public String getTagKey() { + return this.tagKey; + } + + public void setTagKey(String tagKey) { + this.tagKey = tagKey; + } + } + } + + @Override + public DescribeCapacityReservationsResponse getInstance(UnmarshallerContext context) { + return DescribeCapacityReservationsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeClassicLinkInstancesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeClassicLinkInstancesRequest.java new file mode 100644 index 0000000000..4a4a8e6db3 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeClassicLinkInstancesRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeClassicLinkInstancesRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String pageNumber; + + private String pageSize; + + private String resourceOwnerAccount; + + private Long ownerId; + + private String instanceId; + + private String vpcId; + public DescribeClassicLinkInstancesRequest() { + super("Ecs", "2014-05-26", "DescribeClassicLinkInstances", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(String pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber); + } + } + + public String getPageSize() { + return this.pageSize; + } + + public void setPageSize(String pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + if(vpcId != null){ + putQueryParameter("VpcId", vpcId); + } + } + + @Override + public Class getResponseClass() { + return DescribeClassicLinkInstancesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeClassicLinkInstancesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeClassicLinkInstancesResponse.java new file mode 100644 index 0000000000..16ae15e502 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeClassicLinkInstancesResponse.java @@ -0,0 +1,105 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeClassicLinkInstancesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeClassicLinkInstancesResponse extends AcsResponse { + + private Integer pageSize; + + private String requestId; + + private Integer pageNumber; + + private Integer totalCount; + + private List links; + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getLinks() { + return this.links; + } + + public void setLinks(List links) { + this.links = links; + } + + public static class Link { + + private String vpcId; + + private String instanceId; + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + } + + @Override + public DescribeClassicLinkInstancesResponse getInstance(UnmarshallerContext context) { + return DescribeClassicLinkInstancesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeCloudAssistantStatusRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeCloudAssistantStatusRequest.java new file mode 100644 index 0000000000..fe8a50a292 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeCloudAssistantStatusRequest.java @@ -0,0 +1,148 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeCloudAssistantStatusRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Long pageNumber; + + private Long pageSize; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String oSType; + + private Long ownerId; + + private List instanceIds; + public DescribeCloudAssistantStatusRequest() { + super("Ecs", "2014-05-26", "DescribeCloudAssistantStatus", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Long getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Long pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Long getPageSize() { + return this.pageSize; + } + + public void setPageSize(Long pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getOSType() { + return this.oSType; + } + + public void setOSType(String oSType) { + this.oSType = oSType; + if(oSType != null){ + putQueryParameter("OSType", oSType); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getInstanceIds() { + return this.instanceIds; + } + + public void setInstanceIds(List instanceIds) { + this.instanceIds = instanceIds; + if (instanceIds != null) { + for (int i = 0; i < instanceIds.size(); i++) { + putQueryParameter("InstanceId." + (i + 1) , instanceIds.get(i)); + } + } + } + + @Override + public Class getResponseClass() { + return DescribeCloudAssistantStatusResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeCloudAssistantStatusResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeCloudAssistantStatusResponse.java new file mode 100644 index 0000000000..cb293ce07f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeCloudAssistantStatusResponse.java @@ -0,0 +1,175 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeCloudAssistantStatusResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeCloudAssistantStatusResponse extends AcsResponse { + + private Long pageSize; + + private String requestId; + + private Long pageNumber; + + private Long totalCount; + + private List instanceCloudAssistantStatusSet; + + public Long getPageSize() { + return this.pageSize; + } + + public void setPageSize(Long pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Long getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Long pageNumber) { + this.pageNumber = pageNumber; + } + + public Long getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Long totalCount) { + this.totalCount = totalCount; + } + + public List getInstanceCloudAssistantStatusSet() { + return this.instanceCloudAssistantStatusSet; + } + + public void setInstanceCloudAssistantStatusSet(List instanceCloudAssistantStatusSet) { + this.instanceCloudAssistantStatusSet = instanceCloudAssistantStatusSet; + } + + public static class InstanceCloudAssistantStatus { + + private String cloudAssistantStatus; + + private String lastInvokedTime; + + private String cloudAssistantVersion; + + private Long activeTaskCount; + + private Long invocationCount; + + private String instanceId; + + private String lastHeartbeatTime; + + private String oSType; + + private Boolean supportSessionManager; + + public String getCloudAssistantStatus() { + return this.cloudAssistantStatus; + } + + public void setCloudAssistantStatus(String cloudAssistantStatus) { + this.cloudAssistantStatus = cloudAssistantStatus; + } + + public String getLastInvokedTime() { + return this.lastInvokedTime; + } + + public void setLastInvokedTime(String lastInvokedTime) { + this.lastInvokedTime = lastInvokedTime; + } + + public String getCloudAssistantVersion() { + return this.cloudAssistantVersion; + } + + public void setCloudAssistantVersion(String cloudAssistantVersion) { + this.cloudAssistantVersion = cloudAssistantVersion; + } + + public Long getActiveTaskCount() { + return this.activeTaskCount; + } + + public void setActiveTaskCount(Long activeTaskCount) { + this.activeTaskCount = activeTaskCount; + } + + public Long getInvocationCount() { + return this.invocationCount; + } + + public void setInvocationCount(Long invocationCount) { + this.invocationCount = invocationCount; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getLastHeartbeatTime() { + return this.lastHeartbeatTime; + } + + public void setLastHeartbeatTime(String lastHeartbeatTime) { + this.lastHeartbeatTime = lastHeartbeatTime; + } + + public String getOSType() { + return this.oSType; + } + + public void setOSType(String oSType) { + this.oSType = oSType; + } + + public Boolean getSupportSessionManager() { + return this.supportSessionManager; + } + + public void setSupportSessionManager(Boolean supportSessionManager) { + this.supportSessionManager = supportSessionManager; + } + } + + @Override + public DescribeCloudAssistantStatusResponse getInstance(UnmarshallerContext context) { + return DescribeCloudAssistantStatusResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeClustersRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeClustersRequest.java new file mode 100644 index 0000000000..652250cd8f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeClustersRequest.java @@ -0,0 +1,93 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeClustersRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public DescribeClustersRequest() { + super("Ecs", "2014-05-26", "DescribeClusters", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DescribeClustersResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeClustersResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeClustersResponse.java new file mode 100644 index 0000000000..d56adc5713 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeClustersResponse.java @@ -0,0 +1,65 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeClustersResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeClustersResponse extends AcsResponse { + + private String requestId; + + private List clusters; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getClusters() { + return this.clusters; + } + + public void setClusters(List clusters) { + this.clusters = clusters; + } + + public static class Cluster { + + private String clusterId; + + public String getClusterId() { + return this.clusterId; + } + + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + } + } + + @Override + public DescribeClustersResponse getInstance(UnmarshallerContext context) { + return DescribeClustersResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeCommandsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeCommandsRequest.java new file mode 100644 index 0000000000..b06a59a1d3 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeCommandsRequest.java @@ -0,0 +1,250 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeCommandsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String description; + + private String type; + + private String commandId; + + private Long pageNumber; + + private String provider; + + private String contentEncoding; + + private Long pageSize; + + private List tags; + + private Boolean latest; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String name; + public DescribeCommandsRequest() { + super("Ecs", "2014-05-26", "DescribeCommands", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + if(type != null){ + putQueryParameter("Type", type); + } + } + + public String getCommandId() { + return this.commandId; + } + + public void setCommandId(String commandId) { + this.commandId = commandId; + if(commandId != null){ + putQueryParameter("CommandId", commandId); + } + } + + public Long getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Long pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public String getProvider() { + return this.provider; + } + + public void setProvider(String provider) { + this.provider = provider; + if(provider != null){ + putQueryParameter("Provider", provider); + } + } + + public String getContentEncoding() { + return this.contentEncoding; + } + + public void setContentEncoding(String contentEncoding) { + this.contentEncoding = contentEncoding; + if(contentEncoding != null){ + putQueryParameter("ContentEncoding", contentEncoding); + } + } + + public Long getPageSize() { + return this.pageSize; + } + + public void setPageSize(Long pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public Boolean getLatest() { + return this.latest; + } + + public void setLatest(Boolean latest) { + this.latest = latest; + if(latest != null){ + putQueryParameter("Latest", latest.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + if(name != null){ + putQueryParameter("Name", name); + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return DescribeCommandsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeCommandsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeCommandsResponse.java new file mode 100644 index 0000000000..e01538f4e4 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeCommandsResponse.java @@ -0,0 +1,331 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeCommandsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeCommandsResponse extends AcsResponse { + + private Long pageSize; + + private String requestId; + + private Long pageNumber; + + private Long totalCount; + + private List commands; + + public Long getPageSize() { + return this.pageSize; + } + + public void setPageSize(Long pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Long getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Long pageNumber) { + this.pageNumber = pageNumber; + } + + public Long getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Long totalCount) { + this.totalCount = totalCount; + } + + public List getCommands() { + return this.commands; + } + + public void setCommands(List commands) { + this.commands = commands; + } + + public static class Command { + + private String creationTime; + + private String type; + + private Long timeout; + + private Integer invokeTimes; + + private String commandId; + + private String workingDir; + + private String description; + + private Integer version; + + private String provider; + + private String commandContent; + + private String category; + + private Boolean latest; + + private String name; + + private Boolean enableParameter; + + private List parameterDefinitions; + + private List tags; + + private List parameterNames; + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + } + + public Long getTimeout() { + return this.timeout; + } + + public void setTimeout(Long timeout) { + this.timeout = timeout; + } + + public Integer getInvokeTimes() { + return this.invokeTimes; + } + + public void setInvokeTimes(Integer invokeTimes) { + this.invokeTimes = invokeTimes; + } + + public String getCommandId() { + return this.commandId; + } + + public void setCommandId(String commandId) { + this.commandId = commandId; + } + + public String getWorkingDir() { + return this.workingDir; + } + + public void setWorkingDir(String workingDir) { + this.workingDir = workingDir; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getVersion() { + return this.version; + } + + public void setVersion(Integer version) { + this.version = version; + } + + public String getProvider() { + return this.provider; + } + + public void setProvider(String provider) { + this.provider = provider; + } + + public String getCommandContent() { + return this.commandContent; + } + + public void setCommandContent(String commandContent) { + this.commandContent = commandContent; + } + + public String getCategory() { + return this.category; + } + + public void setCategory(String category) { + this.category = category; + } + + public Boolean getLatest() { + return this.latest; + } + + public void setLatest(Boolean latest) { + this.latest = latest; + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public Boolean getEnableParameter() { + return this.enableParameter; + } + + public void setEnableParameter(Boolean enableParameter) { + this.enableParameter = enableParameter; + } + + public List getParameterDefinitions() { + return this.parameterDefinitions; + } + + public void setParameterDefinitions(List parameterDefinitions) { + this.parameterDefinitions = parameterDefinitions; + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public List getParameterNames() { + return this.parameterNames; + } + + public void setParameterNames(List parameterNames) { + this.parameterNames = parameterNames; + } + + public static class ParameterDefinition { + + private Boolean required; + + private String description; + + private String defaultValue; + + private String parameterName; + + private List possibleValues; + + public Boolean getRequired() { + return this.required; + } + + public void setRequired(Boolean required) { + this.required = required; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDefaultValue() { + return this.defaultValue; + } + + public void setDefaultValue(String defaultValue) { + this.defaultValue = defaultValue; + } + + public String getParameterName() { + return this.parameterName; + } + + public void setParameterName(String parameterName) { + this.parameterName = parameterName; + } + + public List getPossibleValues() { + return this.possibleValues; + } + + public void setPossibleValues(List possibleValues) { + this.possibleValues = possibleValues; + } + } + + public static class Tag { + + private String tagKey; + + private String tagValue; + + public String getTagKey() { + return this.tagKey; + } + + public void setTagKey(String tagKey) { + this.tagKey = tagKey; + } + + public String getTagValue() { + return this.tagValue; + } + + public void setTagValue(String tagValue) { + this.tagValue = tagValue; + } + } + } + + @Override + public DescribeCommandsResponse getInstance(UnmarshallerContext context) { + return DescribeCommandsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDedicatedHostAutoRenewRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDedicatedHostAutoRenewRequest.java similarity index 78% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDedicatedHostAutoRenewRequest.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDedicatedHostAutoRenewRequest.java index 288250949f..7713c93535 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDedicatedHostAutoRenewRequest.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDedicatedHostAutoRenewRequest.java @@ -12,7 +12,7 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.RpcAcsRequest; import com.aliyuncs.http.MethodType; @@ -25,19 +25,17 @@ public class DescribeDedicatedHostAutoRenewRequest extends RpcAcsRequest { + private String dedicatedHostIds; + private Long resourceOwnerId; private String resourceOwnerAccount; private String ownerAccount; - private Long ownerId; - - private String resourceType; - - private String instanceIds; + private Long ownerId; public DescribeDedicatedHostAutoRenewRequest() { - super("Ecs", "2016-03-14", "DescribeDedicatedHostAutoRenew", "ecs"); + super("Ecs", "2014-05-26", "DescribeDedicatedHostAutoRenew", "ecs"); setMethod(MethodType.POST); try { com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); @@ -45,6 +43,17 @@ public DescribeDedicatedHostAutoRenewRequest() { } catch (Exception e) {} } + public String getDedicatedHostIds() { + return this.dedicatedHostIds; + } + + public void setDedicatedHostIds(String dedicatedHostIds) { + this.dedicatedHostIds = dedicatedHostIds; + if(dedicatedHostIds != null){ + putQueryParameter("DedicatedHostIds", dedicatedHostIds); + } + } + public Long getResourceOwnerId() { return this.resourceOwnerId; } @@ -87,28 +96,6 @@ public void setOwnerId(Long ownerId) { if(ownerId != null){ putQueryParameter("OwnerId", ownerId.toString()); } - } - - public String getResourceType() { - return this.resourceType; - } - - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - if(resourceType != null){ - putQueryParameter("ResourceType", resourceType); - } - } - - public String getInstanceIds() { - return this.instanceIds; - } - - public void setInstanceIds(String instanceIds) { - this.instanceIds = instanceIds; - if(instanceIds != null){ - putQueryParameter("InstanceIds", instanceIds); - } } @Override diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDedicatedHostAutoRenewResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDedicatedHostAutoRenewResponse.java new file mode 100644 index 0000000000..68440b6837 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDedicatedHostAutoRenewResponse.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeDedicatedHostAutoRenewResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeDedicatedHostAutoRenewResponse extends AcsResponse { + + private String requestId; + + private List dedicatedHostRenewAttributes; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getDedicatedHostRenewAttributes() { + return this.dedicatedHostRenewAttributes; + } + + public void setDedicatedHostRenewAttributes(List dedicatedHostRenewAttributes) { + this.dedicatedHostRenewAttributes = dedicatedHostRenewAttributes; + } + + public static class DedicatedHostRenewAttribute { + + private String periodUnit; + + private Integer duration; + + private String dedicatedHostId; + + private String renewalStatus; + + private Boolean autoRenewEnabled; + + private String autoRenewWithEcs; + + public String getPeriodUnit() { + return this.periodUnit; + } + + public void setPeriodUnit(String periodUnit) { + this.periodUnit = periodUnit; + } + + public Integer getDuration() { + return this.duration; + } + + public void setDuration(Integer duration) { + this.duration = duration; + } + + public String getDedicatedHostId() { + return this.dedicatedHostId; + } + + public void setDedicatedHostId(String dedicatedHostId) { + this.dedicatedHostId = dedicatedHostId; + } + + public String getRenewalStatus() { + return this.renewalStatus; + } + + public void setRenewalStatus(String renewalStatus) { + this.renewalStatus = renewalStatus; + } + + public Boolean getAutoRenewEnabled() { + return this.autoRenewEnabled; + } + + public void setAutoRenewEnabled(Boolean autoRenewEnabled) { + this.autoRenewEnabled = autoRenewEnabled; + } + + public String getAutoRenewWithEcs() { + return this.autoRenewWithEcs; + } + + public void setAutoRenewWithEcs(String autoRenewWithEcs) { + this.autoRenewWithEcs = autoRenewWithEcs; + } + } + + @Override + public DescribeDedicatedHostAutoRenewResponse getInstance(UnmarshallerContext context) { + return DescribeDedicatedHostAutoRenewResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDedicatedHostClustersRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDedicatedHostClustersRequest.java similarity index 87% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDedicatedHostClustersRequest.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDedicatedHostClustersRequest.java index df15fe9811..9d27e3735f 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDedicatedHostClustersRequest.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDedicatedHostClustersRequest.java @@ -12,7 +12,7 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.RpcAcsRequest; import java.util.List; @@ -48,13 +48,11 @@ public class DescribeDedicatedHostClustersRequest extends RpcAcsRequest tags) { this.tags = tags; if (tags != null) { for (int depth1 = 0; depth1 < tags.size(); depth1++) { - putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); } } } @@ -186,17 +184,6 @@ public void setOwnerId(Long ownerId) { } } - public String getSchedulerOptionsManagedPrivateSpaceId() { - return this.schedulerOptionsManagedPrivateSpaceId; - } - - public void setSchedulerOptionsManagedPrivateSpaceId(String schedulerOptionsManagedPrivateSpaceId) { - this.schedulerOptionsManagedPrivateSpaceId = schedulerOptionsManagedPrivateSpaceId; - if(schedulerOptionsManagedPrivateSpaceId != null){ - putQueryParameter("SchedulerOptions.ManagedPrivateSpaceId", schedulerOptionsManagedPrivateSpaceId); - } - } - public String getZoneId() { return this.zoneId; } @@ -221,17 +208,9 @@ public void setStatus(String status) { public static class Tag { - private String value; - private String key; - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } + private String value; public String getKey() { return this.key; @@ -240,6 +219,14 @@ public String getKey() { public void setKey(String key) { this.key = key; } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } } @Override diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDedicatedHostClustersResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDedicatedHostClustersResponse.java similarity index 90% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDedicatedHostClustersResponse.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDedicatedHostClustersResponse.java index 7724cac3ad..2d874c0d3f 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDedicatedHostClustersResponse.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDedicatedHostClustersResponse.java @@ -12,11 +12,11 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import java.util.List; import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeDedicatedHostClustersResponseUnmarshaller; +import com.aliyuncs.ecs.transform.v20140526.DescribeDedicatedHostClustersResponseUnmarshaller; import com.aliyuncs.transform.UnmarshallerContext; /** @@ -79,8 +79,6 @@ public static class DedicatedHostCluster { private String description; - private String schedulerOptionsManagedPrivateSpaceId; - private String dedicatedHostClusterId; private String resourceGroupId; @@ -105,14 +103,6 @@ public void setDescription(String description) { this.description = description; } - public String getSchedulerOptionsManagedPrivateSpaceId() { - return this.schedulerOptionsManagedPrivateSpaceId; - } - - public void setSchedulerOptionsManagedPrivateSpaceId(String schedulerOptionsManagedPrivateSpaceId) { - this.schedulerOptionsManagedPrivateSpaceId = schedulerOptionsManagedPrivateSpaceId; - } - public String getDedicatedHostClusterId() { return this.dedicatedHostClusterId; } diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDedicatedHostTypesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDedicatedHostTypesRequest.java similarity index 77% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDedicatedHostTypesRequest.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDedicatedHostTypesRequest.java index 0f5253a854..50fda64531 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDedicatedHostTypesRequest.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDedicatedHostTypesRequest.java @@ -12,7 +12,7 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.RpcAcsRequest; import com.aliyuncs.http.MethodType; @@ -27,19 +27,17 @@ public class DescribeDedicatedHostTypesRequest extends RpcAcsRequest dedicatedHostTypes; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getDedicatedHostTypes() { + return this.dedicatedHostTypes; + } + + public void setDedicatedHostTypes(List dedicatedHostTypes) { + this.dedicatedHostTypes = dedicatedHostTypes; + } + + public static class DedicatedHostType { + + private Integer cores; + + private String localStorageCategory; + + private String gPUSpec; + + private Integer totalVcpus; + + private String cpuOverCommitRatioRange; + + private Integer physicalGpus; + + private Float memorySize; + + private Boolean supportCpuOverCommitRatio; + + private Long localStorageCapacity; + + private String dedicatedHostType; + + private Integer localStorageAmount; + + private Integer totalVgpus; + + private Integer sockets; + + private List supportedInstanceTypeFamilies; + + private List supportedInstanceTypesList; + + public Integer getCores() { + return this.cores; + } + + public void setCores(Integer cores) { + this.cores = cores; + } + + public String getLocalStorageCategory() { + return this.localStorageCategory; + } + + public void setLocalStorageCategory(String localStorageCategory) { + this.localStorageCategory = localStorageCategory; + } + + public String getGPUSpec() { + return this.gPUSpec; + } + + public void setGPUSpec(String gPUSpec) { + this.gPUSpec = gPUSpec; + } + + public Integer getTotalVcpus() { + return this.totalVcpus; + } + + public void setTotalVcpus(Integer totalVcpus) { + this.totalVcpus = totalVcpus; + } + + public String getCpuOverCommitRatioRange() { + return this.cpuOverCommitRatioRange; + } + + public void setCpuOverCommitRatioRange(String cpuOverCommitRatioRange) { + this.cpuOverCommitRatioRange = cpuOverCommitRatioRange; + } + + public Integer getPhysicalGpus() { + return this.physicalGpus; + } + + public void setPhysicalGpus(Integer physicalGpus) { + this.physicalGpus = physicalGpus; + } + + public Float getMemorySize() { + return this.memorySize; + } + + public void setMemorySize(Float memorySize) { + this.memorySize = memorySize; + } + + public Boolean getSupportCpuOverCommitRatio() { + return this.supportCpuOverCommitRatio; + } + + public void setSupportCpuOverCommitRatio(Boolean supportCpuOverCommitRatio) { + this.supportCpuOverCommitRatio = supportCpuOverCommitRatio; + } + + public Long getLocalStorageCapacity() { + return this.localStorageCapacity; + } + + public void setLocalStorageCapacity(Long localStorageCapacity) { + this.localStorageCapacity = localStorageCapacity; + } + + public String getDedicatedHostType() { + return this.dedicatedHostType; + } + + public void setDedicatedHostType(String dedicatedHostType) { + this.dedicatedHostType = dedicatedHostType; + } + + public Integer getLocalStorageAmount() { + return this.localStorageAmount; + } + + public void setLocalStorageAmount(Integer localStorageAmount) { + this.localStorageAmount = localStorageAmount; + } + + public Integer getTotalVgpus() { + return this.totalVgpus; + } + + public void setTotalVgpus(Integer totalVgpus) { + this.totalVgpus = totalVgpus; + } + + public Integer getSockets() { + return this.sockets; + } + + public void setSockets(Integer sockets) { + this.sockets = sockets; + } + + public List getSupportedInstanceTypeFamilies() { + return this.supportedInstanceTypeFamilies; + } + + public void setSupportedInstanceTypeFamilies(List supportedInstanceTypeFamilies) { + this.supportedInstanceTypeFamilies = supportedInstanceTypeFamilies; + } + + public List getSupportedInstanceTypesList() { + return this.supportedInstanceTypesList; + } + + public void setSupportedInstanceTypesList(List supportedInstanceTypesList) { + this.supportedInstanceTypesList = supportedInstanceTypesList; + } + } + + @Override + public DescribeDedicatedHostTypesResponse getInstance(UnmarshallerContext context) { + return DescribeDedicatedHostTypesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDedicatedHostsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDedicatedHostsRequest.java similarity index 87% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDedicatedHostsRequest.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDedicatedHostsRequest.java index 491c5397ee..02afa90fe5 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDedicatedHostsRequest.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDedicatedHostsRequest.java @@ -12,7 +12,7 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.RpcAcsRequest; import java.util.List; @@ -30,6 +30,8 @@ public class DescribeDedicatedHostsRequest extends RpcAcsRequest instances; private List operationLocks; private List tags; - private List supportInstanceTypeFamilies; - - private List supportInstanceTypesList; + private List supportedInstanceTypeFamilies; private List supportedCustomInstanceTypeFamilies; + private List supportedInstanceTypesList; + private Capacity capacity; private NetworkAttributes networkAttributes; @@ -165,6 +167,14 @@ public void setStatus(String status) { this.status = status; } + public Integer getCores() { + return this.cores; + } + + public void setCores(Integer cores) { + this.cores = cores; + } + public String getAutoPlacement() { return this.autoPlacement; } @@ -229,14 +239,6 @@ public void setPhysicalGpus(Integer physicalGpus) { this.physicalGpus = physicalGpus; } - public Integer getTotalPhysicalCores() { - return this.totalPhysicalCores; - } - - public void setTotalPhysicalCores(Integer totalPhysicalCores) { - this.totalPhysicalCores = totalPhysicalCores; - } - public String getRegionId() { return this.regionId; } @@ -301,14 +303,6 @@ public void setZoneId(String zoneId) { this.zoneId = zoneId; } - public Integer getTotalSockets() { - return this.totalSockets; - } - - public void setTotalSockets(Integer totalSockets) { - this.totalSockets = totalSockets; - } - public String getDedicatedHostId() { return this.dedicatedHostId; } @@ -317,6 +311,14 @@ public void setDedicatedHostId(String dedicatedHostId) { this.dedicatedHostId = dedicatedHostId; } + public Integer getSockets() { + return this.sockets; + } + + public void setSockets(Integer sockets) { + this.sockets = sockets; + } + public String getMachineId() { return this.machineId; } @@ -325,6 +327,14 @@ public void setMachineId(String machineId) { this.machineId = machineId; } + public Long getDedicatedHostOwnerId() { + return this.dedicatedHostOwnerId; + } + + public void setDedicatedHostOwnerId(Long dedicatedHostOwnerId) { + this.dedicatedHostOwnerId = dedicatedHostOwnerId; + } + public List getInstances() { return this.instances; } @@ -349,20 +359,12 @@ public void setTags(List tags) { this.tags = tags; } - public List getSupportInstanceTypeFamilies() { - return this.supportInstanceTypeFamilies; - } - - public void setSupportInstanceTypeFamilies(List supportInstanceTypeFamilies) { - this.supportInstanceTypeFamilies = supportInstanceTypeFamilies; - } - - public List getSupportInstanceTypesList() { - return this.supportInstanceTypesList; + public List getSupportedInstanceTypeFamilies() { + return this.supportedInstanceTypeFamilies; } - public void setSupportInstanceTypesList(List supportInstanceTypesList) { - this.supportInstanceTypesList = supportInstanceTypesList; + public void setSupportedInstanceTypeFamilies(List supportedInstanceTypeFamilies) { + this.supportedInstanceTypeFamilies = supportedInstanceTypeFamilies; } public List getSupportedCustomInstanceTypeFamilies() { @@ -373,6 +375,14 @@ public void setSupportedCustomInstanceTypeFamilies(List supportedCustomI this.supportedCustomInstanceTypeFamilies = supportedCustomInstanceTypeFamilies; } + public List getSupportedInstanceTypesList() { + return this.supportedInstanceTypesList; + } + + public void setSupportedInstanceTypesList(List supportedInstanceTypesList) { + this.supportedInstanceTypesList = supportedInstanceTypesList; + } + public Capacity getCapacity() { return this.capacity; } @@ -403,6 +413,10 @@ public static class Instance { private String instanceId; + private String socketId; + + private Long instanceOwnerId; + public String getInstanceType() { return this.instanceType; } @@ -418,6 +432,22 @@ public String getInstanceId() { public void setInstanceId(String instanceId) { this.instanceId = instanceId; } + + public String getSocketId() { + return this.socketId; + } + + public void setSocketId(String socketId) { + this.socketId = socketId; + } + + public Long getInstanceOwnerId() { + return this.instanceOwnerId; + } + + public void setInstanceOwnerId(Long instanceOwnerId) { + this.instanceOwnerId = instanceOwnerId; + } } public static class OperationLock { @@ -476,6 +506,8 @@ public static class Capacity { private Integer availableVgpus; + private List socketCapacities; + public Float getAvailableMemory() { return this.availableMemory; } @@ -547,6 +579,67 @@ public Integer getAvailableVgpus() { public void setAvailableVgpus(Integer availableVgpus) { this.availableVgpus = availableVgpus; } + + public List getSocketCapacities() { + return this.socketCapacities; + } + + public void setSocketCapacities(List socketCapacities) { + this.socketCapacities = socketCapacities; + } + + public static class SocketCapacity { + + private Integer socketId; + + private Float availableMemory; + + private Float totalMemory; + + private Integer availableVcpu; + + private Integer totalVcpu; + + public Integer getSocketId() { + return this.socketId; + } + + public void setSocketId(Integer socketId) { + this.socketId = socketId; + } + + public Float getAvailableMemory() { + return this.availableMemory; + } + + public void setAvailableMemory(Float availableMemory) { + this.availableMemory = availableMemory; + } + + public Float getTotalMemory() { + return this.totalMemory; + } + + public void setTotalMemory(Float totalMemory) { + this.totalMemory = totalMemory; + } + + public Integer getAvailableVcpu() { + return this.availableVcpu; + } + + public void setAvailableVcpu(Integer availableVcpu) { + this.availableVcpu = availableVcpu; + } + + public Integer getTotalVcpu() { + return this.totalVcpu; + } + + public void setTotalVcpu(Integer totalVcpu) { + this.totalVcpu = totalVcpu; + } + } } public static class NetworkAttributes { diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDemandsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDemandsRequest.java new file mode 100644 index 0000000000..7d47b39625 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDemandsRequest.java @@ -0,0 +1,265 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeDemandsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Integer pageNumber; + + private Integer pageSize; + + private String instanceType; + + private List tags; + + private String instanceChargeType; + + private Boolean dryRun; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String instanceTypeFamily; + + private Long ownerId; + + private List demandStatuss; + + private String demandId; + + private String zoneId; + + private String demandType; + public DescribeDemandsRequest() { + super("Ecs", "2014-05-26", "DescribeDemands", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + if(instanceType != null){ + putQueryParameter("InstanceType", instanceType); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public String getInstanceChargeType() { + return this.instanceChargeType; + } + + public void setInstanceChargeType(String instanceChargeType) { + this.instanceChargeType = instanceChargeType; + if(instanceChargeType != null){ + putQueryParameter("InstanceChargeType", instanceChargeType); + } + } + + public Boolean getDryRun() { + return this.dryRun; + } + + public void setDryRun(Boolean dryRun) { + this.dryRun = dryRun; + if(dryRun != null){ + putQueryParameter("DryRun", dryRun.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getInstanceTypeFamily() { + return this.instanceTypeFamily; + } + + public void setInstanceTypeFamily(String instanceTypeFamily) { + this.instanceTypeFamily = instanceTypeFamily; + if(instanceTypeFamily != null){ + putQueryParameter("InstanceTypeFamily", instanceTypeFamily); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getDemandStatuss() { + return this.demandStatuss; + } + + public void setDemandStatuss(List demandStatuss) { + this.demandStatuss = demandStatuss; + if (demandStatuss != null) { + for (int i = 0; i < demandStatuss.size(); i++) { + putQueryParameter("DemandStatus." + (i + 1) , demandStatuss.get(i)); + } + } + } + + public String getDemandId() { + return this.demandId; + } + + public void setDemandId(String demandId) { + this.demandId = demandId; + if(demandId != null){ + putQueryParameter("DemandId", demandId); + } + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + if(zoneId != null){ + putQueryParameter("ZoneId", zoneId); + } + } + + public String getDemandType() { + return this.demandType; + } + + public void setDemandType(String demandType) { + this.demandType = demandType; + if(demandType != null){ + putQueryParameter("DemandType", demandType); + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return DescribeDemandsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDemandsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDemandsResponse.java new file mode 100644 index 0000000000..29148a1d40 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDemandsResponse.java @@ -0,0 +1,338 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeDemandsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeDemandsResponse extends AcsResponse { + + private Integer pageSize; + + private Integer pageNumber; + + private String requestId; + + private Integer totalCount; + + private String regionId; + + private List demands; + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public List getDemands() { + return this.demands; + } + + public void setDemands(List demands) { + this.demands = demands; + } + + public static class Demand { + + private String comment; + + private String demandDescription; + + private String demandId; + + private String demandTime; + + private String instanceType; + + private String demandName; + + private Integer period; + + private String instanceChargeType; + + private Integer availableAmount; + + private String endTime; + + private String startTime; + + private String periodUnit; + + private String zoneId; + + private Integer usedAmount; + + private Integer totalAmount; + + private Integer deliveringAmount; + + private String instanceTypeFamily; + + private String demandStatus; + + private List supplyInfos; + + public String getComment() { + return this.comment; + } + + public void setComment(String comment) { + this.comment = comment; + } + + public String getDemandDescription() { + return this.demandDescription; + } + + public void setDemandDescription(String demandDescription) { + this.demandDescription = demandDescription; + } + + public String getDemandId() { + return this.demandId; + } + + public void setDemandId(String demandId) { + this.demandId = demandId; + } + + public String getDemandTime() { + return this.demandTime; + } + + public void setDemandTime(String demandTime) { + this.demandTime = demandTime; + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public String getDemandName() { + return this.demandName; + } + + public void setDemandName(String demandName) { + this.demandName = demandName; + } + + public Integer getPeriod() { + return this.period; + } + + public void setPeriod(Integer period) { + this.period = period; + } + + public String getInstanceChargeType() { + return this.instanceChargeType; + } + + public void setInstanceChargeType(String instanceChargeType) { + this.instanceChargeType = instanceChargeType; + } + + public Integer getAvailableAmount() { + return this.availableAmount; + } + + public void setAvailableAmount(Integer availableAmount) { + this.availableAmount = availableAmount; + } + + public String getEndTime() { + return this.endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + + public String getStartTime() { + return this.startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + public String getPeriodUnit() { + return this.periodUnit; + } + + public void setPeriodUnit(String periodUnit) { + this.periodUnit = periodUnit; + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + } + + public Integer getUsedAmount() { + return this.usedAmount; + } + + public void setUsedAmount(Integer usedAmount) { + this.usedAmount = usedAmount; + } + + public Integer getTotalAmount() { + return this.totalAmount; + } + + public void setTotalAmount(Integer totalAmount) { + this.totalAmount = totalAmount; + } + + public Integer getDeliveringAmount() { + return this.deliveringAmount; + } + + public void setDeliveringAmount(Integer deliveringAmount) { + this.deliveringAmount = deliveringAmount; + } + + public String getInstanceTypeFamily() { + return this.instanceTypeFamily; + } + + public void setInstanceTypeFamily(String instanceTypeFamily) { + this.instanceTypeFamily = instanceTypeFamily; + } + + public String getDemandStatus() { + return this.demandStatus; + } + + public void setDemandStatus(String demandStatus) { + this.demandStatus = demandStatus; + } + + public List getSupplyInfos() { + return this.supplyInfos; + } + + public void setSupplyInfos(List supplyInfos) { + this.supplyInfos = supplyInfos; + } + + public static class SupplyInfo { + + private Integer amount; + + private String supplyStatus; + + private String supplyStartTime; + + private String supplyEndTime; + + private String privatePoolId; + + public Integer getAmount() { + return this.amount; + } + + public void setAmount(Integer amount) { + this.amount = amount; + } + + public String getSupplyStatus() { + return this.supplyStatus; + } + + public void setSupplyStatus(String supplyStatus) { + this.supplyStatus = supplyStatus; + } + + public String getSupplyStartTime() { + return this.supplyStartTime; + } + + public void setSupplyStartTime(String supplyStartTime) { + this.supplyStartTime = supplyStartTime; + } + + public String getSupplyEndTime() { + return this.supplyEndTime; + } + + public void setSupplyEndTime(String supplyEndTime) { + this.supplyEndTime = supplyEndTime; + } + + public String getPrivatePoolId() { + return this.privatePoolId; + } + + public void setPrivatePoolId(String privatePoolId) { + this.privatePoolId = privatePoolId; + } + } + } + + @Override + public DescribeDemandsResponse getInstance(UnmarshallerContext context) { + return DescribeDemandsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDeploymentSetSupportedInstanceTypeFamilyRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDeploymentSetSupportedInstanceTypeFamilyRequest.java new file mode 100644 index 0000000000..a3ab787b98 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDeploymentSetSupportedInstanceTypeFamilyRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeDeploymentSetSupportedInstanceTypeFamilyRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String strategy; + public DescribeDeploymentSetSupportedInstanceTypeFamilyRequest() { + super("Ecs", "2014-05-26", "DescribeDeploymentSetSupportedInstanceTypeFamily", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getStrategy() { + return this.strategy; + } + + public void setStrategy(String strategy) { + this.strategy = strategy; + if(strategy != null){ + putQueryParameter("Strategy", strategy); + } + } + + @Override + public Class getResponseClass() { + return DescribeDeploymentSetSupportedInstanceTypeFamilyResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDeploymentSetSupportedInstanceTypeFamilyResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDeploymentSetSupportedInstanceTypeFamilyResponse.java new file mode 100644 index 0000000000..015df9d364 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDeploymentSetSupportedInstanceTypeFamilyResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeDeploymentSetSupportedInstanceTypeFamilyResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeDeploymentSetSupportedInstanceTypeFamilyResponse extends AcsResponse { + + private String instanceTypeFamilies; + + private String requestId; + + public String getInstanceTypeFamilies() { + return this.instanceTypeFamilies; + } + + public void setInstanceTypeFamilies(String instanceTypeFamilies) { + this.instanceTypeFamilies = instanceTypeFamilies; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DescribeDeploymentSetSupportedInstanceTypeFamilyResponse getInstance(UnmarshallerContext context) { + return DescribeDeploymentSetSupportedInstanceTypeFamilyResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDeploymentSetsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDeploymentSetsRequest.java new file mode 100644 index 0000000000..5725b2d9f8 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDeploymentSetsRequest.java @@ -0,0 +1,197 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeDeploymentSetsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String networkType; + + private Integer pageNumber; + + private String deploymentSetIds; + + private Integer pageSize; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String deploymentSetName; + + private Long ownerId; + + private String granularity; + + private String domain; + + private String strategy; + public DescribeDeploymentSetsRequest() { + super("Ecs", "2014-05-26", "DescribeDeploymentSets", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getNetworkType() { + return this.networkType; + } + + public void setNetworkType(String networkType) { + this.networkType = networkType; + if(networkType != null){ + putQueryParameter("NetworkType", networkType); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public String getDeploymentSetIds() { + return this.deploymentSetIds; + } + + public void setDeploymentSetIds(String deploymentSetIds) { + this.deploymentSetIds = deploymentSetIds; + if(deploymentSetIds != null){ + putQueryParameter("DeploymentSetIds", deploymentSetIds); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getDeploymentSetName() { + return this.deploymentSetName; + } + + public void setDeploymentSetName(String deploymentSetName) { + this.deploymentSetName = deploymentSetName; + if(deploymentSetName != null){ + putQueryParameter("DeploymentSetName", deploymentSetName); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getGranularity() { + return this.granularity; + } + + public void setGranularity(String granularity) { + this.granularity = granularity; + if(granularity != null){ + putQueryParameter("Granularity", granularity); + } + } + + public String getDomain() { + return this.domain; + } + + public void setDomain(String domain) { + this.domain = domain; + if(domain != null){ + putQueryParameter("Domain", domain); + } + } + + public String getStrategy() { + return this.strategy; + } + + public void setStrategy(String strategy) { + this.strategy = strategy; + if(strategy != null){ + putQueryParameter("Strategy", strategy); + } + } + + @Override + public Class getResponseClass() { + return DescribeDeploymentSetsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDeploymentSetsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDeploymentSetsResponse.java new file mode 100644 index 0000000000..a1d46c79bd --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDeploymentSetsResponse.java @@ -0,0 +1,248 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeDeploymentSetsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeDeploymentSetsResponse extends AcsResponse { + + private Integer pageSize; + + private Integer pageNumber; + + private String requestId; + + private Integer totalCount; + + private String regionId; + + private List deploymentSets; + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public List getDeploymentSets() { + return this.deploymentSets; + } + + public void setDeploymentSets(List deploymentSets) { + this.deploymentSets = deploymentSets; + } + + public static class DeploymentSet { + + private String creationTime; + + private String strategy; + + private String deploymentSetId; + + private String deploymentStrategy; + + private String deploymentSetDescription; + + private String domain; + + private Integer groupCount; + + private String granularity; + + private String deploymentSetName; + + private Integer instanceAmount; + + private List capacities; + + private List instanceIds; + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getStrategy() { + return this.strategy; + } + + public void setStrategy(String strategy) { + this.strategy = strategy; + } + + public String getDeploymentSetId() { + return this.deploymentSetId; + } + + public void setDeploymentSetId(String deploymentSetId) { + this.deploymentSetId = deploymentSetId; + } + + public String getDeploymentStrategy() { + return this.deploymentStrategy; + } + + public void setDeploymentStrategy(String deploymentStrategy) { + this.deploymentStrategy = deploymentStrategy; + } + + public String getDeploymentSetDescription() { + return this.deploymentSetDescription; + } + + public void setDeploymentSetDescription(String deploymentSetDescription) { + this.deploymentSetDescription = deploymentSetDescription; + } + + public String getDomain() { + return this.domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } + + public Integer getGroupCount() { + return this.groupCount; + } + + public void setGroupCount(Integer groupCount) { + this.groupCount = groupCount; + } + + public String getGranularity() { + return this.granularity; + } + + public void setGranularity(String granularity) { + this.granularity = granularity; + } + + public String getDeploymentSetName() { + return this.deploymentSetName; + } + + public void setDeploymentSetName(String deploymentSetName) { + this.deploymentSetName = deploymentSetName; + } + + public Integer getInstanceAmount() { + return this.instanceAmount; + } + + public void setInstanceAmount(Integer instanceAmount) { + this.instanceAmount = instanceAmount; + } + + public List getCapacities() { + return this.capacities; + } + + public void setCapacities(List capacities) { + this.capacities = capacities; + } + + public List getInstanceIds() { + return this.instanceIds; + } + + public void setInstanceIds(List instanceIds) { + this.instanceIds = instanceIds; + } + + public static class Capacity { + + private String zoneId; + + private Integer usedAmount; + + private Integer availableAmount; + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + } + + public Integer getUsedAmount() { + return this.usedAmount; + } + + public void setUsedAmount(Integer usedAmount) { + this.usedAmount = usedAmount; + } + + public Integer getAvailableAmount() { + return this.availableAmount; + } + + public void setAvailableAmount(Integer availableAmount) { + this.availableAmount = availableAmount; + } + } + } + + @Override + public DescribeDeploymentSetsResponse getInstance(UnmarshallerContext context) { + return DescribeDeploymentSetsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDiagnosticMetricSetsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDiagnosticMetricSetsRequest.java new file mode 100644 index 0000000000..a11ee2fabe --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDiagnosticMetricSetsRequest.java @@ -0,0 +1,109 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeDiagnosticMetricSetsRequest extends RpcAcsRequest { + + + private List metricSetIdss; + + private String type; + + private String nextToken; + + private String resourceType; + + private Integer maxResults; + public DescribeDiagnosticMetricSetsRequest() { + super("Ecs", "2014-05-26", "DescribeDiagnosticMetricSets", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public List getMetricSetIdss() { + return this.metricSetIdss; + } + + public void setMetricSetIdss(List metricSetIdss) { + this.metricSetIdss = metricSetIdss; + if (metricSetIdss != null) { + for (int i = 0; i < metricSetIdss.size(); i++) { + putQueryParameter("MetricSetIds." + (i + 1) , metricSetIdss.get(i)); + } + } + } + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + if(type != null){ + putQueryParameter("Type", type); + } + } + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + if(nextToken != null){ + putQueryParameter("NextToken", nextToken); + } + } + + public String getResourceType() { + return this.resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + if(resourceType != null){ + putQueryParameter("ResourceType", resourceType); + } + } + + public Integer getMaxResults() { + return this.maxResults; + } + + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + if(maxResults != null){ + putQueryParameter("MaxResults", maxResults.toString()); + } + } + + @Override + public Class getResponseClass() { + return DescribeDiagnosticMetricSetsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDiagnosticMetricSetsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDiagnosticMetricSetsResponse.java new file mode 100644 index 0000000000..be5e6b90ba --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDiagnosticMetricSetsResponse.java @@ -0,0 +1,130 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeDiagnosticMetricSetsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeDiagnosticMetricSetsResponse extends AcsResponse { + + private String requestId; + + private String nextToken; + + private List metricSets; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + public List getMetricSets() { + return this.metricSets; + } + + public void setMetricSets(List metricSets) { + this.metricSets = metricSets; + } + + public static class MetricSet { + + private String metricSetId; + + private String metricSetName; + + private String description; + + private String type; + + private String resourceType; + + private List metricIds; + + public String getMetricSetId() { + return this.metricSetId; + } + + public void setMetricSetId(String metricSetId) { + this.metricSetId = metricSetId; + } + + public String getMetricSetName() { + return this.metricSetName; + } + + public void setMetricSetName(String metricSetName) { + this.metricSetName = metricSetName; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + } + + public String getResourceType() { + return this.resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public List getMetricIds() { + return this.metricIds; + } + + public void setMetricIds(List metricIds) { + this.metricIds = metricIds; + } + } + + @Override + public DescribeDiagnosticMetricSetsResponse getInstance(UnmarshallerContext context) { + return DescribeDiagnosticMetricSetsResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDiagnosticMetricsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDiagnosticMetricsRequest.java new file mode 100644 index 0000000000..bf1c81afe6 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDiagnosticMetricsRequest.java @@ -0,0 +1,96 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeDiagnosticMetricsRequest extends RpcAcsRequest { + + + private List metricIdss; + + private String resourceType; + + private String nextToken; + + private Integer maxResults; + public DescribeDiagnosticMetricsRequest() { + super("Ecs", "2014-05-26", "DescribeDiagnosticMetrics", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public List getMetricIdss() { + return this.metricIdss; + } + + public void setMetricIdss(List metricIdss) { + this.metricIdss = metricIdss; + if (metricIdss != null) { + for (int i = 0; i < metricIdss.size(); i++) { + putQueryParameter("MetricIds." + (i + 1) , metricIdss.get(i)); + } + } + } + + public String getResourceType() { + return this.resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + if(resourceType != null){ + putQueryParameter("ResourceType", resourceType); + } + } + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + if(nextToken != null){ + putQueryParameter("NextToken", nextToken); + } + } + + public Integer getMaxResults() { + return this.maxResults; + } + + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + if(maxResults != null){ + putQueryParameter("MaxResults", maxResults.toString()); + } + } + + @Override + public Class getResponseClass() { + return DescribeDiagnosticMetricsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDiagnosticMetricsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDiagnosticMetricsResponse.java new file mode 100644 index 0000000000..1d9ac9a4a3 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDiagnosticMetricsResponse.java @@ -0,0 +1,140 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeDiagnosticMetricsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeDiagnosticMetricsResponse extends AcsResponse { + + private String requestId; + + private String nextToken; + + private List metrics; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + public List getMetrics() { + return this.metrics; + } + + public void setMetrics(List metrics) { + this.metrics = metrics; + } + + public static class Metric { + + private String metricId; + + private String metricName; + + private String metricCategory; + + private String description; + + private String resourceType; + + private Boolean guestMetric; + + private String supportedOperatingSystem; + + public String getMetricId() { + return this.metricId; + } + + public void setMetricId(String metricId) { + this.metricId = metricId; + } + + public String getMetricName() { + return this.metricName; + } + + public void setMetricName(String metricName) { + this.metricName = metricName; + } + + public String getMetricCategory() { + return this.metricCategory; + } + + public void setMetricCategory(String metricCategory) { + this.metricCategory = metricCategory; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getResourceType() { + return this.resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public Boolean getGuestMetric() { + return this.guestMetric; + } + + public void setGuestMetric(Boolean guestMetric) { + this.guestMetric = guestMetric; + } + + public String getSupportedOperatingSystem() { + return this.supportedOperatingSystem; + } + + public void setSupportedOperatingSystem(String supportedOperatingSystem) { + this.supportedOperatingSystem = supportedOperatingSystem; + } + } + + @Override + public DescribeDiagnosticMetricsResponse getInstance(UnmarshallerContext context) { + return DescribeDiagnosticMetricsResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDiagnosticReportAttributesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDiagnosticReportAttributesRequest.java new file mode 100644 index 0000000000..f71ad12ad9 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDiagnosticReportAttributesRequest.java @@ -0,0 +1,54 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeDiagnosticReportAttributesRequest extends RpcAcsRequest { + + + private String reportId; + public DescribeDiagnosticReportAttributesRequest() { + super("Ecs", "2014-05-26", "DescribeDiagnosticReportAttributes", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getReportId() { + return this.reportId; + } + + public void setReportId(String reportId) { + this.reportId = reportId; + if(reportId != null){ + putQueryParameter("ReportId", reportId); + } + } + + @Override + public Class getResponseClass() { + return DescribeDiagnosticReportAttributesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDiagnosticReportAttributesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDiagnosticReportAttributesResponse.java new file mode 100644 index 0000000000..d52ef0ec9a --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDiagnosticReportAttributesResponse.java @@ -0,0 +1,258 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeDiagnosticReportAttributesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeDiagnosticReportAttributesResponse extends AcsResponse { + + private String requestId; + + private String resourceId; + + private String resourceType; + + private String reportId; + + private String status; + + private String creationTime; + + private String finishedTime; + + private String startTime; + + private String endTime; + + private String severity; + + private String metricSetId; + + private String attributes; + + private List metricResults; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getResourceId() { + return this.resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getResourceType() { + return this.resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public String getReportId() { + return this.reportId; + } + + public void setReportId(String reportId) { + this.reportId = reportId; + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getFinishedTime() { + return this.finishedTime; + } + + public void setFinishedTime(String finishedTime) { + this.finishedTime = finishedTime; + } + + public String getStartTime() { + return this.startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + public String getEndTime() { + return this.endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + + public String getSeverity() { + return this.severity; + } + + public void setSeverity(String severity) { + this.severity = severity; + } + + public String getMetricSetId() { + return this.metricSetId; + } + + public void setMetricSetId(String metricSetId) { + this.metricSetId = metricSetId; + } + + public String getAttributes() { + return this.attributes; + } + + public void setAttributes(String attributes) { + this.attributes = attributes; + } + + public List getMetricResults() { + return this.metricResults; + } + + public void setMetricResults(List metricResults) { + this.metricResults = metricResults; + } + + public static class MetricResult { + + private String metricId; + + private String metricCategory; + + private String severity; + + private String status; + + private List issues; + + public String getMetricId() { + return this.metricId; + } + + public void setMetricId(String metricId) { + this.metricId = metricId; + } + + public String getMetricCategory() { + return this.metricCategory; + } + + public void setMetricCategory(String metricCategory) { + this.metricCategory = metricCategory; + } + + public String getSeverity() { + return this.severity; + } + + public void setSeverity(String severity) { + this.severity = severity; + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public List getIssues() { + return this.issues; + } + + public void setIssues(List issues) { + this.issues = issues; + } + + public static class Issue { + + private String issueId; + + private String severity; + + private String additional; + + private String occurrenceTime; + + public String getIssueId() { + return this.issueId; + } + + public void setIssueId(String issueId) { + this.issueId = issueId; + } + + public String getSeverity() { + return this.severity; + } + + public void setSeverity(String severity) { + this.severity = severity; + } + + public String getAdditional() { + return this.additional; + } + + public void setAdditional(String additional) { + this.additional = additional; + } + + public String getOccurrenceTime() { + return this.occurrenceTime; + } + + public void setOccurrenceTime(String occurrenceTime) { + this.occurrenceTime = occurrenceTime; + } + } + } + + @Override + public DescribeDiagnosticReportAttributesResponse getInstance(UnmarshallerContext context) { + return DescribeDiagnosticReportAttributesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDiagnosticReportsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDiagnosticReportsRequest.java new file mode 100644 index 0000000000..bef3eb352a --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDiagnosticReportsRequest.java @@ -0,0 +1,124 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeDiagnosticReportsRequest extends RpcAcsRequest { + + + private String nextToken; + + private String severity; + + private List reportIdss; + + private Integer maxResults; + + private String status; + + private List resourceIdss; + public DescribeDiagnosticReportsRequest() { + super("Ecs", "2014-05-26", "DescribeDiagnosticReports", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + if(nextToken != null){ + putQueryParameter("NextToken", nextToken); + } + } + + public String getSeverity() { + return this.severity; + } + + public void setSeverity(String severity) { + this.severity = severity; + if(severity != null){ + putQueryParameter("Severity", severity); + } + } + + public List getReportIdss() { + return this.reportIdss; + } + + public void setReportIdss(List reportIdss) { + this.reportIdss = reportIdss; + if (reportIdss != null) { + for (int i = 0; i < reportIdss.size(); i++) { + putQueryParameter("ReportIds." + (i + 1) , reportIdss.get(i)); + } + } + } + + public Integer getMaxResults() { + return this.maxResults; + } + + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + if(maxResults != null){ + putQueryParameter("MaxResults", maxResults.toString()); + } + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + if(status != null){ + putQueryParameter("Status", status); + } + } + + public List getResourceIdss() { + return this.resourceIdss; + } + + public void setResourceIdss(List resourceIdss) { + this.resourceIdss = resourceIdss; + if (resourceIdss != null) { + for (int i = 0; i < resourceIdss.size(); i++) { + putQueryParameter("ResourceIds." + (i + 1) , resourceIdss.get(i)); + } + } + } + + @Override + public Class getResponseClass() { + return DescribeDiagnosticReportsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDiagnosticReportsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDiagnosticReportsResponse.java new file mode 100644 index 0000000000..472dcebe0e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDiagnosticReportsResponse.java @@ -0,0 +1,218 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeDiagnosticReportsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeDiagnosticReportsResponse extends AcsResponse { + + private String requestId; + + private String nextToken; + + private List reports; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + public List getReports() { + return this.reports; + } + + public void setReports(List reports) { + this.reports = reports; + } + + public static class Report { + + private String resourceId; + + private String resourceType; + + private String metricSetId; + + private String startTime; + + private String endTime; + + private String reportId; + + private String status; + + private String creationTime; + + private String finishedTime; + + private String severity; + + private List issues; + + public String getResourceId() { + return this.resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getResourceType() { + return this.resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public String getMetricSetId() { + return this.metricSetId; + } + + public void setMetricSetId(String metricSetId) { + this.metricSetId = metricSetId; + } + + public String getStartTime() { + return this.startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + public String getEndTime() { + return this.endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + + public String getReportId() { + return this.reportId; + } + + public void setReportId(String reportId) { + this.reportId = reportId; + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getFinishedTime() { + return this.finishedTime; + } + + public void setFinishedTime(String finishedTime) { + this.finishedTime = finishedTime; + } + + public String getSeverity() { + return this.severity; + } + + public void setSeverity(String severity) { + this.severity = severity; + } + + public List getIssues() { + return this.issues; + } + + public void setIssues(List issues) { + this.issues = issues; + } + + public static class Issue { + + private String metricId; + + private String metricCategory; + + private String issueId; + + private String severity; + + public String getMetricId() { + return this.metricId; + } + + public void setMetricId(String metricId) { + this.metricId = metricId; + } + + public String getMetricCategory() { + return this.metricCategory; + } + + public void setMetricCategory(String metricCategory) { + this.metricCategory = metricCategory; + } + + public String getIssueId() { + return this.issueId; + } + + public void setIssueId(String issueId) { + this.issueId = issueId; + } + + public String getSeverity() { + return this.severity; + } + + public void setSeverity(String severity) { + this.severity = severity; + } + } + } + + @Override + public DescribeDiagnosticReportsResponse getInstance(UnmarshallerContext context) { + return DescribeDiagnosticReportsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDiskMonitorDataRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDiskMonitorDataRequest.java new file mode 100644 index 0000000000..a4290ae889 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDiskMonitorDataRequest.java @@ -0,0 +1,145 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeDiskMonitorDataRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String startTime; + + private String diskId; + + private Integer period; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String endTime; + + private Long ownerId; + public DescribeDiskMonitorDataRequest() { + super("Ecs", "2014-05-26", "DescribeDiskMonitorData", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getStartTime() { + return this.startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + if(startTime != null){ + putQueryParameter("StartTime", startTime); + } + } + + public String getDiskId() { + return this.diskId; + } + + public void setDiskId(String diskId) { + this.diskId = diskId; + if(diskId != null){ + putQueryParameter("DiskId", diskId); + } + } + + public Integer getPeriod() { + return this.period; + } + + public void setPeriod(Integer period) { + this.period = period; + if(period != null){ + putQueryParameter("Period", period.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getEndTime() { + return this.endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + if(endTime != null){ + putQueryParameter("EndTime", endTime); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DescribeDiskMonitorDataResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDiskMonitorDataResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDiskMonitorDataResponse.java new file mode 100644 index 0000000000..664f7b5ca1 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDiskMonitorDataResponse.java @@ -0,0 +1,165 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeDiskMonitorDataResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeDiskMonitorDataResponse extends AcsResponse { + + private Integer totalCount; + + private String requestId; + + private List monitorData; + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getMonitorData() { + return this.monitorData; + } + + public void setMonitorData(List monitorData) { + this.monitorData = monitorData; + } + + public static class DiskMonitorData { + + private Integer bPSRead; + + private Integer iOPSRead; + + private Integer latencyRead; + + private Integer bPSTotal; + + private Integer iOPSTotal; + + private String timeStamp; + + private Integer latencyWrite; + + private Integer iOPSWrite; + + private String diskId; + + private Integer bPSWrite; + + public Integer getBPSRead() { + return this.bPSRead; + } + + public void setBPSRead(Integer bPSRead) { + this.bPSRead = bPSRead; + } + + public Integer getIOPSRead() { + return this.iOPSRead; + } + + public void setIOPSRead(Integer iOPSRead) { + this.iOPSRead = iOPSRead; + } + + public Integer getLatencyRead() { + return this.latencyRead; + } + + public void setLatencyRead(Integer latencyRead) { + this.latencyRead = latencyRead; + } + + public Integer getBPSTotal() { + return this.bPSTotal; + } + + public void setBPSTotal(Integer bPSTotal) { + this.bPSTotal = bPSTotal; + } + + public Integer getIOPSTotal() { + return this.iOPSTotal; + } + + public void setIOPSTotal(Integer iOPSTotal) { + this.iOPSTotal = iOPSTotal; + } + + public String getTimeStamp() { + return this.timeStamp; + } + + public void setTimeStamp(String timeStamp) { + this.timeStamp = timeStamp; + } + + public Integer getLatencyWrite() { + return this.latencyWrite; + } + + public void setLatencyWrite(Integer latencyWrite) { + this.latencyWrite = latencyWrite; + } + + public Integer getIOPSWrite() { + return this.iOPSWrite; + } + + public void setIOPSWrite(Integer iOPSWrite) { + this.iOPSWrite = iOPSWrite; + } + + public String getDiskId() { + return this.diskId; + } + + public void setDiskId(String diskId) { + this.diskId = diskId; + } + + public Integer getBPSWrite() { + return this.bPSWrite; + } + + public void setBPSWrite(Integer bPSWrite) { + this.bPSWrite = bPSWrite; + } + } + + @Override + public DescribeDiskMonitorDataResponse getInstance(UnmarshallerContext context) { + return DescribeDiskMonitorDataResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDisksFullStatusRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDisksFullStatusRequest.java new file mode 100644 index 0000000000..48a411bf1d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDisksFullStatusRequest.java @@ -0,0 +1,267 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeDisksFullStatusRequest extends RpcAcsRequest { + + + private List eventIds; + + private Long resourceOwnerId; + + private Integer pageNumber; + + private String eventTimeStart; + + private String resourceGroupId; + + private Integer pageSize; + + private List diskIds; + + private List tags; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String eventTimeEnd; + + private String healthStatus; + + private String eventType; + + private String status; + public DescribeDisksFullStatusRequest() { + super("Ecs", "2014-05-26", "DescribeDisksFullStatus", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public List getEventIds() { + return this.eventIds; + } + + public void setEventIds(List eventIds) { + this.eventIds = eventIds; + if (eventIds != null) { + for (int i = 0; i < eventIds.size(); i++) { + putQueryParameter("EventId." + (i + 1) , eventIds.get(i)); + } + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public String getEventTimeStart() { + return this.eventTimeStart; + } + + public void setEventTimeStart(String eventTimeStart) { + this.eventTimeStart = eventTimeStart; + if(eventTimeStart != null){ + putQueryParameter("EventTime.Start", eventTimeStart); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public List getDiskIds() { + return this.diskIds; + } + + public void setDiskIds(List diskIds) { + this.diskIds = diskIds; + if (diskIds != null) { + for (int i = 0; i < diskIds.size(); i++) { + putQueryParameter("DiskId." + (i + 1) , diskIds.get(i)); + } + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getEventTimeEnd() { + return this.eventTimeEnd; + } + + public void setEventTimeEnd(String eventTimeEnd) { + this.eventTimeEnd = eventTimeEnd; + if(eventTimeEnd != null){ + putQueryParameter("EventTime.End", eventTimeEnd); + } + } + + public String getHealthStatus() { + return this.healthStatus; + } + + public void setHealthStatus(String healthStatus) { + this.healthStatus = healthStatus; + if(healthStatus != null){ + putQueryParameter("HealthStatus", healthStatus); + } + } + + public String getEventType() { + return this.eventType; + } + + public void setEventType(String eventType) { + this.eventType = eventType; + if(eventType != null){ + putQueryParameter("EventType", eventType); + } + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + if(status != null){ + putQueryParameter("Status", status); + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return DescribeDisksFullStatusResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDisksFullStatusResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDisksFullStatusResponse.java new file mode 100644 index 0000000000..f5de7dd1b8 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDisksFullStatusResponse.java @@ -0,0 +1,267 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeDisksFullStatusResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeDisksFullStatusResponse extends AcsResponse { + + private Integer pageSize; + + private String requestId; + + private Integer pageNumber; + + private Integer totalCount; + + private List diskFullStatusSet; + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getDiskFullStatusSet() { + return this.diskFullStatusSet; + } + + public void setDiskFullStatusSet(List diskFullStatusSet) { + this.diskFullStatusSet = diskFullStatusSet; + } + + public static class DiskFullStatusType { + + private String diskId; + + private String instanceId; + + private String device; + + private List diskEventSet; + + private Status status; + + private HealthStatus healthStatus; + + public String getDiskId() { + return this.diskId; + } + + public void setDiskId(String diskId) { + this.diskId = diskId; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getDevice() { + return this.device; + } + + public void setDevice(String device) { + this.device = device; + } + + public List getDiskEventSet() { + return this.diskEventSet; + } + + public void setDiskEventSet(List diskEventSet) { + this.diskEventSet = diskEventSet; + } + + public Status getStatus() { + return this.status; + } + + public void setStatus(Status status) { + this.status = status; + } + + public HealthStatus getHealthStatus() { + return this.healthStatus; + } + + public void setHealthStatus(HealthStatus healthStatus) { + this.healthStatus = healthStatus; + } + + public static class DiskEventType { + + private String eventId; + + private String eventEndTime; + + private String eventTime; + + private String impactLevel; + + private EventType eventType; + + public String getEventId() { + return this.eventId; + } + + public void setEventId(String eventId) { + this.eventId = eventId; + } + + public String getEventEndTime() { + return this.eventEndTime; + } + + public void setEventEndTime(String eventEndTime) { + this.eventEndTime = eventEndTime; + } + + public String getEventTime() { + return this.eventTime; + } + + public void setEventTime(String eventTime) { + this.eventTime = eventTime; + } + + public String getImpactLevel() { + return this.impactLevel; + } + + public void setImpactLevel(String impactLevel) { + this.impactLevel = impactLevel; + } + + public EventType getEventType() { + return this.eventType; + } + + public void setEventType(EventType eventType) { + this.eventType = eventType; + } + + public static class EventType { + + private String name; + + private Integer code; + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public Integer getCode() { + return this.code; + } + + public void setCode(Integer code) { + this.code = code; + } + } + } + + public static class Status { + + private String name; + + private Integer code; + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public Integer getCode() { + return this.code; + } + + public void setCode(Integer code) { + this.code = code; + } + } + + public static class HealthStatus { + + private String name; + + private Integer code; + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public Integer getCode() { + return this.code; + } + + public void setCode(Integer code) { + this.code = code; + } + } + } + + @Override + public DescribeDisksFullStatusResponse getInstance(UnmarshallerContext context) { + return DescribeDisksFullStatusResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDisksRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDisksRequest.java new file mode 100644 index 0000000000..17b95a85fd --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDisksRequest.java @@ -0,0 +1,538 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeDisksRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String filter2Value; + + private String autoSnapshotPolicyId; + + private String diskName; + + private Boolean deleteAutoSnapshot; + + private String resourceGroupId; + + private String diskChargeType; + + private String lockReason; + + private String filter1Key; + + private List tags; + + private Boolean enableAutoSnapshot; + + private Boolean dryRun; + + private String filter1Value; + + private Boolean portable; + + private Long ownerId; + + private List additionalAttributess; + + private String instanceId; + + private String zoneId; + + private Integer maxResults; + + private String status; + + private String snapshotId; + + private Integer pageNumber; + + private String nextToken; + + private Integer pageSize; + + private String diskIds; + + private String multiAttach; + + private Boolean deleteWithInstance; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Boolean enableAutomatedSnapshotPolicy; + + private String filter2Key; + + private String diskType; + + private Boolean enableShared; + + private Boolean encrypted; + + private String category; + + private String kMSKeyId; + public DescribeDisksRequest() { + super("Ecs", "2014-05-26", "DescribeDisks", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getFilter2Value() { + return this.filter2Value; + } + + public void setFilter2Value(String filter2Value) { + this.filter2Value = filter2Value; + if(filter2Value != null){ + putQueryParameter("Filter.2.Value", filter2Value); + } + } + + public String getAutoSnapshotPolicyId() { + return this.autoSnapshotPolicyId; + } + + public void setAutoSnapshotPolicyId(String autoSnapshotPolicyId) { + this.autoSnapshotPolicyId = autoSnapshotPolicyId; + if(autoSnapshotPolicyId != null){ + putQueryParameter("AutoSnapshotPolicyId", autoSnapshotPolicyId); + } + } + + public String getDiskName() { + return this.diskName; + } + + public void setDiskName(String diskName) { + this.diskName = diskName; + if(diskName != null){ + putQueryParameter("DiskName", diskName); + } + } + + public Boolean getDeleteAutoSnapshot() { + return this.deleteAutoSnapshot; + } + + public void setDeleteAutoSnapshot(Boolean deleteAutoSnapshot) { + this.deleteAutoSnapshot = deleteAutoSnapshot; + if(deleteAutoSnapshot != null){ + putQueryParameter("DeleteAutoSnapshot", deleteAutoSnapshot.toString()); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public String getDiskChargeType() { + return this.diskChargeType; + } + + public void setDiskChargeType(String diskChargeType) { + this.diskChargeType = diskChargeType; + if(diskChargeType != null){ + putQueryParameter("DiskChargeType", diskChargeType); + } + } + + public String getLockReason() { + return this.lockReason; + } + + public void setLockReason(String lockReason) { + this.lockReason = lockReason; + if(lockReason != null){ + putQueryParameter("LockReason", lockReason); + } + } + + public String getFilter1Key() { + return this.filter1Key; + } + + public void setFilter1Key(String filter1Key) { + this.filter1Key = filter1Key; + if(filter1Key != null){ + putQueryParameter("Filter.1.Key", filter1Key); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + } + } + } + + public Boolean getEnableAutoSnapshot() { + return this.enableAutoSnapshot; + } + + public void setEnableAutoSnapshot(Boolean enableAutoSnapshot) { + this.enableAutoSnapshot = enableAutoSnapshot; + if(enableAutoSnapshot != null){ + putQueryParameter("EnableAutoSnapshot", enableAutoSnapshot.toString()); + } + } + + public Boolean getDryRun() { + return this.dryRun; + } + + public void setDryRun(Boolean dryRun) { + this.dryRun = dryRun; + if(dryRun != null){ + putQueryParameter("DryRun", dryRun.toString()); + } + } + + public String getFilter1Value() { + return this.filter1Value; + } + + public void setFilter1Value(String filter1Value) { + this.filter1Value = filter1Value; + if(filter1Value != null){ + putQueryParameter("Filter.1.Value", filter1Value); + } + } + + public Boolean getPortable() { + return this.portable; + } + + public void setPortable(Boolean portable) { + this.portable = portable; + if(portable != null){ + putQueryParameter("Portable", portable.toString()); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getAdditionalAttributess() { + return this.additionalAttributess; + } + + public void setAdditionalAttributess(List additionalAttributess) { + this.additionalAttributess = additionalAttributess; + if (additionalAttributess != null) { + for (int i = 0; i < additionalAttributess.size(); i++) { + putQueryParameter("AdditionalAttributes." + (i + 1) , additionalAttributess.get(i)); + } + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + if(zoneId != null){ + putQueryParameter("ZoneId", zoneId); + } + } + + public Integer getMaxResults() { + return this.maxResults; + } + + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + if(maxResults != null){ + putQueryParameter("MaxResults", maxResults.toString()); + } + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + if(status != null){ + putQueryParameter("Status", status); + } + } + + public String getSnapshotId() { + return this.snapshotId; + } + + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; + if(snapshotId != null){ + putQueryParameter("SnapshotId", snapshotId); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + if(nextToken != null){ + putQueryParameter("NextToken", nextToken); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getDiskIds() { + return this.diskIds; + } + + public void setDiskIds(String diskIds) { + this.diskIds = diskIds; + if(diskIds != null){ + putQueryParameter("DiskIds", diskIds); + } + } + + public String getMultiAttach() { + return this.multiAttach; + } + + public void setMultiAttach(String multiAttach) { + this.multiAttach = multiAttach; + if(multiAttach != null){ + putQueryParameter("MultiAttach", multiAttach); + } + } + + public Boolean getDeleteWithInstance() { + return this.deleteWithInstance; + } + + public void setDeleteWithInstance(Boolean deleteWithInstance) { + this.deleteWithInstance = deleteWithInstance; + if(deleteWithInstance != null){ + putQueryParameter("DeleteWithInstance", deleteWithInstance.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Boolean getEnableAutomatedSnapshotPolicy() { + return this.enableAutomatedSnapshotPolicy; + } + + public void setEnableAutomatedSnapshotPolicy(Boolean enableAutomatedSnapshotPolicy) { + this.enableAutomatedSnapshotPolicy = enableAutomatedSnapshotPolicy; + if(enableAutomatedSnapshotPolicy != null){ + putQueryParameter("EnableAutomatedSnapshotPolicy", enableAutomatedSnapshotPolicy.toString()); + } + } + + public String getFilter2Key() { + return this.filter2Key; + } + + public void setFilter2Key(String filter2Key) { + this.filter2Key = filter2Key; + if(filter2Key != null){ + putQueryParameter("Filter.2.Key", filter2Key); + } + } + + public String getDiskType() { + return this.diskType; + } + + public void setDiskType(String diskType) { + this.diskType = diskType; + if(diskType != null){ + putQueryParameter("DiskType", diskType); + } + } + + public Boolean getEnableShared() { + return this.enableShared; + } + + public void setEnableShared(Boolean enableShared) { + this.enableShared = enableShared; + if(enableShared != null){ + putQueryParameter("EnableShared", enableShared.toString()); + } + } + + public Boolean getEncrypted() { + return this.encrypted; + } + + public void setEncrypted(Boolean encrypted) { + this.encrypted = encrypted; + if(encrypted != null){ + putQueryParameter("Encrypted", encrypted.toString()); + } + } + + public String getCategory() { + return this.category; + } + + public void setCategory(String category) { + this.category = category; + if(category != null){ + putQueryParameter("Category", category); + } + } + + public String getKMSKeyId() { + return this.kMSKeyId; + } + + public void setKMSKeyId(String kMSKeyId) { + this.kMSKeyId = kMSKeyId; + if(kMSKeyId != null){ + putQueryParameter("KMSKeyId", kMSKeyId); + } + } + + public static class Tag { + + private String value; + + private String key; + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + } + + @Override + public Class getResponseClass() { + return DescribeDisksResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDisksResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDisksResponse.java new file mode 100644 index 0000000000..31a5e8cc41 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeDisksResponse.java @@ -0,0 +1,657 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeDisksResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeDisksResponse extends AcsResponse { + + private String nextToken; + + private Integer pageSize; + + private Integer pageNumber; + + private String requestId; + + private Integer totalCount; + + private List disks; + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getDisks() { + return this.disks; + } + + public void setDisks(List disks) { + this.disks = disks; + } + + public static class Disk { + + private String serialNumber; + + private String creationTime; + + private String status; + + private String type; + + private String performanceLevel; + + private String bdfId; + + private Boolean enableAutoSnapshot; + + private String storageSetId; + + private Integer storageSetPartitionNumber; + + private String diskId; + + private Boolean deleteAutoSnapshot; + + private String storageClusterId; + + private Boolean encrypted; + + private Integer iOPSRead; + + private Integer mountInstanceNum; + + private String description; + + private String device; + + private String diskName; + + private Boolean portable; + + private String imageId; + + private String kMSKeyId; + + private Boolean deleteWithInstance; + + private String detachedTime; + + private String sourceSnapshotId; + + private String autoSnapshotPolicyId; + + private Boolean enableAutomatedSnapshotPolicy; + + private Integer iOPSWrite; + + private String instanceId; + + private Integer iOPS; + + private String regionId; + + private String expiredTime; + + private Integer size; + + private String resourceGroupId; + + private String diskChargeType; + + private String zoneId; + + private String attachedTime; + + private String category; + + private String productCode; + + private String multiAttach; + + private Long provisionedIops; + + private Boolean burstingEnabled; + + private Integer throughput; + + private List operationLocks; + + private List mountInstances; + + private List tags; + + private List attachments; + + public String getSerialNumber() { + return this.serialNumber; + } + + public void setSerialNumber(String serialNumber) { + this.serialNumber = serialNumber; + } + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + } + + public String getPerformanceLevel() { + return this.performanceLevel; + } + + public void setPerformanceLevel(String performanceLevel) { + this.performanceLevel = performanceLevel; + } + + public String getBdfId() { + return this.bdfId; + } + + public void setBdfId(String bdfId) { + this.bdfId = bdfId; + } + + public Boolean getEnableAutoSnapshot() { + return this.enableAutoSnapshot; + } + + public void setEnableAutoSnapshot(Boolean enableAutoSnapshot) { + this.enableAutoSnapshot = enableAutoSnapshot; + } + + public String getStorageSetId() { + return this.storageSetId; + } + + public void setStorageSetId(String storageSetId) { + this.storageSetId = storageSetId; + } + + public Integer getStorageSetPartitionNumber() { + return this.storageSetPartitionNumber; + } + + public void setStorageSetPartitionNumber(Integer storageSetPartitionNumber) { + this.storageSetPartitionNumber = storageSetPartitionNumber; + } + + public String getDiskId() { + return this.diskId; + } + + public void setDiskId(String diskId) { + this.diskId = diskId; + } + + public Boolean getDeleteAutoSnapshot() { + return this.deleteAutoSnapshot; + } + + public void setDeleteAutoSnapshot(Boolean deleteAutoSnapshot) { + this.deleteAutoSnapshot = deleteAutoSnapshot; + } + + public String getStorageClusterId() { + return this.storageClusterId; + } + + public void setStorageClusterId(String storageClusterId) { + this.storageClusterId = storageClusterId; + } + + public Boolean getEncrypted() { + return this.encrypted; + } + + public void setEncrypted(Boolean encrypted) { + this.encrypted = encrypted; + } + + public Integer getIOPSRead() { + return this.iOPSRead; + } + + public void setIOPSRead(Integer iOPSRead) { + this.iOPSRead = iOPSRead; + } + + public Integer getMountInstanceNum() { + return this.mountInstanceNum; + } + + public void setMountInstanceNum(Integer mountInstanceNum) { + this.mountInstanceNum = mountInstanceNum; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDevice() { + return this.device; + } + + public void setDevice(String device) { + this.device = device; + } + + public String getDiskName() { + return this.diskName; + } + + public void setDiskName(String diskName) { + this.diskName = diskName; + } + + public Boolean getPortable() { + return this.portable; + } + + public void setPortable(Boolean portable) { + this.portable = portable; + } + + public String getImageId() { + return this.imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public String getKMSKeyId() { + return this.kMSKeyId; + } + + public void setKMSKeyId(String kMSKeyId) { + this.kMSKeyId = kMSKeyId; + } + + public Boolean getDeleteWithInstance() { + return this.deleteWithInstance; + } + + public void setDeleteWithInstance(Boolean deleteWithInstance) { + this.deleteWithInstance = deleteWithInstance; + } + + public String getDetachedTime() { + return this.detachedTime; + } + + public void setDetachedTime(String detachedTime) { + this.detachedTime = detachedTime; + } + + public String getSourceSnapshotId() { + return this.sourceSnapshotId; + } + + public void setSourceSnapshotId(String sourceSnapshotId) { + this.sourceSnapshotId = sourceSnapshotId; + } + + public String getAutoSnapshotPolicyId() { + return this.autoSnapshotPolicyId; + } + + public void setAutoSnapshotPolicyId(String autoSnapshotPolicyId) { + this.autoSnapshotPolicyId = autoSnapshotPolicyId; + } + + public Boolean getEnableAutomatedSnapshotPolicy() { + return this.enableAutomatedSnapshotPolicy; + } + + public void setEnableAutomatedSnapshotPolicy(Boolean enableAutomatedSnapshotPolicy) { + this.enableAutomatedSnapshotPolicy = enableAutomatedSnapshotPolicy; + } + + public Integer getIOPSWrite() { + return this.iOPSWrite; + } + + public void setIOPSWrite(Integer iOPSWrite) { + this.iOPSWrite = iOPSWrite; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public Integer getIOPS() { + return this.iOPS; + } + + public void setIOPS(Integer iOPS) { + this.iOPS = iOPS; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public String getExpiredTime() { + return this.expiredTime; + } + + public void setExpiredTime(String expiredTime) { + this.expiredTime = expiredTime; + } + + public Integer getSize() { + return this.size; + } + + public void setSize(Integer size) { + this.size = size; + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + } + + public String getDiskChargeType() { + return this.diskChargeType; + } + + public void setDiskChargeType(String diskChargeType) { + this.diskChargeType = diskChargeType; + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + } + + public String getAttachedTime() { + return this.attachedTime; + } + + public void setAttachedTime(String attachedTime) { + this.attachedTime = attachedTime; + } + + public String getCategory() { + return this.category; + } + + public void setCategory(String category) { + this.category = category; + } + + public String getProductCode() { + return this.productCode; + } + + public void setProductCode(String productCode) { + this.productCode = productCode; + } + + public String getMultiAttach() { + return this.multiAttach; + } + + public void setMultiAttach(String multiAttach) { + this.multiAttach = multiAttach; + } + + public Long getProvisionedIops() { + return this.provisionedIops; + } + + public void setProvisionedIops(Long provisionedIops) { + this.provisionedIops = provisionedIops; + } + + public Boolean getBurstingEnabled() { + return this.burstingEnabled; + } + + public void setBurstingEnabled(Boolean burstingEnabled) { + this.burstingEnabled = burstingEnabled; + } + + public Integer getThroughput() { + return this.throughput; + } + + public void setThroughput(Integer throughput) { + this.throughput = throughput; + } + + public List getOperationLocks() { + return this.operationLocks; + } + + public void setOperationLocks(List operationLocks) { + this.operationLocks = operationLocks; + } + + public List getMountInstances() { + return this.mountInstances; + } + + public void setMountInstances(List mountInstances) { + this.mountInstances = mountInstances; + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public List getAttachments() { + return this.attachments; + } + + public void setAttachments(List attachments) { + this.attachments = attachments; + } + + public static class OperationLock { + + private String lockReason; + + public String getLockReason() { + return this.lockReason; + } + + public void setLockReason(String lockReason) { + this.lockReason = lockReason; + } + } + + public static class MountInstance { + + private String attachedTime; + + private String instanceId; + + private String device; + + public String getAttachedTime() { + return this.attachedTime; + } + + public void setAttachedTime(String attachedTime) { + this.attachedTime = attachedTime; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getDevice() { + return this.device; + } + + public void setDevice(String device) { + this.device = device; + } + } + + public static class Tag { + + private String tagValue; + + private String tagKey; + + public String getTagValue() { + return this.tagValue; + } + + public void setTagValue(String tagValue) { + this.tagValue = tagValue; + } + + public String getTagKey() { + return this.tagKey; + } + + public void setTagKey(String tagKey) { + this.tagKey = tagKey; + } + } + + public static class Attachment { + + private String instanceId; + + private String device; + + private String attachedTime; + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getDevice() { + return this.device; + } + + public void setDevice(String device) { + this.device = device; + } + + public String getAttachedTime() { + return this.attachedTime; + } + + public void setAttachedTime(String attachedTime) { + this.attachedTime = attachedTime; + } + } + } + + @Override + public DescribeDisksResponse getInstance(UnmarshallerContext context) { + return DescribeDisksResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeEipAddressesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeEipAddressesRequest.java new file mode 100644 index 0000000000..eb058481f7 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeEipAddressesRequest.java @@ -0,0 +1,275 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeEipAddressesRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String filter2Value; + + private String iSP; + + private String allocationId; + + private String eipAddress; + + private Integer pageNumber; + + private String lockReason; + + private String filter1Key; + + private String associatedInstanceType; + + private Integer pageSize; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String filter1Value; + + private String filter2Key; + + private Long ownerId; + + private String chargeType; + + private String associatedInstanceId; + + private String status; + public DescribeEipAddressesRequest() { + super("Ecs", "2014-05-26", "DescribeEipAddresses", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getFilter2Value() { + return this.filter2Value; + } + + public void setFilter2Value(String filter2Value) { + this.filter2Value = filter2Value; + if(filter2Value != null){ + putQueryParameter("Filter.2.Value", filter2Value); + } + } + + public String getISP() { + return this.iSP; + } + + public void setISP(String iSP) { + this.iSP = iSP; + if(iSP != null){ + putQueryParameter("ISP", iSP); + } + } + + public String getAllocationId() { + return this.allocationId; + } + + public void setAllocationId(String allocationId) { + this.allocationId = allocationId; + if(allocationId != null){ + putQueryParameter("AllocationId", allocationId); + } + } + + public String getEipAddress() { + return this.eipAddress; + } + + public void setEipAddress(String eipAddress) { + this.eipAddress = eipAddress; + if(eipAddress != null){ + putQueryParameter("EipAddress", eipAddress); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public String getLockReason() { + return this.lockReason; + } + + public void setLockReason(String lockReason) { + this.lockReason = lockReason; + if(lockReason != null){ + putQueryParameter("LockReason", lockReason); + } + } + + public String getFilter1Key() { + return this.filter1Key; + } + + public void setFilter1Key(String filter1Key) { + this.filter1Key = filter1Key; + if(filter1Key != null){ + putQueryParameter("Filter.1.Key", filter1Key); + } + } + + public String getAssociatedInstanceType() { + return this.associatedInstanceType; + } + + public void setAssociatedInstanceType(String associatedInstanceType) { + this.associatedInstanceType = associatedInstanceType; + if(associatedInstanceType != null){ + putQueryParameter("AssociatedInstanceType", associatedInstanceType); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getFilter1Value() { + return this.filter1Value; + } + + public void setFilter1Value(String filter1Value) { + this.filter1Value = filter1Value; + if(filter1Value != null){ + putQueryParameter("Filter.1.Value", filter1Value); + } + } + + public String getFilter2Key() { + return this.filter2Key; + } + + public void setFilter2Key(String filter2Key) { + this.filter2Key = filter2Key; + if(filter2Key != null){ + putQueryParameter("Filter.2.Key", filter2Key); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getChargeType() { + return this.chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + if(chargeType != null){ + putQueryParameter("ChargeType", chargeType); + } + } + + public String getAssociatedInstanceId() { + return this.associatedInstanceId; + } + + public void setAssociatedInstanceId(String associatedInstanceId) { + this.associatedInstanceId = associatedInstanceId; + if(associatedInstanceId != null){ + putQueryParameter("AssociatedInstanceId", associatedInstanceId); + } + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + if(status != null){ + putQueryParameter("Status", status); + } + } + + @Override + public Class getResponseClass() { + return DescribeEipAddressesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeEipAddressesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeEipAddressesResponse.java new file mode 100644 index 0000000000..52df7ec276 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeEipAddressesResponse.java @@ -0,0 +1,228 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeEipAddressesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeEipAddressesResponse extends AcsResponse { + + private Integer pageSize; + + private String requestId; + + private Integer pageNumber; + + private Integer totalCount; + + private List eipAddresses; + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getEipAddresses() { + return this.eipAddresses; + } + + public void setEipAddresses(List eipAddresses) { + this.eipAddresses = eipAddresses; + } + + public static class EipAddress { + + private String status; + + private String allocationTime; + + private String chargeType; + + private String instanceId; + + private String instanceType; + + private String regionId; + + private String ipAddress; + + private String bandwidth; + + private String expiredTime; + + private String allocationId; + + private String internetChargeType; + + private String eipBandwidth; + + private List operationLocks; + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getAllocationTime() { + return this.allocationTime; + } + + public void setAllocationTime(String allocationTime) { + this.allocationTime = allocationTime; + } + + public String getChargeType() { + return this.chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public String getIpAddress() { + return this.ipAddress; + } + + public void setIpAddress(String ipAddress) { + this.ipAddress = ipAddress; + } + + public String getBandwidth() { + return this.bandwidth; + } + + public void setBandwidth(String bandwidth) { + this.bandwidth = bandwidth; + } + + public String getExpiredTime() { + return this.expiredTime; + } + + public void setExpiredTime(String expiredTime) { + this.expiredTime = expiredTime; + } + + public String getAllocationId() { + return this.allocationId; + } + + public void setAllocationId(String allocationId) { + this.allocationId = allocationId; + } + + public String getInternetChargeType() { + return this.internetChargeType; + } + + public void setInternetChargeType(String internetChargeType) { + this.internetChargeType = internetChargeType; + } + + public String getEipBandwidth() { + return this.eipBandwidth; + } + + public void setEipBandwidth(String eipBandwidth) { + this.eipBandwidth = eipBandwidth; + } + + public List getOperationLocks() { + return this.operationLocks; + } + + public void setOperationLocks(List operationLocks) { + this.operationLocks = operationLocks; + } + + public static class LockReason { + + private String lockReason; + + public String getLockReason() { + return this.lockReason; + } + + public void setLockReason(String lockReason) { + this.lockReason = lockReason; + } + } + } + + @Override + public DescribeEipAddressesResponse getInstance(UnmarshallerContext context) { + return DescribeEipAddressesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeEipMonitorDataRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeEipMonitorDataRequest.java new file mode 100644 index 0000000000..644657a55d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeEipMonitorDataRequest.java @@ -0,0 +1,145 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeEipMonitorDataRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String allocationId; + + private String startTime; + + private Integer period; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String endTime; + + private Long ownerId; + public DescribeEipMonitorDataRequest() { + super("Ecs", "2014-05-26", "DescribeEipMonitorData", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getAllocationId() { + return this.allocationId; + } + + public void setAllocationId(String allocationId) { + this.allocationId = allocationId; + if(allocationId != null){ + putQueryParameter("AllocationId", allocationId); + } + } + + public String getStartTime() { + return this.startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + if(startTime != null){ + putQueryParameter("StartTime", startTime); + } + } + + public Integer getPeriod() { + return this.period; + } + + public void setPeriod(Integer period) { + this.period = period; + if(period != null){ + putQueryParameter("Period", period.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getEndTime() { + return this.endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + if(endTime != null){ + putQueryParameter("EndTime", endTime); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DescribeEipMonitorDataResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeEipMonitorDataResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeEipMonitorDataResponse.java new file mode 100644 index 0000000000..62161829d0 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeEipMonitorDataResponse.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeEipMonitorDataResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeEipMonitorDataResponse extends AcsResponse { + + private String requestId; + + private List eipMonitorDatas; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getEipMonitorDatas() { + return this.eipMonitorDatas; + } + + public void setEipMonitorDatas(List eipMonitorDatas) { + this.eipMonitorDatas = eipMonitorDatas; + } + + public static class EipMonitorData { + + private Integer eipTX; + + private Integer eipPackets; + + private Integer eipBandwidth; + + private String timeStamp; + + private Integer eipFlow; + + private Integer eipRX; + + public Integer getEipTX() { + return this.eipTX; + } + + public void setEipTX(Integer eipTX) { + this.eipTX = eipTX; + } + + public Integer getEipPackets() { + return this.eipPackets; + } + + public void setEipPackets(Integer eipPackets) { + this.eipPackets = eipPackets; + } + + public Integer getEipBandwidth() { + return this.eipBandwidth; + } + + public void setEipBandwidth(Integer eipBandwidth) { + this.eipBandwidth = eipBandwidth; + } + + public String getTimeStamp() { + return this.timeStamp; + } + + public void setTimeStamp(String timeStamp) { + this.timeStamp = timeStamp; + } + + public Integer getEipFlow() { + return this.eipFlow; + } + + public void setEipFlow(Integer eipFlow) { + this.eipFlow = eipFlow; + } + + public Integer getEipRX() { + return this.eipRX; + } + + public void setEipRX(Integer eipRX) { + this.eipRX = eipRX; + } + } + + @Override + public DescribeEipMonitorDataResponse getInstance(UnmarshallerContext context) { + return DescribeEipMonitorDataResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeElasticityAssuranceInstancesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeElasticityAssuranceInstancesRequest.java new file mode 100644 index 0000000000..1ca8280efd --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeElasticityAssuranceInstancesRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeElasticityAssuranceInstancesRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String nextToken; + + private String privatePoolOptionsId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private Integer maxResults; + public DescribeElasticityAssuranceInstancesRequest() { + super("Ecs", "2014-05-26", "DescribeElasticityAssuranceInstances", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + if(nextToken != null){ + putQueryParameter("NextToken", nextToken); + } + } + + public String getPrivatePoolOptionsId() { + return this.privatePoolOptionsId; + } + + public void setPrivatePoolOptionsId(String privatePoolOptionsId) { + this.privatePoolOptionsId = privatePoolOptionsId; + if(privatePoolOptionsId != null){ + putQueryParameter("PrivatePoolOptions.Id", privatePoolOptionsId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public Integer getMaxResults() { + return this.maxResults; + } + + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + if(maxResults != null){ + putQueryParameter("MaxResults", maxResults.toString()); + } + } + + @Override + public Class getResponseClass() { + return DescribeElasticityAssuranceInstancesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeElasticityAssuranceInstancesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeElasticityAssuranceInstancesResponse.java new file mode 100644 index 0000000000..eb21b04809 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeElasticityAssuranceInstancesResponse.java @@ -0,0 +1,95 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeElasticityAssuranceInstancesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeElasticityAssuranceInstancesResponse extends AcsResponse { + + private String nextToken; + + private String requestId; + + private Integer totalCount; + + private Integer maxResults; + + private List elasticityAssuranceItem; + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public Integer getMaxResults() { + return this.maxResults; + } + + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + } + + public List getElasticityAssuranceItem() { + return this.elasticityAssuranceItem; + } + + public void setElasticityAssuranceItem(List elasticityAssuranceItem) { + this.elasticityAssuranceItem = elasticityAssuranceItem; + } + + public static class InstanceIdSet { + + private String instanceId; + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + } + + @Override + public DescribeElasticityAssuranceInstancesResponse getInstance(UnmarshallerContext context) { + return DescribeElasticityAssuranceInstancesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeElasticityAssurancesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeElasticityAssurancesRequest.java new file mode 100644 index 0000000000..bfac0b09c4 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeElasticityAssurancesRequest.java @@ -0,0 +1,250 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeElasticityAssurancesRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String platform; + + private String resourceGroupId; + + private String nextToken; + + private String instanceType; + + private List tags; + + private String instanceChargeType; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String privatePoolOptionsIds; + + private Integer maxResults; + + private String zoneId; + + private String status; + public DescribeElasticityAssurancesRequest() { + super("Ecs", "2014-05-26", "DescribeElasticityAssurances", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getPlatform() { + return this.platform; + } + + public void setPlatform(String platform) { + this.platform = platform; + if(platform != null){ + putQueryParameter("Platform", platform); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + if(nextToken != null){ + putQueryParameter("NextToken", nextToken); + } + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + if(instanceType != null){ + putQueryParameter("InstanceType", instanceType); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public String getInstanceChargeType() { + return this.instanceChargeType; + } + + public void setInstanceChargeType(String instanceChargeType) { + this.instanceChargeType = instanceChargeType; + if(instanceChargeType != null){ + putQueryParameter("InstanceChargeType", instanceChargeType); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getPrivatePoolOptionsIds() { + return this.privatePoolOptionsIds; + } + + public void setPrivatePoolOptionsIds(String privatePoolOptionsIds) { + this.privatePoolOptionsIds = privatePoolOptionsIds; + if(privatePoolOptionsIds != null){ + putQueryParameter("PrivatePoolOptions.Ids", privatePoolOptionsIds); + } + } + + public Integer getMaxResults() { + return this.maxResults; + } + + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + if(maxResults != null){ + putQueryParameter("MaxResults", maxResults.toString()); + } + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + if(zoneId != null){ + putQueryParameter("ZoneId", zoneId); + } + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + if(status != null){ + putQueryParameter("Status", status); + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return DescribeElasticityAssurancesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeElasticityAssurancesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeElasticityAssurancesResponse.java new file mode 100644 index 0000000000..e390a6b162 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeElasticityAssurancesResponse.java @@ -0,0 +1,311 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeElasticityAssurancesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeElasticityAssurancesResponse extends AcsResponse { + + private String nextToken; + + private String requestId; + + private Integer totalCount; + + private Integer maxResults; + + private List elasticityAssuranceSet; + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public Integer getMaxResults() { + return this.maxResults; + } + + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + } + + public List getElasticityAssuranceSet() { + return this.elasticityAssuranceSet; + } + + public void setElasticityAssuranceSet(List elasticityAssuranceSet) { + this.elasticityAssuranceSet = elasticityAssuranceSet; + } + + public static class ElasticityAssuranceItem { + + private String status; + + private String privatePoolOptionsMatchCriteria; + + private String privatePoolOptionsId; + + private Integer usedAssuranceTimes; + + private String latestStartTime; + + private String privatePoolOptionsName; + + private String regionId; + + private String endTime; + + private String startTime; + + private String description; + + private String resourceGroupId; + + private String totalAssuranceTimes; + + private String instanceChargeType; + + private String startTimeType; + + private List allocatedResources; + + private List tags; + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getPrivatePoolOptionsMatchCriteria() { + return this.privatePoolOptionsMatchCriteria; + } + + public void setPrivatePoolOptionsMatchCriteria(String privatePoolOptionsMatchCriteria) { + this.privatePoolOptionsMatchCriteria = privatePoolOptionsMatchCriteria; + } + + public String getPrivatePoolOptionsId() { + return this.privatePoolOptionsId; + } + + public void setPrivatePoolOptionsId(String privatePoolOptionsId) { + this.privatePoolOptionsId = privatePoolOptionsId; + } + + public Integer getUsedAssuranceTimes() { + return this.usedAssuranceTimes; + } + + public void setUsedAssuranceTimes(Integer usedAssuranceTimes) { + this.usedAssuranceTimes = usedAssuranceTimes; + } + + public String getLatestStartTime() { + return this.latestStartTime; + } + + public void setLatestStartTime(String latestStartTime) { + this.latestStartTime = latestStartTime; + } + + public String getPrivatePoolOptionsName() { + return this.privatePoolOptionsName; + } + + public void setPrivatePoolOptionsName(String privatePoolOptionsName) { + this.privatePoolOptionsName = privatePoolOptionsName; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public String getEndTime() { + return this.endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + + public String getStartTime() { + return this.startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + } + + public String getTotalAssuranceTimes() { + return this.totalAssuranceTimes; + } + + public void setTotalAssuranceTimes(String totalAssuranceTimes) { + this.totalAssuranceTimes = totalAssuranceTimes; + } + + public String getInstanceChargeType() { + return this.instanceChargeType; + } + + public void setInstanceChargeType(String instanceChargeType) { + this.instanceChargeType = instanceChargeType; + } + + public String getStartTimeType() { + return this.startTimeType; + } + + public void setStartTimeType(String startTimeType) { + this.startTimeType = startTimeType; + } + + public List getAllocatedResources() { + return this.allocatedResources; + } + + public void setAllocatedResources(List allocatedResources) { + this.allocatedResources = allocatedResources; + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public static class AllocatedResource { + + private Integer usedAmount; + + private Integer totalAmount; + + private String zoneId; + + private String instanceType; + + public Integer getUsedAmount() { + return this.usedAmount; + } + + public void setUsedAmount(Integer usedAmount) { + this.usedAmount = usedAmount; + } + + public Integer getTotalAmount() { + return this.totalAmount; + } + + public void setTotalAmount(Integer totalAmount) { + this.totalAmount = totalAmount; + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + } + + public static class Tag { + + private String tagValue; + + private String tagKey; + + public String getTagValue() { + return this.tagValue; + } + + public void setTagValue(String tagValue) { + this.tagValue = tagValue; + } + + public String getTagKey() { + return this.tagKey; + } + + public void setTagKey(String tagKey) { + this.tagKey = tagKey; + } + } + } + + @Override + public DescribeElasticityAssurancesResponse getInstance(UnmarshallerContext context) { + return DescribeElasticityAssurancesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeEniMonitorDataRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeEniMonitorDataRequest.java new file mode 100644 index 0000000000..20a9335cae --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeEniMonitorDataRequest.java @@ -0,0 +1,158 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeEniMonitorDataRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String startTime; + + private Integer period; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String endTime; + + private Long ownerId; + + private String instanceId; + + private String eniId; + public DescribeEniMonitorDataRequest() { + super("Ecs", "2014-05-26", "DescribeEniMonitorData", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getStartTime() { + return this.startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + if(startTime != null){ + putQueryParameter("StartTime", startTime); + } + } + + public Integer getPeriod() { + return this.period; + } + + public void setPeriod(Integer period) { + this.period = period; + if(period != null){ + putQueryParameter("Period", period.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getEndTime() { + return this.endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + if(endTime != null){ + putQueryParameter("EndTime", endTime); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public String getEniId() { + return this.eniId; + } + + public void setEniId(String eniId) { + this.eniId = eniId; + if(eniId != null){ + putQueryParameter("EniId", eniId); + } + } + + @Override + public Class getResponseClass() { + return DescribeEniMonitorDataResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeEniMonitorDataResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeEniMonitorDataResponse.java new file mode 100644 index 0000000000..3ebe76c391 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeEniMonitorDataResponse.java @@ -0,0 +1,145 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeEniMonitorDataResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeEniMonitorDataResponse extends AcsResponse { + + private Integer totalCount; + + private String requestId; + + private List monitorData; + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getMonitorData() { + return this.monitorData; + } + + public void setMonitorData(List monitorData) { + this.monitorData = monitorData; + } + + public static class EniMonitorData { + + private String packetRx; + + private String timeStamp; + + private String dropPacketRx; + + private String eniId; + + private String dropPacketTx; + + private String packetTx; + + private String intranetTx; + + private String intranetRx; + + public String getPacketRx() { + return this.packetRx; + } + + public void setPacketRx(String packetRx) { + this.packetRx = packetRx; + } + + public String getTimeStamp() { + return this.timeStamp; + } + + public void setTimeStamp(String timeStamp) { + this.timeStamp = timeStamp; + } + + public String getDropPacketRx() { + return this.dropPacketRx; + } + + public void setDropPacketRx(String dropPacketRx) { + this.dropPacketRx = dropPacketRx; + } + + public String getEniId() { + return this.eniId; + } + + public void setEniId(String eniId) { + this.eniId = eniId; + } + + public String getDropPacketTx() { + return this.dropPacketTx; + } + + public void setDropPacketTx(String dropPacketTx) { + this.dropPacketTx = dropPacketTx; + } + + public String getPacketTx() { + return this.packetTx; + } + + public void setPacketTx(String packetTx) { + this.packetTx = packetTx; + } + + public String getIntranetTx() { + return this.intranetTx; + } + + public void setIntranetTx(String intranetTx) { + this.intranetTx = intranetTx; + } + + public String getIntranetRx() { + return this.intranetRx; + } + + public void setIntranetRx(String intranetRx) { + this.intranetRx = intranetRx; + } + } + + @Override + public DescribeEniMonitorDataResponse getInstance(UnmarshallerContext context) { + return DescribeEniMonitorDataResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeForwardTableEntriesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeForwardTableEntriesRequest.java new file mode 100644 index 0000000000..1d57b4ef4b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeForwardTableEntriesRequest.java @@ -0,0 +1,145 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeForwardTableEntriesRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String forwardTableId; + + private Integer pageNumber; + + private String forwardEntryId; + + private Integer pageSize; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public DescribeForwardTableEntriesRequest() { + super("Ecs", "2014-05-26", "DescribeForwardTableEntries", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getForwardTableId() { + return this.forwardTableId; + } + + public void setForwardTableId(String forwardTableId) { + this.forwardTableId = forwardTableId; + if(forwardTableId != null){ + putQueryParameter("ForwardTableId", forwardTableId); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public String getForwardEntryId() { + return this.forwardEntryId; + } + + public void setForwardEntryId(String forwardEntryId) { + this.forwardEntryId = forwardEntryId; + if(forwardEntryId != null){ + putQueryParameter("ForwardEntryId", forwardEntryId); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DescribeForwardTableEntriesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeForwardTableEntriesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeForwardTableEntriesResponse.java new file mode 100644 index 0000000000..18ce10c1b9 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeForwardTableEntriesResponse.java @@ -0,0 +1,165 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeForwardTableEntriesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeForwardTableEntriesResponse extends AcsResponse { + + private Integer pageSize; + + private String requestId; + + private Integer pageNumber; + + private Integer totalCount; + + private List forwardTableEntries; + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getForwardTableEntries() { + return this.forwardTableEntries; + } + + public void setForwardTableEntries(List forwardTableEntries) { + this.forwardTableEntries = forwardTableEntries; + } + + public static class ForwardTableEntry { + + private String status; + + private String forwardEntryId; + + private String internalIp; + + private String internalPort; + + private String forwardTableId; + + private String externalPort; + + private String ipProtocol; + + private String externalIp; + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getForwardEntryId() { + return this.forwardEntryId; + } + + public void setForwardEntryId(String forwardEntryId) { + this.forwardEntryId = forwardEntryId; + } + + public String getInternalIp() { + return this.internalIp; + } + + public void setInternalIp(String internalIp) { + this.internalIp = internalIp; + } + + public String getInternalPort() { + return this.internalPort; + } + + public void setInternalPort(String internalPort) { + this.internalPort = internalPort; + } + + public String getForwardTableId() { + return this.forwardTableId; + } + + public void setForwardTableId(String forwardTableId) { + this.forwardTableId = forwardTableId; + } + + public String getExternalPort() { + return this.externalPort; + } + + public void setExternalPort(String externalPort) { + this.externalPort = externalPort; + } + + public String getIpProtocol() { + return this.ipProtocol; + } + + public void setIpProtocol(String ipProtocol) { + this.ipProtocol = ipProtocol; + } + + public String getExternalIp() { + return this.externalIp; + } + + public void setExternalIp(String externalIp) { + this.externalIp = externalIp; + } + } + + @Override + public DescribeForwardTableEntriesResponse getInstance(UnmarshallerContext context) { + return DescribeForwardTableEntriesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeHaVipsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeHaVipsRequest.java new file mode 100644 index 0000000000..c644ffb7d4 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeHaVipsRequest.java @@ -0,0 +1,163 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeHaVipsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Integer pageNumber; + + private Integer pageSize; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private List filters; + public DescribeHaVipsRequest() { + super("Ecs", "2014-05-26", "DescribeHaVips", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getFilters() { + return this.filters; + } + + public void setFilters(List filters) { + this.filters = filters; + if (filters != null) { + for (int depth1 = 0; depth1 < filters.size(); depth1++) { + if (filters.get(depth1).getValues() != null) { + for (int i = 0; i < filters.get(depth1).getValues().size(); i++) { + putQueryParameter("Filter." + (depth1 + 1) + ".Value." + (i + 1) , filters.get(depth1).getValues().get(i)); + } + } + putQueryParameter("Filter." + (depth1 + 1) + ".Key" , filters.get(depth1).getKey()); + } + } + } + + public static class Filter { + + private List values; + + private String key; + + public List getValues() { + return this.values; + } + + public void setValues(List values) { + this.values = values; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + } + + @Override + public Class getResponseClass() { + return DescribeHaVipsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeHaVipsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeHaVipsResponse.java new file mode 100644 index 0000000000..d0a177c9fa --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeHaVipsResponse.java @@ -0,0 +1,195 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeHaVipsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeHaVipsResponse extends AcsResponse { + + private Integer pageSize; + + private String requestId; + + private Integer pageNumber; + + private Integer totalCount; + + private List haVips; + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getHaVips() { + return this.haVips; + } + + public void setHaVips(List haVips) { + this.haVips = haVips; + } + + public static class HaVip { + + private String status; + + private String vpcId; + + private String vSwitchId; + + private String ipAddress; + + private String description; + + private String haVipId; + + private String createTime; + + private String masterInstanceId; + + private String regionId; + + private List associatedEipAddresses; + + private List associatedInstances; + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + public String getVSwitchId() { + return this.vSwitchId; + } + + public void setVSwitchId(String vSwitchId) { + this.vSwitchId = vSwitchId; + } + + public String getIpAddress() { + return this.ipAddress; + } + + public void setIpAddress(String ipAddress) { + this.ipAddress = ipAddress; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getHaVipId() { + return this.haVipId; + } + + public void setHaVipId(String haVipId) { + this.haVipId = haVipId; + } + + public String getCreateTime() { + return this.createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getMasterInstanceId() { + return this.masterInstanceId; + } + + public void setMasterInstanceId(String masterInstanceId) { + this.masterInstanceId = masterInstanceId; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public List getAssociatedEipAddresses() { + return this.associatedEipAddresses; + } + + public void setAssociatedEipAddresses(List associatedEipAddresses) { + this.associatedEipAddresses = associatedEipAddresses; + } + + public List getAssociatedInstances() { + return this.associatedInstances; + } + + public void setAssociatedInstances(List associatedInstances) { + this.associatedInstances = associatedInstances; + } + } + + @Override + public DescribeHaVipsResponse getInstance(UnmarshallerContext context) { + return DescribeHaVipsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeHpcClustersRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeHpcClustersRequest.java new file mode 100644 index 0000000000..0cd9f5297c --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeHpcClustersRequest.java @@ -0,0 +1,145 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeHpcClustersRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private Integer pageNumber; + + private Integer pageSize; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String hpcClusterIds; + public DescribeHpcClustersRequest() { + super("Ecs", "2014-05-26", "DescribeHpcClusters", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getHpcClusterIds() { + return this.hpcClusterIds; + } + + public void setHpcClusterIds(String hpcClusterIds) { + this.hpcClusterIds = hpcClusterIds; + if(hpcClusterIds != null){ + putQueryParameter("HpcClusterIds", hpcClusterIds); + } + } + + @Override + public Class getResponseClass() { + return DescribeHpcClustersResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeHpcClustersResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeHpcClustersResponse.java new file mode 100644 index 0000000000..a0a6e0b8c7 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeHpcClustersResponse.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeHpcClustersResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeHpcClustersResponse extends AcsResponse { + + private Integer pageSize; + + private String requestId; + + private Integer pageNumber; + + private Integer totalCount; + + private List hpcClusters; + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getHpcClusters() { + return this.hpcClusters; + } + + public void setHpcClusters(List hpcClusters) { + this.hpcClusters = hpcClusters; + } + + public static class HpcCluster { + + private String hpcClusterId; + + private String name; + + private String description; + + public String getHpcClusterId() { + return this.hpcClusterId; + } + + public void setHpcClusterId(String hpcClusterId) { + this.hpcClusterId = hpcClusterId; + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + } + + @Override + public DescribeHpcClustersResponse getInstance(UnmarshallerContext context) { + return DescribeHpcClustersResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImageComponentsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImageComponentsRequest.java new file mode 100644 index 0000000000..8699390ea8 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImageComponentsRequest.java @@ -0,0 +1,213 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeImageComponentsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private List imageComponentIds; + + private String resourceGroupId; + + private String nextToken; + + private List tags; + + private String owner; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String name; + + private Integer maxResults; + public DescribeImageComponentsRequest() { + super("Ecs", "2014-05-26", "DescribeImageComponents", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public List getImageComponentIds() { + return this.imageComponentIds; + } + + public void setImageComponentIds(List imageComponentIds) { + this.imageComponentIds = imageComponentIds; + if (imageComponentIds != null) { + for (int i = 0; i < imageComponentIds.size(); i++) { + putQueryParameter("ImageComponentId." + (i + 1) , imageComponentIds.get(i)); + } + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + if(nextToken != null){ + putQueryParameter("NextToken", nextToken); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public String getOwner() { + return this.owner; + } + + public void setOwner(String owner) { + this.owner = owner; + if(owner != null){ + putQueryParameter("Owner", owner); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + if(name != null){ + putQueryParameter("Name", name); + } + } + + public Integer getMaxResults() { + return this.maxResults; + } + + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + if(maxResults != null){ + putQueryParameter("MaxResults", maxResults.toString()); + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return DescribeImageComponentsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImageComponentsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImageComponentsResponse.java new file mode 100644 index 0000000000..e329e863a2 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImageComponentsResponse.java @@ -0,0 +1,208 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeImageComponentsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeImageComponentsResponse extends AcsResponse { + + private String nextToken; + + private String requestId; + + private Integer totalCount; + + private Integer maxResults; + + private List imageComponent; + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public Integer getMaxResults() { + return this.maxResults; + } + + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + } + + public List getImageComponent() { + return this.imageComponent; + } + + public void setImageComponent(List imageComponent) { + this.imageComponent = imageComponent; + } + + public static class ImageComponentSet { + + private String creationTime; + + private String description; + + private String systemType; + + private String imageComponentId; + + private String componentType; + + private String resourceGroupId; + + private String name; + + private String content; + + private String owner; + + private List tags; + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getSystemType() { + return this.systemType; + } + + public void setSystemType(String systemType) { + this.systemType = systemType; + } + + public String getImageComponentId() { + return this.imageComponentId; + } + + public void setImageComponentId(String imageComponentId) { + this.imageComponentId = imageComponentId; + } + + public String getComponentType() { + return this.componentType; + } + + public void setComponentType(String componentType) { + this.componentType = componentType; + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public String getContent() { + return this.content; + } + + public void setContent(String content) { + this.content = content; + } + + public String getOwner() { + return this.owner; + } + + public void setOwner(String owner) { + this.owner = owner; + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public static class Tag { + + private String tagValue; + + private String tagKey; + + public String getTagValue() { + return this.tagValue; + } + + public void setTagValue(String tagValue) { + this.tagValue = tagValue; + } + + public String getTagKey() { + return this.tagKey; + } + + public void setTagKey(String tagKey) { + this.tagKey = tagKey; + } + } + } + + @Override + public DescribeImageComponentsResponse getInstance(UnmarshallerContext context) { + return DescribeImageComponentsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImageFromFamilyRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImageFromFamilyRequest.java new file mode 100644 index 0000000000..032f15731b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImageFromFamilyRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeImageFromFamilyRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String imageFamily; + public DescribeImageFromFamilyRequest() { + super("Ecs", "2014-05-26", "DescribeImageFromFamily", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getImageFamily() { + return this.imageFamily; + } + + public void setImageFamily(String imageFamily) { + this.imageFamily = imageFamily; + if(imageFamily != null){ + putQueryParameter("ImageFamily", imageFamily); + } + } + + @Override + public Class getResponseClass() { + return DescribeImageFromFamilyResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImageFromFamilyResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImageFromFamilyResponse.java new file mode 100644 index 0000000000..9a69d0fc2f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImageFromFamilyResponse.java @@ -0,0 +1,381 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeImageFromFamilyResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeImageFromFamilyResponse extends AcsResponse { + + private String requestId; + + private Image image; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Image getImage() { + return this.image; + } + + public void setImage(Image image) { + this.image = image; + } + + public static class Image { + + private String creationTime; + + private String status; + + private String imageFamily; + + private String progress; + + private Boolean isCopied; + + private Boolean isSupportIoOptimized; + + private String imageOwnerAlias; + + private Boolean isSupportCloudinit; + + private String imageVersion; + + private String usage; + + private String isSelfShared; + + private String description; + + private Integer size; + + private String platform; + + private String imageName; + + private String oSName; + + private String imageId; + + private String oSType; + + private Boolean isSubscribed; + + private String productCode; + + private String architecture; + + private List diskDeviceMappings; + + private List tags; + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getImageFamily() { + return this.imageFamily; + } + + public void setImageFamily(String imageFamily) { + this.imageFamily = imageFamily; + } + + public String getProgress() { + return this.progress; + } + + public void setProgress(String progress) { + this.progress = progress; + } + + public Boolean getIsCopied() { + return this.isCopied; + } + + public void setIsCopied(Boolean isCopied) { + this.isCopied = isCopied; + } + + public Boolean getIsSupportIoOptimized() { + return this.isSupportIoOptimized; + } + + public void setIsSupportIoOptimized(Boolean isSupportIoOptimized) { + this.isSupportIoOptimized = isSupportIoOptimized; + } + + public String getImageOwnerAlias() { + return this.imageOwnerAlias; + } + + public void setImageOwnerAlias(String imageOwnerAlias) { + this.imageOwnerAlias = imageOwnerAlias; + } + + public Boolean getIsSupportCloudinit() { + return this.isSupportCloudinit; + } + + public void setIsSupportCloudinit(Boolean isSupportCloudinit) { + this.isSupportCloudinit = isSupportCloudinit; + } + + public String getImageVersion() { + return this.imageVersion; + } + + public void setImageVersion(String imageVersion) { + this.imageVersion = imageVersion; + } + + public String getUsage() { + return this.usage; + } + + public void setUsage(String usage) { + this.usage = usage; + } + + public String getIsSelfShared() { + return this.isSelfShared; + } + + public void setIsSelfShared(String isSelfShared) { + this.isSelfShared = isSelfShared; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getSize() { + return this.size; + } + + public void setSize(Integer size) { + this.size = size; + } + + public String getPlatform() { + return this.platform; + } + + public void setPlatform(String platform) { + this.platform = platform; + } + + public String getImageName() { + return this.imageName; + } + + public void setImageName(String imageName) { + this.imageName = imageName; + } + + public String getOSName() { + return this.oSName; + } + + public void setOSName(String oSName) { + this.oSName = oSName; + } + + public String getImageId() { + return this.imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public String getOSType() { + return this.oSType; + } + + public void setOSType(String oSType) { + this.oSType = oSType; + } + + public Boolean getIsSubscribed() { + return this.isSubscribed; + } + + public void setIsSubscribed(Boolean isSubscribed) { + this.isSubscribed = isSubscribed; + } + + public String getProductCode() { + return this.productCode; + } + + public void setProductCode(String productCode) { + this.productCode = productCode; + } + + public String getArchitecture() { + return this.architecture; + } + + public void setArchitecture(String architecture) { + this.architecture = architecture; + } + + public List getDiskDeviceMappings() { + return this.diskDeviceMappings; + } + + public void setDiskDeviceMappings(List diskDeviceMappings) { + this.diskDeviceMappings = diskDeviceMappings; + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public static class DiskDeviceMapping { + + private String type; + + private String importOSSBucket; + + private String snapshotId; + + private String importOSSObject; + + private String size; + + private String device; + + private String format; + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + } + + public String getImportOSSBucket() { + return this.importOSSBucket; + } + + public void setImportOSSBucket(String importOSSBucket) { + this.importOSSBucket = importOSSBucket; + } + + public String getSnapshotId() { + return this.snapshotId; + } + + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; + } + + public String getImportOSSObject() { + return this.importOSSObject; + } + + public void setImportOSSObject(String importOSSObject) { + this.importOSSObject = importOSSObject; + } + + public String getSize() { + return this.size; + } + + public void setSize(String size) { + this.size = size; + } + + public String getDevice() { + return this.device; + } + + public void setDevice(String device) { + this.device = device; + } + + public String getFormat() { + return this.format; + } + + public void setFormat(String format) { + this.format = format; + } + } + + public static class Tag { + + private String tagValue; + + private String tagKey; + + public String getTagValue() { + return this.tagValue; + } + + public void setTagValue(String tagValue) { + this.tagValue = tagValue; + } + + public String getTagKey() { + return this.tagKey; + } + + public void setTagKey(String tagKey) { + this.tagKey = tagKey; + } + } + } + + @Override + public DescribeImageFromFamilyResponse getInstance(UnmarshallerContext context) { + return DescribeImageFromFamilyResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImagePipelineExecutionsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImagePipelineExecutionsRequest.java new file mode 100644 index 0000000000..1758a4f0bb --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImagePipelineExecutionsRequest.java @@ -0,0 +1,198 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeImagePipelineExecutionsRequest extends RpcAcsRequest { + + + private String imagePipelineId; + + private Long resourceOwnerId; + + private String executionId; + + private String nextToken; + + private List tags; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private Integer maxResults; + + private String status; + public DescribeImagePipelineExecutionsRequest() { + super("Ecs", "2014-05-26", "DescribeImagePipelineExecutions", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getImagePipelineId() { + return this.imagePipelineId; + } + + public void setImagePipelineId(String imagePipelineId) { + this.imagePipelineId = imagePipelineId; + if(imagePipelineId != null){ + putQueryParameter("ImagePipelineId", imagePipelineId); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getExecutionId() { + return this.executionId; + } + + public void setExecutionId(String executionId) { + this.executionId = executionId; + if(executionId != null){ + putQueryParameter("ExecutionId", executionId); + } + } + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + if(nextToken != null){ + putQueryParameter("NextToken", nextToken); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public Integer getMaxResults() { + return this.maxResults; + } + + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + if(maxResults != null){ + putQueryParameter("MaxResults", maxResults.toString()); + } + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + if(status != null){ + putQueryParameter("Status", status); + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return DescribeImagePipelineExecutionsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImagePipelineExecutionsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImagePipelineExecutionsResponse.java new file mode 100644 index 0000000000..553941fdc3 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImagePipelineExecutionsResponse.java @@ -0,0 +1,198 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeImagePipelineExecutionsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeImagePipelineExecutionsResponse extends AcsResponse { + + private String nextToken; + + private String requestId; + + private Integer totalCount; + + private Integer maxResults; + + private List imagePipelineExecution; + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public Integer getMaxResults() { + return this.maxResults; + } + + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + } + + public List getImagePipelineExecution() { + return this.imagePipelineExecution; + } + + public void setImagePipelineExecution(List imagePipelineExecution) { + this.imagePipelineExecution = imagePipelineExecution; + } + + public static class ImagePipelineExecutionSet { + + private String creationTime; + + private String imagePipelineId; + + private String status; + + private String modifiedTime; + + private String resourceGroupId; + + private String message; + + private String imageId; + + private String executionId; + + private List tags; + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getImagePipelineId() { + return this.imagePipelineId; + } + + public void setImagePipelineId(String imagePipelineId) { + this.imagePipelineId = imagePipelineId; + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getModifiedTime() { + return this.modifiedTime; + } + + public void setModifiedTime(String modifiedTime) { + this.modifiedTime = modifiedTime; + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + } + + public String getMessage() { + return this.message; + } + + public void setMessage(String message) { + this.message = message; + } + + public String getImageId() { + return this.imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public String getExecutionId() { + return this.executionId; + } + + public void setExecutionId(String executionId) { + this.executionId = executionId; + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public static class Tag { + + private String tagValue; + + private String tagKey; + + public String getTagValue() { + return this.tagValue; + } + + public void setTagValue(String tagValue) { + this.tagValue = tagValue; + } + + public String getTagKey() { + return this.tagKey; + } + + public void setTagKey(String tagKey) { + this.tagKey = tagKey; + } + } + } + + @Override + public DescribeImagePipelineExecutionsResponse getInstance(UnmarshallerContext context) { + return DescribeImagePipelineExecutionsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImagePipelinesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImagePipelinesRequest.java new file mode 100644 index 0000000000..1c544c9370 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImagePipelinesRequest.java @@ -0,0 +1,200 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeImagePipelinesRequest extends RpcAcsRequest { + + + private List imagePipelineIds; + + private Long resourceOwnerId; + + private String resourceGroupId; + + private String nextToken; + + private List tags; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String name; + + private Integer maxResults; + public DescribeImagePipelinesRequest() { + super("Ecs", "2014-05-26", "DescribeImagePipelines", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public List getImagePipelineIds() { + return this.imagePipelineIds; + } + + public void setImagePipelineIds(List imagePipelineIds) { + this.imagePipelineIds = imagePipelineIds; + if (imagePipelineIds != null) { + for (int i = 0; i < imagePipelineIds.size(); i++) { + putQueryParameter("ImagePipelineId." + (i + 1) , imagePipelineIds.get(i)); + } + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + if(nextToken != null){ + putQueryParameter("NextToken", nextToken); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + if(name != null){ + putQueryParameter("Name", name); + } + } + + public Integer getMaxResults() { + return this.maxResults; + } + + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + if(maxResults != null){ + putQueryParameter("MaxResults", maxResults.toString()); + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return DescribeImagePipelinesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImagePipelinesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImagePipelinesResponse.java new file mode 100644 index 0000000000..2222ede93d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImagePipelinesResponse.java @@ -0,0 +1,278 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeImagePipelinesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeImagePipelinesResponse extends AcsResponse { + + private String nextToken; + + private String requestId; + + private Integer totalCount; + + private Integer maxResults; + + private List imagePipeline; + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public Integer getMaxResults() { + return this.maxResults; + } + + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + } + + public List getImagePipeline() { + return this.imagePipeline; + } + + public void setImagePipeline(List imagePipeline) { + this.imagePipeline = imagePipeline; + } + + public static class ImagePipelineSet { + + private String creationTime; + + private Boolean deleteInstanceOnFailure; + + private String instanceType; + + private Integer internetMaxBandwidthOut; + + private String imagePipelineId; + + private String vSwitchId; + + private Integer systemDiskSize; + + private String description; + + private String baseImage; + + private String resourceGroupId; + + private String imageName; + + private String baseImageType; + + private String name; + + private String buildContent; + + private List tags; + + private List toRegionIds; + + private List addAccounts; + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public Boolean getDeleteInstanceOnFailure() { + return this.deleteInstanceOnFailure; + } + + public void setDeleteInstanceOnFailure(Boolean deleteInstanceOnFailure) { + this.deleteInstanceOnFailure = deleteInstanceOnFailure; + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public Integer getInternetMaxBandwidthOut() { + return this.internetMaxBandwidthOut; + } + + public void setInternetMaxBandwidthOut(Integer internetMaxBandwidthOut) { + this.internetMaxBandwidthOut = internetMaxBandwidthOut; + } + + public String getImagePipelineId() { + return this.imagePipelineId; + } + + public void setImagePipelineId(String imagePipelineId) { + this.imagePipelineId = imagePipelineId; + } + + public String getVSwitchId() { + return this.vSwitchId; + } + + public void setVSwitchId(String vSwitchId) { + this.vSwitchId = vSwitchId; + } + + public Integer getSystemDiskSize() { + return this.systemDiskSize; + } + + public void setSystemDiskSize(Integer systemDiskSize) { + this.systemDiskSize = systemDiskSize; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getBaseImage() { + return this.baseImage; + } + + public void setBaseImage(String baseImage) { + this.baseImage = baseImage; + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + } + + public String getImageName() { + return this.imageName; + } + + public void setImageName(String imageName) { + this.imageName = imageName; + } + + public String getBaseImageType() { + return this.baseImageType; + } + + public void setBaseImageType(String baseImageType) { + this.baseImageType = baseImageType; + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public String getBuildContent() { + return this.buildContent; + } + + public void setBuildContent(String buildContent) { + this.buildContent = buildContent; + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public List getToRegionIds() { + return this.toRegionIds; + } + + public void setToRegionIds(List toRegionIds) { + this.toRegionIds = toRegionIds; + } + + public List getAddAccounts() { + return this.addAccounts; + } + + public void setAddAccounts(List addAccounts) { + this.addAccounts = addAccounts; + } + + public static class Tag { + + private String tagValue; + + private String tagKey; + + public String getTagValue() { + return this.tagValue; + } + + public void setTagValue(String tagValue) { + this.tagValue = tagValue; + } + + public String getTagKey() { + return this.tagKey; + } + + public void setTagKey(String tagKey) { + this.tagKey = tagKey; + } + } + } + + @Override + public DescribeImagePipelinesResponse getInstance(UnmarshallerContext context) { + return DescribeImagePipelinesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImageSharePermissionRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImageSharePermissionRequest.java new file mode 100644 index 0000000000..8201f9f49b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImageSharePermissionRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeImageSharePermissionRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String imageId; + + private Integer pageNumber; + + private Integer pageSize; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public DescribeImageSharePermissionRequest() { + super("Ecs", "2014-05-26", "DescribeImageSharePermission", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getImageId() { + return this.imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + if(imageId != null){ + putQueryParameter("ImageId", imageId); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DescribeImageSharePermissionResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImageSharePermissionResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImageSharePermissionResponse.java new file mode 100644 index 0000000000..dcaef791f6 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImageSharePermissionResponse.java @@ -0,0 +1,148 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeImageSharePermissionResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeImageSharePermissionResponse extends AcsResponse { + + private String requestId; + + private Integer pageNumber; + + private Integer pageSize; + + private Integer totalCount; + + private String imageId; + + private String regionId; + + private List shareGroups; + + private List accounts; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public String getImageId() { + return this.imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public List getShareGroups() { + return this.shareGroups; + } + + public void setShareGroups(List shareGroups) { + this.shareGroups = shareGroups; + } + + public List getAccounts() { + return this.accounts; + } + + public void setAccounts(List accounts) { + this.accounts = accounts; + } + + public static class ShareGroup { + + private String group; + + public String getGroup() { + return this.group; + } + + public void setGroup(String group) { + this.group = group; + } + } + + public static class Account { + + private String aliyunId; + + private String sharedTime; + + public String getAliyunId() { + return this.aliyunId; + } + + public void setAliyunId(String aliyunId) { + this.aliyunId = aliyunId; + } + + public String getSharedTime() { + return this.sharedTime; + } + + public void setSharedTime(String sharedTime) { + this.sharedTime = sharedTime; + } + } + + @Override + public DescribeImageSharePermissionResponse getInstance(UnmarshallerContext context) { + return DescribeImageSharePermissionResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImageSupportInstanceTypesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImageSupportInstanceTypesRequest.java new file mode 100644 index 0000000000..7370cf7d9b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImageSupportInstanceTypesRequest.java @@ -0,0 +1,146 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeImageSupportInstanceTypesRequest extends RpcAcsRequest { + + + private String actionType; + + private Long resourceOwnerId; + + private String imageId; + + private String resourceOwnerAccount; + + private Long ownerId; + + private List filters; + public DescribeImageSupportInstanceTypesRequest() { + super("Ecs", "2014-05-26", "DescribeImageSupportInstanceTypes", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getActionType() { + return this.actionType; + } + + public void setActionType(String actionType) { + this.actionType = actionType; + if(actionType != null){ + putQueryParameter("ActionType", actionType); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getImageId() { + return this.imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + if(imageId != null){ + putQueryParameter("ImageId", imageId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getFilters() { + return this.filters; + } + + public void setFilters(List filters) { + this.filters = filters; + if (filters != null) { + for (int depth1 = 0; depth1 < filters.size(); depth1++) { + putQueryParameter("Filter." + (depth1 + 1) + ".Value" , filters.get(depth1).getValue()); + putQueryParameter("Filter." + (depth1 + 1) + ".Key" , filters.get(depth1).getKey()); + } + } + } + + public static class Filter { + + private String value; + + private String key; + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + } + + @Override + public Class getResponseClass() { + return DescribeImageSupportInstanceTypesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImageSupportInstanceTypesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImageSupportInstanceTypesResponse.java new file mode 100644 index 0000000000..1e2787f6c5 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImageSupportInstanceTypesResponse.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeImageSupportInstanceTypesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeImageSupportInstanceTypesResponse extends AcsResponse { + + private String requestId; + + private String imageId; + + private String regionId; + + private List instanceTypes; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getImageId() { + return this.imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public List getInstanceTypes() { + return this.instanceTypes; + } + + public void setInstanceTypes(List instanceTypes) { + this.instanceTypes = instanceTypes; + } + + public static class InstanceType { + + private String instanceTypeId; + + private String instanceTypeFamily; + + private Integer cpuCoreCount; + + private Float memorySize; + + public String getInstanceTypeId() { + return this.instanceTypeId; + } + + public void setInstanceTypeId(String instanceTypeId) { + this.instanceTypeId = instanceTypeId; + } + + public String getInstanceTypeFamily() { + return this.instanceTypeFamily; + } + + public void setInstanceTypeFamily(String instanceTypeFamily) { + this.instanceTypeFamily = instanceTypeFamily; + } + + public Integer getCpuCoreCount() { + return this.cpuCoreCount; + } + + public void setCpuCoreCount(Integer cpuCoreCount) { + this.cpuCoreCount = cpuCoreCount; + } + + public Float getMemorySize() { + return this.memorySize; + } + + public void setMemorySize(Float memorySize) { + this.memorySize = memorySize; + } + } + + @Override + public DescribeImageSupportInstanceTypesResponse getInstance(UnmarshallerContext context) { + return DescribeImageSupportInstanceTypesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImagesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImagesRequest.java new file mode 100644 index 0000000000..c0cdb79241 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImagesRequest.java @@ -0,0 +1,432 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeImagesRequest extends RpcAcsRequest { + + + private String actionType; + + private Long imageOwnerId; + + private Long resourceOwnerId; + + private String imageId; + + private String snapshotId; + + private String usage; + + private Integer pageNumber; + + private String imageOwnerAlias; + + private String resourceGroupId; + + private Boolean isSupportIoOptimized; + + private String imageName; + + private Boolean isSupportCloudinit; + + private Boolean isPublic; + + private Integer pageSize; + + private String instanceType; + + private List tags; + + private String architecture; + + private Boolean dryRun; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Boolean showExpired; + + private String oSType; + + private Long ownerId; + + private List filters; + + private String imageFamily; + + private String status; + public DescribeImagesRequest() { + super("Ecs", "2014-05-26", "DescribeImages", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getActionType() { + return this.actionType; + } + + public void setActionType(String actionType) { + this.actionType = actionType; + if(actionType != null){ + putQueryParameter("ActionType", actionType); + } + } + + public Long getImageOwnerId() { + return this.imageOwnerId; + } + + public void setImageOwnerId(Long imageOwnerId) { + this.imageOwnerId = imageOwnerId; + if(imageOwnerId != null){ + putQueryParameter("ImageOwnerId", imageOwnerId.toString()); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getImageId() { + return this.imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + if(imageId != null){ + putQueryParameter("ImageId", imageId); + } + } + + public String getSnapshotId() { + return this.snapshotId; + } + + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; + if(snapshotId != null){ + putQueryParameter("SnapshotId", snapshotId); + } + } + + public String getUsage() { + return this.usage; + } + + public void setUsage(String usage) { + this.usage = usage; + if(usage != null){ + putQueryParameter("Usage", usage); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public String getImageOwnerAlias() { + return this.imageOwnerAlias; + } + + public void setImageOwnerAlias(String imageOwnerAlias) { + this.imageOwnerAlias = imageOwnerAlias; + if(imageOwnerAlias != null){ + putQueryParameter("ImageOwnerAlias", imageOwnerAlias); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public Boolean getIsSupportIoOptimized() { + return this.isSupportIoOptimized; + } + + public void setIsSupportIoOptimized(Boolean isSupportIoOptimized) { + this.isSupportIoOptimized = isSupportIoOptimized; + if(isSupportIoOptimized != null){ + putQueryParameter("IsSupportIoOptimized", isSupportIoOptimized.toString()); + } + } + + public String getImageName() { + return this.imageName; + } + + public void setImageName(String imageName) { + this.imageName = imageName; + if(imageName != null){ + putQueryParameter("ImageName", imageName); + } + } + + public Boolean getIsSupportCloudinit() { + return this.isSupportCloudinit; + } + + public void setIsSupportCloudinit(Boolean isSupportCloudinit) { + this.isSupportCloudinit = isSupportCloudinit; + if(isSupportCloudinit != null){ + putQueryParameter("IsSupportCloudinit", isSupportCloudinit.toString()); + } + } + + public Boolean getIsPublic() { + return this.isPublic; + } + + public void setIsPublic(Boolean isPublic) { + this.isPublic = isPublic; + if(isPublic != null){ + putQueryParameter("IsPublic", isPublic.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + if(instanceType != null){ + putQueryParameter("InstanceType", instanceType); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + } + } + } + + public String getArchitecture() { + return this.architecture; + } + + public void setArchitecture(String architecture) { + this.architecture = architecture; + if(architecture != null){ + putQueryParameter("Architecture", architecture); + } + } + + public Boolean getDryRun() { + return this.dryRun; + } + + public void setDryRun(Boolean dryRun) { + this.dryRun = dryRun; + if(dryRun != null){ + putQueryParameter("DryRun", dryRun.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Boolean getShowExpired() { + return this.showExpired; + } + + public void setShowExpired(Boolean showExpired) { + this.showExpired = showExpired; + if(showExpired != null){ + putQueryParameter("ShowExpired", showExpired.toString()); + } + } + + public String getOSType() { + return this.oSType; + } + + public void setOSType(String oSType) { + this.oSType = oSType; + if(oSType != null){ + putQueryParameter("OSType", oSType); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getFilters() { + return this.filters; + } + + public void setFilters(List filters) { + this.filters = filters; + if (filters != null) { + for (int depth1 = 0; depth1 < filters.size(); depth1++) { + putQueryParameter("Filter." + (depth1 + 1) + ".Value" , filters.get(depth1).getValue()); + putQueryParameter("Filter." + (depth1 + 1) + ".Key" , filters.get(depth1).getKey()); + } + } + } + + public String getImageFamily() { + return this.imageFamily; + } + + public void setImageFamily(String imageFamily) { + this.imageFamily = imageFamily; + if(imageFamily != null){ + putQueryParameter("ImageFamily", imageFamily); + } + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + if(status != null){ + putQueryParameter("Status", status); + } + } + + public static class Tag { + + private String value; + + private String key; + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + } + + public static class Filter { + + private String value; + + private String key; + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + } + + @Override + public Class getResponseClass() { + return DescribeImagesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImagesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImagesResponse.java new file mode 100644 index 0000000000..5982267c1e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeImagesResponse.java @@ -0,0 +1,610 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeImagesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeImagesResponse extends AcsResponse { + + private Integer pageSize; + + private Integer pageNumber; + + private String requestId; + + private Integer totalCount; + + private String regionId; + + private List images; + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public List getImages() { + return this.images; + } + + public void setImages(List images) { + this.images = images; + } + + public static class Image { + + private String creationTime; + + private String status; + + private String imageFamily; + + private String progress; + + private Boolean isCopied; + + private Boolean isSupportIoOptimized; + + private String imageOwnerAlias; + + private Boolean isSupportCloudinit; + + private String imageVersion; + + private String usage; + + private String isSelfShared; + + private String description; + + private Integer size; + + private String resourceGroupId; + + private String platform; + + private String oSNameEn; + + private String imageName; + + private String oSName; + + private String imageId; + + private String oSType; + + private Boolean isSubscribed; + + private String productCode; + + private String architecture; + + private String bootMode; + + private Boolean isPublic; + + private Long imageOwnerId; + + private Boolean loginAsNonRootSupported; + + private String supplierName; + + private List diskDeviceMappings; + + private List tags; + + private DetectionOptions detectionOptions; + + private Features features; + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getImageFamily() { + return this.imageFamily; + } + + public void setImageFamily(String imageFamily) { + this.imageFamily = imageFamily; + } + + public String getProgress() { + return this.progress; + } + + public void setProgress(String progress) { + this.progress = progress; + } + + public Boolean getIsCopied() { + return this.isCopied; + } + + public void setIsCopied(Boolean isCopied) { + this.isCopied = isCopied; + } + + public Boolean getIsSupportIoOptimized() { + return this.isSupportIoOptimized; + } + + public void setIsSupportIoOptimized(Boolean isSupportIoOptimized) { + this.isSupportIoOptimized = isSupportIoOptimized; + } + + public String getImageOwnerAlias() { + return this.imageOwnerAlias; + } + + public void setImageOwnerAlias(String imageOwnerAlias) { + this.imageOwnerAlias = imageOwnerAlias; + } + + public Boolean getIsSupportCloudinit() { + return this.isSupportCloudinit; + } + + public void setIsSupportCloudinit(Boolean isSupportCloudinit) { + this.isSupportCloudinit = isSupportCloudinit; + } + + public String getImageVersion() { + return this.imageVersion; + } + + public void setImageVersion(String imageVersion) { + this.imageVersion = imageVersion; + } + + public String getUsage() { + return this.usage; + } + + public void setUsage(String usage) { + this.usage = usage; + } + + public String getIsSelfShared() { + return this.isSelfShared; + } + + public void setIsSelfShared(String isSelfShared) { + this.isSelfShared = isSelfShared; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getSize() { + return this.size; + } + + public void setSize(Integer size) { + this.size = size; + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + } + + public String getPlatform() { + return this.platform; + } + + public void setPlatform(String platform) { + this.platform = platform; + } + + public String getOSNameEn() { + return this.oSNameEn; + } + + public void setOSNameEn(String oSNameEn) { + this.oSNameEn = oSNameEn; + } + + public String getImageName() { + return this.imageName; + } + + public void setImageName(String imageName) { + this.imageName = imageName; + } + + public String getOSName() { + return this.oSName; + } + + public void setOSName(String oSName) { + this.oSName = oSName; + } + + public String getImageId() { + return this.imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public String getOSType() { + return this.oSType; + } + + public void setOSType(String oSType) { + this.oSType = oSType; + } + + public Boolean getIsSubscribed() { + return this.isSubscribed; + } + + public void setIsSubscribed(Boolean isSubscribed) { + this.isSubscribed = isSubscribed; + } + + public String getProductCode() { + return this.productCode; + } + + public void setProductCode(String productCode) { + this.productCode = productCode; + } + + public String getArchitecture() { + return this.architecture; + } + + public void setArchitecture(String architecture) { + this.architecture = architecture; + } + + public String getBootMode() { + return this.bootMode; + } + + public void setBootMode(String bootMode) { + this.bootMode = bootMode; + } + + public Boolean getIsPublic() { + return this.isPublic; + } + + public void setIsPublic(Boolean isPublic) { + this.isPublic = isPublic; + } + + public Long getImageOwnerId() { + return this.imageOwnerId; + } + + public void setImageOwnerId(Long imageOwnerId) { + this.imageOwnerId = imageOwnerId; + } + + public Boolean getLoginAsNonRootSupported() { + return this.loginAsNonRootSupported; + } + + public void setLoginAsNonRootSupported(Boolean loginAsNonRootSupported) { + this.loginAsNonRootSupported = loginAsNonRootSupported; + } + + public String getSupplierName() { + return this.supplierName; + } + + public void setSupplierName(String supplierName) { + this.supplierName = supplierName; + } + + public List getDiskDeviceMappings() { + return this.diskDeviceMappings; + } + + public void setDiskDeviceMappings(List diskDeviceMappings) { + this.diskDeviceMappings = diskDeviceMappings; + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public DetectionOptions getDetectionOptions() { + return this.detectionOptions; + } + + public void setDetectionOptions(DetectionOptions detectionOptions) { + this.detectionOptions = detectionOptions; + } + + public Features getFeatures() { + return this.features; + } + + public void setFeatures(Features features) { + this.features = features; + } + + public static class DiskDeviceMapping { + + private String type; + + private String importOSSBucket; + + private String progress; + + private String snapshotId; + + private String importOSSObject; + + private String device; + + private String size; + + private Integer remainTime; + + private String format; + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + } + + public String getImportOSSBucket() { + return this.importOSSBucket; + } + + public void setImportOSSBucket(String importOSSBucket) { + this.importOSSBucket = importOSSBucket; + } + + public String getProgress() { + return this.progress; + } + + public void setProgress(String progress) { + this.progress = progress; + } + + public String getSnapshotId() { + return this.snapshotId; + } + + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; + } + + public String getImportOSSObject() { + return this.importOSSObject; + } + + public void setImportOSSObject(String importOSSObject) { + this.importOSSObject = importOSSObject; + } + + public String getDevice() { + return this.device; + } + + public void setDevice(String device) { + this.device = device; + } + + public String getSize() { + return this.size; + } + + public void setSize(String size) { + this.size = size; + } + + public Integer getRemainTime() { + return this.remainTime; + } + + public void setRemainTime(Integer remainTime) { + this.remainTime = remainTime; + } + + public String getFormat() { + return this.format; + } + + public void setFormat(String format) { + this.format = format; + } + } + + public static class Tag { + + private String tagValue; + + private String tagKey; + + public String getTagValue() { + return this.tagValue; + } + + public void setTagValue(String tagValue) { + this.tagValue = tagValue; + } + + public String getTagKey() { + return this.tagKey; + } + + public void setTagKey(String tagKey) { + this.tagKey = tagKey; + } + } + + public static class DetectionOptions { + + private String status; + + private List items; + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public List getItems() { + return this.items; + } + + public void setItems(List items) { + this.items = items; + } + + public static class Item { + + private String name; + + private String value; + + private String riskLevel; + + private String riskCode; + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getRiskLevel() { + return this.riskLevel; + } + + public void setRiskLevel(String riskLevel) { + this.riskLevel = riskLevel; + } + + public String getRiskCode() { + return this.riskCode; + } + + public void setRiskCode(String riskCode) { + this.riskCode = riskCode; + } + } + } + + public static class Features { + + private String nvmeSupport; + + public String getNvmeSupport() { + return this.nvmeSupport; + } + + public void setNvmeSupport(String nvmeSupport) { + this.nvmeSupport = nvmeSupport; + } + } + } + + @Override + public DescribeImagesResponse getInstance(UnmarshallerContext context) { + return DescribeImagesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceAttachmentAttributesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceAttachmentAttributesRequest.java new file mode 100644 index 0000000000..b427b50676 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceAttachmentAttributesRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeInstanceAttachmentAttributesRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Integer pageNumber; + + private Integer pageSize; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceIds; + public DescribeInstanceAttachmentAttributesRequest() { + super("Ecs", "2014-05-26", "DescribeInstanceAttachmentAttributes", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceIds() { + return this.instanceIds; + } + + public void setInstanceIds(String instanceIds) { + this.instanceIds = instanceIds; + if(instanceIds != null){ + putQueryParameter("InstanceIds", instanceIds); + } + } + + @Override + public Class getResponseClass() { + return DescribeInstanceAttachmentAttributesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceAttachmentAttributesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceAttachmentAttributesResponse.java new file mode 100644 index 0000000000..3a7c480875 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceAttachmentAttributesResponse.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeInstanceAttachmentAttributesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeInstanceAttachmentAttributesResponse extends AcsResponse { + + private Integer pageSize; + + private String requestId; + + private Integer pageNumber; + + private Integer totalCount; + + private List instances; + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getInstances() { + return this.instances; + } + + public void setInstances(List instances) { + this.instances = instances; + } + + public static class Instance { + + private String instanceId; + + private String privatePoolOptionsMatchCriteria; + + private String privatePoolOptionsId; + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getPrivatePoolOptionsMatchCriteria() { + return this.privatePoolOptionsMatchCriteria; + } + + public void setPrivatePoolOptionsMatchCriteria(String privatePoolOptionsMatchCriteria) { + this.privatePoolOptionsMatchCriteria = privatePoolOptionsMatchCriteria; + } + + public String getPrivatePoolOptionsId() { + return this.privatePoolOptionsId; + } + + public void setPrivatePoolOptionsId(String privatePoolOptionsId) { + this.privatePoolOptionsId = privatePoolOptionsId; + } + } + + @Override + public DescribeInstanceAttachmentAttributesResponse getInstance(UnmarshallerContext context) { + return DescribeInstanceAttachmentAttributesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceAttributeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceAttributeRequest.java new file mode 100644 index 0000000000..368b3c5db2 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceAttributeRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeInstanceAttributeRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceId; + public DescribeInstanceAttributeRequest() { + super("Ecs", "2014-05-26", "DescribeInstanceAttribute", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + @Override + public Class getResponseClass() { + return DescribeInstanceAttributeResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceAttributeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceAttributeResponse.java new file mode 100644 index 0000000000..9e4b90c1b4 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceAttributeResponse.java @@ -0,0 +1,484 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeInstanceAttributeResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeInstanceAttributeResponse extends AcsResponse { + + private String status; + + private String serialNumber; + + private String creationTime; + + private String requestId; + + private String description; + + private String instanceName; + + private String instanceNetworkType; + + private Integer memory; + + private String imageId; + + private String clusterId; + + private String vlanId; + + private String stoppedMode; + + private String hostName; + + private String instanceId; + + private String instanceType; + + private Integer internetMaxBandwidthIn; + + private Integer internetMaxBandwidthOut; + + private String regionId; + + private String instanceChargeType; + + private String ioOptimized; + + private Integer cpu; + + private String expiredTime; + + private String zoneId; + + private String internetChargeType; + + private String creditSpecification; + + private Boolean enableJumboFrame; + + private List operationLocks; + + private List securityGroupIds; + + private List publicIpAddress; + + private List innerIpAddress; + + private VpcAttributes vpcAttributes; + + private EipAddress eipAddress; + + private DedicatedHostAttribute dedicatedHostAttribute; + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getSerialNumber() { + return this.serialNumber; + } + + public void setSerialNumber(String serialNumber) { + this.serialNumber = serialNumber; + } + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getInstanceName() { + return this.instanceName; + } + + public void setInstanceName(String instanceName) { + this.instanceName = instanceName; + } + + public String getInstanceNetworkType() { + return this.instanceNetworkType; + } + + public void setInstanceNetworkType(String instanceNetworkType) { + this.instanceNetworkType = instanceNetworkType; + } + + public Integer getMemory() { + return this.memory; + } + + public void setMemory(Integer memory) { + this.memory = memory; + } + + public String getImageId() { + return this.imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public String getClusterId() { + return this.clusterId; + } + + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + } + + public String getVlanId() { + return this.vlanId; + } + + public void setVlanId(String vlanId) { + this.vlanId = vlanId; + } + + public String getStoppedMode() { + return this.stoppedMode; + } + + public void setStoppedMode(String stoppedMode) { + this.stoppedMode = stoppedMode; + } + + public String getHostName() { + return this.hostName; + } + + public void setHostName(String hostName) { + this.hostName = hostName; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public Integer getInternetMaxBandwidthIn() { + return this.internetMaxBandwidthIn; + } + + public void setInternetMaxBandwidthIn(Integer internetMaxBandwidthIn) { + this.internetMaxBandwidthIn = internetMaxBandwidthIn; + } + + public Integer getInternetMaxBandwidthOut() { + return this.internetMaxBandwidthOut; + } + + public void setInternetMaxBandwidthOut(Integer internetMaxBandwidthOut) { + this.internetMaxBandwidthOut = internetMaxBandwidthOut; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public String getInstanceChargeType() { + return this.instanceChargeType; + } + + public void setInstanceChargeType(String instanceChargeType) { + this.instanceChargeType = instanceChargeType; + } + + public String getIoOptimized() { + return this.ioOptimized; + } + + public void setIoOptimized(String ioOptimized) { + this.ioOptimized = ioOptimized; + } + + public Integer getCpu() { + return this.cpu; + } + + public void setCpu(Integer cpu) { + this.cpu = cpu; + } + + public String getExpiredTime() { + return this.expiredTime; + } + + public void setExpiredTime(String expiredTime) { + this.expiredTime = expiredTime; + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + } + + public String getInternetChargeType() { + return this.internetChargeType; + } + + public void setInternetChargeType(String internetChargeType) { + this.internetChargeType = internetChargeType; + } + + public String getCreditSpecification() { + return this.creditSpecification; + } + + public void setCreditSpecification(String creditSpecification) { + this.creditSpecification = creditSpecification; + } + + public Boolean getEnableJumboFrame() { + return this.enableJumboFrame; + } + + public void setEnableJumboFrame(Boolean enableJumboFrame) { + this.enableJumboFrame = enableJumboFrame; + } + + public List getOperationLocks() { + return this.operationLocks; + } + + public void setOperationLocks(List operationLocks) { + this.operationLocks = operationLocks; + } + + public List getSecurityGroupIds() { + return this.securityGroupIds; + } + + public void setSecurityGroupIds(List securityGroupIds) { + this.securityGroupIds = securityGroupIds; + } + + public List getPublicIpAddress() { + return this.publicIpAddress; + } + + public void setPublicIpAddress(List publicIpAddress) { + this.publicIpAddress = publicIpAddress; + } + + public List getInnerIpAddress() { + return this.innerIpAddress; + } + + public void setInnerIpAddress(List innerIpAddress) { + this.innerIpAddress = innerIpAddress; + } + + public VpcAttributes getVpcAttributes() { + return this.vpcAttributes; + } + + public void setVpcAttributes(VpcAttributes vpcAttributes) { + this.vpcAttributes = vpcAttributes; + } + + public EipAddress getEipAddress() { + return this.eipAddress; + } + + public void setEipAddress(EipAddress eipAddress) { + this.eipAddress = eipAddress; + } + + public DedicatedHostAttribute getDedicatedHostAttribute() { + return this.dedicatedHostAttribute; + } + + public void setDedicatedHostAttribute(DedicatedHostAttribute dedicatedHostAttribute) { + this.dedicatedHostAttribute = dedicatedHostAttribute; + } + + public static class LockReason { + + private String lockReason; + + public String getLockReason() { + return this.lockReason; + } + + public void setLockReason(String lockReason) { + this.lockReason = lockReason; + } + } + + public static class VpcAttributes { + + private String vpcId; + + private String natIpAddress; + + private String vSwitchId; + + private List privateIpAddress; + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + public String getNatIpAddress() { + return this.natIpAddress; + } + + public void setNatIpAddress(String natIpAddress) { + this.natIpAddress = natIpAddress; + } + + public String getVSwitchId() { + return this.vSwitchId; + } + + public void setVSwitchId(String vSwitchId) { + this.vSwitchId = vSwitchId; + } + + public List getPrivateIpAddress() { + return this.privateIpAddress; + } + + public void setPrivateIpAddress(List privateIpAddress) { + this.privateIpAddress = privateIpAddress; + } + } + + public static class EipAddress { + + private String internetChargeType; + + private String ipAddress; + + private Integer bandwidth; + + private String allocationId; + + public String getInternetChargeType() { + return this.internetChargeType; + } + + public void setInternetChargeType(String internetChargeType) { + this.internetChargeType = internetChargeType; + } + + public String getIpAddress() { + return this.ipAddress; + } + + public void setIpAddress(String ipAddress) { + this.ipAddress = ipAddress; + } + + public Integer getBandwidth() { + return this.bandwidth; + } + + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public String getAllocationId() { + return this.allocationId; + } + + public void setAllocationId(String allocationId) { + this.allocationId = allocationId; + } + } + + public static class DedicatedHostAttribute { + + private String dedicatedHostName; + + private String dedicatedHostId; + + public String getDedicatedHostName() { + return this.dedicatedHostName; + } + + public void setDedicatedHostName(String dedicatedHostName) { + this.dedicatedHostName = dedicatedHostName; + } + + public String getDedicatedHostId() { + return this.dedicatedHostId; + } + + public void setDedicatedHostId(String dedicatedHostId) { + this.dedicatedHostId = dedicatedHostId; + } + } + + @Override + public DescribeInstanceAttributeResponse getInstance(UnmarshallerContext context) { + return DescribeInstanceAttributeResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceAutoRenewAttributeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceAutoRenewAttributeRequest.java new file mode 100644 index 0000000000..c8cebc714d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceAutoRenewAttributeRequest.java @@ -0,0 +1,145 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeInstanceAutoRenewAttributeRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String pageNumber; + + private String renewalStatus; + + private String pageSize; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceId; + public DescribeInstanceAutoRenewAttributeRequest() { + super("Ecs", "2014-05-26", "DescribeInstanceAutoRenewAttribute", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(String pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber); + } + } + + public String getRenewalStatus() { + return this.renewalStatus; + } + + public void setRenewalStatus(String renewalStatus) { + this.renewalStatus = renewalStatus; + if(renewalStatus != null){ + putQueryParameter("RenewalStatus", renewalStatus); + } + } + + public String getPageSize() { + return this.pageSize; + } + + public void setPageSize(String pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + @Override + public Class getResponseClass() { + return DescribeInstanceAutoRenewAttributeResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceAutoRenewAttributeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceAutoRenewAttributeResponse.java new file mode 100644 index 0000000000..e603dd2e4f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceAutoRenewAttributeResponse.java @@ -0,0 +1,135 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeInstanceAutoRenewAttributeResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeInstanceAutoRenewAttributeResponse extends AcsResponse { + + private String requestId; + + private Integer pageNumber; + + private Integer pageSize; + + private Integer totalCount; + + private List instanceRenewAttributes; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getInstanceRenewAttributes() { + return this.instanceRenewAttributes; + } + + public void setInstanceRenewAttributes(List instanceRenewAttributes) { + this.instanceRenewAttributes = instanceRenewAttributes; + } + + public static class InstanceRenewAttribute { + + private String periodUnit; + + private Integer duration; + + private String renewalStatus; + + private String instanceId; + + private Boolean autoRenewEnabled; + + public String getPeriodUnit() { + return this.periodUnit; + } + + public void setPeriodUnit(String periodUnit) { + this.periodUnit = periodUnit; + } + + public Integer getDuration() { + return this.duration; + } + + public void setDuration(Integer duration) { + this.duration = duration; + } + + public String getRenewalStatus() { + return this.renewalStatus; + } + + public void setRenewalStatus(String renewalStatus) { + this.renewalStatus = renewalStatus; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public Boolean getAutoRenewEnabled() { + return this.autoRenewEnabled; + } + + public void setAutoRenewEnabled(Boolean autoRenewEnabled) { + this.autoRenewEnabled = autoRenewEnabled; + } + } + + @Override + public DescribeInstanceAutoRenewAttributeResponse getInstance(UnmarshallerContext context) { + return DescribeInstanceAutoRenewAttributeResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceHistoryEventsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceHistoryEventsRequest.java new file mode 100644 index 0000000000..1d0a6729df --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceHistoryEventsRequest.java @@ -0,0 +1,349 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeInstanceHistoryEventsRequest extends RpcAcsRequest { + + + private List eventIds; + + private Long resourceOwnerId; + + private String eventCycleStatus; + + private Integer pageNumber; + + private String impactLevel; + + private String resourceGroupId; + + private Integer pageSize; + + private List instanceEventCycleStatuss; + + private List tags; + + private String eventPublishTimeEnd; + + private List resourceIds; + + private List instanceEventTypes; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String notBeforeStart; + + private Long ownerId; + + private String resourceType; + + private String eventPublishTimeStart; + + private String instanceId; + + private String notBeforeEnd; + + private String eventType; + public DescribeInstanceHistoryEventsRequest() { + super("Ecs", "2014-05-26", "DescribeInstanceHistoryEvents", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public List getEventIds() { + return this.eventIds; + } + + public void setEventIds(List eventIds) { + this.eventIds = eventIds; + if (eventIds != null) { + for (int i = 0; i < eventIds.size(); i++) { + putQueryParameter("EventId." + (i + 1) , eventIds.get(i)); + } + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getEventCycleStatus() { + return this.eventCycleStatus; + } + + public void setEventCycleStatus(String eventCycleStatus) { + this.eventCycleStatus = eventCycleStatus; + if(eventCycleStatus != null){ + putQueryParameter("EventCycleStatus", eventCycleStatus); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public String getImpactLevel() { + return this.impactLevel; + } + + public void setImpactLevel(String impactLevel) { + this.impactLevel = impactLevel; + if(impactLevel != null){ + putQueryParameter("ImpactLevel", impactLevel); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public List getInstanceEventCycleStatuss() { + return this.instanceEventCycleStatuss; + } + + public void setInstanceEventCycleStatuss(List instanceEventCycleStatuss) { + this.instanceEventCycleStatuss = instanceEventCycleStatuss; + if (instanceEventCycleStatuss != null) { + for (int i = 0; i < instanceEventCycleStatuss.size(); i++) { + putQueryParameter("InstanceEventCycleStatus." + (i + 1) , instanceEventCycleStatuss.get(i)); + } + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public String getEventPublishTimeEnd() { + return this.eventPublishTimeEnd; + } + + public void setEventPublishTimeEnd(String eventPublishTimeEnd) { + this.eventPublishTimeEnd = eventPublishTimeEnd; + if(eventPublishTimeEnd != null){ + putQueryParameter("EventPublishTime.End", eventPublishTimeEnd); + } + } + + public List getResourceIds() { + return this.resourceIds; + } + + public void setResourceIds(List resourceIds) { + this.resourceIds = resourceIds; + if (resourceIds != null) { + for (int i = 0; i < resourceIds.size(); i++) { + putQueryParameter("ResourceId." + (i + 1) , resourceIds.get(i)); + } + } + } + + public List getInstanceEventTypes() { + return this.instanceEventTypes; + } + + public void setInstanceEventTypes(List instanceEventTypes) { + this.instanceEventTypes = instanceEventTypes; + if (instanceEventTypes != null) { + for (int i = 0; i < instanceEventTypes.size(); i++) { + putQueryParameter("InstanceEventType." + (i + 1) , instanceEventTypes.get(i)); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getNotBeforeStart() { + return this.notBeforeStart; + } + + public void setNotBeforeStart(String notBeforeStart) { + this.notBeforeStart = notBeforeStart; + if(notBeforeStart != null){ + putQueryParameter("NotBefore.Start", notBeforeStart); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getResourceType() { + return this.resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + if(resourceType != null){ + putQueryParameter("ResourceType", resourceType); + } + } + + public String getEventPublishTimeStart() { + return this.eventPublishTimeStart; + } + + public void setEventPublishTimeStart(String eventPublishTimeStart) { + this.eventPublishTimeStart = eventPublishTimeStart; + if(eventPublishTimeStart != null){ + putQueryParameter("EventPublishTime.Start", eventPublishTimeStart); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public String getNotBeforeEnd() { + return this.notBeforeEnd; + } + + public void setNotBeforeEnd(String notBeforeEnd) { + this.notBeforeEnd = notBeforeEnd; + if(notBeforeEnd != null){ + putQueryParameter("NotBefore.End", notBeforeEnd); + } + } + + public String getEventType() { + return this.eventType; + } + + public void setEventType(String eventType) { + this.eventType = eventType; + if(eventType != null){ + putQueryParameter("EventType", eventType); + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return DescribeInstanceHistoryEventsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceHistoryEventsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceHistoryEventsResponse.java new file mode 100644 index 0000000000..f9128f85a0 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceHistoryEventsResponse.java @@ -0,0 +1,427 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeInstanceHistoryEventsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeInstanceHistoryEventsResponse extends AcsResponse { + + private Integer pageSize; + + private String requestId; + + private Integer pageNumber; + + private Integer totalCount; + + private List instanceSystemEventSet; + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getInstanceSystemEventSet() { + return this.instanceSystemEventSet; + } + + public void setInstanceSystemEventSet(List instanceSystemEventSet) { + this.instanceSystemEventSet = instanceSystemEventSet; + } + + public static class InstanceSystemEventType { + + private String eventId; + + private String eventPublishTime; + + private String eventFinishTime; + + private String resourceType; + + private String impactLevel; + + private String notBefore; + + private String instanceId; + + private String reason; + + private EventType eventType; + + private EventCycleStatus eventCycleStatus; + + private ExtendedAttribute extendedAttribute; + + public String getEventId() { + return this.eventId; + } + + public void setEventId(String eventId) { + this.eventId = eventId; + } + + public String getEventPublishTime() { + return this.eventPublishTime; + } + + public void setEventPublishTime(String eventPublishTime) { + this.eventPublishTime = eventPublishTime; + } + + public String getEventFinishTime() { + return this.eventFinishTime; + } + + public void setEventFinishTime(String eventFinishTime) { + this.eventFinishTime = eventFinishTime; + } + + public String getResourceType() { + return this.resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public String getImpactLevel() { + return this.impactLevel; + } + + public void setImpactLevel(String impactLevel) { + this.impactLevel = impactLevel; + } + + public String getNotBefore() { + return this.notBefore; + } + + public void setNotBefore(String notBefore) { + this.notBefore = notBefore; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getReason() { + return this.reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + + public EventType getEventType() { + return this.eventType; + } + + public void setEventType(EventType eventType) { + this.eventType = eventType; + } + + public EventCycleStatus getEventCycleStatus() { + return this.eventCycleStatus; + } + + public void setEventCycleStatus(EventCycleStatus eventCycleStatus) { + this.eventCycleStatus = eventCycleStatus; + } + + public ExtendedAttribute getExtendedAttribute() { + return this.extendedAttribute; + } + + public void setExtendedAttribute(ExtendedAttribute extendedAttribute) { + this.extendedAttribute = extendedAttribute; + } + + public static class EventType { + + private String name; + + private Integer code; + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public Integer getCode() { + return this.code; + } + + public void setCode(Integer code) { + this.code = code; + } + } + + public static class EventCycleStatus { + + private String name; + + private Integer code; + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public Integer getCode() { + return this.code; + } + + public void setCode(Integer code) { + this.code = code; + } + } + + public static class ExtendedAttribute { + + private String device; + + private String diskId; + + private String hostType; + + private String hostId; + + private String onlineRepairPolicy; + + private String rack; + + private String punishType; + + private String punishDomain; + + private String punishUrl; + + private String code; + + private String canAccept; + + private List inactiveDisks; + + private List migrationOptions; + + public String getDevice() { + return this.device; + } + + public void setDevice(String device) { + this.device = device; + } + + public String getDiskId() { + return this.diskId; + } + + public void setDiskId(String diskId) { + this.diskId = diskId; + } + + public String getHostType() { + return this.hostType; + } + + public void setHostType(String hostType) { + this.hostType = hostType; + } + + public String getHostId() { + return this.hostId; + } + + public void setHostId(String hostId) { + this.hostId = hostId; + } + + public String getOnlineRepairPolicy() { + return this.onlineRepairPolicy; + } + + public void setOnlineRepairPolicy(String onlineRepairPolicy) { + this.onlineRepairPolicy = onlineRepairPolicy; + } + + public String getRack() { + return this.rack; + } + + public void setRack(String rack) { + this.rack = rack; + } + + public String getPunishType() { + return this.punishType; + } + + public void setPunishType(String punishType) { + this.punishType = punishType; + } + + public String getPunishDomain() { + return this.punishDomain; + } + + public void setPunishDomain(String punishDomain) { + this.punishDomain = punishDomain; + } + + public String getPunishUrl() { + return this.punishUrl; + } + + public void setPunishUrl(String punishUrl) { + this.punishUrl = punishUrl; + } + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getCanAccept() { + return this.canAccept; + } + + public void setCanAccept(String canAccept) { + this.canAccept = canAccept; + } + + public List getInactiveDisks() { + return this.inactiveDisks; + } + + public void setInactiveDisks(List inactiveDisks) { + this.inactiveDisks = inactiveDisks; + } + + public List getMigrationOptions() { + return this.migrationOptions; + } + + public void setMigrationOptions(List migrationOptions) { + this.migrationOptions = migrationOptions; + } + + public static class InactiveDisk { + + private String creationTime; + + private String deviceSize; + + private String deviceCategory; + + private String deviceType; + + private String releaseTime; + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getDeviceSize() { + return this.deviceSize; + } + + public void setDeviceSize(String deviceSize) { + this.deviceSize = deviceSize; + } + + public String getDeviceCategory() { + return this.deviceCategory; + } + + public void setDeviceCategory(String deviceCategory) { + this.deviceCategory = deviceCategory; + } + + public String getDeviceType() { + return this.deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getReleaseTime() { + return this.releaseTime; + } + + public void setReleaseTime(String releaseTime) { + this.releaseTime = releaseTime; + } + } + } + } + + @Override + public DescribeInstanceHistoryEventsResponse getInstance(UnmarshallerContext context) { + return DescribeInstanceHistoryEventsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceMaintenanceAttributesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceMaintenanceAttributesRequest.java similarity index 94% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceMaintenanceAttributesRequest.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceMaintenanceAttributesRequest.java index 7d965ae1c5..69e73b9ca4 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceMaintenanceAttributesRequest.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceMaintenanceAttributesRequest.java @@ -12,7 +12,7 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.RpcAcsRequest; import java.util.List; @@ -40,7 +40,7 @@ public class DescribeInstanceMaintenanceAttributesRequest extends RpcAcsRequest< private List instanceIds; public DescribeInstanceMaintenanceAttributesRequest() { - super("Ecs", "2016-03-14", "DescribeInstanceMaintenanceAttributes", "ecs"); + super("Ecs", "2014-05-26", "DescribeInstanceMaintenanceAttributes", "ecs"); setMethod(MethodType.POST); try { com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceMaintenanceAttributesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceMaintenanceAttributesResponse.java similarity index 88% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceMaintenanceAttributesResponse.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceMaintenanceAttributesResponse.java index 34ae9de4e8..c4ad4855dd 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceMaintenanceAttributesResponse.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceMaintenanceAttributesResponse.java @@ -12,11 +12,11 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import java.util.List; import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeInstanceMaintenanceAttributesResponseUnmarshaller; +import com.aliyuncs.ecs.transform.v20140526.DescribeInstanceMaintenanceAttributesResponseUnmarshaller; import com.aliyuncs.transform.UnmarshallerContext; /** @@ -77,7 +77,7 @@ public void setMaintenanceAttributes(List maintenanceAttri public static class MaintenanceAttribute { - private Boolean liveMigration; + private Boolean notifyOnMaintenance; private String instanceId; @@ -85,12 +85,12 @@ public static class MaintenanceAttribute { private ActionOnMaintenance actionOnMaintenance; - public Boolean getLiveMigration() { - return this.liveMigration; + public Boolean getNotifyOnMaintenance() { + return this.notifyOnMaintenance; } - public void setLiveMigration(Boolean liveMigration) { - this.liveMigration = liveMigration; + public void setNotifyOnMaintenance(Boolean notifyOnMaintenance) { + this.notifyOnMaintenance = notifyOnMaintenance; } public String getInstanceId() { diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceModificationPriceRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceModificationPriceRequest.java similarity index 95% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceModificationPriceRequest.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceModificationPriceRequest.java index 04b555690e..1b9844724b 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceModificationPriceRequest.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceModificationPriceRequest.java @@ -12,7 +12,7 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.RpcAcsRequest; import java.util.List; @@ -42,7 +42,7 @@ public class DescribeInstanceModificationPriceRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String startTime; + + private Integer period; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String endTime; + + private Long ownerId; + + private String instanceId; + public DescribeInstanceMonitorDataRequest() { + super("Ecs", "2014-05-26", "DescribeInstanceMonitorData", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getStartTime() { + return this.startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + if(startTime != null){ + putQueryParameter("StartTime", startTime); + } + } + + public Integer getPeriod() { + return this.period; + } + + public void setPeriod(Integer period) { + this.period = period; + if(period != null){ + putQueryParameter("Period", period.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getEndTime() { + return this.endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + if(endTime != null){ + putQueryParameter("EndTime", endTime); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + @Override + public Class getResponseClass() { + return DescribeInstanceMonitorDataResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceMonitorDataResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceMonitorDataResponse.java new file mode 100644 index 0000000000..e5dd7b447d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceMonitorDataResponse.java @@ -0,0 +1,225 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeInstanceMonitorDataResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeInstanceMonitorDataResponse extends AcsResponse { + + private String requestId; + + private List monitorData; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getMonitorData() { + return this.monitorData; + } + + public void setMonitorData(List monitorData) { + this.monitorData = monitorData; + } + + public static class InstanceMonitorData { + + private Float cPUCreditBalance; + + private Integer bPSRead; + + private Integer internetTX; + + private Integer cPU; + + private Float cPUCreditUsage; + + private Integer iOPSWrite; + + private Integer intranetTX; + + private String instanceId; + + private Integer bPSWrite; + + private Float cPUNotpaidSurplusCreditUsage; + + private Float cPUAdvanceCreditBalance; + + private Integer iOPSRead; + + private Integer internetBandwidth; + + private Integer internetRX; + + private String timeStamp; + + private Integer intranetRX; + + private Integer intranetBandwidth; + + public Float getCPUCreditBalance() { + return this.cPUCreditBalance; + } + + public void setCPUCreditBalance(Float cPUCreditBalance) { + this.cPUCreditBalance = cPUCreditBalance; + } + + public Integer getBPSRead() { + return this.bPSRead; + } + + public void setBPSRead(Integer bPSRead) { + this.bPSRead = bPSRead; + } + + public Integer getInternetTX() { + return this.internetTX; + } + + public void setInternetTX(Integer internetTX) { + this.internetTX = internetTX; + } + + public Integer getCPU() { + return this.cPU; + } + + public void setCPU(Integer cPU) { + this.cPU = cPU; + } + + public Float getCPUCreditUsage() { + return this.cPUCreditUsage; + } + + public void setCPUCreditUsage(Float cPUCreditUsage) { + this.cPUCreditUsage = cPUCreditUsage; + } + + public Integer getIOPSWrite() { + return this.iOPSWrite; + } + + public void setIOPSWrite(Integer iOPSWrite) { + this.iOPSWrite = iOPSWrite; + } + + public Integer getIntranetTX() { + return this.intranetTX; + } + + public void setIntranetTX(Integer intranetTX) { + this.intranetTX = intranetTX; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public Integer getBPSWrite() { + return this.bPSWrite; + } + + public void setBPSWrite(Integer bPSWrite) { + this.bPSWrite = bPSWrite; + } + + public Float getCPUNotpaidSurplusCreditUsage() { + return this.cPUNotpaidSurplusCreditUsage; + } + + public void setCPUNotpaidSurplusCreditUsage(Float cPUNotpaidSurplusCreditUsage) { + this.cPUNotpaidSurplusCreditUsage = cPUNotpaidSurplusCreditUsage; + } + + public Float getCPUAdvanceCreditBalance() { + return this.cPUAdvanceCreditBalance; + } + + public void setCPUAdvanceCreditBalance(Float cPUAdvanceCreditBalance) { + this.cPUAdvanceCreditBalance = cPUAdvanceCreditBalance; + } + + public Integer getIOPSRead() { + return this.iOPSRead; + } + + public void setIOPSRead(Integer iOPSRead) { + this.iOPSRead = iOPSRead; + } + + public Integer getInternetBandwidth() { + return this.internetBandwidth; + } + + public void setInternetBandwidth(Integer internetBandwidth) { + this.internetBandwidth = internetBandwidth; + } + + public Integer getInternetRX() { + return this.internetRX; + } + + public void setInternetRX(Integer internetRX) { + this.internetRX = internetRX; + } + + public String getTimeStamp() { + return this.timeStamp; + } + + public void setTimeStamp(String timeStamp) { + this.timeStamp = timeStamp; + } + + public Integer getIntranetRX() { + return this.intranetRX; + } + + public void setIntranetRX(Integer intranetRX) { + this.intranetRX = intranetRX; + } + + public Integer getIntranetBandwidth() { + return this.intranetBandwidth; + } + + public void setIntranetBandwidth(Integer intranetBandwidth) { + this.intranetBandwidth = intranetBandwidth; + } + } + + @Override + public DescribeInstanceMonitorDataResponse getInstance(UnmarshallerContext context) { + return DescribeInstanceMonitorDataResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceRamRoleRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceRamRoleRequest.java new file mode 100644 index 0000000000..eea444793e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceRamRoleRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeInstanceRamRoleRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Integer pageNumber; + + private Integer pageSize; + + private String resourceOwnerAccount; + + private String ramRoleName; + + private Long ownerId; + + private String instanceIds; + public DescribeInstanceRamRoleRequest() { + super("Ecs", "2014-05-26", "DescribeInstanceRamRole", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getRamRoleName() { + return this.ramRoleName; + } + + public void setRamRoleName(String ramRoleName) { + this.ramRoleName = ramRoleName; + if(ramRoleName != null){ + putQueryParameter("RamRoleName", ramRoleName); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceIds() { + return this.instanceIds; + } + + public void setInstanceIds(String instanceIds) { + this.instanceIds = instanceIds; + if(instanceIds != null){ + putQueryParameter("InstanceIds", instanceIds); + } + } + + @Override + public Class getResponseClass() { + return DescribeInstanceRamRoleResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceRamRoleResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceRamRoleResponse.java new file mode 100644 index 0000000000..aab749121e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceRamRoleResponse.java @@ -0,0 +1,95 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeInstanceRamRoleResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeInstanceRamRoleResponse extends AcsResponse { + + private String requestId; + + private Integer totalCount; + + private String regionId; + + private List instanceRamRoleSets; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public List getInstanceRamRoleSets() { + return this.instanceRamRoleSets; + } + + public void setInstanceRamRoleSets(List instanceRamRoleSets) { + this.instanceRamRoleSets = instanceRamRoleSets; + } + + public static class InstanceRamRoleSet { + + private String ramRoleName; + + private String instanceId; + + public String getRamRoleName() { + return this.ramRoleName; + } + + public void setRamRoleName(String ramRoleName) { + this.ramRoleName = ramRoleName; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + } + + @Override + public DescribeInstanceRamRoleResponse getInstance(UnmarshallerContext context) { + return DescribeInstanceRamRoleResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceStatusRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceStatusRequest.java new file mode 100644 index 0000000000..16badad1a5 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceStatusRequest.java @@ -0,0 +1,161 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeInstanceStatusRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Integer pageNumber; + + private Integer pageSize; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String clusterId; + + private Long ownerId; + + private List instanceIds; + + private String zoneId; + public DescribeInstanceStatusRequest() { + super("Ecs", "2014-05-26", "DescribeInstanceStatus", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getClusterId() { + return this.clusterId; + } + + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + if(clusterId != null){ + putQueryParameter("ClusterId", clusterId); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getInstanceIds() { + return this.instanceIds; + } + + public void setInstanceIds(List instanceIds) { + this.instanceIds = instanceIds; + if (instanceIds != null) { + for (int i = 0; i < instanceIds.size(); i++) { + putQueryParameter("InstanceId." + (i + 1) , instanceIds.get(i)); + } + } + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + if(zoneId != null){ + putQueryParameter("ZoneId", zoneId); + } + } + + @Override + public Class getResponseClass() { + return DescribeInstanceStatusResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceStatusResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceStatusResponse.java new file mode 100644 index 0000000000..247434b6b7 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceStatusResponse.java @@ -0,0 +1,105 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeInstanceStatusResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeInstanceStatusResponse extends AcsResponse { + + private Integer pageSize; + + private String requestId; + + private Integer pageNumber; + + private Integer totalCount; + + private List instanceStatuses; + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getInstanceStatuses() { + return this.instanceStatuses; + } + + public void setInstanceStatuses(List instanceStatuses) { + this.instanceStatuses = instanceStatuses; + } + + public static class InstanceStatus { + + private String status; + + private String instanceId; + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + } + + @Override + public DescribeInstanceStatusResponse getInstance(UnmarshallerContext context) { + return DescribeInstanceStatusResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceTopologyRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceTopologyRequest.java new file mode 100644 index 0000000000..78413b9443 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceTopologyRequest.java @@ -0,0 +1,93 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeInstanceTopologyRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private Long ownerId; + + private String instanceIds; + public DescribeInstanceTopologyRequest() { + super("Ecs", "2014-05-26", "DescribeInstanceTopology", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceIds() { + return this.instanceIds; + } + + public void setInstanceIds(String instanceIds) { + this.instanceIds = instanceIds; + if(instanceIds != null){ + putQueryParameter("InstanceIds", instanceIds); + } + } + + @Override + public Class getResponseClass() { + return DescribeInstanceTopologyResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceTopologyResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceTopologyResponse.java new file mode 100644 index 0000000000..6461113998 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceTopologyResponse.java @@ -0,0 +1,75 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeInstanceTopologyResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeInstanceTopologyResponse extends AcsResponse { + + private String requestId; + + private List topologys; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getTopologys() { + return this.topologys; + } + + public void setTopologys(List topologys) { + this.topologys = topologys; + } + + public static class Topology { + + private String hostId; + + private String instanceId; + + public String getHostId() { + return this.hostId; + } + + public void setHostId(String hostId) { + this.hostId = hostId; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + } + + @Override + public DescribeInstanceTopologyResponse getInstance(UnmarshallerContext context) { + return DescribeInstanceTopologyResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceTypeFamiliesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceTypeFamiliesRequest.java new file mode 100644 index 0000000000..685fa51ffe --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceTypeFamiliesRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeInstanceTypeFamiliesRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String generation; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public DescribeInstanceTypeFamiliesRequest() { + super("Ecs", "2014-05-26", "DescribeInstanceTypeFamilies", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getGeneration() { + return this.generation; + } + + public void setGeneration(String generation) { + this.generation = generation; + if(generation != null){ + putQueryParameter("Generation", generation); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DescribeInstanceTypeFamiliesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceTypeFamiliesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceTypeFamiliesResponse.java new file mode 100644 index 0000000000..092883119d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceTypeFamiliesResponse.java @@ -0,0 +1,75 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeInstanceTypeFamiliesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeInstanceTypeFamiliesResponse extends AcsResponse { + + private String requestId; + + private List instanceTypeFamilies; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getInstanceTypeFamilies() { + return this.instanceTypeFamilies; + } + + public void setInstanceTypeFamilies(List instanceTypeFamilies) { + this.instanceTypeFamilies = instanceTypeFamilies; + } + + public static class InstanceTypeFamily { + + private String generation; + + private String instanceTypeFamilyId; + + public String getGeneration() { + return this.generation; + } + + public void setGeneration(String generation) { + this.generation = generation; + } + + public String getInstanceTypeFamilyId() { + return this.instanceTypeFamilyId; + } + + public void setInstanceTypeFamilyId(String instanceTypeFamilyId) { + this.instanceTypeFamilyId = instanceTypeFamilyId; + } + } + + @Override + public DescribeInstanceTypeFamiliesResponse getInstance(UnmarshallerContext context) { + return DescribeInstanceTypeFamiliesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceTypesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceTypesRequest.java new file mode 100644 index 0000000000..9f62854672 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceTypesRequest.java @@ -0,0 +1,577 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeInstanceTypesRequest extends RpcAcsRequest { + + + private String gPUSpec; + + private Long resourceOwnerId; + + private Integer maximumCpuCoreCount; + + private Integer maximumGPUAmount; + + private String localStorageCategory; + + private Float maximumMemorySize; + + private String instanceCategory; + + private Long minimumInstancePpsTx; + + private Integer minimumCpuCoreCount; + + private Integer minimumPrimaryEniQueueNumber; + + private Integer minimumBaselineCredit; + + private Integer minimumSecondaryEniQueueNumber; + + private Integer minimumInstanceBandwidthTx; + + private Integer minimumGPUAmount; + + private Float maximumCpuSpeedFrequency; + + private String cpuArchitecture; + + private Long ownerId; + + private Float minimumMemorySize; + + private Integer minimumEniQuantity; + + private String instanceFamilyLevel; + + private Integer minimumQueuePairNumber; + + private Integer minimumLocalStorageAmount; + + private Long maxResults; + + private String physicalProcessorModel; + + private Float maximumCpuTurboFrequency; + + private List instanceTypess; + + private Long minimumInstancePpsRx; + + private Integer minimumEniIpv6AddressQuantity; + + private Integer minimumEriQuantity; + + private Integer minimumDiskQuantity; + + private Float minimumCpuTurboFrequency; + + private String nextToken; + + private Integer minimumInstanceBandwidthRx; + + private Float minimumCpuSpeedFrequency; + + private String nvmeSupport; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Integer minimumInitialCredit; + + private String instanceTypeFamily; + + private Integer minimumEniPrivateIpAddressQuantity; + + private Long minimumLocalStorageCapacity; + public DescribeInstanceTypesRequest() { + super("Ecs", "2014-05-26", "DescribeInstanceTypes", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getGPUSpec() { + return this.gPUSpec; + } + + public void setGPUSpec(String gPUSpec) { + this.gPUSpec = gPUSpec; + if(gPUSpec != null){ + putQueryParameter("GPUSpec", gPUSpec); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Integer getMaximumCpuCoreCount() { + return this.maximumCpuCoreCount; + } + + public void setMaximumCpuCoreCount(Integer maximumCpuCoreCount) { + this.maximumCpuCoreCount = maximumCpuCoreCount; + if(maximumCpuCoreCount != null){ + putQueryParameter("MaximumCpuCoreCount", maximumCpuCoreCount.toString()); + } + } + + public Integer getMaximumGPUAmount() { + return this.maximumGPUAmount; + } + + public void setMaximumGPUAmount(Integer maximumGPUAmount) { + this.maximumGPUAmount = maximumGPUAmount; + if(maximumGPUAmount != null){ + putQueryParameter("MaximumGPUAmount", maximumGPUAmount.toString()); + } + } + + public String getLocalStorageCategory() { + return this.localStorageCategory; + } + + public void setLocalStorageCategory(String localStorageCategory) { + this.localStorageCategory = localStorageCategory; + if(localStorageCategory != null){ + putQueryParameter("LocalStorageCategory", localStorageCategory); + } + } + + public Float getMaximumMemorySize() { + return this.maximumMemorySize; + } + + public void setMaximumMemorySize(Float maximumMemorySize) { + this.maximumMemorySize = maximumMemorySize; + if(maximumMemorySize != null){ + putQueryParameter("MaximumMemorySize", maximumMemorySize.toString()); + } + } + + public String getInstanceCategory() { + return this.instanceCategory; + } + + public void setInstanceCategory(String instanceCategory) { + this.instanceCategory = instanceCategory; + if(instanceCategory != null){ + putQueryParameter("InstanceCategory", instanceCategory); + } + } + + public Long getMinimumInstancePpsTx() { + return this.minimumInstancePpsTx; + } + + public void setMinimumInstancePpsTx(Long minimumInstancePpsTx) { + this.minimumInstancePpsTx = minimumInstancePpsTx; + if(minimumInstancePpsTx != null){ + putQueryParameter("MinimumInstancePpsTx", minimumInstancePpsTx.toString()); + } + } + + public Integer getMinimumCpuCoreCount() { + return this.minimumCpuCoreCount; + } + + public void setMinimumCpuCoreCount(Integer minimumCpuCoreCount) { + this.minimumCpuCoreCount = minimumCpuCoreCount; + if(minimumCpuCoreCount != null){ + putQueryParameter("MinimumCpuCoreCount", minimumCpuCoreCount.toString()); + } + } + + public Integer getMinimumPrimaryEniQueueNumber() { + return this.minimumPrimaryEniQueueNumber; + } + + public void setMinimumPrimaryEniQueueNumber(Integer minimumPrimaryEniQueueNumber) { + this.minimumPrimaryEniQueueNumber = minimumPrimaryEniQueueNumber; + if(minimumPrimaryEniQueueNumber != null){ + putQueryParameter("MinimumPrimaryEniQueueNumber", minimumPrimaryEniQueueNumber.toString()); + } + } + + public Integer getMinimumBaselineCredit() { + return this.minimumBaselineCredit; + } + + public void setMinimumBaselineCredit(Integer minimumBaselineCredit) { + this.minimumBaselineCredit = minimumBaselineCredit; + if(minimumBaselineCredit != null){ + putQueryParameter("MinimumBaselineCredit", minimumBaselineCredit.toString()); + } + } + + public Integer getMinimumSecondaryEniQueueNumber() { + return this.minimumSecondaryEniQueueNumber; + } + + public void setMinimumSecondaryEniQueueNumber(Integer minimumSecondaryEniQueueNumber) { + this.minimumSecondaryEniQueueNumber = minimumSecondaryEniQueueNumber; + if(minimumSecondaryEniQueueNumber != null){ + putQueryParameter("MinimumSecondaryEniQueueNumber", minimumSecondaryEniQueueNumber.toString()); + } + } + + public Integer getMinimumInstanceBandwidthTx() { + return this.minimumInstanceBandwidthTx; + } + + public void setMinimumInstanceBandwidthTx(Integer minimumInstanceBandwidthTx) { + this.minimumInstanceBandwidthTx = minimumInstanceBandwidthTx; + if(minimumInstanceBandwidthTx != null){ + putQueryParameter("MinimumInstanceBandwidthTx", minimumInstanceBandwidthTx.toString()); + } + } + + public Integer getMinimumGPUAmount() { + return this.minimumGPUAmount; + } + + public void setMinimumGPUAmount(Integer minimumGPUAmount) { + this.minimumGPUAmount = minimumGPUAmount; + if(minimumGPUAmount != null){ + putQueryParameter("MinimumGPUAmount", minimumGPUAmount.toString()); + } + } + + public Float getMaximumCpuSpeedFrequency() { + return this.maximumCpuSpeedFrequency; + } + + public void setMaximumCpuSpeedFrequency(Float maximumCpuSpeedFrequency) { + this.maximumCpuSpeedFrequency = maximumCpuSpeedFrequency; + if(maximumCpuSpeedFrequency != null){ + putQueryParameter("MaximumCpuSpeedFrequency", maximumCpuSpeedFrequency.toString()); + } + } + + public String getCpuArchitecture() { + return this.cpuArchitecture; + } + + public void setCpuArchitecture(String cpuArchitecture) { + this.cpuArchitecture = cpuArchitecture; + if(cpuArchitecture != null){ + putQueryParameter("CpuArchitecture", cpuArchitecture); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public Float getMinimumMemorySize() { + return this.minimumMemorySize; + } + + public void setMinimumMemorySize(Float minimumMemorySize) { + this.minimumMemorySize = minimumMemorySize; + if(minimumMemorySize != null){ + putQueryParameter("MinimumMemorySize", minimumMemorySize.toString()); + } + } + + public Integer getMinimumEniQuantity() { + return this.minimumEniQuantity; + } + + public void setMinimumEniQuantity(Integer minimumEniQuantity) { + this.minimumEniQuantity = minimumEniQuantity; + if(minimumEniQuantity != null){ + putQueryParameter("MinimumEniQuantity", minimumEniQuantity.toString()); + } + } + + public String getInstanceFamilyLevel() { + return this.instanceFamilyLevel; + } + + public void setInstanceFamilyLevel(String instanceFamilyLevel) { + this.instanceFamilyLevel = instanceFamilyLevel; + if(instanceFamilyLevel != null){ + putQueryParameter("InstanceFamilyLevel", instanceFamilyLevel); + } + } + + public Integer getMinimumQueuePairNumber() { + return this.minimumQueuePairNumber; + } + + public void setMinimumQueuePairNumber(Integer minimumQueuePairNumber) { + this.minimumQueuePairNumber = minimumQueuePairNumber; + if(minimumQueuePairNumber != null){ + putQueryParameter("MinimumQueuePairNumber", minimumQueuePairNumber.toString()); + } + } + + public Integer getMinimumLocalStorageAmount() { + return this.minimumLocalStorageAmount; + } + + public void setMinimumLocalStorageAmount(Integer minimumLocalStorageAmount) { + this.minimumLocalStorageAmount = minimumLocalStorageAmount; + if(minimumLocalStorageAmount != null){ + putQueryParameter("MinimumLocalStorageAmount", minimumLocalStorageAmount.toString()); + } + } + + public Long getMaxResults() { + return this.maxResults; + } + + public void setMaxResults(Long maxResults) { + this.maxResults = maxResults; + if(maxResults != null){ + putQueryParameter("MaxResults", maxResults.toString()); + } + } + + public String getPhysicalProcessorModel() { + return this.physicalProcessorModel; + } + + public void setPhysicalProcessorModel(String physicalProcessorModel) { + this.physicalProcessorModel = physicalProcessorModel; + if(physicalProcessorModel != null){ + putQueryParameter("PhysicalProcessorModel", physicalProcessorModel); + } + } + + public Float getMaximumCpuTurboFrequency() { + return this.maximumCpuTurboFrequency; + } + + public void setMaximumCpuTurboFrequency(Float maximumCpuTurboFrequency) { + this.maximumCpuTurboFrequency = maximumCpuTurboFrequency; + if(maximumCpuTurboFrequency != null){ + putQueryParameter("MaximumCpuTurboFrequency", maximumCpuTurboFrequency.toString()); + } + } + + public List getInstanceTypess() { + return this.instanceTypess; + } + + public void setInstanceTypess(List instanceTypess) { + this.instanceTypess = instanceTypess; + if (instanceTypess != null) { + for (int i = 0; i < instanceTypess.size(); i++) { + putQueryParameter("InstanceTypes." + (i + 1) , instanceTypess.get(i)); + } + } + } + + public Long getMinimumInstancePpsRx() { + return this.minimumInstancePpsRx; + } + + public void setMinimumInstancePpsRx(Long minimumInstancePpsRx) { + this.minimumInstancePpsRx = minimumInstancePpsRx; + if(minimumInstancePpsRx != null){ + putQueryParameter("MinimumInstancePpsRx", minimumInstancePpsRx.toString()); + } + } + + public Integer getMinimumEniIpv6AddressQuantity() { + return this.minimumEniIpv6AddressQuantity; + } + + public void setMinimumEniIpv6AddressQuantity(Integer minimumEniIpv6AddressQuantity) { + this.minimumEniIpv6AddressQuantity = minimumEniIpv6AddressQuantity; + if(minimumEniIpv6AddressQuantity != null){ + putQueryParameter("MinimumEniIpv6AddressQuantity", minimumEniIpv6AddressQuantity.toString()); + } + } + + public Integer getMinimumEriQuantity() { + return this.minimumEriQuantity; + } + + public void setMinimumEriQuantity(Integer minimumEriQuantity) { + this.minimumEriQuantity = minimumEriQuantity; + if(minimumEriQuantity != null){ + putQueryParameter("MinimumEriQuantity", minimumEriQuantity.toString()); + } + } + + public Integer getMinimumDiskQuantity() { + return this.minimumDiskQuantity; + } + + public void setMinimumDiskQuantity(Integer minimumDiskQuantity) { + this.minimumDiskQuantity = minimumDiskQuantity; + if(minimumDiskQuantity != null){ + putQueryParameter("MinimumDiskQuantity", minimumDiskQuantity.toString()); + } + } + + public Float getMinimumCpuTurboFrequency() { + return this.minimumCpuTurboFrequency; + } + + public void setMinimumCpuTurboFrequency(Float minimumCpuTurboFrequency) { + this.minimumCpuTurboFrequency = minimumCpuTurboFrequency; + if(minimumCpuTurboFrequency != null){ + putQueryParameter("MinimumCpuTurboFrequency", minimumCpuTurboFrequency.toString()); + } + } + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + if(nextToken != null){ + putQueryParameter("NextToken", nextToken); + } + } + + public Integer getMinimumInstanceBandwidthRx() { + return this.minimumInstanceBandwidthRx; + } + + public void setMinimumInstanceBandwidthRx(Integer minimumInstanceBandwidthRx) { + this.minimumInstanceBandwidthRx = minimumInstanceBandwidthRx; + if(minimumInstanceBandwidthRx != null){ + putQueryParameter("MinimumInstanceBandwidthRx", minimumInstanceBandwidthRx.toString()); + } + } + + public Float getMinimumCpuSpeedFrequency() { + return this.minimumCpuSpeedFrequency; + } + + public void setMinimumCpuSpeedFrequency(Float minimumCpuSpeedFrequency) { + this.minimumCpuSpeedFrequency = minimumCpuSpeedFrequency; + if(minimumCpuSpeedFrequency != null){ + putQueryParameter("MinimumCpuSpeedFrequency", minimumCpuSpeedFrequency.toString()); + } + } + + public String getNvmeSupport() { + return this.nvmeSupport; + } + + public void setNvmeSupport(String nvmeSupport) { + this.nvmeSupport = nvmeSupport; + if(nvmeSupport != null){ + putQueryParameter("NvmeSupport", nvmeSupport); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Integer getMinimumInitialCredit() { + return this.minimumInitialCredit; + } + + public void setMinimumInitialCredit(Integer minimumInitialCredit) { + this.minimumInitialCredit = minimumInitialCredit; + if(minimumInitialCredit != null){ + putQueryParameter("MinimumInitialCredit", minimumInitialCredit.toString()); + } + } + + public String getInstanceTypeFamily() { + return this.instanceTypeFamily; + } + + public void setInstanceTypeFamily(String instanceTypeFamily) { + this.instanceTypeFamily = instanceTypeFamily; + if(instanceTypeFamily != null){ + putQueryParameter("InstanceTypeFamily", instanceTypeFamily); + } + } + + public Integer getMinimumEniPrivateIpAddressQuantity() { + return this.minimumEniPrivateIpAddressQuantity; + } + + public void setMinimumEniPrivateIpAddressQuantity(Integer minimumEniPrivateIpAddressQuantity) { + this.minimumEniPrivateIpAddressQuantity = minimumEniPrivateIpAddressQuantity; + if(minimumEniPrivateIpAddressQuantity != null){ + putQueryParameter("MinimumEniPrivateIpAddressQuantity", minimumEniPrivateIpAddressQuantity.toString()); + } + } + + public Long getMinimumLocalStorageCapacity() { + return this.minimumLocalStorageCapacity; + } + + public void setMinimumLocalStorageCapacity(Long minimumLocalStorageCapacity) { + this.minimumLocalStorageCapacity = minimumLocalStorageCapacity; + if(minimumLocalStorageCapacity != null){ + putQueryParameter("MinimumLocalStorageCapacity", minimumLocalStorageCapacity.toString()); + } + } + + @Override + public Class getResponseClass() { + return DescribeInstanceTypesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceTypesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceTypesResponse.java new file mode 100644 index 0000000000..791ac1384f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceTypesResponse.java @@ -0,0 +1,458 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeInstanceTypesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeInstanceTypesResponse extends AcsResponse { + + private String requestId; + + private String nextToken; + + private List instanceTypes; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + public List getInstanceTypes() { + return this.instanceTypes; + } + + public void setInstanceTypes(List instanceTypes) { + this.instanceTypes = instanceTypes; + } + + public static class InstanceType { + + private Integer eniTotalQuantity; + + private String localStorageCategory; + + private Integer primaryEniQueueNumber; + + private Float memorySize; + + private Long localStorageCapacity; + + private String instanceFamilyLevel; + + private Long instancePpsRx; + + private Integer eniIpv6AddressQuantity; + + private Integer maximumQueueNumberPerEni; + + private String instanceTypeId; + + private Integer instanceBandwidthRx; + + private Integer secondaryEniQueueNumber; + + private String gPUSpec; + + private Integer instanceBandwidthTx; + + private Integer queuePairNumber; + + private Integer eriQuantity; + + private Integer gPUAmount; + + private Integer totalEniQueueQuantity; + + private String nvmeSupport; + + private Integer diskQuantity; + + private Integer initialCredit; + + private Integer localStorageAmount; + + private Integer baselineCredit; + + private Long instancePpsTx; + + private Integer eniPrivateIpAddressQuantity; + + private Integer cpuCoreCount; + + private String instanceTypeFamily; + + private Integer eniQuantity; + + private Boolean eniTrunkSupported; + + private Float cpuSpeedFrequency; + + private Float cpuTurboFrequency; + + private String physicalProcessorModel; + + private Boolean networkEncryptionSupport; + + private String instanceCategory; + + private String cpuArchitecture; + + private Float gPUMemorySize; + + private Integer networkCardQuantity; + + private List networkCards; + + public Integer getEniTotalQuantity() { + return this.eniTotalQuantity; + } + + public void setEniTotalQuantity(Integer eniTotalQuantity) { + this.eniTotalQuantity = eniTotalQuantity; + } + + public String getLocalStorageCategory() { + return this.localStorageCategory; + } + + public void setLocalStorageCategory(String localStorageCategory) { + this.localStorageCategory = localStorageCategory; + } + + public Integer getPrimaryEniQueueNumber() { + return this.primaryEniQueueNumber; + } + + public void setPrimaryEniQueueNumber(Integer primaryEniQueueNumber) { + this.primaryEniQueueNumber = primaryEniQueueNumber; + } + + public Float getMemorySize() { + return this.memorySize; + } + + public void setMemorySize(Float memorySize) { + this.memorySize = memorySize; + } + + public Long getLocalStorageCapacity() { + return this.localStorageCapacity; + } + + public void setLocalStorageCapacity(Long localStorageCapacity) { + this.localStorageCapacity = localStorageCapacity; + } + + public String getInstanceFamilyLevel() { + return this.instanceFamilyLevel; + } + + public void setInstanceFamilyLevel(String instanceFamilyLevel) { + this.instanceFamilyLevel = instanceFamilyLevel; + } + + public Long getInstancePpsRx() { + return this.instancePpsRx; + } + + public void setInstancePpsRx(Long instancePpsRx) { + this.instancePpsRx = instancePpsRx; + } + + public Integer getEniIpv6AddressQuantity() { + return this.eniIpv6AddressQuantity; + } + + public void setEniIpv6AddressQuantity(Integer eniIpv6AddressQuantity) { + this.eniIpv6AddressQuantity = eniIpv6AddressQuantity; + } + + public Integer getMaximumQueueNumberPerEni() { + return this.maximumQueueNumberPerEni; + } + + public void setMaximumQueueNumberPerEni(Integer maximumQueueNumberPerEni) { + this.maximumQueueNumberPerEni = maximumQueueNumberPerEni; + } + + public String getInstanceTypeId() { + return this.instanceTypeId; + } + + public void setInstanceTypeId(String instanceTypeId) { + this.instanceTypeId = instanceTypeId; + } + + public Integer getInstanceBandwidthRx() { + return this.instanceBandwidthRx; + } + + public void setInstanceBandwidthRx(Integer instanceBandwidthRx) { + this.instanceBandwidthRx = instanceBandwidthRx; + } + + public Integer getSecondaryEniQueueNumber() { + return this.secondaryEniQueueNumber; + } + + public void setSecondaryEniQueueNumber(Integer secondaryEniQueueNumber) { + this.secondaryEniQueueNumber = secondaryEniQueueNumber; + } + + public String getGPUSpec() { + return this.gPUSpec; + } + + public void setGPUSpec(String gPUSpec) { + this.gPUSpec = gPUSpec; + } + + public Integer getInstanceBandwidthTx() { + return this.instanceBandwidthTx; + } + + public void setInstanceBandwidthTx(Integer instanceBandwidthTx) { + this.instanceBandwidthTx = instanceBandwidthTx; + } + + public Integer getQueuePairNumber() { + return this.queuePairNumber; + } + + public void setQueuePairNumber(Integer queuePairNumber) { + this.queuePairNumber = queuePairNumber; + } + + public Integer getEriQuantity() { + return this.eriQuantity; + } + + public void setEriQuantity(Integer eriQuantity) { + this.eriQuantity = eriQuantity; + } + + public Integer getGPUAmount() { + return this.gPUAmount; + } + + public void setGPUAmount(Integer gPUAmount) { + this.gPUAmount = gPUAmount; + } + + public Integer getTotalEniQueueQuantity() { + return this.totalEniQueueQuantity; + } + + public void setTotalEniQueueQuantity(Integer totalEniQueueQuantity) { + this.totalEniQueueQuantity = totalEniQueueQuantity; + } + + public String getNvmeSupport() { + return this.nvmeSupport; + } + + public void setNvmeSupport(String nvmeSupport) { + this.nvmeSupport = nvmeSupport; + } + + public Integer getDiskQuantity() { + return this.diskQuantity; + } + + public void setDiskQuantity(Integer diskQuantity) { + this.diskQuantity = diskQuantity; + } + + public Integer getInitialCredit() { + return this.initialCredit; + } + + public void setInitialCredit(Integer initialCredit) { + this.initialCredit = initialCredit; + } + + public Integer getLocalStorageAmount() { + return this.localStorageAmount; + } + + public void setLocalStorageAmount(Integer localStorageAmount) { + this.localStorageAmount = localStorageAmount; + } + + public Integer getBaselineCredit() { + return this.baselineCredit; + } + + public void setBaselineCredit(Integer baselineCredit) { + this.baselineCredit = baselineCredit; + } + + public Long getInstancePpsTx() { + return this.instancePpsTx; + } + + public void setInstancePpsTx(Long instancePpsTx) { + this.instancePpsTx = instancePpsTx; + } + + public Integer getEniPrivateIpAddressQuantity() { + return this.eniPrivateIpAddressQuantity; + } + + public void setEniPrivateIpAddressQuantity(Integer eniPrivateIpAddressQuantity) { + this.eniPrivateIpAddressQuantity = eniPrivateIpAddressQuantity; + } + + public Integer getCpuCoreCount() { + return this.cpuCoreCount; + } + + public void setCpuCoreCount(Integer cpuCoreCount) { + this.cpuCoreCount = cpuCoreCount; + } + + public String getInstanceTypeFamily() { + return this.instanceTypeFamily; + } + + public void setInstanceTypeFamily(String instanceTypeFamily) { + this.instanceTypeFamily = instanceTypeFamily; + } + + public Integer getEniQuantity() { + return this.eniQuantity; + } + + public void setEniQuantity(Integer eniQuantity) { + this.eniQuantity = eniQuantity; + } + + public Boolean getEniTrunkSupported() { + return this.eniTrunkSupported; + } + + public void setEniTrunkSupported(Boolean eniTrunkSupported) { + this.eniTrunkSupported = eniTrunkSupported; + } + + public Float getCpuSpeedFrequency() { + return this.cpuSpeedFrequency; + } + + public void setCpuSpeedFrequency(Float cpuSpeedFrequency) { + this.cpuSpeedFrequency = cpuSpeedFrequency; + } + + public Float getCpuTurboFrequency() { + return this.cpuTurboFrequency; + } + + public void setCpuTurboFrequency(Float cpuTurboFrequency) { + this.cpuTurboFrequency = cpuTurboFrequency; + } + + public String getPhysicalProcessorModel() { + return this.physicalProcessorModel; + } + + public void setPhysicalProcessorModel(String physicalProcessorModel) { + this.physicalProcessorModel = physicalProcessorModel; + } + + public Boolean getNetworkEncryptionSupport() { + return this.networkEncryptionSupport; + } + + public void setNetworkEncryptionSupport(Boolean networkEncryptionSupport) { + this.networkEncryptionSupport = networkEncryptionSupport; + } + + public String getInstanceCategory() { + return this.instanceCategory; + } + + public void setInstanceCategory(String instanceCategory) { + this.instanceCategory = instanceCategory; + } + + public String getCpuArchitecture() { + return this.cpuArchitecture; + } + + public void setCpuArchitecture(String cpuArchitecture) { + this.cpuArchitecture = cpuArchitecture; + } + + public Float getGPUMemorySize() { + return this.gPUMemorySize; + } + + public void setGPUMemorySize(Float gPUMemorySize) { + this.gPUMemorySize = gPUMemorySize; + } + + public Integer getNetworkCardQuantity() { + return this.networkCardQuantity; + } + + public void setNetworkCardQuantity(Integer networkCardQuantity) { + this.networkCardQuantity = networkCardQuantity; + } + + public List getNetworkCards() { + return this.networkCards; + } + + public void setNetworkCards(List networkCards) { + this.networkCards = networkCards; + } + + public static class NetworkCardInfo { + + private Integer networkCardIndex; + + public Integer getNetworkCardIndex() { + return this.networkCardIndex; + } + + public void setNetworkCardIndex(Integer networkCardIndex) { + this.networkCardIndex = networkCardIndex; + } + } + } + + @Override + public DescribeInstanceTypesResponse getInstance(UnmarshallerContext context) { + return DescribeInstanceTypesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceVncPasswdRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceVncPasswdRequest.java new file mode 100644 index 0000000000..d43f9e0d1e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceVncPasswdRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeInstanceVncPasswdRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceId; + public DescribeInstanceVncPasswdRequest() { + super("Ecs", "2014-05-26", "DescribeInstanceVncPasswd", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + @Override + public Class getResponseClass() { + return DescribeInstanceVncPasswdResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceVncPasswdResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceVncPasswdResponse.java new file mode 100644 index 0000000000..c59899dcb3 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceVncPasswdResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeInstanceVncPasswdResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeInstanceVncPasswdResponse extends AcsResponse { + + private String vncPasswd; + + private String requestId; + + public String getVncPasswd() { + return this.vncPasswd; + } + + public void setVncPasswd(String vncPasswd) { + this.vncPasswd = vncPasswd; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DescribeInstanceVncPasswdResponse getInstance(UnmarshallerContext context) { + return DescribeInstanceVncPasswdResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceVncUrlRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceVncUrlRequest.java new file mode 100644 index 0000000000..2ce498b916 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceVncUrlRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeInstanceVncUrlRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceId; + public DescribeInstanceVncUrlRequest() { + super("Ecs", "2014-05-26", "DescribeInstanceVncUrl", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + @Override + public Class getResponseClass() { + return DescribeInstanceVncUrlResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceVncUrlResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceVncUrlResponse.java new file mode 100644 index 0000000000..ae5c8b87a5 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstanceVncUrlResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeInstanceVncUrlResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeInstanceVncUrlResponse extends AcsResponse { + + private String vncUrl; + + private String requestId; + + public String getVncUrl() { + return this.vncUrl; + } + + public void setVncUrl(String vncUrl) { + this.vncUrl = vncUrl; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DescribeInstanceVncUrlResponse getInstance(UnmarshallerContext context) { + return DescribeInstanceVncUrlResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstancesFullStatusRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstancesFullStatusRequest.java new file mode 100644 index 0000000000..93ad6fbd9a --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstancesFullStatusRequest.java @@ -0,0 +1,256 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeInstancesFullStatusRequest extends RpcAcsRequest { + + + private List eventIds; + + private Long resourceOwnerId; + + private Integer pageNumber; + + private Integer pageSize; + + private String eventPublishTimeEnd; + + private List instanceEventTypes; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String notBeforeStart; + + private Long ownerId; + + private String eventPublishTimeStart; + + private List instanceIds; + + private String notBeforeEnd; + + private String healthStatus; + + private String eventType; + + private String status; + public DescribeInstancesFullStatusRequest() { + super("Ecs", "2014-05-26", "DescribeInstancesFullStatus", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public List getEventIds() { + return this.eventIds; + } + + public void setEventIds(List eventIds) { + this.eventIds = eventIds; + if (eventIds != null) { + for (int i = 0; i < eventIds.size(); i++) { + putQueryParameter("EventId." + (i + 1) , eventIds.get(i)); + } + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getEventPublishTimeEnd() { + return this.eventPublishTimeEnd; + } + + public void setEventPublishTimeEnd(String eventPublishTimeEnd) { + this.eventPublishTimeEnd = eventPublishTimeEnd; + if(eventPublishTimeEnd != null){ + putQueryParameter("EventPublishTime.End", eventPublishTimeEnd); + } + } + + public List getInstanceEventTypes() { + return this.instanceEventTypes; + } + + public void setInstanceEventTypes(List instanceEventTypes) { + this.instanceEventTypes = instanceEventTypes; + if (instanceEventTypes != null) { + for (int i = 0; i < instanceEventTypes.size(); i++) { + putQueryParameter("InstanceEventType." + (i + 1) , instanceEventTypes.get(i)); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getNotBeforeStart() { + return this.notBeforeStart; + } + + public void setNotBeforeStart(String notBeforeStart) { + this.notBeforeStart = notBeforeStart; + if(notBeforeStart != null){ + putQueryParameter("NotBefore.Start", notBeforeStart); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getEventPublishTimeStart() { + return this.eventPublishTimeStart; + } + + public void setEventPublishTimeStart(String eventPublishTimeStart) { + this.eventPublishTimeStart = eventPublishTimeStart; + if(eventPublishTimeStart != null){ + putQueryParameter("EventPublishTime.Start", eventPublishTimeStart); + } + } + + public List getInstanceIds() { + return this.instanceIds; + } + + public void setInstanceIds(List instanceIds) { + this.instanceIds = instanceIds; + if (instanceIds != null) { + for (int i = 0; i < instanceIds.size(); i++) { + putQueryParameter("InstanceId." + (i + 1) , instanceIds.get(i)); + } + } + } + + public String getNotBeforeEnd() { + return this.notBeforeEnd; + } + + public void setNotBeforeEnd(String notBeforeEnd) { + this.notBeforeEnd = notBeforeEnd; + if(notBeforeEnd != null){ + putQueryParameter("NotBefore.End", notBeforeEnd); + } + } + + public String getHealthStatus() { + return this.healthStatus; + } + + public void setHealthStatus(String healthStatus) { + this.healthStatus = healthStatus; + if(healthStatus != null){ + putQueryParameter("HealthStatus", healthStatus); + } + } + + public String getEventType() { + return this.eventType; + } + + public void setEventType(String eventType) { + this.eventType = eventType; + if(eventType != null){ + putQueryParameter("EventType", eventType); + } + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + if(status != null){ + putQueryParameter("Status", status); + } + } + + @Override + public Class getResponseClass() { + return DescribeInstancesFullStatusResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstancesFullStatusResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstancesFullStatusResponse.java new file mode 100644 index 0000000000..4055766bc1 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstancesFullStatusResponse.java @@ -0,0 +1,386 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeInstancesFullStatusResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeInstancesFullStatusResponse extends AcsResponse { + + private Integer pageSize; + + private String requestId; + + private Integer pageNumber; + + private Integer totalCount; + + private List instanceFullStatusSet; + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getInstanceFullStatusSet() { + return this.instanceFullStatusSet; + } + + public void setInstanceFullStatusSet(List instanceFullStatusSet) { + this.instanceFullStatusSet = instanceFullStatusSet; + } + + public static class InstanceFullStatusType { + + private String instanceId; + + private List scheduledSystemEventSet; + + private Status status; + + private HealthStatus healthStatus; + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public List getScheduledSystemEventSet() { + return this.scheduledSystemEventSet; + } + + public void setScheduledSystemEventSet(List scheduledSystemEventSet) { + this.scheduledSystemEventSet = scheduledSystemEventSet; + } + + public Status getStatus() { + return this.status; + } + + public void setStatus(Status status) { + this.status = status; + } + + public HealthStatus getHealthStatus() { + return this.healthStatus; + } + + public void setHealthStatus(HealthStatus healthStatus) { + this.healthStatus = healthStatus; + } + + public static class ScheduledSystemEventType { + + private String eventPublishTime; + + private String eventId; + + private String notBefore; + + private String impactLevel; + + private String reason; + + private EventCycleStatus eventCycleStatus; + + private EventType eventType; + + private ExtendedAttribute extendedAttribute; + + public String getEventPublishTime() { + return this.eventPublishTime; + } + + public void setEventPublishTime(String eventPublishTime) { + this.eventPublishTime = eventPublishTime; + } + + public String getEventId() { + return this.eventId; + } + + public void setEventId(String eventId) { + this.eventId = eventId; + } + + public String getNotBefore() { + return this.notBefore; + } + + public void setNotBefore(String notBefore) { + this.notBefore = notBefore; + } + + public String getImpactLevel() { + return this.impactLevel; + } + + public void setImpactLevel(String impactLevel) { + this.impactLevel = impactLevel; + } + + public String getReason() { + return this.reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + + public EventCycleStatus getEventCycleStatus() { + return this.eventCycleStatus; + } + + public void setEventCycleStatus(EventCycleStatus eventCycleStatus) { + this.eventCycleStatus = eventCycleStatus; + } + + public EventType getEventType() { + return this.eventType; + } + + public void setEventType(EventType eventType) { + this.eventType = eventType; + } + + public ExtendedAttribute getExtendedAttribute() { + return this.extendedAttribute; + } + + public void setExtendedAttribute(ExtendedAttribute extendedAttribute) { + this.extendedAttribute = extendedAttribute; + } + + public static class EventCycleStatus { + + private String name; + + private Integer code; + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public Integer getCode() { + return this.code; + } + + public void setCode(Integer code) { + this.code = code; + } + } + + public static class EventType { + + private String name; + + private Integer code; + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public Integer getCode() { + return this.code; + } + + public void setCode(Integer code) { + this.code = code; + } + } + + public static class ExtendedAttribute { + + private String device; + + private String diskId; + + private List inactiveDisks; + + public String getDevice() { + return this.device; + } + + public void setDevice(String device) { + this.device = device; + } + + public String getDiskId() { + return this.diskId; + } + + public void setDiskId(String diskId) { + this.diskId = diskId; + } + + public List getInactiveDisks() { + return this.inactiveDisks; + } + + public void setInactiveDisks(List inactiveDisks) { + this.inactiveDisks = inactiveDisks; + } + + public static class InactiveDisk { + + private String creationTime; + + private String deviceSize; + + private String deviceCategory; + + private String deviceType; + + private String releaseTime; + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getDeviceSize() { + return this.deviceSize; + } + + public void setDeviceSize(String deviceSize) { + this.deviceSize = deviceSize; + } + + public String getDeviceCategory() { + return this.deviceCategory; + } + + public void setDeviceCategory(String deviceCategory) { + this.deviceCategory = deviceCategory; + } + + public String getDeviceType() { + return this.deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getReleaseTime() { + return this.releaseTime; + } + + public void setReleaseTime(String releaseTime) { + this.releaseTime = releaseTime; + } + } + } + } + + public static class Status { + + private String name; + + private Integer code; + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public Integer getCode() { + return this.code; + } + + public void setCode(Integer code) { + this.code = code; + } + } + + public static class HealthStatus { + + private String name; + + private Integer code; + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public Integer getCode() { + return this.code; + } + + public void setCode(Integer code) { + this.code = code; + } + } + } + + @Override + public DescribeInstancesFullStatusResponse getInstance(UnmarshallerContext context) { + return DescribeInstancesFullStatusResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstancesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstancesRequest.java new file mode 100644 index 0000000000..9ca86cd65c --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstancesRequest.java @@ -0,0 +1,696 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeInstancesRequest extends RpcAcsRequest { + + + private String innerIpAddresses; + + private Long resourceOwnerId; + + private String privateIpAddresses; + + private String hpcClusterId; + + private Integer httpPutResponseHopLimit; + + private String filter2Value; + + private String keyPairName; + + private String resourceGroupId; + + private String lockReason; + + private String filter1Key; + + private Boolean deviceAvailable; + + private List tags; + + private String filter3Value; + + private Boolean dryRun; + + private String filter1Value; + + private Boolean needSaleCycle; + + private Long ownerId; + + private String vSwitchId; + + private List additionalAttributess; + + private String instanceName; + + private String instanceIds; + + private String internetChargeType; + + private String zoneId; + + private Integer maxResults; + + private List ipv6Addresss; + + private String instanceNetworkType; + + private String status; + + private String imageId; + + private String filter4Value; + + private Boolean ioOptimized; + + private String securityGroupId; + + private String filter4Key; + + private Integer pageNumber; + + private String nextToken; + + private String rdmaIpAddresses; + + private String httpEndpoint; + + private Integer pageSize; + + private String publicIpAddresses; + + private String instanceType; + + private String instanceChargeType; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String instanceTypeFamily; + + private String filter2Key; + + private String eipAddresses; + + private String vpcId; + + private String httpTokens; + + private String filter3Key; + public DescribeInstancesRequest() { + super("Ecs", "2014-05-26", "DescribeInstances", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getInnerIpAddresses() { + return this.innerIpAddresses; + } + + public void setInnerIpAddresses(String innerIpAddresses) { + this.innerIpAddresses = innerIpAddresses; + if(innerIpAddresses != null){ + putQueryParameter("InnerIpAddresses", innerIpAddresses); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getPrivateIpAddresses() { + return this.privateIpAddresses; + } + + public void setPrivateIpAddresses(String privateIpAddresses) { + this.privateIpAddresses = privateIpAddresses; + if(privateIpAddresses != null){ + putQueryParameter("PrivateIpAddresses", privateIpAddresses); + } + } + + public String getHpcClusterId() { + return this.hpcClusterId; + } + + public void setHpcClusterId(String hpcClusterId) { + this.hpcClusterId = hpcClusterId; + if(hpcClusterId != null){ + putQueryParameter("HpcClusterId", hpcClusterId); + } + } + + public Integer getHttpPutResponseHopLimit() { + return this.httpPutResponseHopLimit; + } + + public void setHttpPutResponseHopLimit(Integer httpPutResponseHopLimit) { + this.httpPutResponseHopLimit = httpPutResponseHopLimit; + if(httpPutResponseHopLimit != null){ + putQueryParameter("HttpPutResponseHopLimit", httpPutResponseHopLimit.toString()); + } + } + + public String getFilter2Value() { + return this.filter2Value; + } + + public void setFilter2Value(String filter2Value) { + this.filter2Value = filter2Value; + if(filter2Value != null){ + putQueryParameter("Filter.2.Value", filter2Value); + } + } + + public String getKeyPairName() { + return this.keyPairName; + } + + public void setKeyPairName(String keyPairName) { + this.keyPairName = keyPairName; + if(keyPairName != null){ + putQueryParameter("KeyPairName", keyPairName); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public String getLockReason() { + return this.lockReason; + } + + public void setLockReason(String lockReason) { + this.lockReason = lockReason; + if(lockReason != null){ + putQueryParameter("LockReason", lockReason); + } + } + + public String getFilter1Key() { + return this.filter1Key; + } + + public void setFilter1Key(String filter1Key) { + this.filter1Key = filter1Key; + if(filter1Key != null){ + putQueryParameter("Filter.1.Key", filter1Key); + } + } + + public Boolean getDeviceAvailable() { + return this.deviceAvailable; + } + + public void setDeviceAvailable(Boolean deviceAvailable) { + this.deviceAvailable = deviceAvailable; + if(deviceAvailable != null){ + putQueryParameter("DeviceAvailable", deviceAvailable.toString()); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + } + } + } + + public String getFilter3Value() { + return this.filter3Value; + } + + public void setFilter3Value(String filter3Value) { + this.filter3Value = filter3Value; + if(filter3Value != null){ + putQueryParameter("Filter.3.Value", filter3Value); + } + } + + public Boolean getDryRun() { + return this.dryRun; + } + + public void setDryRun(Boolean dryRun) { + this.dryRun = dryRun; + if(dryRun != null){ + putQueryParameter("DryRun", dryRun.toString()); + } + } + + public String getFilter1Value() { + return this.filter1Value; + } + + public void setFilter1Value(String filter1Value) { + this.filter1Value = filter1Value; + if(filter1Value != null){ + putQueryParameter("Filter.1.Value", filter1Value); + } + } + + public Boolean getNeedSaleCycle() { + return this.needSaleCycle; + } + + public void setNeedSaleCycle(Boolean needSaleCycle) { + this.needSaleCycle = needSaleCycle; + if(needSaleCycle != null){ + putQueryParameter("NeedSaleCycle", needSaleCycle.toString()); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getVSwitchId() { + return this.vSwitchId; + } + + public void setVSwitchId(String vSwitchId) { + this.vSwitchId = vSwitchId; + if(vSwitchId != null){ + putQueryParameter("VSwitchId", vSwitchId); + } + } + + public List getAdditionalAttributess() { + return this.additionalAttributess; + } + + public void setAdditionalAttributess(List additionalAttributess) { + this.additionalAttributess = additionalAttributess; + if (additionalAttributess != null) { + for (int i = 0; i < additionalAttributess.size(); i++) { + putQueryParameter("AdditionalAttributes." + (i + 1) , additionalAttributess.get(i)); + } + } + } + + public String getInstanceName() { + return this.instanceName; + } + + public void setInstanceName(String instanceName) { + this.instanceName = instanceName; + if(instanceName != null){ + putQueryParameter("InstanceName", instanceName); + } + } + + public String getInstanceIds() { + return this.instanceIds; + } + + public void setInstanceIds(String instanceIds) { + this.instanceIds = instanceIds; + if(instanceIds != null){ + putQueryParameter("InstanceIds", instanceIds); + } + } + + public String getInternetChargeType() { + return this.internetChargeType; + } + + public void setInternetChargeType(String internetChargeType) { + this.internetChargeType = internetChargeType; + if(internetChargeType != null){ + putQueryParameter("InternetChargeType", internetChargeType); + } + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + if(zoneId != null){ + putQueryParameter("ZoneId", zoneId); + } + } + + public Integer getMaxResults() { + return this.maxResults; + } + + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + if(maxResults != null){ + putQueryParameter("MaxResults", maxResults.toString()); + } + } + + public List getIpv6Addresss() { + return this.ipv6Addresss; + } + + public void setIpv6Addresss(List ipv6Addresss) { + this.ipv6Addresss = ipv6Addresss; + if (ipv6Addresss != null) { + for (int i = 0; i < ipv6Addresss.size(); i++) { + putQueryParameter("Ipv6Address." + (i + 1) , ipv6Addresss.get(i)); + } + } + } + + public String getInstanceNetworkType() { + return this.instanceNetworkType; + } + + public void setInstanceNetworkType(String instanceNetworkType) { + this.instanceNetworkType = instanceNetworkType; + if(instanceNetworkType != null){ + putQueryParameter("InstanceNetworkType", instanceNetworkType); + } + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + if(status != null){ + putQueryParameter("Status", status); + } + } + + public String getImageId() { + return this.imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + if(imageId != null){ + putQueryParameter("ImageId", imageId); + } + } + + public String getFilter4Value() { + return this.filter4Value; + } + + public void setFilter4Value(String filter4Value) { + this.filter4Value = filter4Value; + if(filter4Value != null){ + putQueryParameter("Filter.4.Value", filter4Value); + } + } + + public Boolean getIoOptimized() { + return this.ioOptimized; + } + + public void setIoOptimized(Boolean ioOptimized) { + this.ioOptimized = ioOptimized; + if(ioOptimized != null){ + putQueryParameter("IoOptimized", ioOptimized.toString()); + } + } + + public String getSecurityGroupId() { + return this.securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + if(securityGroupId != null){ + putQueryParameter("SecurityGroupId", securityGroupId); + } + } + + public String getFilter4Key() { + return this.filter4Key; + } + + public void setFilter4Key(String filter4Key) { + this.filter4Key = filter4Key; + if(filter4Key != null){ + putQueryParameter("Filter.4.Key", filter4Key); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + if(nextToken != null){ + putQueryParameter("NextToken", nextToken); + } + } + + public String getRdmaIpAddresses() { + return this.rdmaIpAddresses; + } + + public void setRdmaIpAddresses(String rdmaIpAddresses) { + this.rdmaIpAddresses = rdmaIpAddresses; + if(rdmaIpAddresses != null){ + putQueryParameter("RdmaIpAddresses", rdmaIpAddresses); + } + } + + public String getHttpEndpoint() { + return this.httpEndpoint; + } + + public void setHttpEndpoint(String httpEndpoint) { + this.httpEndpoint = httpEndpoint; + if(httpEndpoint != null){ + putQueryParameter("HttpEndpoint", httpEndpoint); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getPublicIpAddresses() { + return this.publicIpAddresses; + } + + public void setPublicIpAddresses(String publicIpAddresses) { + this.publicIpAddresses = publicIpAddresses; + if(publicIpAddresses != null){ + putQueryParameter("PublicIpAddresses", publicIpAddresses); + } + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + if(instanceType != null){ + putQueryParameter("InstanceType", instanceType); + } + } + + public String getInstanceChargeType() { + return this.instanceChargeType; + } + + public void setInstanceChargeType(String instanceChargeType) { + this.instanceChargeType = instanceChargeType; + if(instanceChargeType != null){ + putQueryParameter("InstanceChargeType", instanceChargeType); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getInstanceTypeFamily() { + return this.instanceTypeFamily; + } + + public void setInstanceTypeFamily(String instanceTypeFamily) { + this.instanceTypeFamily = instanceTypeFamily; + if(instanceTypeFamily != null){ + putQueryParameter("InstanceTypeFamily", instanceTypeFamily); + } + } + + public String getFilter2Key() { + return this.filter2Key; + } + + public void setFilter2Key(String filter2Key) { + this.filter2Key = filter2Key; + if(filter2Key != null){ + putQueryParameter("Filter.2.Key", filter2Key); + } + } + + public String getEipAddresses() { + return this.eipAddresses; + } + + public void setEipAddresses(String eipAddresses) { + this.eipAddresses = eipAddresses; + if(eipAddresses != null){ + putQueryParameter("EipAddresses", eipAddresses); + } + } + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + if(vpcId != null){ + putQueryParameter("VpcId", vpcId); + } + } + + public String getHttpTokens() { + return this.httpTokens; + } + + public void setHttpTokens(String httpTokens) { + this.httpTokens = httpTokens; + if(httpTokens != null){ + putQueryParameter("HttpTokens", httpTokens); + } + } + + public String getFilter3Key() { + return this.filter3Key; + } + + public void setFilter3Key(String filter3Key) { + this.filter3Key = filter3Key; + if(filter3Key != null){ + putQueryParameter("Filter.3.Key", filter3Key); + } + } + + public static class Tag { + + private String value; + + private String key; + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + } + + @Override + public Class getResponseClass() { + return DescribeInstancesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstancesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstancesResponse.java new file mode 100644 index 0000000000..47daacdafc --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInstancesResponse.java @@ -0,0 +1,1183 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeInstancesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeInstancesResponse extends AcsResponse { + + private String nextToken; + + private Integer pageSize; + + private Integer pageNumber; + + private String requestId; + + private Integer totalCount; + + private List instances; + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getInstances() { + return this.instances; + } + + public void setInstances(List instances) { + this.instances = instances; + } + + public static class Instance { + + private String creationTime; + + private String serialNumber; + + private String status; + + private String deploymentSetId; + + private String keyPairName; + + private String saleCycle; + + private String spotStrategy; + + private Boolean deviceAvailable; + + private Long localStorageCapacity; + + private String description; + + private Integer spotDuration; + + private String instanceNetworkType; + + private String instanceName; + + private String oSNameEn; + + private String hpcClusterId; + + private Float spotPriceLimit; + + private Integer memory; + + private String oSName; + + private Integer deploymentSetGroupNo; + + private String imageId; + + private String vlanId; + + private String clusterId; + + private String gPUSpec; + + private String autoReleaseTime; + + private Boolean deletionProtection; + + private String stoppedMode; + + private Integer gPUAmount; + + private String hostName; + + private String instanceId; + + private Integer internetMaxBandwidthOut; + + private Integer internetMaxBandwidthIn; + + private String instanceType; + + private String instanceChargeType; + + private String regionId; + + private Boolean ioOptimized; + + private String startTime; + + private Integer cpu; + + private Integer localStorageAmount; + + private String expiredTime; + + private String resourceGroupId; + + private String internetChargeType; + + private String zoneId; + + private Boolean recyclable; + + private String iSP; + + private String creditSpecification; + + private String instanceTypeFamily; + + private String oSType; + + private List networkInterfaces; + + private List operationLocks; + + private List tags; + + private List rdmaIpAddress; + + private List securityGroupIds; + + private List publicIpAddress; + + private List innerIpAddress; + + private VpcAttributes vpcAttributes; + + private EipAddress eipAddress; + + private HibernationOptions hibernationOptions; + + private DedicatedHostAttribute dedicatedHostAttribute; + + private EcsCapacityReservationAttr ecsCapacityReservationAttr; + + private DedicatedInstanceAttribute dedicatedInstanceAttribute; + + private CpuOptions cpuOptions; + + private MetadataOptions metadataOptions; + + private ImageOptions imageOptions; + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getSerialNumber() { + return this.serialNumber; + } + + public void setSerialNumber(String serialNumber) { + this.serialNumber = serialNumber; + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getDeploymentSetId() { + return this.deploymentSetId; + } + + public void setDeploymentSetId(String deploymentSetId) { + this.deploymentSetId = deploymentSetId; + } + + public String getKeyPairName() { + return this.keyPairName; + } + + public void setKeyPairName(String keyPairName) { + this.keyPairName = keyPairName; + } + + public String getSaleCycle() { + return this.saleCycle; + } + + public void setSaleCycle(String saleCycle) { + this.saleCycle = saleCycle; + } + + public String getSpotStrategy() { + return this.spotStrategy; + } + + public void setSpotStrategy(String spotStrategy) { + this.spotStrategy = spotStrategy; + } + + public Boolean getDeviceAvailable() { + return this.deviceAvailable; + } + + public void setDeviceAvailable(Boolean deviceAvailable) { + this.deviceAvailable = deviceAvailable; + } + + public Long getLocalStorageCapacity() { + return this.localStorageCapacity; + } + + public void setLocalStorageCapacity(Long localStorageCapacity) { + this.localStorageCapacity = localStorageCapacity; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getSpotDuration() { + return this.spotDuration; + } + + public void setSpotDuration(Integer spotDuration) { + this.spotDuration = spotDuration; + } + + public String getInstanceNetworkType() { + return this.instanceNetworkType; + } + + public void setInstanceNetworkType(String instanceNetworkType) { + this.instanceNetworkType = instanceNetworkType; + } + + public String getInstanceName() { + return this.instanceName; + } + + public void setInstanceName(String instanceName) { + this.instanceName = instanceName; + } + + public String getOSNameEn() { + return this.oSNameEn; + } + + public void setOSNameEn(String oSNameEn) { + this.oSNameEn = oSNameEn; + } + + public String getHpcClusterId() { + return this.hpcClusterId; + } + + public void setHpcClusterId(String hpcClusterId) { + this.hpcClusterId = hpcClusterId; + } + + public Float getSpotPriceLimit() { + return this.spotPriceLimit; + } + + public void setSpotPriceLimit(Float spotPriceLimit) { + this.spotPriceLimit = spotPriceLimit; + } + + public Integer getMemory() { + return this.memory; + } + + public void setMemory(Integer memory) { + this.memory = memory; + } + + public String getOSName() { + return this.oSName; + } + + public void setOSName(String oSName) { + this.oSName = oSName; + } + + public Integer getDeploymentSetGroupNo() { + return this.deploymentSetGroupNo; + } + + public void setDeploymentSetGroupNo(Integer deploymentSetGroupNo) { + this.deploymentSetGroupNo = deploymentSetGroupNo; + } + + public String getImageId() { + return this.imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public String getVlanId() { + return this.vlanId; + } + + public void setVlanId(String vlanId) { + this.vlanId = vlanId; + } + + public String getClusterId() { + return this.clusterId; + } + + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + } + + public String getGPUSpec() { + return this.gPUSpec; + } + + public void setGPUSpec(String gPUSpec) { + this.gPUSpec = gPUSpec; + } + + public String getAutoReleaseTime() { + return this.autoReleaseTime; + } + + public void setAutoReleaseTime(String autoReleaseTime) { + this.autoReleaseTime = autoReleaseTime; + } + + public Boolean getDeletionProtection() { + return this.deletionProtection; + } + + public void setDeletionProtection(Boolean deletionProtection) { + this.deletionProtection = deletionProtection; + } + + public String getStoppedMode() { + return this.stoppedMode; + } + + public void setStoppedMode(String stoppedMode) { + this.stoppedMode = stoppedMode; + } + + public Integer getGPUAmount() { + return this.gPUAmount; + } + + public void setGPUAmount(Integer gPUAmount) { + this.gPUAmount = gPUAmount; + } + + public String getHostName() { + return this.hostName; + } + + public void setHostName(String hostName) { + this.hostName = hostName; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public Integer getInternetMaxBandwidthOut() { + return this.internetMaxBandwidthOut; + } + + public void setInternetMaxBandwidthOut(Integer internetMaxBandwidthOut) { + this.internetMaxBandwidthOut = internetMaxBandwidthOut; + } + + public Integer getInternetMaxBandwidthIn() { + return this.internetMaxBandwidthIn; + } + + public void setInternetMaxBandwidthIn(Integer internetMaxBandwidthIn) { + this.internetMaxBandwidthIn = internetMaxBandwidthIn; + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public String getInstanceChargeType() { + return this.instanceChargeType; + } + + public void setInstanceChargeType(String instanceChargeType) { + this.instanceChargeType = instanceChargeType; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public Boolean getIoOptimized() { + return this.ioOptimized; + } + + public void setIoOptimized(Boolean ioOptimized) { + this.ioOptimized = ioOptimized; + } + + public String getStartTime() { + return this.startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + public Integer getCpu() { + return this.cpu; + } + + public void setCpu(Integer cpu) { + this.cpu = cpu; + } + + public Integer getLocalStorageAmount() { + return this.localStorageAmount; + } + + public void setLocalStorageAmount(Integer localStorageAmount) { + this.localStorageAmount = localStorageAmount; + } + + public String getExpiredTime() { + return this.expiredTime; + } + + public void setExpiredTime(String expiredTime) { + this.expiredTime = expiredTime; + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + } + + public String getInternetChargeType() { + return this.internetChargeType; + } + + public void setInternetChargeType(String internetChargeType) { + this.internetChargeType = internetChargeType; + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + } + + public Boolean getRecyclable() { + return this.recyclable; + } + + public void setRecyclable(Boolean recyclable) { + this.recyclable = recyclable; + } + + public String getISP() { + return this.iSP; + } + + public void setISP(String iSP) { + this.iSP = iSP; + } + + public String getCreditSpecification() { + return this.creditSpecification; + } + + public void setCreditSpecification(String creditSpecification) { + this.creditSpecification = creditSpecification; + } + + public String getInstanceTypeFamily() { + return this.instanceTypeFamily; + } + + public void setInstanceTypeFamily(String instanceTypeFamily) { + this.instanceTypeFamily = instanceTypeFamily; + } + + public String getOSType() { + return this.oSType; + } + + public void setOSType(String oSType) { + this.oSType = oSType; + } + + public List getNetworkInterfaces() { + return this.networkInterfaces; + } + + public void setNetworkInterfaces(List networkInterfaces) { + this.networkInterfaces = networkInterfaces; + } + + public List getOperationLocks() { + return this.operationLocks; + } + + public void setOperationLocks(List operationLocks) { + this.operationLocks = operationLocks; + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public List getRdmaIpAddress() { + return this.rdmaIpAddress; + } + + public void setRdmaIpAddress(List rdmaIpAddress) { + this.rdmaIpAddress = rdmaIpAddress; + } + + public List getSecurityGroupIds() { + return this.securityGroupIds; + } + + public void setSecurityGroupIds(List securityGroupIds) { + this.securityGroupIds = securityGroupIds; + } + + public List getPublicIpAddress() { + return this.publicIpAddress; + } + + public void setPublicIpAddress(List publicIpAddress) { + this.publicIpAddress = publicIpAddress; + } + + public List getInnerIpAddress() { + return this.innerIpAddress; + } + + public void setInnerIpAddress(List innerIpAddress) { + this.innerIpAddress = innerIpAddress; + } + + public VpcAttributes getVpcAttributes() { + return this.vpcAttributes; + } + + public void setVpcAttributes(VpcAttributes vpcAttributes) { + this.vpcAttributes = vpcAttributes; + } + + public EipAddress getEipAddress() { + return this.eipAddress; + } + + public void setEipAddress(EipAddress eipAddress) { + this.eipAddress = eipAddress; + } + + public HibernationOptions getHibernationOptions() { + return this.hibernationOptions; + } + + public void setHibernationOptions(HibernationOptions hibernationOptions) { + this.hibernationOptions = hibernationOptions; + } + + public DedicatedHostAttribute getDedicatedHostAttribute() { + return this.dedicatedHostAttribute; + } + + public void setDedicatedHostAttribute(DedicatedHostAttribute dedicatedHostAttribute) { + this.dedicatedHostAttribute = dedicatedHostAttribute; + } + + public EcsCapacityReservationAttr getEcsCapacityReservationAttr() { + return this.ecsCapacityReservationAttr; + } + + public void setEcsCapacityReservationAttr(EcsCapacityReservationAttr ecsCapacityReservationAttr) { + this.ecsCapacityReservationAttr = ecsCapacityReservationAttr; + } + + public DedicatedInstanceAttribute getDedicatedInstanceAttribute() { + return this.dedicatedInstanceAttribute; + } + + public void setDedicatedInstanceAttribute(DedicatedInstanceAttribute dedicatedInstanceAttribute) { + this.dedicatedInstanceAttribute = dedicatedInstanceAttribute; + } + + public CpuOptions getCpuOptions() { + return this.cpuOptions; + } + + public void setCpuOptions(CpuOptions cpuOptions) { + this.cpuOptions = cpuOptions; + } + + public MetadataOptions getMetadataOptions() { + return this.metadataOptions; + } + + public void setMetadataOptions(MetadataOptions metadataOptions) { + this.metadataOptions = metadataOptions; + } + + public ImageOptions getImageOptions() { + return this.imageOptions; + } + + public void setImageOptions(ImageOptions imageOptions) { + this.imageOptions = imageOptions; + } + + public static class NetworkInterface { + + private String type; + + private String macAddress; + + private String primaryIpAddress; + + private String networkInterfaceId; + + private List privateIpSets; + + private List ipv6Sets; + + private List ipv4PrefixSets; + + private List ipv6PrefixSets; + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + } + + public String getMacAddress() { + return this.macAddress; + } + + public void setMacAddress(String macAddress) { + this.macAddress = macAddress; + } + + public String getPrimaryIpAddress() { + return this.primaryIpAddress; + } + + public void setPrimaryIpAddress(String primaryIpAddress) { + this.primaryIpAddress = primaryIpAddress; + } + + public String getNetworkInterfaceId() { + return this.networkInterfaceId; + } + + public void setNetworkInterfaceId(String networkInterfaceId) { + this.networkInterfaceId = networkInterfaceId; + } + + public List getPrivateIpSets() { + return this.privateIpSets; + } + + public void setPrivateIpSets(List privateIpSets) { + this.privateIpSets = privateIpSets; + } + + public List getIpv6Sets() { + return this.ipv6Sets; + } + + public void setIpv6Sets(List ipv6Sets) { + this.ipv6Sets = ipv6Sets; + } + + public List getIpv4PrefixSets() { + return this.ipv4PrefixSets; + } + + public void setIpv4PrefixSets(List ipv4PrefixSets) { + this.ipv4PrefixSets = ipv4PrefixSets; + } + + public List getIpv6PrefixSets() { + return this.ipv6PrefixSets; + } + + public void setIpv6PrefixSets(List ipv6PrefixSets) { + this.ipv6PrefixSets = ipv6PrefixSets; + } + + public static class PrivateIpSet { + + private String privateIpAddress; + + private Boolean primary; + + public String getPrivateIpAddress() { + return this.privateIpAddress; + } + + public void setPrivateIpAddress(String privateIpAddress) { + this.privateIpAddress = privateIpAddress; + } + + public Boolean getPrimary() { + return this.primary; + } + + public void setPrimary(Boolean primary) { + this.primary = primary; + } + } + + public static class Ipv6Set { + + private String ipv6Address; + + public String getIpv6Address() { + return this.ipv6Address; + } + + public void setIpv6Address(String ipv6Address) { + this.ipv6Address = ipv6Address; + } + } + + public static class Ipv4PrefixSet { + + private String ipv4Prefix; + + public String getIpv4Prefix() { + return this.ipv4Prefix; + } + + public void setIpv4Prefix(String ipv4Prefix) { + this.ipv4Prefix = ipv4Prefix; + } + } + + public static class Ipv6PrefixSet { + + private String ipv6Prefix; + + public String getIpv6Prefix() { + return this.ipv6Prefix; + } + + public void setIpv6Prefix(String ipv6Prefix) { + this.ipv6Prefix = ipv6Prefix; + } + } + } + + public static class LockReason { + + private String lockMsg; + + private String lockReason; + + public String getLockMsg() { + return this.lockMsg; + } + + public void setLockMsg(String lockMsg) { + this.lockMsg = lockMsg; + } + + public String getLockReason() { + return this.lockReason; + } + + public void setLockReason(String lockReason) { + this.lockReason = lockReason; + } + } + + public static class Tag { + + private String tagValue; + + private String tagKey; + + public String getTagValue() { + return this.tagValue; + } + + public void setTagValue(String tagValue) { + this.tagValue = tagValue; + } + + public String getTagKey() { + return this.tagKey; + } + + public void setTagKey(String tagKey) { + this.tagKey = tagKey; + } + } + + public static class VpcAttributes { + + private String vpcId; + + private String natIpAddress; + + private String vSwitchId; + + private List privateIpAddress; + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + public String getNatIpAddress() { + return this.natIpAddress; + } + + public void setNatIpAddress(String natIpAddress) { + this.natIpAddress = natIpAddress; + } + + public String getVSwitchId() { + return this.vSwitchId; + } + + public void setVSwitchId(String vSwitchId) { + this.vSwitchId = vSwitchId; + } + + public List getPrivateIpAddress() { + return this.privateIpAddress; + } + + public void setPrivateIpAddress(List privateIpAddress) { + this.privateIpAddress = privateIpAddress; + } + } + + public static class EipAddress { + + private Boolean isSupportUnassociate; + + private String internetChargeType; + + private String ipAddress; + + private Integer bandwidth; + + private String allocationId; + + public Boolean getIsSupportUnassociate() { + return this.isSupportUnassociate; + } + + public void setIsSupportUnassociate(Boolean isSupportUnassociate) { + this.isSupportUnassociate = isSupportUnassociate; + } + + public String getInternetChargeType() { + return this.internetChargeType; + } + + public void setInternetChargeType(String internetChargeType) { + this.internetChargeType = internetChargeType; + } + + public String getIpAddress() { + return this.ipAddress; + } + + public void setIpAddress(String ipAddress) { + this.ipAddress = ipAddress; + } + + public Integer getBandwidth() { + return this.bandwidth; + } + + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public String getAllocationId() { + return this.allocationId; + } + + public void setAllocationId(String allocationId) { + this.allocationId = allocationId; + } + } + + public static class HibernationOptions { + + private Boolean configured; + + public Boolean getConfigured() { + return this.configured; + } + + public void setConfigured(Boolean configured) { + this.configured = configured; + } + } + + public static class DedicatedHostAttribute { + + private String dedicatedHostId; + + private String dedicatedHostName; + + private String dedicatedHostClusterId; + + public String getDedicatedHostId() { + return this.dedicatedHostId; + } + + public void setDedicatedHostId(String dedicatedHostId) { + this.dedicatedHostId = dedicatedHostId; + } + + public String getDedicatedHostName() { + return this.dedicatedHostName; + } + + public void setDedicatedHostName(String dedicatedHostName) { + this.dedicatedHostName = dedicatedHostName; + } + + public String getDedicatedHostClusterId() { + return this.dedicatedHostClusterId; + } + + public void setDedicatedHostClusterId(String dedicatedHostClusterId) { + this.dedicatedHostClusterId = dedicatedHostClusterId; + } + } + + public static class EcsCapacityReservationAttr { + + private String capacityReservationPreference; + + private String capacityReservationId; + + public String getCapacityReservationPreference() { + return this.capacityReservationPreference; + } + + public void setCapacityReservationPreference(String capacityReservationPreference) { + this.capacityReservationPreference = capacityReservationPreference; + } + + public String getCapacityReservationId() { + return this.capacityReservationId; + } + + public void setCapacityReservationId(String capacityReservationId) { + this.capacityReservationId = capacityReservationId; + } + } + + public static class DedicatedInstanceAttribute { + + private String affinity; + + private String tenancy; + + public String getAffinity() { + return this.affinity; + } + + public void setAffinity(String affinity) { + this.affinity = affinity; + } + + public String getTenancy() { + return this.tenancy; + } + + public void setTenancy(String tenancy) { + this.tenancy = tenancy; + } + } + + public static class CpuOptions { + + private String numa; + + private Integer coreCount; + + private Integer threadsPerCore; + + public String getNuma() { + return this.numa; + } + + public void setNuma(String numa) { + this.numa = numa; + } + + public Integer getCoreCount() { + return this.coreCount; + } + + public void setCoreCount(Integer coreCount) { + this.coreCount = coreCount; + } + + public Integer getThreadsPerCore() { + return this.threadsPerCore; + } + + public void setThreadsPerCore(Integer threadsPerCore) { + this.threadsPerCore = threadsPerCore; + } + } + + public static class MetadataOptions { + + private String httpEndpoint; + + private Integer httpPutResponseHopLimit; + + private String httpTokens; + + public String getHttpEndpoint() { + return this.httpEndpoint; + } + + public void setHttpEndpoint(String httpEndpoint) { + this.httpEndpoint = httpEndpoint; + } + + public Integer getHttpPutResponseHopLimit() { + return this.httpPutResponseHopLimit; + } + + public void setHttpPutResponseHopLimit(Integer httpPutResponseHopLimit) { + this.httpPutResponseHopLimit = httpPutResponseHopLimit; + } + + public String getHttpTokens() { + return this.httpTokens; + } + + public void setHttpTokens(String httpTokens) { + this.httpTokens = httpTokens; + } + } + + public static class ImageOptions { + + private Boolean loginAsNonRoot; + + public Boolean getLoginAsNonRoot() { + return this.loginAsNonRoot; + } + + public void setLoginAsNonRoot(Boolean loginAsNonRoot) { + this.loginAsNonRoot = loginAsNonRoot; + } + } + } + + @Override + public DescribeInstancesResponse getInstance(UnmarshallerContext context) { + return DescribeInstancesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInvocationResultsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInvocationResultsRequest.java new file mode 100644 index 0000000000..8de21e1c7b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInvocationResultsRequest.java @@ -0,0 +1,250 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeInvocationResultsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String commandId; + + private Long pageNumber; + + private String resourceGroupId; + + private String contentEncoding; + + private Long pageSize; + + private List tags; + + private String invokeId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceId; + + private String invokeRecordStatus; + + private Boolean includeHistory; + public DescribeInvocationResultsRequest() { + super("Ecs", "2014-05-26", "DescribeInvocationResults", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getCommandId() { + return this.commandId; + } + + public void setCommandId(String commandId) { + this.commandId = commandId; + if(commandId != null){ + putQueryParameter("CommandId", commandId); + } + } + + public Long getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Long pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public String getContentEncoding() { + return this.contentEncoding; + } + + public void setContentEncoding(String contentEncoding) { + this.contentEncoding = contentEncoding; + if(contentEncoding != null){ + putQueryParameter("ContentEncoding", contentEncoding); + } + } + + public Long getPageSize() { + return this.pageSize; + } + + public void setPageSize(Long pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public String getInvokeId() { + return this.invokeId; + } + + public void setInvokeId(String invokeId) { + this.invokeId = invokeId; + if(invokeId != null){ + putQueryParameter("InvokeId", invokeId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public String getInvokeRecordStatus() { + return this.invokeRecordStatus; + } + + public void setInvokeRecordStatus(String invokeRecordStatus) { + this.invokeRecordStatus = invokeRecordStatus; + if(invokeRecordStatus != null){ + putQueryParameter("InvokeRecordStatus", invokeRecordStatus); + } + } + + public Boolean getIncludeHistory() { + return this.includeHistory; + } + + public void setIncludeHistory(Boolean includeHistory) { + this.includeHistory = includeHistory; + if(includeHistory != null){ + putQueryParameter("IncludeHistory", includeHistory.toString()); + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return DescribeInvocationResultsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInvocationResultsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInvocationResultsResponse.java new file mode 100644 index 0000000000..93192697e8 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInvocationResultsResponse.java @@ -0,0 +1,301 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeInvocationResultsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeInvocationResultsResponse extends AcsResponse { + + private String requestId; + + private Invocation invocation; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Invocation getInvocation() { + return this.invocation; + } + + public void setInvocation(Invocation invocation) { + this.invocation = invocation; + } + + public static class Invocation { + + private Long pageSize; + + private Long pageNumber; + + private Long totalCount; + + private List invocationResults; + + public Long getPageSize() { + return this.pageSize; + } + + public void setPageSize(Long pageSize) { + this.pageSize = pageSize; + } + + public Long getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Long pageNumber) { + this.pageNumber = pageNumber; + } + + public Long getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Long totalCount) { + this.totalCount = totalCount; + } + + public List getInvocationResults() { + return this.invocationResults; + } + + public void setInvocationResults(List invocationResults) { + this.invocationResults = invocationResults; + } + + public static class InvocationResult { + + private String invocationStatus; + + private Integer repeats; + + private String commandId; + + private String instanceId; + + private String output; + + private Integer dropped; + + private String stopTime; + + private Long exitCode; + + private String startTime; + + private String errorInfo; + + private String errorCode; + + private String finishedTime; + + private String invokeId; + + private String invokeRecordStatus; + + private String username; + + private String containerId; + + private String containerName; + + private List tags; + + public String getInvocationStatus() { + return this.invocationStatus; + } + + public void setInvocationStatus(String invocationStatus) { + this.invocationStatus = invocationStatus; + } + + public Integer getRepeats() { + return this.repeats; + } + + public void setRepeats(Integer repeats) { + this.repeats = repeats; + } + + public String getCommandId() { + return this.commandId; + } + + public void setCommandId(String commandId) { + this.commandId = commandId; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getOutput() { + return this.output; + } + + public void setOutput(String output) { + this.output = output; + } + + public Integer getDropped() { + return this.dropped; + } + + public void setDropped(Integer dropped) { + this.dropped = dropped; + } + + public String getStopTime() { + return this.stopTime; + } + + public void setStopTime(String stopTime) { + this.stopTime = stopTime; + } + + public Long getExitCode() { + return this.exitCode; + } + + public void setExitCode(Long exitCode) { + this.exitCode = exitCode; + } + + public String getStartTime() { + return this.startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + public String getErrorInfo() { + return this.errorInfo; + } + + public void setErrorInfo(String errorInfo) { + this.errorInfo = errorInfo; + } + + public String getErrorCode() { + return this.errorCode; + } + + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + public String getFinishedTime() { + return this.finishedTime; + } + + public void setFinishedTime(String finishedTime) { + this.finishedTime = finishedTime; + } + + public String getInvokeId() { + return this.invokeId; + } + + public void setInvokeId(String invokeId) { + this.invokeId = invokeId; + } + + public String getInvokeRecordStatus() { + return this.invokeRecordStatus; + } + + public void setInvokeRecordStatus(String invokeRecordStatus) { + this.invokeRecordStatus = invokeRecordStatus; + } + + public String getUsername() { + return this.username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getContainerId() { + return this.containerId; + } + + public void setContainerId(String containerId) { + this.containerId = containerId; + } + + public String getContainerName() { + return this.containerName; + } + + public void setContainerName(String containerName) { + this.containerName = containerName; + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public static class Tag { + + private String tagKey; + + private String tagValue; + + public String getTagKey() { + return this.tagKey; + } + + public void setTagKey(String tagKey) { + this.tagKey = tagKey; + } + + public String getTagValue() { + return this.tagValue; + } + + public void setTagValue(String tagValue) { + this.tagValue = tagValue; + } + } + } + } + + @Override + public DescribeInvocationResultsResponse getInstance(UnmarshallerContext context) { + return DescribeInvocationResultsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInvocationsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInvocationsRequest.java new file mode 100644 index 0000000000..562139a7a3 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInvocationsRequest.java @@ -0,0 +1,302 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeInvocationsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String invokeStatus; + + private Boolean includeOutput; + + private String commandId; + + private Long pageNumber; + + private String resourceGroupId; + + private String contentEncoding; + + private String repeatMode; + + private Long pageSize; + + private List tags; + + private String invokeId; + + private Boolean timed; + + private String commandName; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String commandType; + + private String instanceId; + public DescribeInvocationsRequest() { + super("Ecs", "2014-05-26", "DescribeInvocations", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getInvokeStatus() { + return this.invokeStatus; + } + + public void setInvokeStatus(String invokeStatus) { + this.invokeStatus = invokeStatus; + if(invokeStatus != null){ + putQueryParameter("InvokeStatus", invokeStatus); + } + } + + public Boolean getIncludeOutput() { + return this.includeOutput; + } + + public void setIncludeOutput(Boolean includeOutput) { + this.includeOutput = includeOutput; + if(includeOutput != null){ + putQueryParameter("IncludeOutput", includeOutput.toString()); + } + } + + public String getCommandId() { + return this.commandId; + } + + public void setCommandId(String commandId) { + this.commandId = commandId; + if(commandId != null){ + putQueryParameter("CommandId", commandId); + } + } + + public Long getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Long pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public String getContentEncoding() { + return this.contentEncoding; + } + + public void setContentEncoding(String contentEncoding) { + this.contentEncoding = contentEncoding; + if(contentEncoding != null){ + putQueryParameter("ContentEncoding", contentEncoding); + } + } + + public String getRepeatMode() { + return this.repeatMode; + } + + public void setRepeatMode(String repeatMode) { + this.repeatMode = repeatMode; + if(repeatMode != null){ + putQueryParameter("RepeatMode", repeatMode); + } + } + + public Long getPageSize() { + return this.pageSize; + } + + public void setPageSize(Long pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public String getInvokeId() { + return this.invokeId; + } + + public void setInvokeId(String invokeId) { + this.invokeId = invokeId; + if(invokeId != null){ + putQueryParameter("InvokeId", invokeId); + } + } + + public Boolean getTimed() { + return this.timed; + } + + public void setTimed(Boolean timed) { + this.timed = timed; + if(timed != null){ + putQueryParameter("Timed", timed.toString()); + } + } + + public String getCommandName() { + return this.commandName; + } + + public void setCommandName(String commandName) { + this.commandName = commandName; + if(commandName != null){ + putQueryParameter("CommandName", commandName); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getCommandType() { + return this.commandType; + } + + public void setCommandType(String commandType) { + this.commandType = commandType; + if(commandType != null){ + putQueryParameter("CommandType", commandType); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return DescribeInvocationsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInvocationsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInvocationsResponse.java new file mode 100644 index 0000000000..def1559f8e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeInvocationsResponse.java @@ -0,0 +1,461 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeInvocationsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeInvocationsResponse extends AcsResponse { + + private Long pageSize; + + private String requestId; + + private Long pageNumber; + + private Long totalCount; + + private List invocations; + + public Long getPageSize() { + return this.pageSize; + } + + public void setPageSize(Long pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Long getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Long pageNumber) { + this.pageNumber = pageNumber; + } + + public Long getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Long totalCount) { + this.totalCount = totalCount; + } + + public List getInvocations() { + return this.invocations; + } + + public void setInvocations(List invocations) { + this.invocations = invocations; + } + + public static class Invocation { + + private String creationTime; + + private String frequency; + + private String invocationStatus; + + private String repeatMode; + + private String commandId; + + private String commandType; + + private String invokeStatus; + + private String parameters; + + private Boolean timed; + + private String commandContent; + + private String commandName; + + private String commandDescription; + + private String invokeId; + + private String username; + + private String workingDir; + + private Long timeout; + + private String containerId; + + private String containerName; + + private List invokeInstances; + + private List tags; + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getFrequency() { + return this.frequency; + } + + public void setFrequency(String frequency) { + this.frequency = frequency; + } + + public String getInvocationStatus() { + return this.invocationStatus; + } + + public void setInvocationStatus(String invocationStatus) { + this.invocationStatus = invocationStatus; + } + + public String getRepeatMode() { + return this.repeatMode; + } + + public void setRepeatMode(String repeatMode) { + this.repeatMode = repeatMode; + } + + public String getCommandId() { + return this.commandId; + } + + public void setCommandId(String commandId) { + this.commandId = commandId; + } + + public String getCommandType() { + return this.commandType; + } + + public void setCommandType(String commandType) { + this.commandType = commandType; + } + + public String getInvokeStatus() { + return this.invokeStatus; + } + + public void setInvokeStatus(String invokeStatus) { + this.invokeStatus = invokeStatus; + } + + public String getParameters() { + return this.parameters; + } + + public void setParameters(String parameters) { + this.parameters = parameters; + } + + public Boolean getTimed() { + return this.timed; + } + + public void setTimed(Boolean timed) { + this.timed = timed; + } + + public String getCommandContent() { + return this.commandContent; + } + + public void setCommandContent(String commandContent) { + this.commandContent = commandContent; + } + + public String getCommandName() { + return this.commandName; + } + + public void setCommandName(String commandName) { + this.commandName = commandName; + } + + public String getCommandDescription() { + return this.commandDescription; + } + + public void setCommandDescription(String commandDescription) { + this.commandDescription = commandDescription; + } + + public String getInvokeId() { + return this.invokeId; + } + + public void setInvokeId(String invokeId) { + this.invokeId = invokeId; + } + + public String getUsername() { + return this.username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getWorkingDir() { + return this.workingDir; + } + + public void setWorkingDir(String workingDir) { + this.workingDir = workingDir; + } + + public Long getTimeout() { + return this.timeout; + } + + public void setTimeout(Long timeout) { + this.timeout = timeout; + } + + public String getContainerId() { + return this.containerId; + } + + public void setContainerId(String containerId) { + this.containerId = containerId; + } + + public String getContainerName() { + return this.containerName; + } + + public void setContainerName(String containerName) { + this.containerName = containerName; + } + + public List getInvokeInstances() { + return this.invokeInstances; + } + + public void setInvokeInstances(List invokeInstances) { + this.invokeInstances = invokeInstances; + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public static class InvokeInstance { + + private String creationTime; + + private String updateTime; + + private String finishTime; + + private String invocationStatus; + + private Integer repeats; + + private String instanceId; + + private String output; + + private Integer dropped; + + private String stopTime; + + private Long exitCode; + + private String startTime; + + private String errorInfo; + + private Boolean timed; + + private String errorCode; + + private String instanceInvokeStatus; + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getUpdateTime() { + return this.updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + + public String getFinishTime() { + return this.finishTime; + } + + public void setFinishTime(String finishTime) { + this.finishTime = finishTime; + } + + public String getInvocationStatus() { + return this.invocationStatus; + } + + public void setInvocationStatus(String invocationStatus) { + this.invocationStatus = invocationStatus; + } + + public Integer getRepeats() { + return this.repeats; + } + + public void setRepeats(Integer repeats) { + this.repeats = repeats; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getOutput() { + return this.output; + } + + public void setOutput(String output) { + this.output = output; + } + + public Integer getDropped() { + return this.dropped; + } + + public void setDropped(Integer dropped) { + this.dropped = dropped; + } + + public String getStopTime() { + return this.stopTime; + } + + public void setStopTime(String stopTime) { + this.stopTime = stopTime; + } + + public Long getExitCode() { + return this.exitCode; + } + + public void setExitCode(Long exitCode) { + this.exitCode = exitCode; + } + + public String getStartTime() { + return this.startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + public String getErrorInfo() { + return this.errorInfo; + } + + public void setErrorInfo(String errorInfo) { + this.errorInfo = errorInfo; + } + + public Boolean getTimed() { + return this.timed; + } + + public void setTimed(Boolean timed) { + this.timed = timed; + } + + public String getErrorCode() { + return this.errorCode; + } + + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + public String getInstanceInvokeStatus() { + return this.instanceInvokeStatus; + } + + public void setInstanceInvokeStatus(String instanceInvokeStatus) { + this.instanceInvokeStatus = instanceInvokeStatus; + } + } + + public static class Tag { + + private String tagKey; + + private String tagValue; + + public String getTagKey() { + return this.tagKey; + } + + public void setTagKey(String tagKey) { + this.tagKey = tagKey; + } + + public String getTagValue() { + return this.tagValue; + } + + public void setTagValue(String tagValue) { + this.tagValue = tagValue; + } + } + } + + @Override + public DescribeInvocationsResponse getInstance(UnmarshallerContext context) { + return DescribeInvocationsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeKeyPairsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeKeyPairsRequest.java new file mode 100644 index 0000000000..1efd44b608 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeKeyPairsRequest.java @@ -0,0 +1,185 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeKeyPairsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String keyPairFingerPrint; + + private String keyPairName; + + private Integer pageNumber; + + private String resourceGroupId; + + private Integer pageSize; + + private List tags; + + private String resourceOwnerAccount; + + private Long ownerId; + public DescribeKeyPairsRequest() { + super("Ecs", "2014-05-26", "DescribeKeyPairs", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getKeyPairFingerPrint() { + return this.keyPairFingerPrint; + } + + public void setKeyPairFingerPrint(String keyPairFingerPrint) { + this.keyPairFingerPrint = keyPairFingerPrint; + if(keyPairFingerPrint != null){ + putQueryParameter("KeyPairFingerPrint", keyPairFingerPrint); + } + } + + public String getKeyPairName() { + return this.keyPairName; + } + + public void setKeyPairName(String keyPairName) { + this.keyPairName = keyPairName; + if(keyPairName != null){ + putQueryParameter("KeyPairName", keyPairName); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public static class Tag { + + private String value; + + private String key; + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + } + + @Override + public Class getResponseClass() { + return DescribeKeyPairsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeKeyPairsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeKeyPairsResponse.java new file mode 100644 index 0000000000..db895c059f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeKeyPairsResponse.java @@ -0,0 +1,158 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeKeyPairsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeKeyPairsResponse extends AcsResponse { + + private Integer pageSize; + + private String requestId; + + private Integer pageNumber; + + private Integer totalCount; + + private List keyPairs; + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getKeyPairs() { + return this.keyPairs; + } + + public void setKeyPairs(List keyPairs) { + this.keyPairs = keyPairs; + } + + public static class KeyPair { + + private String creationTime; + + private String keyPairName; + + private String keyPairFingerPrint; + + private String resourceGroupId; + + private List tags; + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getKeyPairName() { + return this.keyPairName; + } + + public void setKeyPairName(String keyPairName) { + this.keyPairName = keyPairName; + } + + public String getKeyPairFingerPrint() { + return this.keyPairFingerPrint; + } + + public void setKeyPairFingerPrint(String keyPairFingerPrint) { + this.keyPairFingerPrint = keyPairFingerPrint; + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public static class Tag { + + private String tagValue; + + private String tagKey; + + public String getTagValue() { + return this.tagValue; + } + + public void setTagValue(String tagValue) { + this.tagValue = tagValue; + } + + public String getTagKey() { + return this.tagKey; + } + + public void setTagKey(String tagKey) { + this.tagKey = tagKey; + } + } + } + + @Override + public DescribeKeyPairsResponse getInstance(UnmarshallerContext context) { + return DescribeKeyPairsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeLaunchTemplateVersionsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeLaunchTemplateVersionsRequest.java new file mode 100644 index 0000000000..5d1e599979 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeLaunchTemplateVersionsRequest.java @@ -0,0 +1,213 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeLaunchTemplateVersionsRequest extends RpcAcsRequest { + + + private String launchTemplateName; + + private Long maxVersion; + + private Long resourceOwnerId; + + private Boolean defaultVersion; + + private Long minVersion; + + private Integer pageNumber; + + private Integer pageSize; + + private String launchTemplateId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private List launchTemplateVersions; + + private Boolean detailFlag; + public DescribeLaunchTemplateVersionsRequest() { + super("Ecs", "2014-05-26", "DescribeLaunchTemplateVersions", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getLaunchTemplateName() { + return this.launchTemplateName; + } + + public void setLaunchTemplateName(String launchTemplateName) { + this.launchTemplateName = launchTemplateName; + if(launchTemplateName != null){ + putQueryParameter("LaunchTemplateName", launchTemplateName); + } + } + + public Long getMaxVersion() { + return this.maxVersion; + } + + public void setMaxVersion(Long maxVersion) { + this.maxVersion = maxVersion; + if(maxVersion != null){ + putQueryParameter("MaxVersion", maxVersion.toString()); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Boolean getDefaultVersion() { + return this.defaultVersion; + } + + public void setDefaultVersion(Boolean defaultVersion) { + this.defaultVersion = defaultVersion; + if(defaultVersion != null){ + putQueryParameter("DefaultVersion", defaultVersion.toString()); + } + } + + public Long getMinVersion() { + return this.minVersion; + } + + public void setMinVersion(Long minVersion) { + this.minVersion = minVersion; + if(minVersion != null){ + putQueryParameter("MinVersion", minVersion.toString()); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getLaunchTemplateId() { + return this.launchTemplateId; + } + + public void setLaunchTemplateId(String launchTemplateId) { + this.launchTemplateId = launchTemplateId; + if(launchTemplateId != null){ + putQueryParameter("LaunchTemplateId", launchTemplateId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getLaunchTemplateVersions() { + return this.launchTemplateVersions; + } + + public void setLaunchTemplateVersions(List launchTemplateVersions) { + this.launchTemplateVersions = launchTemplateVersions; + if (launchTemplateVersions != null) { + for (int i = 0; i < launchTemplateVersions.size(); i++) { + putQueryParameter("LaunchTemplateVersion." + (i + 1) , launchTemplateVersions.get(i)); + } + } + } + + public Boolean getDetailFlag() { + return this.detailFlag; + } + + public void setDetailFlag(Boolean detailFlag) { + this.detailFlag = detailFlag; + if(detailFlag != null){ + putQueryParameter("DetailFlag", detailFlag.toString()); + } + } + + @Override + public Class getResponseClass() { + return DescribeLaunchTemplateVersionsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeLaunchTemplateVersionsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeLaunchTemplateVersionsResponse.java new file mode 100644 index 0000000000..38bd783313 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeLaunchTemplateVersionsResponse.java @@ -0,0 +1,867 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeLaunchTemplateVersionsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeLaunchTemplateVersionsResponse extends AcsResponse { + + private Integer pageSize; + + private String requestId; + + private Integer pageNumber; + + private Integer totalCount; + + private List launchTemplateVersionSets; + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getLaunchTemplateVersionSets() { + return this.launchTemplateVersionSets; + } + + public void setLaunchTemplateVersionSets(List launchTemplateVersionSets) { + this.launchTemplateVersionSets = launchTemplateVersionSets; + } + + public static class LaunchTemplateVersionSet { + + private String launchTemplateName; + + private Boolean defaultVersion; + + private Long versionNumber; + + private String modifiedTime; + + private String launchTemplateId; + + private String createTime; + + private String createdBy; + + private String versionDescription; + + private LaunchTemplateData launchTemplateData; + + public String getLaunchTemplateName() { + return this.launchTemplateName; + } + + public void setLaunchTemplateName(String launchTemplateName) { + this.launchTemplateName = launchTemplateName; + } + + public Boolean getDefaultVersion() { + return this.defaultVersion; + } + + public void setDefaultVersion(Boolean defaultVersion) { + this.defaultVersion = defaultVersion; + } + + public Long getVersionNumber() { + return this.versionNumber; + } + + public void setVersionNumber(Long versionNumber) { + this.versionNumber = versionNumber; + } + + public String getModifiedTime() { + return this.modifiedTime; + } + + public void setModifiedTime(String modifiedTime) { + this.modifiedTime = modifiedTime; + } + + public String getLaunchTemplateId() { + return this.launchTemplateId; + } + + public void setLaunchTemplateId(String launchTemplateId) { + this.launchTemplateId = launchTemplateId; + } + + public String getCreateTime() { + return this.createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getCreatedBy() { + return this.createdBy; + } + + public void setCreatedBy(String createdBy) { + this.createdBy = createdBy; + } + + public String getVersionDescription() { + return this.versionDescription; + } + + public void setVersionDescription(String versionDescription) { + this.versionDescription = versionDescription; + } + + public LaunchTemplateData getLaunchTemplateData() { + return this.launchTemplateData; + } + + public void setLaunchTemplateData(LaunchTemplateData launchTemplateData) { + this.launchTemplateData = launchTemplateData; + } + + public static class LaunchTemplateData { + + private String deploymentSetId; + + private String vpcId; + + private String systemDiskPerformanceLevel; + + private String keyPairName; + + private String securityGroupId; + + private String networkType; + + private String spotStrategy; + + private Boolean enableVmOsConfig; + + private String description; + + private Integer spotDuration; + + private String instanceName; + + private String securityEnhancementStrategy; + + private String userData; + + private String systemDiskDiskName; + + private Integer systemDiskSize; + + private Float spotPriceLimit; + + private Boolean passwordInherit; + + private String privateIpAddress; + + private String imageId; + + private Boolean systemDiskDeleteWithInstance; + + private String systemDiskCategory; + + private String autoReleaseTime; + + private String systemDiskDescription; + + private String imageOwnerAlias; + + private String hostName; + + private Integer systemDiskIops; + + private String systemDiskAutoSnapshotPolicyId; + + private Integer internetMaxBandwidthOut; + + private Integer internetMaxBandwidthIn; + + private String instanceType; + + private Integer period; + + private String instanceChargeType; + + private String ioOptimized; + + private String ramRoleName; + + private String vSwitchId; + + private String resourceGroupId; + + private String internetChargeType; + + private String zoneId; + + private Integer ipv6AddressCount; + + private Long systemDiskProvisionedIops; + + private Boolean systemDiskBurstingEnabled; + + private String systemDiskEncrypted; + + private List dataDisks; + + private List networkInterfaces; + + private List tags; + + private List securityGroupIds; + + public String getDeploymentSetId() { + return this.deploymentSetId; + } + + public void setDeploymentSetId(String deploymentSetId) { + this.deploymentSetId = deploymentSetId; + } + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + public String getSystemDiskPerformanceLevel() { + return this.systemDiskPerformanceLevel; + } + + public void setSystemDiskPerformanceLevel(String systemDiskPerformanceLevel) { + this.systemDiskPerformanceLevel = systemDiskPerformanceLevel; + } + + public String getKeyPairName() { + return this.keyPairName; + } + + public void setKeyPairName(String keyPairName) { + this.keyPairName = keyPairName; + } + + public String getSecurityGroupId() { + return this.securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + } + + public String getNetworkType() { + return this.networkType; + } + + public void setNetworkType(String networkType) { + this.networkType = networkType; + } + + public String getSpotStrategy() { + return this.spotStrategy; + } + + public void setSpotStrategy(String spotStrategy) { + this.spotStrategy = spotStrategy; + } + + public Boolean getEnableVmOsConfig() { + return this.enableVmOsConfig; + } + + public void setEnableVmOsConfig(Boolean enableVmOsConfig) { + this.enableVmOsConfig = enableVmOsConfig; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getSpotDuration() { + return this.spotDuration; + } + + public void setSpotDuration(Integer spotDuration) { + this.spotDuration = spotDuration; + } + + public String getInstanceName() { + return this.instanceName; + } + + public void setInstanceName(String instanceName) { + this.instanceName = instanceName; + } + + public String getSecurityEnhancementStrategy() { + return this.securityEnhancementStrategy; + } + + public void setSecurityEnhancementStrategy(String securityEnhancementStrategy) { + this.securityEnhancementStrategy = securityEnhancementStrategy; + } + + public String getUserData() { + return this.userData; + } + + public void setUserData(String userData) { + this.userData = userData; + } + + public String getSystemDiskDiskName() { + return this.systemDiskDiskName; + } + + public void setSystemDiskDiskName(String systemDiskDiskName) { + this.systemDiskDiskName = systemDiskDiskName; + } + + public Integer getSystemDiskSize() { + return this.systemDiskSize; + } + + public void setSystemDiskSize(Integer systemDiskSize) { + this.systemDiskSize = systemDiskSize; + } + + public Float getSpotPriceLimit() { + return this.spotPriceLimit; + } + + public void setSpotPriceLimit(Float spotPriceLimit) { + this.spotPriceLimit = spotPriceLimit; + } + + public Boolean getPasswordInherit() { + return this.passwordInherit; + } + + public void setPasswordInherit(Boolean passwordInherit) { + this.passwordInherit = passwordInherit; + } + + public String getPrivateIpAddress() { + return this.privateIpAddress; + } + + public void setPrivateIpAddress(String privateIpAddress) { + this.privateIpAddress = privateIpAddress; + } + + public String getImageId() { + return this.imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public Boolean getSystemDiskDeleteWithInstance() { + return this.systemDiskDeleteWithInstance; + } + + public void setSystemDiskDeleteWithInstance(Boolean systemDiskDeleteWithInstance) { + this.systemDiskDeleteWithInstance = systemDiskDeleteWithInstance; + } + + public String getSystemDiskCategory() { + return this.systemDiskCategory; + } + + public void setSystemDiskCategory(String systemDiskCategory) { + this.systemDiskCategory = systemDiskCategory; + } + + public String getAutoReleaseTime() { + return this.autoReleaseTime; + } + + public void setAutoReleaseTime(String autoReleaseTime) { + this.autoReleaseTime = autoReleaseTime; + } + + public String getSystemDiskDescription() { + return this.systemDiskDescription; + } + + public void setSystemDiskDescription(String systemDiskDescription) { + this.systemDiskDescription = systemDiskDescription; + } + + public String getImageOwnerAlias() { + return this.imageOwnerAlias; + } + + public void setImageOwnerAlias(String imageOwnerAlias) { + this.imageOwnerAlias = imageOwnerAlias; + } + + public String getHostName() { + return this.hostName; + } + + public void setHostName(String hostName) { + this.hostName = hostName; + } + + public Integer getSystemDiskIops() { + return this.systemDiskIops; + } + + public void setSystemDiskIops(Integer systemDiskIops) { + this.systemDiskIops = systemDiskIops; + } + + public String getSystemDiskAutoSnapshotPolicyId() { + return this.systemDiskAutoSnapshotPolicyId; + } + + public void setSystemDiskAutoSnapshotPolicyId(String systemDiskAutoSnapshotPolicyId) { + this.systemDiskAutoSnapshotPolicyId = systemDiskAutoSnapshotPolicyId; + } + + public Integer getInternetMaxBandwidthOut() { + return this.internetMaxBandwidthOut; + } + + public void setInternetMaxBandwidthOut(Integer internetMaxBandwidthOut) { + this.internetMaxBandwidthOut = internetMaxBandwidthOut; + } + + public Integer getInternetMaxBandwidthIn() { + return this.internetMaxBandwidthIn; + } + + public void setInternetMaxBandwidthIn(Integer internetMaxBandwidthIn) { + this.internetMaxBandwidthIn = internetMaxBandwidthIn; + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public Integer getPeriod() { + return this.period; + } + + public void setPeriod(Integer period) { + this.period = period; + } + + public String getInstanceChargeType() { + return this.instanceChargeType; + } + + public void setInstanceChargeType(String instanceChargeType) { + this.instanceChargeType = instanceChargeType; + } + + public String getIoOptimized() { + return this.ioOptimized; + } + + public void setIoOptimized(String ioOptimized) { + this.ioOptimized = ioOptimized; + } + + public String getRamRoleName() { + return this.ramRoleName; + } + + public void setRamRoleName(String ramRoleName) { + this.ramRoleName = ramRoleName; + } + + public String getVSwitchId() { + return this.vSwitchId; + } + + public void setVSwitchId(String vSwitchId) { + this.vSwitchId = vSwitchId; + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + } + + public String getInternetChargeType() { + return this.internetChargeType; + } + + public void setInternetChargeType(String internetChargeType) { + this.internetChargeType = internetChargeType; + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + } + + public Integer getIpv6AddressCount() { + return this.ipv6AddressCount; + } + + public void setIpv6AddressCount(Integer ipv6AddressCount) { + this.ipv6AddressCount = ipv6AddressCount; + } + + public Long getSystemDiskProvisionedIops() { + return this.systemDiskProvisionedIops; + } + + public void setSystemDiskProvisionedIops(Long systemDiskProvisionedIops) { + this.systemDiskProvisionedIops = systemDiskProvisionedIops; + } + + public Boolean getSystemDiskBurstingEnabled() { + return this.systemDiskBurstingEnabled; + } + + public void setSystemDiskBurstingEnabled(Boolean systemDiskBurstingEnabled) { + this.systemDiskBurstingEnabled = systemDiskBurstingEnabled; + } + + public String getSystemDiskEncrypted() { + return this.systemDiskEncrypted; + } + + public void setSystemDiskEncrypted(String systemDiskEncrypted) { + this.systemDiskEncrypted = systemDiskEncrypted; + } + + public List getDataDisks() { + return this.dataDisks; + } + + public void setDataDisks(List dataDisks) { + this.dataDisks = dataDisks; + } + + public List getNetworkInterfaces() { + return this.networkInterfaces; + } + + public void setNetworkInterfaces(List networkInterfaces) { + this.networkInterfaces = networkInterfaces; + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public List getSecurityGroupIds() { + return this.securityGroupIds; + } + + public void setSecurityGroupIds(List securityGroupIds) { + this.securityGroupIds = securityGroupIds; + } + + public static class DataDisk { + + private String performanceLevel; + + private String description; + + private String snapshotId; + + private String device; + + private Integer size; + + private String diskName; + + private String category; + + private Boolean deleteWithInstance; + + private String encrypted; + + private Long provisionedIops; + + private Boolean burstingEnabled; + + private String autoSnapshotPolicyId; + + public String getPerformanceLevel() { + return this.performanceLevel; + } + + public void setPerformanceLevel(String performanceLevel) { + this.performanceLevel = performanceLevel; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getSnapshotId() { + return this.snapshotId; + } + + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; + } + + public String getDevice() { + return this.device; + } + + public void setDevice(String device) { + this.device = device; + } + + public Integer getSize() { + return this.size; + } + + public void setSize(Integer size) { + this.size = size; + } + + public String getDiskName() { + return this.diskName; + } + + public void setDiskName(String diskName) { + this.diskName = diskName; + } + + public String getCategory() { + return this.category; + } + + public void setCategory(String category) { + this.category = category; + } + + public Boolean getDeleteWithInstance() { + return this.deleteWithInstance; + } + + public void setDeleteWithInstance(Boolean deleteWithInstance) { + this.deleteWithInstance = deleteWithInstance; + } + + public String getEncrypted() { + return this.encrypted; + } + + public void setEncrypted(String encrypted) { + this.encrypted = encrypted; + } + + public Long getProvisionedIops() { + return this.provisionedIops; + } + + public void setProvisionedIops(Long provisionedIops) { + this.provisionedIops = provisionedIops; + } + + public Boolean getBurstingEnabled() { + return this.burstingEnabled; + } + + public void setBurstingEnabled(Boolean burstingEnabled) { + this.burstingEnabled = burstingEnabled; + } + + public String getAutoSnapshotPolicyId() { + return this.autoSnapshotPolicyId; + } + + public void setAutoSnapshotPolicyId(String autoSnapshotPolicyId) { + this.autoSnapshotPolicyId = autoSnapshotPolicyId; + } + } + + public static class NetworkInterface { + + private String networkInterfaceName; + + private String vSwitchId; + + private String description; + + private String primaryIpAddress; + + private String securityGroupId; + + private String instanceType; + + private String networkInterfaceTrafficMode; + + private List securityGroupIds1; + + public String getNetworkInterfaceName() { + return this.networkInterfaceName; + } + + public void setNetworkInterfaceName(String networkInterfaceName) { + this.networkInterfaceName = networkInterfaceName; + } + + public String getVSwitchId() { + return this.vSwitchId; + } + + public void setVSwitchId(String vSwitchId) { + this.vSwitchId = vSwitchId; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getPrimaryIpAddress() { + return this.primaryIpAddress; + } + + public void setPrimaryIpAddress(String primaryIpAddress) { + this.primaryIpAddress = primaryIpAddress; + } + + public String getSecurityGroupId() { + return this.securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public String getNetworkInterfaceTrafficMode() { + return this.networkInterfaceTrafficMode; + } + + public void setNetworkInterfaceTrafficMode(String networkInterfaceTrafficMode) { + this.networkInterfaceTrafficMode = networkInterfaceTrafficMode; + } + + public List getSecurityGroupIds1() { + return this.securityGroupIds1; + } + + public void setSecurityGroupIds1(List securityGroupIds1) { + this.securityGroupIds1 = securityGroupIds1; + } + } + + public static class InstanceTag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + } + } + + @Override + public DescribeLaunchTemplateVersionsResponse getInstance(UnmarshallerContext context) { + return DescribeLaunchTemplateVersionsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeLaunchTemplatesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeLaunchTemplatesRequest.java new file mode 100644 index 0000000000..10d83464d6 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeLaunchTemplatesRequest.java @@ -0,0 +1,202 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeLaunchTemplatesRequest extends RpcAcsRequest { + + + private List launchTemplateNames; + + private Long resourceOwnerId; + + private Integer pageNumber; + + private Integer pageSize; + + private List templateTags; + + private List launchTemplateIds; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String templateResourceGroupId; + + private Long ownerId; + public DescribeLaunchTemplatesRequest() { + super("Ecs", "2014-05-26", "DescribeLaunchTemplates", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public List getLaunchTemplateNames() { + return this.launchTemplateNames; + } + + public void setLaunchTemplateNames(List launchTemplateNames) { + this.launchTemplateNames = launchTemplateNames; + if (launchTemplateNames != null) { + for (int i = 0; i < launchTemplateNames.size(); i++) { + putQueryParameter("LaunchTemplateName." + (i + 1) , launchTemplateNames.get(i)); + } + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public List getTemplateTags() { + return this.templateTags; + } + + public void setTemplateTags(List templateTags) { + this.templateTags = templateTags; + if (templateTags != null) { + for (int depth1 = 0; depth1 < templateTags.size(); depth1++) { + putQueryParameter("TemplateTag." + (depth1 + 1) + ".Key" , templateTags.get(depth1).getKey()); + putQueryParameter("TemplateTag." + (depth1 + 1) + ".Value" , templateTags.get(depth1).getValue()); + } + } + } + + public List getLaunchTemplateIds() { + return this.launchTemplateIds; + } + + public void setLaunchTemplateIds(List launchTemplateIds) { + this.launchTemplateIds = launchTemplateIds; + if (launchTemplateIds != null) { + for (int i = 0; i < launchTemplateIds.size(); i++) { + putQueryParameter("LaunchTemplateId." + (i + 1) , launchTemplateIds.get(i)); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getTemplateResourceGroupId() { + return this.templateResourceGroupId; + } + + public void setTemplateResourceGroupId(String templateResourceGroupId) { + this.templateResourceGroupId = templateResourceGroupId; + if(templateResourceGroupId != null){ + putQueryParameter("TemplateResourceGroupId", templateResourceGroupId); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public static class TemplateTag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return DescribeLaunchTemplatesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeLaunchTemplatesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeLaunchTemplatesResponse.java new file mode 100644 index 0000000000..6fa5e73f59 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeLaunchTemplatesResponse.java @@ -0,0 +1,198 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeLaunchTemplatesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeLaunchTemplatesResponse extends AcsResponse { + + private Integer pageSize; + + private String requestId; + + private Integer pageNumber; + + private Integer totalCount; + + private List launchTemplateSets; + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getLaunchTemplateSets() { + return this.launchTemplateSets; + } + + public void setLaunchTemplateSets(List launchTemplateSets) { + this.launchTemplateSets = launchTemplateSets; + } + + public static class LaunchTemplateSet { + + private String launchTemplateName; + + private Long defaultVersionNumber; + + private String modifiedTime; + + private String launchTemplateId; + + private String createTime; + + private String resourceGroupId; + + private String createdBy; + + private Long latestVersionNumber; + + private List tags; + + public String getLaunchTemplateName() { + return this.launchTemplateName; + } + + public void setLaunchTemplateName(String launchTemplateName) { + this.launchTemplateName = launchTemplateName; + } + + public Long getDefaultVersionNumber() { + return this.defaultVersionNumber; + } + + public void setDefaultVersionNumber(Long defaultVersionNumber) { + this.defaultVersionNumber = defaultVersionNumber; + } + + public String getModifiedTime() { + return this.modifiedTime; + } + + public void setModifiedTime(String modifiedTime) { + this.modifiedTime = modifiedTime; + } + + public String getLaunchTemplateId() { + return this.launchTemplateId; + } + + public void setLaunchTemplateId(String launchTemplateId) { + this.launchTemplateId = launchTemplateId; + } + + public String getCreateTime() { + return this.createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + } + + public String getCreatedBy() { + return this.createdBy; + } + + public void setCreatedBy(String createdBy) { + this.createdBy = createdBy; + } + + public Long getLatestVersionNumber() { + return this.latestVersionNumber; + } + + public void setLatestVersionNumber(Long latestVersionNumber) { + this.latestVersionNumber = latestVersionNumber; + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public static class Tag { + + private String tagValue; + + private String tagKey; + + public String getTagValue() { + return this.tagValue; + } + + public void setTagValue(String tagValue) { + this.tagValue = tagValue; + } + + public String getTagKey() { + return this.tagKey; + } + + public void setTagKey(String tagKey) { + this.tagKey = tagKey; + } + } + } + + @Override + public DescribeLaunchTemplatesResponse getInstance(UnmarshallerContext context) { + return DescribeLaunchTemplatesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeLimitationRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeLimitationRequest.java new file mode 100644 index 0000000000..1ac6cc94eb --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeLimitationRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeLimitationRequest extends RpcAcsRequest { + + + private String limitation; + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public DescribeLimitationRequest() { + super("Ecs", "2014-05-26", "DescribeLimitation", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getLimitation() { + return this.limitation; + } + + public void setLimitation(String limitation) { + this.limitation = limitation; + if(limitation != null){ + putQueryParameter("Limitation", limitation); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DescribeLimitationResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeLimitationResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeLimitationResponse.java new file mode 100644 index 0000000000..5962a73cfd --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeLimitationResponse.java @@ -0,0 +1,61 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeLimitationResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeLimitationResponse extends AcsResponse { + + private String limitation; + + private String value; + + private String requestId; + + public String getLimitation() { + return this.limitation; + } + + public void setLimitation(String limitation) { + this.limitation = limitation; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DescribeLimitationResponse getInstance(UnmarshallerContext context) { + return DescribeLimitationResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeManagedInstancesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeManagedInstancesRequest.java new file mode 100644 index 0000000000..4cda8f9d5f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeManagedInstancesRequest.java @@ -0,0 +1,226 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeManagedInstancesRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Long pageNumber; + + private Long pageSize; + + private List tags; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String osType; + + private Long ownerId; + + private String instanceName; + + private List instanceIds; + + private String instanceIp; + + private String activationId; + public DescribeManagedInstancesRequest() { + super("Ecs", "2014-05-26", "DescribeManagedInstances", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Long getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Long pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Long getPageSize() { + return this.pageSize; + } + + public void setPageSize(Long pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getOsType() { + return this.osType; + } + + public void setOsType(String osType) { + this.osType = osType; + if(osType != null){ + putQueryParameter("OsType", osType); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceName() { + return this.instanceName; + } + + public void setInstanceName(String instanceName) { + this.instanceName = instanceName; + if(instanceName != null){ + putQueryParameter("InstanceName", instanceName); + } + } + + public List getInstanceIds() { + return this.instanceIds; + } + + public void setInstanceIds(List instanceIds) { + this.instanceIds = instanceIds; + if (instanceIds != null) { + for (int i = 0; i < instanceIds.size(); i++) { + putQueryParameter("InstanceId." + (i + 1) , instanceIds.get(i)); + } + } + } + + public String getInstanceIp() { + return this.instanceIp; + } + + public void setInstanceIp(String instanceIp) { + this.instanceIp = instanceIp; + if(instanceIp != null){ + putQueryParameter("InstanceIp", instanceIp); + } + } + + public String getActivationId() { + return this.activationId; + } + + public void setActivationId(String activationId) { + this.activationId = activationId; + if(activationId != null){ + putQueryParameter("ActivationId", activationId); + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return DescribeManagedInstancesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeManagedInstancesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeManagedInstancesResponse.java new file mode 100644 index 0000000000..69874259d6 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeManagedInstancesResponse.java @@ -0,0 +1,263 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeManagedInstancesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeManagedInstancesResponse extends AcsResponse { + + private Long pageSize; + + private String requestId; + + private Long pageNumber; + + private Long totalCount; + + private List instances; + + public Long getPageSize() { + return this.pageSize; + } + + public void setPageSize(Long pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Long getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Long pageNumber) { + this.pageNumber = pageNumber; + } + + public Long getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Long totalCount) { + this.totalCount = totalCount; + } + + public List getInstances() { + return this.instances; + } + + public void setInstances(List instances) { + this.instances = instances; + } + + public static class Instance { + + private String lastInvokedTime; + + private Boolean connected; + + private String internetIp; + + private String hostname; + + private String instanceId; + + private String activationId; + + private String intranetIp; + + private String agentVersion; + + private String registrationTime; + + private String instanceName; + + private String osType; + + private String osVersion; + + private Long invocationCount; + + private String machineId; + + private List tags; + + public String getLastInvokedTime() { + return this.lastInvokedTime; + } + + public void setLastInvokedTime(String lastInvokedTime) { + this.lastInvokedTime = lastInvokedTime; + } + + public Boolean getConnected() { + return this.connected; + } + + public void setConnected(Boolean connected) { + this.connected = connected; + } + + public String getInternetIp() { + return this.internetIp; + } + + public void setInternetIp(String internetIp) { + this.internetIp = internetIp; + } + + public String getHostname() { + return this.hostname; + } + + public void setHostname(String hostname) { + this.hostname = hostname; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getActivationId() { + return this.activationId; + } + + public void setActivationId(String activationId) { + this.activationId = activationId; + } + + public String getIntranetIp() { + return this.intranetIp; + } + + public void setIntranetIp(String intranetIp) { + this.intranetIp = intranetIp; + } + + public String getAgentVersion() { + return this.agentVersion; + } + + public void setAgentVersion(String agentVersion) { + this.agentVersion = agentVersion; + } + + public String getRegistrationTime() { + return this.registrationTime; + } + + public void setRegistrationTime(String registrationTime) { + this.registrationTime = registrationTime; + } + + public String getInstanceName() { + return this.instanceName; + } + + public void setInstanceName(String instanceName) { + this.instanceName = instanceName; + } + + public String getOsType() { + return this.osType; + } + + public void setOsType(String osType) { + this.osType = osType; + } + + public String getOsVersion() { + return this.osVersion; + } + + public void setOsVersion(String osVersion) { + this.osVersion = osVersion; + } + + public Long getInvocationCount() { + return this.invocationCount; + } + + public void setInvocationCount(Long invocationCount) { + this.invocationCount = invocationCount; + } + + public String getMachineId() { + return this.machineId; + } + + public void setMachineId(String machineId) { + this.machineId = machineId; + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public static class Tag { + + private String tagKey; + + private String tagValue; + + public String getTagKey() { + return this.tagKey; + } + + public void setTagKey(String tagKey) { + this.tagKey = tagKey; + } + + public String getTagValue() { + return this.tagValue; + } + + public void setTagValue(String tagValue) { + this.tagValue = tagValue; + } + } + } + + @Override + public DescribeManagedInstancesResponse getInstance(UnmarshallerContext context) { + return DescribeManagedInstancesResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeNatGatewaysRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeNatGatewaysRequest.java new file mode 100644 index 0000000000..857616d620 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeNatGatewaysRequest.java @@ -0,0 +1,145 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeNatGatewaysRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Integer pageNumber; + + private Integer pageSize; + + private String natGatewayId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String vpcId; + public DescribeNatGatewaysRequest() { + super("Ecs", "2014-05-26", "DescribeNatGateways", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getNatGatewayId() { + return this.natGatewayId; + } + + public void setNatGatewayId(String natGatewayId) { + this.natGatewayId = natGatewayId; + if(natGatewayId != null){ + putQueryParameter("NatGatewayId", natGatewayId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + if(vpcId != null){ + putQueryParameter("VpcId", vpcId); + } + } + + @Override + public Class getResponseClass() { + return DescribeNatGatewaysResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeNatGatewaysResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeNatGatewaysResponse.java new file mode 100644 index 0000000000..d62350554f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeNatGatewaysResponse.java @@ -0,0 +1,205 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeNatGatewaysResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeNatGatewaysResponse extends AcsResponse { + + private Integer pageSize; + + private String requestId; + + private Integer pageNumber; + + private Integer totalCount; + + private List natGateways; + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getNatGateways() { + return this.natGateways; + } + + public void setNatGateways(List natGateways) { + this.natGateways = natGateways; + } + + public static class NatGateway { + + private String status; + + private String creationTime; + + private String vpcId; + + private String spec; + + private String description; + + private String natGatewayId; + + private String businessStatus; + + private String name; + + private String instanceChargeType; + + private String regionId; + + private List forwardTableIds; + + private List bandwidthPackageIds; + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + public String getSpec() { + return this.spec; + } + + public void setSpec(String spec) { + this.spec = spec; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getNatGatewayId() { + return this.natGatewayId; + } + + public void setNatGatewayId(String natGatewayId) { + this.natGatewayId = natGatewayId; + } + + public String getBusinessStatus() { + return this.businessStatus; + } + + public void setBusinessStatus(String businessStatus) { + this.businessStatus = businessStatus; + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public String getInstanceChargeType() { + return this.instanceChargeType; + } + + public void setInstanceChargeType(String instanceChargeType) { + this.instanceChargeType = instanceChargeType; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public List getForwardTableIds() { + return this.forwardTableIds; + } + + public void setForwardTableIds(List forwardTableIds) { + this.forwardTableIds = forwardTableIds; + } + + public List getBandwidthPackageIds() { + return this.bandwidthPackageIds; + } + + public void setBandwidthPackageIds(List bandwidthPackageIds) { + this.bandwidthPackageIds = bandwidthPackageIds; + } + } + + @Override + public DescribeNatGatewaysResponse getInstance(UnmarshallerContext context) { + return DescribeNatGatewaysResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeNetworkInterfaceAttributeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeNetworkInterfaceAttributeRequest.java new file mode 100644 index 0000000000..6cabd6590e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeNetworkInterfaceAttributeRequest.java @@ -0,0 +1,159 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeNetworkInterfaceAttributeRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private List tags; + + private String attribute; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String networkInterfaceId; + public DescribeNetworkInterfaceAttributeRequest() { + super("Ecs", "2014-05-26", "DescribeNetworkInterfaceAttribute", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public String getAttribute() { + return this.attribute; + } + + public void setAttribute(String attribute) { + this.attribute = attribute; + if(attribute != null){ + putQueryParameter("Attribute", attribute); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getNetworkInterfaceId() { + return this.networkInterfaceId; + } + + public void setNetworkInterfaceId(String networkInterfaceId) { + this.networkInterfaceId = networkInterfaceId; + if(networkInterfaceId != null){ + putQueryParameter("NetworkInterfaceId", networkInterfaceId); + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return DescribeNetworkInterfaceAttributeResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeNetworkInterfaceAttributeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeNetworkInterfaceAttributeResponse.java new file mode 100644 index 0000000000..088c37cabd --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeNetworkInterfaceAttributeResponse.java @@ -0,0 +1,615 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeNetworkInterfaceAttributeResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeNetworkInterfaceAttributeResponse extends AcsResponse { + + private String creationTime; + + private String vpcId; + + private String type; + + private String status; + + private String networkInterfaceTrafficMode; + + private String networkInterfaceName; + + private String macAddress; + + private Integer queuePairNumber; + + private String networkInterfaceId; + + private Long serviceID; + + private String instanceId; + + private String ownerId; + + private Boolean serviceManaged; + + private String vSwitchId; + + private String requestId; + + private String description; + + private String resourceGroupId; + + private String zoneId; + + private String privateIpAddress; + + private Integer queueNumber; + + private List privateIpSets; + + private List ipv6Sets; + + private List ipv4PrefixSets; + + private List ipv6PrefixSets; + + private List tags; + + private List securityGroupIds; + + private AssociatedPublicIp associatedPublicIp; + + private Attachment attachment; + + private BondInterfaceSpecification bondInterfaceSpecification; + + private SlaveInterfaceSpecification slaveInterfaceSpecification; + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getNetworkInterfaceTrafficMode() { + return this.networkInterfaceTrafficMode; + } + + public void setNetworkInterfaceTrafficMode(String networkInterfaceTrafficMode) { + this.networkInterfaceTrafficMode = networkInterfaceTrafficMode; + } + + public String getNetworkInterfaceName() { + return this.networkInterfaceName; + } + + public void setNetworkInterfaceName(String networkInterfaceName) { + this.networkInterfaceName = networkInterfaceName; + } + + public String getMacAddress() { + return this.macAddress; + } + + public void setMacAddress(String macAddress) { + this.macAddress = macAddress; + } + + public Integer getQueuePairNumber() { + return this.queuePairNumber; + } + + public void setQueuePairNumber(Integer queuePairNumber) { + this.queuePairNumber = queuePairNumber; + } + + public String getNetworkInterfaceId() { + return this.networkInterfaceId; + } + + public void setNetworkInterfaceId(String networkInterfaceId) { + this.networkInterfaceId = networkInterfaceId; + } + + public Long getServiceID() { + return this.serviceID; + } + + public void setServiceID(Long serviceID) { + this.serviceID = serviceID; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(String ownerId) { + this.ownerId = ownerId; + } + + public Boolean getServiceManaged() { + return this.serviceManaged; + } + + public void setServiceManaged(Boolean serviceManaged) { + this.serviceManaged = serviceManaged; + } + + public String getVSwitchId() { + return this.vSwitchId; + } + + public void setVSwitchId(String vSwitchId) { + this.vSwitchId = vSwitchId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + } + + public String getPrivateIpAddress() { + return this.privateIpAddress; + } + + public void setPrivateIpAddress(String privateIpAddress) { + this.privateIpAddress = privateIpAddress; + } + + public Integer getQueueNumber() { + return this.queueNumber; + } + + public void setQueueNumber(Integer queueNumber) { + this.queueNumber = queueNumber; + } + + public List getPrivateIpSets() { + return this.privateIpSets; + } + + public void setPrivateIpSets(List privateIpSets) { + this.privateIpSets = privateIpSets; + } + + public List getIpv6Sets() { + return this.ipv6Sets; + } + + public void setIpv6Sets(List ipv6Sets) { + this.ipv6Sets = ipv6Sets; + } + + public List getIpv4PrefixSets() { + return this.ipv4PrefixSets; + } + + public void setIpv4PrefixSets(List ipv4PrefixSets) { + this.ipv4PrefixSets = ipv4PrefixSets; + } + + public List getIpv6PrefixSets() { + return this.ipv6PrefixSets; + } + + public void setIpv6PrefixSets(List ipv6PrefixSets) { + this.ipv6PrefixSets = ipv6PrefixSets; + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public List getSecurityGroupIds() { + return this.securityGroupIds; + } + + public void setSecurityGroupIds(List securityGroupIds) { + this.securityGroupIds = securityGroupIds; + } + + public AssociatedPublicIp getAssociatedPublicIp() { + return this.associatedPublicIp; + } + + public void setAssociatedPublicIp(AssociatedPublicIp associatedPublicIp) { + this.associatedPublicIp = associatedPublicIp; + } + + public Attachment getAttachment() { + return this.attachment; + } + + public void setAttachment(Attachment attachment) { + this.attachment = attachment; + } + + public BondInterfaceSpecification getBondInterfaceSpecification() { + return this.bondInterfaceSpecification; + } + + public void setBondInterfaceSpecification(BondInterfaceSpecification bondInterfaceSpecification) { + this.bondInterfaceSpecification = bondInterfaceSpecification; + } + + public SlaveInterfaceSpecification getSlaveInterfaceSpecification() { + return this.slaveInterfaceSpecification; + } + + public void setSlaveInterfaceSpecification(SlaveInterfaceSpecification slaveInterfaceSpecification) { + this.slaveInterfaceSpecification = slaveInterfaceSpecification; + } + + public static class PrivateIpSet { + + private String privateIpAddress; + + private Boolean primary; + + private AssociatedPublicIp1 associatedPublicIp1; + + public String getPrivateIpAddress() { + return this.privateIpAddress; + } + + public void setPrivateIpAddress(String privateIpAddress) { + this.privateIpAddress = privateIpAddress; + } + + public Boolean getPrimary() { + return this.primary; + } + + public void setPrimary(Boolean primary) { + this.primary = primary; + } + + public AssociatedPublicIp1 getAssociatedPublicIp1() { + return this.associatedPublicIp1; + } + + public void setAssociatedPublicIp1(AssociatedPublicIp1 associatedPublicIp1) { + this.associatedPublicIp1 = associatedPublicIp1; + } + + public static class AssociatedPublicIp1 { + + private String publicIpAddress; + + private String allocationId; + + public String getPublicIpAddress() { + return this.publicIpAddress; + } + + public void setPublicIpAddress(String publicIpAddress) { + this.publicIpAddress = publicIpAddress; + } + + public String getAllocationId() { + return this.allocationId; + } + + public void setAllocationId(String allocationId) { + this.allocationId = allocationId; + } + } + } + + public static class Ipv6Set { + + private String ipv6Address; + + public String getIpv6Address() { + return this.ipv6Address; + } + + public void setIpv6Address(String ipv6Address) { + this.ipv6Address = ipv6Address; + } + } + + public static class Ipv4PrefixSet { + + private String ipv4Prefix; + + public String getIpv4Prefix() { + return this.ipv4Prefix; + } + + public void setIpv4Prefix(String ipv4Prefix) { + this.ipv4Prefix = ipv4Prefix; + } + } + + public static class Ipv6PrefixSet { + + private String ipv6Prefix; + + public String getIpv6Prefix() { + return this.ipv6Prefix; + } + + public void setIpv6Prefix(String ipv6Prefix) { + this.ipv6Prefix = ipv6Prefix; + } + } + + public static class Tag { + + private String tagValue; + + private String tagKey; + + public String getTagValue() { + return this.tagValue; + } + + public void setTagValue(String tagValue) { + this.tagValue = tagValue; + } + + public String getTagKey() { + return this.tagKey; + } + + public void setTagKey(String tagKey) { + this.tagKey = tagKey; + } + } + + public static class AssociatedPublicIp { + + private String publicIpAddress; + + private String allocationId; + + public String getPublicIpAddress() { + return this.publicIpAddress; + } + + public void setPublicIpAddress(String publicIpAddress) { + this.publicIpAddress = publicIpAddress; + } + + public String getAllocationId() { + return this.allocationId; + } + + public void setAllocationId(String allocationId) { + this.allocationId = allocationId; + } + } + + public static class Attachment { + + private Integer deviceIndex; + + private String instanceId; + + private String trunkNetworkInterfaceId; + + private Integer networkCardIndex; + + private List memberNetworkInterfaceIds; + + public Integer getDeviceIndex() { + return this.deviceIndex; + } + + public void setDeviceIndex(Integer deviceIndex) { + this.deviceIndex = deviceIndex; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getTrunkNetworkInterfaceId() { + return this.trunkNetworkInterfaceId; + } + + public void setTrunkNetworkInterfaceId(String trunkNetworkInterfaceId) { + this.trunkNetworkInterfaceId = trunkNetworkInterfaceId; + } + + public Integer getNetworkCardIndex() { + return this.networkCardIndex; + } + + public void setNetworkCardIndex(Integer networkCardIndex) { + this.networkCardIndex = networkCardIndex; + } + + public List getMemberNetworkInterfaceIds() { + return this.memberNetworkInterfaceIds; + } + + public void setMemberNetworkInterfaceIds(List memberNetworkInterfaceIds) { + this.memberNetworkInterfaceIds = memberNetworkInterfaceIds; + } + } + + public static class BondInterfaceSpecification { + + private String bondMode; + + private List slaveInterfaceSpecification2; + + public String getBondMode() { + return this.bondMode; + } + + public void setBondMode(String bondMode) { + this.bondMode = bondMode; + } + + public List getSlaveInterfaceSpecification2() { + return this.slaveInterfaceSpecification2; + } + + public void setSlaveInterfaceSpecification2(List slaveInterfaceSpecification2) { + this.slaveInterfaceSpecification2 = slaveInterfaceSpecification2; + } + + public static class SlaveInterfaceSpecificationSet { + + private String slaveNetworkInterfaceId; + + private String workState; + + private String bondNetworkInterfaceId; + + public String getSlaveNetworkInterfaceId() { + return this.slaveNetworkInterfaceId; + } + + public void setSlaveNetworkInterfaceId(String slaveNetworkInterfaceId) { + this.slaveNetworkInterfaceId = slaveNetworkInterfaceId; + } + + public String getWorkState() { + return this.workState; + } + + public void setWorkState(String workState) { + this.workState = workState; + } + + public String getBondNetworkInterfaceId() { + return this.bondNetworkInterfaceId; + } + + public void setBondNetworkInterfaceId(String bondNetworkInterfaceId) { + this.bondNetworkInterfaceId = bondNetworkInterfaceId; + } + } + } + + public static class SlaveInterfaceSpecification { + + private String slaveNetworkInterfaceId; + + private String workState; + + private String bondNetworkInterfaceId; + + public String getSlaveNetworkInterfaceId() { + return this.slaveNetworkInterfaceId; + } + + public void setSlaveNetworkInterfaceId(String slaveNetworkInterfaceId) { + this.slaveNetworkInterfaceId = slaveNetworkInterfaceId; + } + + public String getWorkState() { + return this.workState; + } + + public void setWorkState(String workState) { + this.workState = workState; + } + + public String getBondNetworkInterfaceId() { + return this.bondNetworkInterfaceId; + } + + public void setBondNetworkInterfaceId(String bondNetworkInterfaceId) { + this.bondNetworkInterfaceId = bondNetworkInterfaceId; + } + } + + @Override + public DescribeNetworkInterfaceAttributeResponse getInstance(UnmarshallerContext context) { + return DescribeNetworkInterfaceAttributeResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeNetworkInterfacePermissionsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeNetworkInterfacePermissionsRequest.java new file mode 100644 index 0000000000..1347baa947 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeNetworkInterfacePermissionsRequest.java @@ -0,0 +1,148 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeNetworkInterfacePermissionsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Integer pageNumber; + + private Integer pageSize; + + private List networkInterfacePermissionIds; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String networkInterfaceId; + public DescribeNetworkInterfacePermissionsRequest() { + super("Ecs", "2014-05-26", "DescribeNetworkInterfacePermissions", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public List getNetworkInterfacePermissionIds() { + return this.networkInterfacePermissionIds; + } + + public void setNetworkInterfacePermissionIds(List networkInterfacePermissionIds) { + this.networkInterfacePermissionIds = networkInterfacePermissionIds; + if (networkInterfacePermissionIds != null) { + for (int i = 0; i < networkInterfacePermissionIds.size(); i++) { + putQueryParameter("NetworkInterfacePermissionId." + (i + 1) , networkInterfacePermissionIds.get(i)); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getNetworkInterfaceId() { + return this.networkInterfaceId; + } + + public void setNetworkInterfaceId(String networkInterfaceId) { + this.networkInterfaceId = networkInterfaceId; + if(networkInterfaceId != null){ + putQueryParameter("NetworkInterfaceId", networkInterfaceId); + } + } + + @Override + public Class getResponseClass() { + return DescribeNetworkInterfacePermissionsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeNetworkInterfacePermissionsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeNetworkInterfacePermissionsResponse.java new file mode 100644 index 0000000000..0427de3a41 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeNetworkInterfacePermissionsResponse.java @@ -0,0 +1,145 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeNetworkInterfacePermissionsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeNetworkInterfacePermissionsResponse extends AcsResponse { + + private Integer pageSize; + + private String requestId; + + private Integer pageNumber; + + private Integer totalCount; + + private List networkInterfacePermissions; + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getNetworkInterfacePermissions() { + return this.networkInterfacePermissions; + } + + public void setNetworkInterfacePermissions(List networkInterfacePermissions) { + this.networkInterfacePermissions = networkInterfacePermissions; + } + + public static class NetworkInterfacePermission { + + private String permission; + + private String networkInterfaceId; + + private Long accountId; + + private String networkInterfacePermissionId; + + private String serviceName; + + private String permissionState; + + public String getPermission() { + return this.permission; + } + + public void setPermission(String permission) { + this.permission = permission; + } + + public String getNetworkInterfaceId() { + return this.networkInterfaceId; + } + + public void setNetworkInterfaceId(String networkInterfaceId) { + this.networkInterfaceId = networkInterfaceId; + } + + public Long getAccountId() { + return this.accountId; + } + + public void setAccountId(Long accountId) { + this.accountId = accountId; + } + + public String getNetworkInterfacePermissionId() { + return this.networkInterfacePermissionId; + } + + public void setNetworkInterfacePermissionId(String networkInterfacePermissionId) { + this.networkInterfacePermissionId = networkInterfacePermissionId; + } + + public String getServiceName() { + return this.serviceName; + } + + public void setServiceName(String serviceName) { + this.serviceName = serviceName; + } + + public String getPermissionState() { + return this.permissionState; + } + + public void setPermissionState(String permissionState) { + this.permissionState = permissionState; + } + } + + @Override + public DescribeNetworkInterfacePermissionsResponse getInstance(UnmarshallerContext context) { + return DescribeNetworkInterfacePermissionsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeNetworkInterfacesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeNetworkInterfacesRequest.java new file mode 100644 index 0000000000..187bb3a204 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeNetworkInterfacesRequest.java @@ -0,0 +1,360 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeNetworkInterfacesRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Boolean serviceManaged; + + private String securityGroupId; + + private String type; + + private Integer pageNumber; + + private String resourceGroupId; + + private String nextToken; + + private Integer pageSize; + + private List tags; + + private String networkInterfaceName; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String vSwitchId; + + private List privateIpAddresss; + + private String instanceId; + + private String vpcId; + + private String primaryIpAddress; + + private Integer maxResults; + + private List networkInterfaceIds; + + private List ipv6Addresss; + + private String status; + public DescribeNetworkInterfacesRequest() { + super("Ecs", "2014-05-26", "DescribeNetworkInterfaces", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Boolean getServiceManaged() { + return this.serviceManaged; + } + + public void setServiceManaged(Boolean serviceManaged) { + this.serviceManaged = serviceManaged; + if(serviceManaged != null){ + putQueryParameter("ServiceManaged", serviceManaged.toString()); + } + } + + public String getSecurityGroupId() { + return this.securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + if(securityGroupId != null){ + putQueryParameter("SecurityGroupId", securityGroupId); + } + } + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + if(type != null){ + putQueryParameter("Type", type); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + if(nextToken != null){ + putQueryParameter("NextToken", nextToken); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public String getNetworkInterfaceName() { + return this.networkInterfaceName; + } + + public void setNetworkInterfaceName(String networkInterfaceName) { + this.networkInterfaceName = networkInterfaceName; + if(networkInterfaceName != null){ + putQueryParameter("NetworkInterfaceName", networkInterfaceName); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getVSwitchId() { + return this.vSwitchId; + } + + public void setVSwitchId(String vSwitchId) { + this.vSwitchId = vSwitchId; + if(vSwitchId != null){ + putQueryParameter("VSwitchId", vSwitchId); + } + } + + public List getPrivateIpAddresss() { + return this.privateIpAddresss; + } + + public void setPrivateIpAddresss(List privateIpAddresss) { + this.privateIpAddresss = privateIpAddresss; + if (privateIpAddresss != null) { + for (int i = 0; i < privateIpAddresss.size(); i++) { + putQueryParameter("PrivateIpAddress." + (i + 1) , privateIpAddresss.get(i)); + } + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + if(vpcId != null){ + putQueryParameter("VpcId", vpcId); + } + } + + public String getPrimaryIpAddress() { + return this.primaryIpAddress; + } + + public void setPrimaryIpAddress(String primaryIpAddress) { + this.primaryIpAddress = primaryIpAddress; + if(primaryIpAddress != null){ + putQueryParameter("PrimaryIpAddress", primaryIpAddress); + } + } + + public Integer getMaxResults() { + return this.maxResults; + } + + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + if(maxResults != null){ + putQueryParameter("MaxResults", maxResults.toString()); + } + } + + public List getNetworkInterfaceIds() { + return this.networkInterfaceIds; + } + + public void setNetworkInterfaceIds(List networkInterfaceIds) { + this.networkInterfaceIds = networkInterfaceIds; + if (networkInterfaceIds != null) { + for (int i = 0; i < networkInterfaceIds.size(); i++) { + putQueryParameter("NetworkInterfaceId." + (i + 1) , networkInterfaceIds.get(i)); + } + } + } + + public List getIpv6Addresss() { + return this.ipv6Addresss; + } + + public void setIpv6Addresss(List ipv6Addresss) { + this.ipv6Addresss = ipv6Addresss; + if (ipv6Addresss != null) { + for (int i = 0; i < ipv6Addresss.size(); i++) { + putQueryParameter("Ipv6Address." + (i + 1) , ipv6Addresss.get(i)); + } + } + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + if(status != null){ + putQueryParameter("Status", status); + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return DescribeNetworkInterfacesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeNetworkInterfacesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeNetworkInterfacesResponse.java new file mode 100644 index 0000000000..c64883689d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeNetworkInterfacesResponse.java @@ -0,0 +1,549 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeNetworkInterfacesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeNetworkInterfacesResponse extends AcsResponse { + + private String nextToken; + + private Integer pageSize; + + private Integer pageNumber; + + private String requestId; + + private Integer totalCount; + + private List networkInterfaceSets; + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getNetworkInterfaceSets() { + return this.networkInterfaceSets; + } + + public void setNetworkInterfaceSets(List networkInterfaceSets) { + this.networkInterfaceSets = networkInterfaceSets; + } + + public static class NetworkInterfaceSet { + + private String creationTime; + + private String vpcId; + + private String type; + + private String status; + + private String networkInterfaceTrafficMode; + + private String networkInterfaceName; + + private String macAddress; + + private Integer queuePairNumber; + + private String networkInterfaceId; + + private Long serviceID; + + private String instanceId; + + private String ownerId; + + private Boolean serviceManaged; + + private String vSwitchId; + + private String description; + + private String resourceGroupId; + + private String zoneId; + + private String privateIpAddress; + + private Integer queueNumber; + + private List privateIpSets; + + private List ipv6Sets; + + private List ipv4PrefixSets; + + private List ipv6PrefixSets; + + private List tags; + + private List securityGroupIds; + + private AssociatedPublicIp associatedPublicIp; + + private Attachment attachment; + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getNetworkInterfaceTrafficMode() { + return this.networkInterfaceTrafficMode; + } + + public void setNetworkInterfaceTrafficMode(String networkInterfaceTrafficMode) { + this.networkInterfaceTrafficMode = networkInterfaceTrafficMode; + } + + public String getNetworkInterfaceName() { + return this.networkInterfaceName; + } + + public void setNetworkInterfaceName(String networkInterfaceName) { + this.networkInterfaceName = networkInterfaceName; + } + + public String getMacAddress() { + return this.macAddress; + } + + public void setMacAddress(String macAddress) { + this.macAddress = macAddress; + } + + public Integer getQueuePairNumber() { + return this.queuePairNumber; + } + + public void setQueuePairNumber(Integer queuePairNumber) { + this.queuePairNumber = queuePairNumber; + } + + public String getNetworkInterfaceId() { + return this.networkInterfaceId; + } + + public void setNetworkInterfaceId(String networkInterfaceId) { + this.networkInterfaceId = networkInterfaceId; + } + + public Long getServiceID() { + return this.serviceID; + } + + public void setServiceID(Long serviceID) { + this.serviceID = serviceID; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(String ownerId) { + this.ownerId = ownerId; + } + + public Boolean getServiceManaged() { + return this.serviceManaged; + } + + public void setServiceManaged(Boolean serviceManaged) { + this.serviceManaged = serviceManaged; + } + + public String getVSwitchId() { + return this.vSwitchId; + } + + public void setVSwitchId(String vSwitchId) { + this.vSwitchId = vSwitchId; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + } + + public String getPrivateIpAddress() { + return this.privateIpAddress; + } + + public void setPrivateIpAddress(String privateIpAddress) { + this.privateIpAddress = privateIpAddress; + } + + public Integer getQueueNumber() { + return this.queueNumber; + } + + public void setQueueNumber(Integer queueNumber) { + this.queueNumber = queueNumber; + } + + public List getPrivateIpSets() { + return this.privateIpSets; + } + + public void setPrivateIpSets(List privateIpSets) { + this.privateIpSets = privateIpSets; + } + + public List getIpv6Sets() { + return this.ipv6Sets; + } + + public void setIpv6Sets(List ipv6Sets) { + this.ipv6Sets = ipv6Sets; + } + + public List getIpv4PrefixSets() { + return this.ipv4PrefixSets; + } + + public void setIpv4PrefixSets(List ipv4PrefixSets) { + this.ipv4PrefixSets = ipv4PrefixSets; + } + + public List getIpv6PrefixSets() { + return this.ipv6PrefixSets; + } + + public void setIpv6PrefixSets(List ipv6PrefixSets) { + this.ipv6PrefixSets = ipv6PrefixSets; + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public List getSecurityGroupIds() { + return this.securityGroupIds; + } + + public void setSecurityGroupIds(List securityGroupIds) { + this.securityGroupIds = securityGroupIds; + } + + public AssociatedPublicIp getAssociatedPublicIp() { + return this.associatedPublicIp; + } + + public void setAssociatedPublicIp(AssociatedPublicIp associatedPublicIp) { + this.associatedPublicIp = associatedPublicIp; + } + + public Attachment getAttachment() { + return this.attachment; + } + + public void setAttachment(Attachment attachment) { + this.attachment = attachment; + } + + public static class PrivateIpSet { + + private String privateIpAddress; + + private Boolean primary; + + private AssociatedPublicIp1 associatedPublicIp1; + + public String getPrivateIpAddress() { + return this.privateIpAddress; + } + + public void setPrivateIpAddress(String privateIpAddress) { + this.privateIpAddress = privateIpAddress; + } + + public Boolean getPrimary() { + return this.primary; + } + + public void setPrimary(Boolean primary) { + this.primary = primary; + } + + public AssociatedPublicIp1 getAssociatedPublicIp1() { + return this.associatedPublicIp1; + } + + public void setAssociatedPublicIp1(AssociatedPublicIp1 associatedPublicIp1) { + this.associatedPublicIp1 = associatedPublicIp1; + } + + public static class AssociatedPublicIp1 { + + private String publicIpAddress; + + private String allocationId; + + public String getPublicIpAddress() { + return this.publicIpAddress; + } + + public void setPublicIpAddress(String publicIpAddress) { + this.publicIpAddress = publicIpAddress; + } + + public String getAllocationId() { + return this.allocationId; + } + + public void setAllocationId(String allocationId) { + this.allocationId = allocationId; + } + } + } + + public static class Ipv6Set { + + private String ipv6Address; + + public String getIpv6Address() { + return this.ipv6Address; + } + + public void setIpv6Address(String ipv6Address) { + this.ipv6Address = ipv6Address; + } + } + + public static class Ipv4PrefixSet { + + private String ipv4Prefix; + + public String getIpv4Prefix() { + return this.ipv4Prefix; + } + + public void setIpv4Prefix(String ipv4Prefix) { + this.ipv4Prefix = ipv4Prefix; + } + } + + public static class Ipv6PrefixSet { + + private String ipv6Prefix; + + public String getIpv6Prefix() { + return this.ipv6Prefix; + } + + public void setIpv6Prefix(String ipv6Prefix) { + this.ipv6Prefix = ipv6Prefix; + } + } + + public static class Tag { + + private String tagValue; + + private String tagKey; + + public String getTagValue() { + return this.tagValue; + } + + public void setTagValue(String tagValue) { + this.tagValue = tagValue; + } + + public String getTagKey() { + return this.tagKey; + } + + public void setTagKey(String tagKey) { + this.tagKey = tagKey; + } + } + + public static class AssociatedPublicIp { + + private String publicIpAddress; + + private String allocationId; + + public String getPublicIpAddress() { + return this.publicIpAddress; + } + + public void setPublicIpAddress(String publicIpAddress) { + this.publicIpAddress = publicIpAddress; + } + + public String getAllocationId() { + return this.allocationId; + } + + public void setAllocationId(String allocationId) { + this.allocationId = allocationId; + } + } + + public static class Attachment { + + private Integer deviceIndex; + + private String instanceId; + + private String trunkNetworkInterfaceId; + + private Integer networkCardIndex; + + public Integer getDeviceIndex() { + return this.deviceIndex; + } + + public void setDeviceIndex(Integer deviceIndex) { + this.deviceIndex = deviceIndex; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getTrunkNetworkInterfaceId() { + return this.trunkNetworkInterfaceId; + } + + public void setTrunkNetworkInterfaceId(String trunkNetworkInterfaceId) { + this.trunkNetworkInterfaceId = trunkNetworkInterfaceId; + } + + public Integer getNetworkCardIndex() { + return this.networkCardIndex; + } + + public void setNetworkCardIndex(Integer networkCardIndex) { + this.networkCardIndex = networkCardIndex; + } + } + } + + @Override + public DescribeNetworkInterfacesResponse getInstance(UnmarshallerContext context) { + return DescribeNetworkInterfacesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeNewProjectEipMonitorDataRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeNewProjectEipMonitorDataRequest.java new file mode 100644 index 0000000000..cdbd1b5b32 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeNewProjectEipMonitorDataRequest.java @@ -0,0 +1,145 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeNewProjectEipMonitorDataRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String allocationId; + + private String startTime; + + private Integer period; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String endTime; + + private Long ownerId; + public DescribeNewProjectEipMonitorDataRequest() { + super("Ecs", "2014-05-26", "DescribeNewProjectEipMonitorData", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getAllocationId() { + return this.allocationId; + } + + public void setAllocationId(String allocationId) { + this.allocationId = allocationId; + if(allocationId != null){ + putQueryParameter("AllocationId", allocationId); + } + } + + public String getStartTime() { + return this.startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + if(startTime != null){ + putQueryParameter("StartTime", startTime); + } + } + + public Integer getPeriod() { + return this.period; + } + + public void setPeriod(Integer period) { + this.period = period; + if(period != null){ + putQueryParameter("Period", period.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getEndTime() { + return this.endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + if(endTime != null){ + putQueryParameter("EndTime", endTime); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DescribeNewProjectEipMonitorDataResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeNewProjectEipMonitorDataResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeNewProjectEipMonitorDataResponse.java new file mode 100644 index 0000000000..a4d5223156 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeNewProjectEipMonitorDataResponse.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeNewProjectEipMonitorDataResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeNewProjectEipMonitorDataResponse extends AcsResponse { + + private String requestId; + + private List eipMonitorDatas; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getEipMonitorDatas() { + return this.eipMonitorDatas; + } + + public void setEipMonitorDatas(List eipMonitorDatas) { + this.eipMonitorDatas = eipMonitorDatas; + } + + public static class EipMonitorData { + + private Integer eipTX; + + private Integer eipPackets; + + private Integer eipBandwidth; + + private String timeStamp; + + private Integer eipFlow; + + private Integer eipRX; + + public Integer getEipTX() { + return this.eipTX; + } + + public void setEipTX(Integer eipTX) { + this.eipTX = eipTX; + } + + public Integer getEipPackets() { + return this.eipPackets; + } + + public void setEipPackets(Integer eipPackets) { + this.eipPackets = eipPackets; + } + + public Integer getEipBandwidth() { + return this.eipBandwidth; + } + + public void setEipBandwidth(Integer eipBandwidth) { + this.eipBandwidth = eipBandwidth; + } + + public String getTimeStamp() { + return this.timeStamp; + } + + public void setTimeStamp(String timeStamp) { + this.timeStamp = timeStamp; + } + + public Integer getEipFlow() { + return this.eipFlow; + } + + public void setEipFlow(Integer eipFlow) { + this.eipFlow = eipFlow; + } + + public Integer getEipRX() { + return this.eipRX; + } + + public void setEipRX(Integer eipRX) { + this.eipRX = eipRX; + } + } + + @Override + public DescribeNewProjectEipMonitorDataResponse getInstance(UnmarshallerContext context) { + return DescribeNewProjectEipMonitorDataResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribePhysicalConnectionsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribePhysicalConnectionsRequest.java new file mode 100644 index 0000000000..27545161f6 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribePhysicalConnectionsRequest.java @@ -0,0 +1,189 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribePhysicalConnectionsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private Integer pageNumber; + + private Integer pageSize; + + private String userCidr; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private List filters; + public DescribePhysicalConnectionsRequest() { + super("Ecs", "2014-05-26", "DescribePhysicalConnections", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getUserCidr() { + return this.userCidr; + } + + public void setUserCidr(String userCidr) { + this.userCidr = userCidr; + if(userCidr != null){ + putQueryParameter("UserCidr", userCidr); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getFilters() { + return this.filters; + } + + public void setFilters(List filters) { + this.filters = filters; + if (filters != null) { + for (int depth1 = 0; depth1 < filters.size(); depth1++) { + if (filters.get(depth1).getValues() != null) { + for (int i = 0; i < filters.get(depth1).getValues().size(); i++) { + putQueryParameter("Filter." + (depth1 + 1) + ".Value." + (i + 1) , filters.get(depth1).getValues().get(i)); + } + } + putQueryParameter("Filter." + (depth1 + 1) + ".Key" , filters.get(depth1).getKey()); + } + } + } + + public static class Filter { + + private List values; + + private String key; + + public List getValues() { + return this.values; + } + + public void setValues(List values) { + this.values = values; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + } + + @Override + public Class getResponseClass() { + return DescribePhysicalConnectionsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribePhysicalConnectionsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribePhysicalConnectionsResponse.java new file mode 100644 index 0000000000..55f7a6bd0d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribePhysicalConnectionsResponse.java @@ -0,0 +1,265 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribePhysicalConnectionsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribePhysicalConnectionsResponse extends AcsResponse { + + private String requestId; + + private Integer pageNumber; + + private Integer pageSize; + + private Integer totalCount; + + private List physicalConnectionSet; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getPhysicalConnectionSet() { + return this.physicalConnectionSet; + } + + public void setPhysicalConnectionSet(List physicalConnectionSet) { + this.physicalConnectionSet = physicalConnectionSet; + } + + public static class PhysicalConnectionType { + + private String adLocation; + + private String creationTime; + + private String status; + + private String type; + + private String portNumber; + + private String circuitCode; + + private String spec; + + private Long bandwidth; + + private String description; + + private String portType; + + private String enabledTime; + + private String businessStatus; + + private String lineOperator; + + private String name; + + private String redundantPhysicalConnectionId; + + private String peerLocation; + + private String accessPointId; + + private String physicalConnectionId; + + public String getAdLocation() { + return this.adLocation; + } + + public void setAdLocation(String adLocation) { + this.adLocation = adLocation; + } + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + } + + public String getPortNumber() { + return this.portNumber; + } + + public void setPortNumber(String portNumber) { + this.portNumber = portNumber; + } + + public String getCircuitCode() { + return this.circuitCode; + } + + public void setCircuitCode(String circuitCode) { + this.circuitCode = circuitCode; + } + + public String getSpec() { + return this.spec; + } + + public void setSpec(String spec) { + this.spec = spec; + } + + public Long getBandwidth() { + return this.bandwidth; + } + + public void setBandwidth(Long bandwidth) { + this.bandwidth = bandwidth; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getPortType() { + return this.portType; + } + + public void setPortType(String portType) { + this.portType = portType; + } + + public String getEnabledTime() { + return this.enabledTime; + } + + public void setEnabledTime(String enabledTime) { + this.enabledTime = enabledTime; + } + + public String getBusinessStatus() { + return this.businessStatus; + } + + public void setBusinessStatus(String businessStatus) { + this.businessStatus = businessStatus; + } + + public String getLineOperator() { + return this.lineOperator; + } + + public void setLineOperator(String lineOperator) { + this.lineOperator = lineOperator; + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public String getRedundantPhysicalConnectionId() { + return this.redundantPhysicalConnectionId; + } + + public void setRedundantPhysicalConnectionId(String redundantPhysicalConnectionId) { + this.redundantPhysicalConnectionId = redundantPhysicalConnectionId; + } + + public String getPeerLocation() { + return this.peerLocation; + } + + public void setPeerLocation(String peerLocation) { + this.peerLocation = peerLocation; + } + + public String getAccessPointId() { + return this.accessPointId; + } + + public void setAccessPointId(String accessPointId) { + this.accessPointId = accessPointId; + } + + public String getPhysicalConnectionId() { + return this.physicalConnectionId; + } + + public void setPhysicalConnectionId(String physicalConnectionId) { + this.physicalConnectionId = physicalConnectionId; + } + } + + @Override + public DescribePhysicalConnectionsResponse getInstance(UnmarshallerContext context) { + return DescribePhysicalConnectionsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribePrefixListAssociationsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribePrefixListAssociationsRequest.java new file mode 100644 index 0000000000..b5f477e417 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribePrefixListAssociationsRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribePrefixListAssociationsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String prefixListId; + + private String nextToken; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private Integer maxResults; + public DescribePrefixListAssociationsRequest() { + super("Ecs", "2014-05-26", "DescribePrefixListAssociations", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getPrefixListId() { + return this.prefixListId; + } + + public void setPrefixListId(String prefixListId) { + this.prefixListId = prefixListId; + if(prefixListId != null){ + putQueryParameter("PrefixListId", prefixListId); + } + } + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + if(nextToken != null){ + putQueryParameter("NextToken", nextToken); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public Integer getMaxResults() { + return this.maxResults; + } + + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + if(maxResults != null){ + putQueryParameter("MaxResults", maxResults.toString()); + } + } + + @Override + public Class getResponseClass() { + return DescribePrefixListAssociationsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribePrefixListAssociationsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribePrefixListAssociationsResponse.java new file mode 100644 index 0000000000..f80a04c609 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribePrefixListAssociationsResponse.java @@ -0,0 +1,85 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribePrefixListAssociationsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribePrefixListAssociationsResponse extends AcsResponse { + + private String nextToken; + + private String requestId; + + private List prefixListAssociations; + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getPrefixListAssociations() { + return this.prefixListAssociations; + } + + public void setPrefixListAssociations(List prefixListAssociations) { + this.prefixListAssociations = prefixListAssociations; + } + + public static class PrefixListAssociation { + + private String resourceId; + + private String resourceType; + + public String getResourceId() { + return this.resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getResourceType() { + return this.resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + } + + @Override + public DescribePrefixListAssociationsResponse getInstance(UnmarshallerContext context) { + return DescribePrefixListAssociationsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribePrefixListAttributesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribePrefixListAttributesRequest.java new file mode 100644 index 0000000000..e95a36e14a --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribePrefixListAttributesRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribePrefixListAttributesRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String prefixListId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public DescribePrefixListAttributesRequest() { + super("Ecs", "2014-05-26", "DescribePrefixListAttributes", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getPrefixListId() { + return this.prefixListId; + } + + public void setPrefixListId(String prefixListId) { + this.prefixListId = prefixListId; + if(prefixListId != null){ + putQueryParameter("PrefixListId", prefixListId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DescribePrefixListAttributesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribePrefixListAttributesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribePrefixListAttributesResponse.java new file mode 100644 index 0000000000..eb265b588b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribePrefixListAttributesResponse.java @@ -0,0 +1,135 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribePrefixListAttributesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribePrefixListAttributesResponse extends AcsResponse { + + private String creationTime; + + private Integer maxEntries; + + private String requestId; + + private String description; + + private String addressFamily; + + private String prefixListName; + + private String prefixListId; + + private List entries; + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public Integer getMaxEntries() { + return this.maxEntries; + } + + public void setMaxEntries(Integer maxEntries) { + this.maxEntries = maxEntries; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getAddressFamily() { + return this.addressFamily; + } + + public void setAddressFamily(String addressFamily) { + this.addressFamily = addressFamily; + } + + public String getPrefixListName() { + return this.prefixListName; + } + + public void setPrefixListName(String prefixListName) { + this.prefixListName = prefixListName; + } + + public String getPrefixListId() { + return this.prefixListId; + } + + public void setPrefixListId(String prefixListId) { + this.prefixListId = prefixListId; + } + + public List getEntries() { + return this.entries; + } + + public void setEntries(List entries) { + this.entries = entries; + } + + public static class Entry { + + private String description; + + private String cidr; + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getCidr() { + return this.cidr; + } + + public void setCidr(String cidr) { + this.cidr = cidr; + } + } + + @Override + public DescribePrefixListAttributesResponse getInstance(UnmarshallerContext context) { + return DescribePrefixListAttributesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribePrefixListsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribePrefixListsRequest.java new file mode 100644 index 0000000000..c9a00385ee --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribePrefixListsRequest.java @@ -0,0 +1,161 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribePrefixListsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String nextToken; + + private List prefixListIds; + + private String addressFamily; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String prefixListName; + + private Integer maxResults; + public DescribePrefixListsRequest() { + super("Ecs", "2014-05-26", "DescribePrefixLists", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + if(nextToken != null){ + putQueryParameter("NextToken", nextToken); + } + } + + public List getPrefixListIds() { + return this.prefixListIds; + } + + public void setPrefixListIds(List prefixListIds) { + this.prefixListIds = prefixListIds; + if (prefixListIds != null) { + for (int i = 0; i < prefixListIds.size(); i++) { + putQueryParameter("PrefixListId." + (i + 1) , prefixListIds.get(i)); + } + } + } + + public String getAddressFamily() { + return this.addressFamily; + } + + public void setAddressFamily(String addressFamily) { + this.addressFamily = addressFamily; + if(addressFamily != null){ + putQueryParameter("AddressFamily", addressFamily); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getPrefixListName() { + return this.prefixListName; + } + + public void setPrefixListName(String prefixListName) { + this.prefixListName = prefixListName; + if(prefixListName != null){ + putQueryParameter("PrefixListName", prefixListName); + } + } + + public Integer getMaxResults() { + return this.maxResults; + } + + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + if(maxResults != null){ + putQueryParameter("MaxResults", maxResults.toString()); + } + } + + @Override + public Class getResponseClass() { + return DescribePrefixListsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribePrefixListsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribePrefixListsResponse.java new file mode 100644 index 0000000000..f43d8d4039 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribePrefixListsResponse.java @@ -0,0 +1,135 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribePrefixListsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribePrefixListsResponse extends AcsResponse { + + private String nextToken; + + private String requestId; + + private List prefixLists; + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getPrefixLists() { + return this.prefixLists; + } + + public void setPrefixLists(List prefixLists) { + this.prefixLists = prefixLists; + } + + public static class PrefixList { + + private String creationTime; + + private Integer associationCount; + + private Integer maxEntries; + + private String description; + + private String addressFamily; + + private String prefixListName; + + private String prefixListId; + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public Integer getAssociationCount() { + return this.associationCount; + } + + public void setAssociationCount(Integer associationCount) { + this.associationCount = associationCount; + } + + public Integer getMaxEntries() { + return this.maxEntries; + } + + public void setMaxEntries(Integer maxEntries) { + this.maxEntries = maxEntries; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getAddressFamily() { + return this.addressFamily; + } + + public void setAddressFamily(String addressFamily) { + this.addressFamily = addressFamily; + } + + public String getPrefixListName() { + return this.prefixListName; + } + + public void setPrefixListName(String prefixListName) { + this.prefixListName = prefixListName; + } + + public String getPrefixListId() { + return this.prefixListId; + } + + public void setPrefixListId(String prefixListId) { + this.prefixListId = prefixListId; + } + } + + @Override + public DescribePrefixListsResponse getInstance(UnmarshallerContext context) { + return DescribePrefixListsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribePriceRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribePriceRequest.java new file mode 100644 index 0000000000..7576cc47c8 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribePriceRequest.java @@ -0,0 +1,653 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribePriceRequest extends RpcAcsRequest { + + + private Integer dataDisk3Size; + + private Long resourceOwnerId; + + private String dataDisk3Category; + + private String isp; + + private Integer dataDisk4Size; + + private String priceUnit; + + private Integer period; + + private String dataDisk1PerformanceLevel; + + private String assuranceTimes; + + private Long ownerId; + + private Integer instanceCpuCoreCount; + + private String spotStrategy; + + private String internetChargeType; + + private String zoneId; + + private String instanceNetworkType; + + private Integer instanceAmount; + + private List instanceTypeLists; + + private String dataDisk3PerformanceLevel; + + private String imageId; + + private String ioOptimized; + + private Integer internetMaxBandwidthOut; + + private String systemDiskCategory; + + private String platform; + + private Integer capacity; + + private String systemDiskPerformanceLevel; + + private String dataDisk4Category; + + private String dataDisk4PerformanceLevel; + + private String scope; + + private String schedulerOptionsDedicatedHostId; + + private String instanceType; + + private String dedicatedHostType; + + private String dataDisk2Category; + + private Integer dataDisk1Size; + + private Integer amount; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Integer dataDisk2Size; + + private Integer spotDuration; + + private String resourceType; + + private List dataDisks; + + private String dataDisk1Category; + + private String dataDisk2PerformanceLevel; + + private Integer systemDiskSize; + + private String offeringType; + public DescribePriceRequest() { + super("Ecs", "2014-05-26", "DescribePrice", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Integer getDataDisk3Size() { + return this.dataDisk3Size; + } + + public void setDataDisk3Size(Integer dataDisk3Size) { + this.dataDisk3Size = dataDisk3Size; + if(dataDisk3Size != null){ + putQueryParameter("DataDisk.3.Size", dataDisk3Size.toString()); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getDataDisk3Category() { + return this.dataDisk3Category; + } + + public void setDataDisk3Category(String dataDisk3Category) { + this.dataDisk3Category = dataDisk3Category; + if(dataDisk3Category != null){ + putQueryParameter("DataDisk.3.Category", dataDisk3Category); + } + } + + public String getIsp() { + return this.isp; + } + + public void setIsp(String isp) { + this.isp = isp; + if(isp != null){ + putQueryParameter("Isp", isp); + } + } + + public Integer getDataDisk4Size() { + return this.dataDisk4Size; + } + + public void setDataDisk4Size(Integer dataDisk4Size) { + this.dataDisk4Size = dataDisk4Size; + if(dataDisk4Size != null){ + putQueryParameter("DataDisk.4.Size", dataDisk4Size.toString()); + } + } + + public String getPriceUnit() { + return this.priceUnit; + } + + public void setPriceUnit(String priceUnit) { + this.priceUnit = priceUnit; + if(priceUnit != null){ + putQueryParameter("PriceUnit", priceUnit); + } + } + + public Integer getPeriod() { + return this.period; + } + + public void setPeriod(Integer period) { + this.period = period; + if(period != null){ + putQueryParameter("Period", period.toString()); + } + } + + public String getDataDisk1PerformanceLevel() { + return this.dataDisk1PerformanceLevel; + } + + public void setDataDisk1PerformanceLevel(String dataDisk1PerformanceLevel) { + this.dataDisk1PerformanceLevel = dataDisk1PerformanceLevel; + if(dataDisk1PerformanceLevel != null){ + putQueryParameter("DataDisk.1.PerformanceLevel", dataDisk1PerformanceLevel); + } + } + + public String getAssuranceTimes() { + return this.assuranceTimes; + } + + public void setAssuranceTimes(String assuranceTimes) { + this.assuranceTimes = assuranceTimes; + if(assuranceTimes != null){ + putQueryParameter("AssuranceTimes", assuranceTimes); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public Integer getInstanceCpuCoreCount() { + return this.instanceCpuCoreCount; + } + + public void setInstanceCpuCoreCount(Integer instanceCpuCoreCount) { + this.instanceCpuCoreCount = instanceCpuCoreCount; + if(instanceCpuCoreCount != null){ + putQueryParameter("InstanceCpuCoreCount", instanceCpuCoreCount.toString()); + } + } + + public String getSpotStrategy() { + return this.spotStrategy; + } + + public void setSpotStrategy(String spotStrategy) { + this.spotStrategy = spotStrategy; + if(spotStrategy != null){ + putQueryParameter("SpotStrategy", spotStrategy); + } + } + + public String getInternetChargeType() { + return this.internetChargeType; + } + + public void setInternetChargeType(String internetChargeType) { + this.internetChargeType = internetChargeType; + if(internetChargeType != null){ + putQueryParameter("InternetChargeType", internetChargeType); + } + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + if(zoneId != null){ + putQueryParameter("ZoneId", zoneId); + } + } + + public String getInstanceNetworkType() { + return this.instanceNetworkType; + } + + public void setInstanceNetworkType(String instanceNetworkType) { + this.instanceNetworkType = instanceNetworkType; + if(instanceNetworkType != null){ + putQueryParameter("InstanceNetworkType", instanceNetworkType); + } + } + + public Integer getInstanceAmount() { + return this.instanceAmount; + } + + public void setInstanceAmount(Integer instanceAmount) { + this.instanceAmount = instanceAmount; + if(instanceAmount != null){ + putQueryParameter("InstanceAmount", instanceAmount.toString()); + } + } + + public List getInstanceTypeLists() { + return this.instanceTypeLists; + } + + public void setInstanceTypeLists(List instanceTypeLists) { + this.instanceTypeLists = instanceTypeLists; + if (instanceTypeLists != null) { + for (int i = 0; i < instanceTypeLists.size(); i++) { + putQueryParameter("InstanceTypeList." + (i + 1) , instanceTypeLists.get(i)); + } + } + } + + public String getDataDisk3PerformanceLevel() { + return this.dataDisk3PerformanceLevel; + } + + public void setDataDisk3PerformanceLevel(String dataDisk3PerformanceLevel) { + this.dataDisk3PerformanceLevel = dataDisk3PerformanceLevel; + if(dataDisk3PerformanceLevel != null){ + putQueryParameter("DataDisk.3.PerformanceLevel", dataDisk3PerformanceLevel); + } + } + + public String getImageId() { + return this.imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + if(imageId != null){ + putQueryParameter("ImageId", imageId); + } + } + + public String getIoOptimized() { + return this.ioOptimized; + } + + public void setIoOptimized(String ioOptimized) { + this.ioOptimized = ioOptimized; + if(ioOptimized != null){ + putQueryParameter("IoOptimized", ioOptimized); + } + } + + public Integer getInternetMaxBandwidthOut() { + return this.internetMaxBandwidthOut; + } + + public void setInternetMaxBandwidthOut(Integer internetMaxBandwidthOut) { + this.internetMaxBandwidthOut = internetMaxBandwidthOut; + if(internetMaxBandwidthOut != null){ + putQueryParameter("InternetMaxBandwidthOut", internetMaxBandwidthOut.toString()); + } + } + + public String getSystemDiskCategory() { + return this.systemDiskCategory; + } + + public void setSystemDiskCategory(String systemDiskCategory) { + this.systemDiskCategory = systemDiskCategory; + if(systemDiskCategory != null){ + putQueryParameter("SystemDisk.Category", systemDiskCategory); + } + } + + public String getPlatform() { + return this.platform; + } + + public void setPlatform(String platform) { + this.platform = platform; + if(platform != null){ + putQueryParameter("Platform", platform); + } + } + + public Integer getCapacity() { + return this.capacity; + } + + public void setCapacity(Integer capacity) { + this.capacity = capacity; + if(capacity != null){ + putQueryParameter("Capacity", capacity.toString()); + } + } + + public String getSystemDiskPerformanceLevel() { + return this.systemDiskPerformanceLevel; + } + + public void setSystemDiskPerformanceLevel(String systemDiskPerformanceLevel) { + this.systemDiskPerformanceLevel = systemDiskPerformanceLevel; + if(systemDiskPerformanceLevel != null){ + putQueryParameter("SystemDisk.PerformanceLevel", systemDiskPerformanceLevel); + } + } + + public String getDataDisk4Category() { + return this.dataDisk4Category; + } + + public void setDataDisk4Category(String dataDisk4Category) { + this.dataDisk4Category = dataDisk4Category; + if(dataDisk4Category != null){ + putQueryParameter("DataDisk.4.Category", dataDisk4Category); + } + } + + public String getDataDisk4PerformanceLevel() { + return this.dataDisk4PerformanceLevel; + } + + public void setDataDisk4PerformanceLevel(String dataDisk4PerformanceLevel) { + this.dataDisk4PerformanceLevel = dataDisk4PerformanceLevel; + if(dataDisk4PerformanceLevel != null){ + putQueryParameter("DataDisk.4.PerformanceLevel", dataDisk4PerformanceLevel); + } + } + + public String getScope() { + return this.scope; + } + + public void setScope(String scope) { + this.scope = scope; + if(scope != null){ + putQueryParameter("Scope", scope); + } + } + + public String getSchedulerOptionsDedicatedHostId() { + return this.schedulerOptionsDedicatedHostId; + } + + public void setSchedulerOptionsDedicatedHostId(String schedulerOptionsDedicatedHostId) { + this.schedulerOptionsDedicatedHostId = schedulerOptionsDedicatedHostId; + if(schedulerOptionsDedicatedHostId != null){ + putQueryParameter("SchedulerOptions.DedicatedHostId", schedulerOptionsDedicatedHostId); + } + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + if(instanceType != null){ + putQueryParameter("InstanceType", instanceType); + } + } + + public String getDedicatedHostType() { + return this.dedicatedHostType; + } + + public void setDedicatedHostType(String dedicatedHostType) { + this.dedicatedHostType = dedicatedHostType; + if(dedicatedHostType != null){ + putQueryParameter("DedicatedHostType", dedicatedHostType); + } + } + + public String getDataDisk2Category() { + return this.dataDisk2Category; + } + + public void setDataDisk2Category(String dataDisk2Category) { + this.dataDisk2Category = dataDisk2Category; + if(dataDisk2Category != null){ + putQueryParameter("DataDisk.2.Category", dataDisk2Category); + } + } + + public Integer getDataDisk1Size() { + return this.dataDisk1Size; + } + + public void setDataDisk1Size(Integer dataDisk1Size) { + this.dataDisk1Size = dataDisk1Size; + if(dataDisk1Size != null){ + putQueryParameter("DataDisk.1.Size", dataDisk1Size.toString()); + } + } + + public Integer getAmount() { + return this.amount; + } + + public void setAmount(Integer amount) { + this.amount = amount; + if(amount != null){ + putQueryParameter("Amount", amount.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Integer getDataDisk2Size() { + return this.dataDisk2Size; + } + + public void setDataDisk2Size(Integer dataDisk2Size) { + this.dataDisk2Size = dataDisk2Size; + if(dataDisk2Size != null){ + putQueryParameter("DataDisk.2.Size", dataDisk2Size.toString()); + } + } + + public Integer getSpotDuration() { + return this.spotDuration; + } + + public void setSpotDuration(Integer spotDuration) { + this.spotDuration = spotDuration; + if(spotDuration != null){ + putQueryParameter("SpotDuration", spotDuration.toString()); + } + } + + public String getResourceType() { + return this.resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + if(resourceType != null){ + putQueryParameter("ResourceType", resourceType); + } + } + + public List getDataDisks() { + return this.dataDisks; + } + + public void setDataDisks(List dataDisks) { + this.dataDisks = dataDisks; + if (dataDisks != null) { + for (int depth1 = 0; depth1 < dataDisks.size(); depth1++) { + putQueryParameter("DataDisk." + (depth1 + 1) + ".Size" , dataDisks.get(depth1).getSize()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".PerformanceLevel" , dataDisks.get(depth1).getPerformanceLevel()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".Category" , dataDisks.get(depth1).getCategory()); + } + } + } + + public String getDataDisk1Category() { + return this.dataDisk1Category; + } + + public void setDataDisk1Category(String dataDisk1Category) { + this.dataDisk1Category = dataDisk1Category; + if(dataDisk1Category != null){ + putQueryParameter("DataDisk.1.Category", dataDisk1Category); + } + } + + public String getDataDisk2PerformanceLevel() { + return this.dataDisk2PerformanceLevel; + } + + public void setDataDisk2PerformanceLevel(String dataDisk2PerformanceLevel) { + this.dataDisk2PerformanceLevel = dataDisk2PerformanceLevel; + if(dataDisk2PerformanceLevel != null){ + putQueryParameter("DataDisk.2.PerformanceLevel", dataDisk2PerformanceLevel); + } + } + + public Integer getSystemDiskSize() { + return this.systemDiskSize; + } + + public void setSystemDiskSize(Integer systemDiskSize) { + this.systemDiskSize = systemDiskSize; + if(systemDiskSize != null){ + putQueryParameter("SystemDisk.Size", systemDiskSize.toString()); + } + } + + public String getOfferingType() { + return this.offeringType; + } + + public void setOfferingType(String offeringType) { + this.offeringType = offeringType; + if(offeringType != null){ + putQueryParameter("OfferingType", offeringType); + } + } + + public static class DataDisk { + + private Long size; + + private String performanceLevel; + + private String category; + + public Long getSize() { + return this.size; + } + + public void setSize(Long size) { + this.size = size; + } + + public String getPerformanceLevel() { + return this.performanceLevel; + } + + public void setPerformanceLevel(String performanceLevel) { + this.performanceLevel = performanceLevel; + } + + public String getCategory() { + return this.category; + } + + public void setCategory(String category) { + this.category = category; + } + } + + @Override + public Class getResponseClass() { + return DescribePriceResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribePriceResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribePriceResponse.java new file mode 100644 index 0000000000..210adf090a --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribePriceResponse.java @@ -0,0 +1,237 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribePriceResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribePriceResponse extends AcsResponse { + + private String requestId; + + private PriceInfo priceInfo; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public PriceInfo getPriceInfo() { + return this.priceInfo; + } + + public void setPriceInfo(PriceInfo priceInfo) { + this.priceInfo = priceInfo; + } + + public static class PriceInfo { + + private List rules; + + private Price price; + + public List getRules() { + return this.rules; + } + + public void setRules(List rules) { + this.rules = rules; + } + + public Price getPrice() { + return this.price; + } + + public void setPrice(Price price) { + this.price = price; + } + + public static class Rule { + + private String description; + + private Long ruleId; + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Long getRuleId() { + return this.ruleId; + } + + public void setRuleId(Long ruleId) { + this.ruleId = ruleId; + } + } + + public static class Price { + + private Float originalPrice; + + private Float reservedInstanceHourPrice; + + private Float discountPrice; + + private String currency; + + private Float tradePrice; + + private List detailInfos; + + public Float getOriginalPrice() { + return this.originalPrice; + } + + public void setOriginalPrice(Float originalPrice) { + this.originalPrice = originalPrice; + } + + public Float getReservedInstanceHourPrice() { + return this.reservedInstanceHourPrice; + } + + public void setReservedInstanceHourPrice(Float reservedInstanceHourPrice) { + this.reservedInstanceHourPrice = reservedInstanceHourPrice; + } + + public Float getDiscountPrice() { + return this.discountPrice; + } + + public void setDiscountPrice(Float discountPrice) { + this.discountPrice = discountPrice; + } + + public String getCurrency() { + return this.currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + public Float getTradePrice() { + return this.tradePrice; + } + + public void setTradePrice(Float tradePrice) { + this.tradePrice = tradePrice; + } + + public List getDetailInfos() { + return this.detailInfos; + } + + public void setDetailInfos(List detailInfos) { + this.detailInfos = detailInfos; + } + + public static class ResourcePriceModel { + + private String resource; + + private Float originalPrice; + + private Float discountPrice; + + private Float tradePrice; + + private List subRules; + + public String getResource() { + return this.resource; + } + + public void setResource(String resource) { + this.resource = resource; + } + + public Float getOriginalPrice() { + return this.originalPrice; + } + + public void setOriginalPrice(Float originalPrice) { + this.originalPrice = originalPrice; + } + + public Float getDiscountPrice() { + return this.discountPrice; + } + + public void setDiscountPrice(Float discountPrice) { + this.discountPrice = discountPrice; + } + + public Float getTradePrice() { + return this.tradePrice; + } + + public void setTradePrice(Float tradePrice) { + this.tradePrice = tradePrice; + } + + public List getSubRules() { + return this.subRules; + } + + public void setSubRules(List subRules) { + this.subRules = subRules; + } + + public static class Rule1 { + + private String description; + + private Long ruleId; + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Long getRuleId() { + return this.ruleId; + } + + public void setRuleId(Long ruleId) { + this.ruleId = ruleId; + } + } + } + } + } + + @Override + public DescribePriceResponse getInstance(UnmarshallerContext context) { + return DescribePriceResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeRecommendInstanceTypeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeRecommendInstanceTypeRequest.java new file mode 100644 index 0000000000..0dfe0601a0 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeRecommendInstanceTypeRequest.java @@ -0,0 +1,291 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeRecommendInstanceTypeRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Float memory; + + private String ioOptimized; + + private String networkType; + + private String scene; + + private Integer cores; + + private String systemDiskCategory; + + private String instanceType; + + private String instanceChargeType; + + private Float maxPrice; + + private String resourceOwnerAccount; + + private String zoneMatchMode; + + private String ownerAccount; + + private List instanceTypeFamilys; + + private Long ownerId; + + private String spotStrategy; + + private String priorityStrategy; + + private String instanceFamilyLevel; + + private String zoneId; + public DescribeRecommendInstanceTypeRequest() { + super("Ecs", "2014-05-26", "DescribeRecommendInstanceType", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Float getMemory() { + return this.memory; + } + + public void setMemory(Float memory) { + this.memory = memory; + if(memory != null){ + putQueryParameter("Memory", memory.toString()); + } + } + + public String getIoOptimized() { + return this.ioOptimized; + } + + public void setIoOptimized(String ioOptimized) { + this.ioOptimized = ioOptimized; + if(ioOptimized != null){ + putQueryParameter("IoOptimized", ioOptimized); + } + } + + public String getNetworkType() { + return this.networkType; + } + + public void setNetworkType(String networkType) { + this.networkType = networkType; + if(networkType != null){ + putQueryParameter("NetworkType", networkType); + } + } + + public String getScene() { + return this.scene; + } + + public void setScene(String scene) { + this.scene = scene; + if(scene != null){ + putQueryParameter("Scene", scene); + } + } + + public Integer getCores() { + return this.cores; + } + + public void setCores(Integer cores) { + this.cores = cores; + if(cores != null){ + putQueryParameter("Cores", cores.toString()); + } + } + + public String getSystemDiskCategory() { + return this.systemDiskCategory; + } + + public void setSystemDiskCategory(String systemDiskCategory) { + this.systemDiskCategory = systemDiskCategory; + if(systemDiskCategory != null){ + putQueryParameter("SystemDiskCategory", systemDiskCategory); + } + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + if(instanceType != null){ + putQueryParameter("InstanceType", instanceType); + } + } + + public String getInstanceChargeType() { + return this.instanceChargeType; + } + + public void setInstanceChargeType(String instanceChargeType) { + this.instanceChargeType = instanceChargeType; + if(instanceChargeType != null){ + putQueryParameter("InstanceChargeType", instanceChargeType); + } + } + + public Float getMaxPrice() { + return this.maxPrice; + } + + public void setMaxPrice(Float maxPrice) { + this.maxPrice = maxPrice; + if(maxPrice != null){ + putQueryParameter("MaxPrice", maxPrice.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getZoneMatchMode() { + return this.zoneMatchMode; + } + + public void setZoneMatchMode(String zoneMatchMode) { + this.zoneMatchMode = zoneMatchMode; + if(zoneMatchMode != null){ + putQueryParameter("ZoneMatchMode", zoneMatchMode); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public List getInstanceTypeFamilys() { + return this.instanceTypeFamilys; + } + + public void setInstanceTypeFamilys(List instanceTypeFamilys) { + this.instanceTypeFamilys = instanceTypeFamilys; + if (instanceTypeFamilys != null) { + for (int i = 0; i < instanceTypeFamilys.size(); i++) { + putQueryParameter("InstanceTypeFamily." + (i + 1) , instanceTypeFamilys.get(i)); + } + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getSpotStrategy() { + return this.spotStrategy; + } + + public void setSpotStrategy(String spotStrategy) { + this.spotStrategy = spotStrategy; + if(spotStrategy != null){ + putQueryParameter("SpotStrategy", spotStrategy); + } + } + + public String getPriorityStrategy() { + return this.priorityStrategy; + } + + public void setPriorityStrategy(String priorityStrategy) { + this.priorityStrategy = priorityStrategy; + if(priorityStrategy != null){ + putQueryParameter("PriorityStrategy", priorityStrategy); + } + } + + public String getInstanceFamilyLevel() { + return this.instanceFamilyLevel; + } + + public void setInstanceFamilyLevel(String instanceFamilyLevel) { + this.instanceFamilyLevel = instanceFamilyLevel; + if(instanceFamilyLevel != null){ + putQueryParameter("InstanceFamilyLevel", instanceFamilyLevel); + } + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + if(zoneId != null){ + putQueryParameter("ZoneId", zoneId); + } + } + + @Override + public Class getResponseClass() { + return DescribeRecommendInstanceTypeResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeRecommendInstanceTypeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeRecommendInstanceTypeResponse.java new file mode 100644 index 0000000000..8cfed2b1ad --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeRecommendInstanceTypeResponse.java @@ -0,0 +1,241 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeRecommendInstanceTypeResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeRecommendInstanceTypeResponse extends AcsResponse { + + private String requestId; + + private List data; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getData() { + return this.data; + } + + public void setData(List data) { + this.data = data; + } + + public static class RecommendInstanceType { + + private String commodityCode; + + private String zoneId; + + private Integer priority; + + private String networkType; + + private String scene; + + private String spotStrategy; + + private String regionId; + + private String instanceChargeType; + + private List zones; + + private InstanceType instanceType; + + public String getCommodityCode() { + return this.commodityCode; + } + + public void setCommodityCode(String commodityCode) { + this.commodityCode = commodityCode; + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + } + + public Integer getPriority() { + return this.priority; + } + + public void setPriority(Integer priority) { + this.priority = priority; + } + + public String getNetworkType() { + return this.networkType; + } + + public void setNetworkType(String networkType) { + this.networkType = networkType; + } + + public String getScene() { + return this.scene; + } + + public void setScene(String scene) { + this.scene = scene; + } + + public String getSpotStrategy() { + return this.spotStrategy; + } + + public void setSpotStrategy(String spotStrategy) { + this.spotStrategy = spotStrategy; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public String getInstanceChargeType() { + return this.instanceChargeType; + } + + public void setInstanceChargeType(String instanceChargeType) { + this.instanceChargeType = instanceChargeType; + } + + public List getZones() { + return this.zones; + } + + public void setZones(List zones) { + this.zones = zones; + } + + public InstanceType getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(InstanceType instanceType) { + this.instanceType = instanceType; + } + + public static class Zone { + + private String zoneNo; + + private List networkTypes; + + public String getZoneNo() { + return this.zoneNo; + } + + public void setZoneNo(String zoneNo) { + this.zoneNo = zoneNo; + } + + public List getNetworkTypes() { + return this.networkTypes; + } + + public void setNetworkTypes(List networkTypes) { + this.networkTypes = networkTypes; + } + } + + public static class InstanceType { + + private String supportIoOptimized; + + private Integer cores; + + private Integer memory; + + private String instanceType; + + private String instanceTypeFamily; + + private String generation; + + public String getSupportIoOptimized() { + return this.supportIoOptimized; + } + + public void setSupportIoOptimized(String supportIoOptimized) { + this.supportIoOptimized = supportIoOptimized; + } + + public Integer getCores() { + return this.cores; + } + + public void setCores(Integer cores) { + this.cores = cores; + } + + public Integer getMemory() { + return this.memory; + } + + public void setMemory(Integer memory) { + this.memory = memory; + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public String getInstanceTypeFamily() { + return this.instanceTypeFamily; + } + + public void setInstanceTypeFamily(String instanceTypeFamily) { + this.instanceTypeFamily = instanceTypeFamily; + } + + public String getGeneration() { + return this.generation; + } + + public void setGeneration(String generation) { + this.generation = generation; + } + } + } + + @Override + public DescribeRecommendInstanceTypeResponse getInstance(UnmarshallerContext context) { + return DescribeRecommendInstanceTypeResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeRegionsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeRegionsRequest.java new file mode 100644 index 0000000000..e2a85c4c91 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeRegionsRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeRegionsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String instanceChargeType; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String resourceType; + + private String acceptLanguage; + public DescribeRegionsRequest() { + super("Ecs", "2014-05-26", "DescribeRegions", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getInstanceChargeType() { + return this.instanceChargeType; + } + + public void setInstanceChargeType(String instanceChargeType) { + this.instanceChargeType = instanceChargeType; + if(instanceChargeType != null){ + putQueryParameter("InstanceChargeType", instanceChargeType); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getResourceType() { + return this.resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + if(resourceType != null){ + putQueryParameter("ResourceType", resourceType); + } + } + + public String getAcceptLanguage() { + return this.acceptLanguage; + } + + public void setAcceptLanguage(String acceptLanguage) { + this.acceptLanguage = acceptLanguage; + if(acceptLanguage != null){ + putQueryParameter("AcceptLanguage", acceptLanguage); + } + } + + @Override + public Class getResponseClass() { + return DescribeRegionsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeRegionsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeRegionsResponse.java new file mode 100644 index 0000000000..a29c1c226c --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeRegionsResponse.java @@ -0,0 +1,95 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeRegionsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeRegionsResponse extends AcsResponse { + + private String requestId; + + private List regions; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getRegions() { + return this.regions; + } + + public void setRegions(List regions) { + this.regions = regions; + } + + public static class Region { + + private String status; + + private String regionEndpoint; + + private String localName; + + private String regionId; + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getRegionEndpoint() { + return this.regionEndpoint; + } + + public void setRegionEndpoint(String regionEndpoint) { + this.regionEndpoint = regionEndpoint; + } + + public String getLocalName() { + return this.localName; + } + + public void setLocalName(String localName) { + this.localName = localName; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + } + + @Override + public DescribeRegionsResponse getInstance(UnmarshallerContext context) { + return DescribeRegionsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeRenewalPriceRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeRenewalPriceRequest.java new file mode 100644 index 0000000000..243eb25f12 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeRenewalPriceRequest.java @@ -0,0 +1,158 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeRenewalPriceRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String priceUnit; + + private String resourceId; + + private Integer period; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Integer expectedRenewDay; + + private Long ownerId; + + private String resourceType; + public DescribeRenewalPriceRequest() { + super("Ecs", "2014-05-26", "DescribeRenewalPrice", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getPriceUnit() { + return this.priceUnit; + } + + public void setPriceUnit(String priceUnit) { + this.priceUnit = priceUnit; + if(priceUnit != null){ + putQueryParameter("PriceUnit", priceUnit); + } + } + + public String getResourceId() { + return this.resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + if(resourceId != null){ + putQueryParameter("ResourceId", resourceId); + } + } + + public Integer getPeriod() { + return this.period; + } + + public void setPeriod(Integer period) { + this.period = period; + if(period != null){ + putQueryParameter("Period", period.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Integer getExpectedRenewDay() { + return this.expectedRenewDay; + } + + public void setExpectedRenewDay(Integer expectedRenewDay) { + this.expectedRenewDay = expectedRenewDay; + if(expectedRenewDay != null){ + putQueryParameter("ExpectedRenewDay", expectedRenewDay.toString()); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getResourceType() { + return this.resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + if(resourceType != null){ + putQueryParameter("ResourceType", resourceType); + } + } + + @Override + public Class getResponseClass() { + return DescribeRenewalPriceResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeRenewalPriceResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeRenewalPriceResponse.java new file mode 100644 index 0000000000..f1e04cf2ff --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeRenewalPriceResponse.java @@ -0,0 +1,227 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeRenewalPriceResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeRenewalPriceResponse extends AcsResponse { + + private String requestId; + + private PriceInfo priceInfo; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public PriceInfo getPriceInfo() { + return this.priceInfo; + } + + public void setPriceInfo(PriceInfo priceInfo) { + this.priceInfo = priceInfo; + } + + public static class PriceInfo { + + private List rules; + + private Price price; + + public List getRules() { + return this.rules; + } + + public void setRules(List rules) { + this.rules = rules; + } + + public Price getPrice() { + return this.price; + } + + public void setPrice(Price price) { + this.price = price; + } + + public static class Rule { + + private String description; + + private Long ruleId; + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Long getRuleId() { + return this.ruleId; + } + + public void setRuleId(Long ruleId) { + this.ruleId = ruleId; + } + } + + public static class Price { + + private Float originalPrice; + + private Float discountPrice; + + private String currency; + + private Float tradePrice; + + private List detailInfos; + + public Float getOriginalPrice() { + return this.originalPrice; + } + + public void setOriginalPrice(Float originalPrice) { + this.originalPrice = originalPrice; + } + + public Float getDiscountPrice() { + return this.discountPrice; + } + + public void setDiscountPrice(Float discountPrice) { + this.discountPrice = discountPrice; + } + + public String getCurrency() { + return this.currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + public Float getTradePrice() { + return this.tradePrice; + } + + public void setTradePrice(Float tradePrice) { + this.tradePrice = tradePrice; + } + + public List getDetailInfos() { + return this.detailInfos; + } + + public void setDetailInfos(List detailInfos) { + this.detailInfos = detailInfos; + } + + public static class ResourcePriceModel { + + private String resource; + + private Float originalPrice; + + private Float discountPrice; + + private Float tradePrice; + + private List subRules; + + public String getResource() { + return this.resource; + } + + public void setResource(String resource) { + this.resource = resource; + } + + public Float getOriginalPrice() { + return this.originalPrice; + } + + public void setOriginalPrice(Float originalPrice) { + this.originalPrice = originalPrice; + } + + public Float getDiscountPrice() { + return this.discountPrice; + } + + public void setDiscountPrice(Float discountPrice) { + this.discountPrice = discountPrice; + } + + public Float getTradePrice() { + return this.tradePrice; + } + + public void setTradePrice(Float tradePrice) { + this.tradePrice = tradePrice; + } + + public List getSubRules() { + return this.subRules; + } + + public void setSubRules(List subRules) { + this.subRules = subRules; + } + + public static class Rule1 { + + private String description; + + private Long ruleId; + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Long getRuleId() { + return this.ruleId; + } + + public void setRuleId(Long ruleId) { + this.ruleId = ruleId; + } + } + } + } + } + + @Override + public DescribeRenewalPriceResponse getInstance(UnmarshallerContext context) { + return DescribeRenewalPriceResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeReservedInstanceAutoRenewAttributeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeReservedInstanceAutoRenewAttributeRequest.java new file mode 100644 index 0000000000..fdd005bced --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeReservedInstanceAutoRenewAttributeRequest.java @@ -0,0 +1,109 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeReservedInstanceAutoRenewAttributeRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private List reservedInstanceIds; + public DescribeReservedInstanceAutoRenewAttributeRequest() { + super("Ecs", "2014-05-26", "DescribeReservedInstanceAutoRenewAttribute", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getReservedInstanceIds() { + return this.reservedInstanceIds; + } + + public void setReservedInstanceIds(List reservedInstanceIds) { + this.reservedInstanceIds = reservedInstanceIds; + if (reservedInstanceIds != null) { + for (int i = 0; i < reservedInstanceIds.size(); i++) { + putQueryParameter("ReservedInstanceId." + (i + 1) , reservedInstanceIds.get(i)); + } + } + } + + @Override + public Class getResponseClass() { + return DescribeReservedInstanceAutoRenewAttributeResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeReservedInstanceAutoRenewAttributeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeReservedInstanceAutoRenewAttributeResponse.java new file mode 100644 index 0000000000..72b63f97c5 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeReservedInstanceAutoRenewAttributeResponse.java @@ -0,0 +1,95 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeReservedInstanceAutoRenewAttributeResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeReservedInstanceAutoRenewAttributeResponse extends AcsResponse { + + private String requestId; + + private List reservedInstanceRenewAttributes; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getReservedInstanceRenewAttributes() { + return this.reservedInstanceRenewAttributes; + } + + public void setReservedInstanceRenewAttributes(List reservedInstanceRenewAttributes) { + this.reservedInstanceRenewAttributes = reservedInstanceRenewAttributes; + } + + public static class ReservedInstanceRenewAttribute { + + private String periodUnit; + + private Integer duration; + + private String reservedInstanceId; + + private String renewalStatus; + + public String getPeriodUnit() { + return this.periodUnit; + } + + public void setPeriodUnit(String periodUnit) { + this.periodUnit = periodUnit; + } + + public Integer getDuration() { + return this.duration; + } + + public void setDuration(Integer duration) { + this.duration = duration; + } + + public String getReservedInstanceId() { + return this.reservedInstanceId; + } + + public void setReservedInstanceId(String reservedInstanceId) { + this.reservedInstanceId = reservedInstanceId; + } + + public String getRenewalStatus() { + return this.renewalStatus; + } + + public void setRenewalStatus(String renewalStatus) { + this.renewalStatus = renewalStatus; + } + } + + @Override + public DescribeReservedInstanceAutoRenewAttributeResponse getInstance(UnmarshallerContext context) { + return DescribeReservedInstanceAutoRenewAttributeResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservedInstancesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeReservedInstancesRequest.java similarity index 91% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservedInstancesRequest.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeReservedInstancesRequest.java index d666f30dbc..719c6fe2e5 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservedInstancesRequest.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeReservedInstancesRequest.java @@ -12,7 +12,7 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.RpcAcsRequest; import java.util.List; @@ -52,8 +52,6 @@ public class DescribeReservedInstancesRequest extends RpcAcsRequest statuss; public DescribeReservedInstancesRequest() { - super("Ecs", "2016-03-14", "DescribeReservedInstances", "ecs"); + super("Ecs", "2014-05-26", "DescribeReservedInstances", "ecs"); setMethod(MethodType.POST); try { com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); @@ -218,17 +216,6 @@ public void setOfferingType(String offeringType) { } } - public String getExpiredTime() { - return this.expiredTime; - } - - public void setExpiredTime(String expiredTime) { - this.expiredTime = expiredTime; - if(expiredTime != null){ - putQueryParameter("ExpiredTime", expiredTime); - } - } - public String getZoneId() { return this.zoneId; } diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservedInstancesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeReservedInstancesResponse.java similarity index 94% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservedInstancesResponse.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeReservedInstancesResponse.java index b8241d099a..f9ee82c559 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservedInstancesResponse.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeReservedInstancesResponse.java @@ -12,11 +12,11 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import java.util.List; import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeReservedInstancesResponseUnmarshaller; +import com.aliyuncs.ecs.transform.v20140526.DescribeReservedInstancesResponseUnmarshaller; import com.aliyuncs.transform.UnmarshallerContext; /** diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeResourceByTagsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeResourceByTagsRequest.java new file mode 100644 index 0000000000..b6a65db394 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeResourceByTagsRequest.java @@ -0,0 +1,159 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeResourceByTagsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Integer pageNumber; + + private Integer pageSize; + + private List tags; + + private String resourceOwnerAccount; + + private Long ownerId; + + private String resourceType; + public DescribeResourceByTagsRequest() { + super("Ecs", "2014-05-26", "DescribeResourceByTags", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getResourceType() { + return this.resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + if(resourceType != null){ + putQueryParameter("ResourceType", resourceType); + } + } + + public static class Tag { + + private String value; + + private String key; + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + } + + @Override + public Class getResponseClass() { + return DescribeResourceByTagsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeResourceByTagsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeResourceByTagsResponse.java new file mode 100644 index 0000000000..4f57492b8f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeResourceByTagsResponse.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeResourceByTagsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeResourceByTagsResponse extends AcsResponse { + + private String requestId; + + private Integer pageSize; + + private Integer pageNumber; + + private Integer totalCount; + + private List resources; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getResources() { + return this.resources; + } + + public void setResources(List resources) { + this.resources = resources; + } + + public static class Resource { + + private String resourceType; + + private String resourceId; + + private String regionId; + + public String getResourceType() { + return this.resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public String getResourceId() { + return this.resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + } + + @Override + public DescribeResourceByTagsResponse getInstance(UnmarshallerContext context) { + return DescribeResourceByTagsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeResourcesModificationRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeResourcesModificationRequest.java new file mode 100644 index 0000000000..b00a4248ee --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeResourcesModificationRequest.java @@ -0,0 +1,213 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeResourcesModificationRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Float memory; + + private Integer cores; + + private Boolean migrateAcrossZone; + + private String instanceType; + + private String resourceId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String operationType; + + private Long ownerId; + + private String destinationResource; + + private String zoneId; + + private List conditionss; + public DescribeResourcesModificationRequest() { + super("Ecs", "2014-05-26", "DescribeResourcesModification", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Float getMemory() { + return this.memory; + } + + public void setMemory(Float memory) { + this.memory = memory; + if(memory != null){ + putQueryParameter("Memory", memory.toString()); + } + } + + public Integer getCores() { + return this.cores; + } + + public void setCores(Integer cores) { + this.cores = cores; + if(cores != null){ + putQueryParameter("Cores", cores.toString()); + } + } + + public Boolean getMigrateAcrossZone() { + return this.migrateAcrossZone; + } + + public void setMigrateAcrossZone(Boolean migrateAcrossZone) { + this.migrateAcrossZone = migrateAcrossZone; + if(migrateAcrossZone != null){ + putQueryParameter("MigrateAcrossZone", migrateAcrossZone.toString()); + } + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + if(instanceType != null){ + putQueryParameter("InstanceType", instanceType); + } + } + + public String getResourceId() { + return this.resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + if(resourceId != null){ + putQueryParameter("ResourceId", resourceId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getOperationType() { + return this.operationType; + } + + public void setOperationType(String operationType) { + this.operationType = operationType; + if(operationType != null){ + putQueryParameter("OperationType", operationType); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getDestinationResource() { + return this.destinationResource; + } + + public void setDestinationResource(String destinationResource) { + this.destinationResource = destinationResource; + if(destinationResource != null){ + putQueryParameter("DestinationResource", destinationResource); + } + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + if(zoneId != null){ + putQueryParameter("ZoneId", zoneId); + } + } + + public List getConditionss() { + return this.conditionss; + } + + public void setConditionss(List conditionss) { + this.conditionss = conditionss; + if (conditionss != null) { + for (int i = 0; i < conditionss.size(); i++) { + putQueryParameter("Conditions." + (i + 1) , conditionss.get(i)); + } + } + } + + @Override + public Class getResponseClass() { + return DescribeResourcesModificationResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeResourcesModificationResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeResourcesModificationResponse.java new file mode 100644 index 0000000000..1c5a738285 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeResourcesModificationResponse.java @@ -0,0 +1,287 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeResourcesModificationResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeResourcesModificationResponse extends AcsResponse { + + private String requestId; + + private List availableZones; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getAvailableZones() { + return this.availableZones; + } + + public void setAvailableZones(List availableZones) { + this.availableZones = availableZones; + } + + public static class AvailableZone { + + private String zoneId; + + private String status; + + private String statusCategory; + + private String regionId; + + private List availableResources; + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getStatusCategory() { + return this.statusCategory; + } + + public void setStatusCategory(String statusCategory) { + this.statusCategory = statusCategory; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public List getAvailableResources() { + return this.availableResources; + } + + public void setAvailableResources(List availableResources) { + this.availableResources = availableResources; + } + + public static class AvailableResource { + + private String type; + + private List supportedResources; + + private List conditionSupportedResources; + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + } + + public List getSupportedResources() { + return this.supportedResources; + } + + public void setSupportedResources(List supportedResources) { + this.supportedResources = supportedResources; + } + + public List getConditionSupportedResources() { + return this.conditionSupportedResources; + } + + public void setConditionSupportedResources(List conditionSupportedResources) { + this.conditionSupportedResources = conditionSupportedResources; + } + + public static class SupportedResource { + + private String status; + + private String value; + + private Integer max; + + private String unit; + + private String statusCategory; + + private Integer min; + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public Integer getMax() { + return this.max; + } + + public void setMax(Integer max) { + this.max = max; + } + + public String getUnit() { + return this.unit; + } + + public void setUnit(String unit) { + this.unit = unit; + } + + public String getStatusCategory() { + return this.statusCategory; + } + + public void setStatusCategory(String statusCategory) { + this.statusCategory = statusCategory; + } + + public Integer getMin() { + return this.min; + } + + public void setMin(Integer min) { + this.min = min; + } + } + + public static class ConditionSupportedResource { + + private String status; + + private String value; + + private Integer max; + + private String unit; + + private String statusCategory; + + private Integer min; + + private List conditions; + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public Integer getMax() { + return this.max; + } + + public void setMax(Integer max) { + this.max = max; + } + + public String getUnit() { + return this.unit; + } + + public void setUnit(String unit) { + this.unit = unit; + } + + public String getStatusCategory() { + return this.statusCategory; + } + + public void setStatusCategory(String statusCategory) { + this.statusCategory = statusCategory; + } + + public Integer getMin() { + return this.min; + } + + public void setMin(Integer min) { + this.min = min; + } + + public List getConditions() { + return this.conditions; + } + + public void setConditions(List conditions) { + this.conditions = conditions; + } + + public static class Condition { + + private String key; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + } + } + } + } + + @Override + public DescribeResourcesModificationResponse getInstance(UnmarshallerContext context) { + return DescribeResourcesModificationResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeRouteTablesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeRouteTablesRequest.java new file mode 100644 index 0000000000..6ed6ad1dc9 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeRouteTablesRequest.java @@ -0,0 +1,184 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeRouteTablesRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String vRouterId; + + private Integer pageNumber; + + private String routeTableName; + + private Integer pageSize; + + private String routeTableId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String routerType; + + private String routerId; + public DescribeRouteTablesRequest() { + super("Ecs", "2014-05-26", "DescribeRouteTables", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getVRouterId() { + return this.vRouterId; + } + + public void setVRouterId(String vRouterId) { + this.vRouterId = vRouterId; + if(vRouterId != null){ + putQueryParameter("VRouterId", vRouterId); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public String getRouteTableName() { + return this.routeTableName; + } + + public void setRouteTableName(String routeTableName) { + this.routeTableName = routeTableName; + if(routeTableName != null){ + putQueryParameter("RouteTableName", routeTableName); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getRouteTableId() { + return this.routeTableId; + } + + public void setRouteTableId(String routeTableId) { + this.routeTableId = routeTableId; + if(routeTableId != null){ + putQueryParameter("RouteTableId", routeTableId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getRouterType() { + return this.routerType; + } + + public void setRouterType(String routerType) { + this.routerType = routerType; + if(routerType != null){ + putQueryParameter("RouterType", routerType); + } + } + + public String getRouterId() { + return this.routerId; + } + + public void setRouterId(String routerId) { + this.routerId = routerId; + if(routerId != null){ + putQueryParameter("RouterId", routerId); + } + } + + @Override + public Class getResponseClass() { + return DescribeRouteTablesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeRouteTablesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeRouteTablesResponse.java new file mode 100644 index 0000000000..62574ec68a --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeRouteTablesResponse.java @@ -0,0 +1,261 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeRouteTablesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeRouteTablesResponse extends AcsResponse { + + private Integer pageSize; + + private String requestId; + + private Integer pageNumber; + + private Integer totalCount; + + private List routeTables; + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getRouteTables() { + return this.routeTables; + } + + public void setRouteTables(List routeTables) { + this.routeTables = routeTables; + } + + public static class RouteTable { + + private String creationTime; + + private String vRouterId; + + private String routeTableId; + + private String resourceGroupId; + + private String routeTableType; + + private List routeEntrys; + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getVRouterId() { + return this.vRouterId; + } + + public void setVRouterId(String vRouterId) { + this.vRouterId = vRouterId; + } + + public String getRouteTableId() { + return this.routeTableId; + } + + public void setRouteTableId(String routeTableId) { + this.routeTableId = routeTableId; + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + } + + public String getRouteTableType() { + return this.routeTableType; + } + + public void setRouteTableType(String routeTableType) { + this.routeTableType = routeTableType; + } + + public List getRouteEntrys() { + return this.routeEntrys; + } + + public void setRouteEntrys(List routeEntrys) { + this.routeEntrys = routeEntrys; + } + + public static class RouteEntry { + + private String type; + + private String status; + + private String nextHopType; + + private String destinationCidrBlock; + + private String instanceId; + + private String routeTableId; + + private List nextHops; + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getNextHopType() { + return this.nextHopType; + } + + public void setNextHopType(String nextHopType) { + this.nextHopType = nextHopType; + } + + public String getDestinationCidrBlock() { + return this.destinationCidrBlock; + } + + public void setDestinationCidrBlock(String destinationCidrBlock) { + this.destinationCidrBlock = destinationCidrBlock; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getRouteTableId() { + return this.routeTableId; + } + + public void setRouteTableId(String routeTableId) { + this.routeTableId = routeTableId; + } + + public List getNextHops() { + return this.nextHops; + } + + public void setNextHops(List nextHops) { + this.nextHops = nextHops; + } + + public static class NextHop { + + private Integer weight; + + private String nextHopId; + + private String nextHopType; + + private Integer enabled; + + public Integer getWeight() { + return this.weight; + } + + public void setWeight(Integer weight) { + this.weight = weight; + } + + public String getNextHopId() { + return this.nextHopId; + } + + public void setNextHopId(String nextHopId) { + this.nextHopId = nextHopId; + } + + public String getNextHopType() { + return this.nextHopType; + } + + public void setNextHopType(String nextHopType) { + this.nextHopType = nextHopType; + } + + public Integer getEnabled() { + return this.enabled; + } + + public void setEnabled(Integer enabled) { + this.enabled = enabled; + } + } + } + } + + @Override + public DescribeRouteTablesResponse getInstance(UnmarshallerContext context) { + return DescribeRouteTablesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeRouterInterfacesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeRouterInterfacesRequest.java new file mode 100644 index 0000000000..b9cd33d2b5 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeRouterInterfacesRequest.java @@ -0,0 +1,150 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeRouterInterfacesRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Integer pageNumber; + + private Integer pageSize; + + private String resourceOwnerAccount; + + private Long ownerId; + + private List filters; + public DescribeRouterInterfacesRequest() { + super("Ecs", "2014-05-26", "DescribeRouterInterfaces", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getFilters() { + return this.filters; + } + + public void setFilters(List filters) { + this.filters = filters; + if (filters != null) { + for (int depth1 = 0; depth1 < filters.size(); depth1++) { + if (filters.get(depth1).getValues() != null) { + for (int i = 0; i < filters.get(depth1).getValues().size(); i++) { + putQueryParameter("Filter." + (depth1 + 1) + ".Value." + (i + 1) , filters.get(depth1).getValues().get(i)); + } + } + putQueryParameter("Filter." + (depth1 + 1) + ".Key" , filters.get(depth1).getKey()); + } + } + } + + public static class Filter { + + private List values; + + private String key; + + public List getValues() { + return this.values; + } + + public void setValues(List values) { + this.values = values; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + } + + @Override + public Class getResponseClass() { + return DescribeRouterInterfacesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeRouterInterfacesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeRouterInterfacesResponse.java new file mode 100644 index 0000000000..769402961b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeRouterInterfacesResponse.java @@ -0,0 +1,335 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeRouterInterfacesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeRouterInterfacesResponse extends AcsResponse { + + private String requestId; + + private Integer pageNumber; + + private Integer pageSize; + + private Integer totalCount; + + private List routerInterfaceSet; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getRouterInterfaceSet() { + return this.routerInterfaceSet; + } + + public void setRouterInterfaceSet(List routerInterfaceSet) { + this.routerInterfaceSet = routerInterfaceSet; + } + + public static class RouterInterfaceType { + + private String healthCheckTargetIp; + + private String creationTime; + + private String status; + + private String spec; + + private String oppositeInterfaceId; + + private String routerInterfaceId; + + private String chargeType; + + private String oppositeRouterType; + + private String oppositeInterfaceOwnerId; + + private String description; + + private String name; + + private String oppositeRouterId; + + private String oppositeInterfaceSpec; + + private String routerId; + + private String oppositeInterfaceBusinessStatus; + + private String connectedTime; + + private String oppositeInterfaceStatus; + + private String healthCheckSourceIp; + + private String endTime; + + private String oppositeRegionId; + + private String oppositeAccessPointId; + + private String businessStatus; + + private String role; + + private String routerType; + + private String accessPointId; + + public String getHealthCheckTargetIp() { + return this.healthCheckTargetIp; + } + + public void setHealthCheckTargetIp(String healthCheckTargetIp) { + this.healthCheckTargetIp = healthCheckTargetIp; + } + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getSpec() { + return this.spec; + } + + public void setSpec(String spec) { + this.spec = spec; + } + + public String getOppositeInterfaceId() { + return this.oppositeInterfaceId; + } + + public void setOppositeInterfaceId(String oppositeInterfaceId) { + this.oppositeInterfaceId = oppositeInterfaceId; + } + + public String getRouterInterfaceId() { + return this.routerInterfaceId; + } + + public void setRouterInterfaceId(String routerInterfaceId) { + this.routerInterfaceId = routerInterfaceId; + } + + public String getChargeType() { + return this.chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public String getOppositeRouterType() { + return this.oppositeRouterType; + } + + public void setOppositeRouterType(String oppositeRouterType) { + this.oppositeRouterType = oppositeRouterType; + } + + public String getOppositeInterfaceOwnerId() { + return this.oppositeInterfaceOwnerId; + } + + public void setOppositeInterfaceOwnerId(String oppositeInterfaceOwnerId) { + this.oppositeInterfaceOwnerId = oppositeInterfaceOwnerId; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public String getOppositeRouterId() { + return this.oppositeRouterId; + } + + public void setOppositeRouterId(String oppositeRouterId) { + this.oppositeRouterId = oppositeRouterId; + } + + public String getOppositeInterfaceSpec() { + return this.oppositeInterfaceSpec; + } + + public void setOppositeInterfaceSpec(String oppositeInterfaceSpec) { + this.oppositeInterfaceSpec = oppositeInterfaceSpec; + } + + public String getRouterId() { + return this.routerId; + } + + public void setRouterId(String routerId) { + this.routerId = routerId; + } + + public String getOppositeInterfaceBusinessStatus() { + return this.oppositeInterfaceBusinessStatus; + } + + public void setOppositeInterfaceBusinessStatus(String oppositeInterfaceBusinessStatus) { + this.oppositeInterfaceBusinessStatus = oppositeInterfaceBusinessStatus; + } + + public String getConnectedTime() { + return this.connectedTime; + } + + public void setConnectedTime(String connectedTime) { + this.connectedTime = connectedTime; + } + + public String getOppositeInterfaceStatus() { + return this.oppositeInterfaceStatus; + } + + public void setOppositeInterfaceStatus(String oppositeInterfaceStatus) { + this.oppositeInterfaceStatus = oppositeInterfaceStatus; + } + + public String getHealthCheckSourceIp() { + return this.healthCheckSourceIp; + } + + public void setHealthCheckSourceIp(String healthCheckSourceIp) { + this.healthCheckSourceIp = healthCheckSourceIp; + } + + public String getEndTime() { + return this.endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + + public String getOppositeRegionId() { + return this.oppositeRegionId; + } + + public void setOppositeRegionId(String oppositeRegionId) { + this.oppositeRegionId = oppositeRegionId; + } + + public String getOppositeAccessPointId() { + return this.oppositeAccessPointId; + } + + public void setOppositeAccessPointId(String oppositeAccessPointId) { + this.oppositeAccessPointId = oppositeAccessPointId; + } + + public String getBusinessStatus() { + return this.businessStatus; + } + + public void setBusinessStatus(String businessStatus) { + this.businessStatus = businessStatus; + } + + public String getRole() { + return this.role; + } + + public void setRole(String role) { + this.role = role; + } + + public String getRouterType() { + return this.routerType; + } + + public void setRouterType(String routerType) { + this.routerType = routerType; + } + + public String getAccessPointId() { + return this.accessPointId; + } + + public void setAccessPointId(String accessPointId) { + this.accessPointId = accessPointId; + } + } + + @Override + public DescribeRouterInterfacesResponse getInstance(UnmarshallerContext context) { + return DescribeRouterInterfacesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSecurityGroupAttributeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSecurityGroupAttributeRequest.java new file mode 100644 index 0000000000..9cdcf88b88 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSecurityGroupAttributeRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeSecurityGroupAttributeRequest extends RpcAcsRequest { + + + private String nicType; + + private Long resourceOwnerId; + + private String securityGroupId; + + private String direction; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public DescribeSecurityGroupAttributeRequest() { + super("Ecs", "2014-05-26", "DescribeSecurityGroupAttribute", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getNicType() { + return this.nicType; + } + + public void setNicType(String nicType) { + this.nicType = nicType; + if(nicType != null){ + putQueryParameter("NicType", nicType); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getSecurityGroupId() { + return this.securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + if(securityGroupId != null){ + putQueryParameter("SecurityGroupId", securityGroupId); + } + } + + public String getDirection() { + return this.direction; + } + + public void setDirection(String direction) { + this.direction = direction; + if(direction != null){ + putQueryParameter("Direction", direction); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DescribeSecurityGroupAttributeResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSecurityGroupAttributeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSecurityGroupAttributeResponse.java new file mode 100644 index 0000000000..33f4171624 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSecurityGroupAttributeResponse.java @@ -0,0 +1,355 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeSecurityGroupAttributeResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeSecurityGroupAttributeResponse extends AcsResponse { + + private String vpcId; + + private String requestId; + + private String innerAccessPolicy; + + private String description; + + private String securityGroupId; + + private String securityGroupName; + + private String regionId; + + private List permissions; + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getInnerAccessPolicy() { + return this.innerAccessPolicy; + } + + public void setInnerAccessPolicy(String innerAccessPolicy) { + this.innerAccessPolicy = innerAccessPolicy; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getSecurityGroupId() { + return this.securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + } + + public String getSecurityGroupName() { + return this.securityGroupName; + } + + public void setSecurityGroupName(String securityGroupName) { + this.securityGroupName = securityGroupName; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public List getPermissions() { + return this.permissions; + } + + public void setPermissions(List permissions) { + this.permissions = permissions; + } + + public static class Permission { + + private String securityGroupRuleId; + + private String direction; + + private String sourceGroupId; + + private String destGroupOwnerAccount; + + private String destPrefixListId; + + private String destPrefixListName; + + private String sourceCidrIp; + + private String ipv6DestCidrIp; + + private String createTime; + + private String ipv6SourceCidrIp; + + private String destGroupId; + + private String destCidrIp; + + private String ipProtocol; + + private String priority; + + private String destGroupName; + + private String nicType; + + private String policy; + + private String description; + + private String portRange; + + private String sourcePrefixListName; + + private String sourcePrefixListId; + + private String sourceGroupOwnerAccount; + + private String sourceGroupName; + + private String sourcePortRange; + + public String getSecurityGroupRuleId() { + return this.securityGroupRuleId; + } + + public void setSecurityGroupRuleId(String securityGroupRuleId) { + this.securityGroupRuleId = securityGroupRuleId; + } + + public String getDirection() { + return this.direction; + } + + public void setDirection(String direction) { + this.direction = direction; + } + + public String getSourceGroupId() { + return this.sourceGroupId; + } + + public void setSourceGroupId(String sourceGroupId) { + this.sourceGroupId = sourceGroupId; + } + + public String getDestGroupOwnerAccount() { + return this.destGroupOwnerAccount; + } + + public void setDestGroupOwnerAccount(String destGroupOwnerAccount) { + this.destGroupOwnerAccount = destGroupOwnerAccount; + } + + public String getDestPrefixListId() { + return this.destPrefixListId; + } + + public void setDestPrefixListId(String destPrefixListId) { + this.destPrefixListId = destPrefixListId; + } + + public String getDestPrefixListName() { + return this.destPrefixListName; + } + + public void setDestPrefixListName(String destPrefixListName) { + this.destPrefixListName = destPrefixListName; + } + + public String getSourceCidrIp() { + return this.sourceCidrIp; + } + + public void setSourceCidrIp(String sourceCidrIp) { + this.sourceCidrIp = sourceCidrIp; + } + + public String getIpv6DestCidrIp() { + return this.ipv6DestCidrIp; + } + + public void setIpv6DestCidrIp(String ipv6DestCidrIp) { + this.ipv6DestCidrIp = ipv6DestCidrIp; + } + + public String getCreateTime() { + return this.createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getIpv6SourceCidrIp() { + return this.ipv6SourceCidrIp; + } + + public void setIpv6SourceCidrIp(String ipv6SourceCidrIp) { + this.ipv6SourceCidrIp = ipv6SourceCidrIp; + } + + public String getDestGroupId() { + return this.destGroupId; + } + + public void setDestGroupId(String destGroupId) { + this.destGroupId = destGroupId; + } + + public String getDestCidrIp() { + return this.destCidrIp; + } + + public void setDestCidrIp(String destCidrIp) { + this.destCidrIp = destCidrIp; + } + + public String getIpProtocol() { + return this.ipProtocol; + } + + public void setIpProtocol(String ipProtocol) { + this.ipProtocol = ipProtocol; + } + + public String getPriority() { + return this.priority; + } + + public void setPriority(String priority) { + this.priority = priority; + } + + public String getDestGroupName() { + return this.destGroupName; + } + + public void setDestGroupName(String destGroupName) { + this.destGroupName = destGroupName; + } + + public String getNicType() { + return this.nicType; + } + + public void setNicType(String nicType) { + this.nicType = nicType; + } + + public String getPolicy() { + return this.policy; + } + + public void setPolicy(String policy) { + this.policy = policy; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getPortRange() { + return this.portRange; + } + + public void setPortRange(String portRange) { + this.portRange = portRange; + } + + public String getSourcePrefixListName() { + return this.sourcePrefixListName; + } + + public void setSourcePrefixListName(String sourcePrefixListName) { + this.sourcePrefixListName = sourcePrefixListName; + } + + public String getSourcePrefixListId() { + return this.sourcePrefixListId; + } + + public void setSourcePrefixListId(String sourcePrefixListId) { + this.sourcePrefixListId = sourcePrefixListId; + } + + public String getSourceGroupOwnerAccount() { + return this.sourceGroupOwnerAccount; + } + + public void setSourceGroupOwnerAccount(String sourceGroupOwnerAccount) { + this.sourceGroupOwnerAccount = sourceGroupOwnerAccount; + } + + public String getSourceGroupName() { + return this.sourceGroupName; + } + + public void setSourceGroupName(String sourceGroupName) { + this.sourceGroupName = sourceGroupName; + } + + public String getSourcePortRange() { + return this.sourcePortRange; + } + + public void setSourcePortRange(String sourcePortRange) { + this.sourcePortRange = sourcePortRange; + } + } + + @Override + public DescribeSecurityGroupAttributeResponse getInstance(UnmarshallerContext context) { + return DescribeSecurityGroupAttributeResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSecurityGroupReferencesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSecurityGroupReferencesRequest.java new file mode 100644 index 0000000000..113422568d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSecurityGroupReferencesRequest.java @@ -0,0 +1,109 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeSecurityGroupReferencesRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private List securityGroupIds; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public DescribeSecurityGroupReferencesRequest() { + super("Ecs", "2014-05-26", "DescribeSecurityGroupReferences", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public List getSecurityGroupIds() { + return this.securityGroupIds; + } + + public void setSecurityGroupIds(List securityGroupIds) { + this.securityGroupIds = securityGroupIds; + if (securityGroupIds != null) { + for (int i = 0; i < securityGroupIds.size(); i++) { + putQueryParameter("SecurityGroupId." + (i + 1) , securityGroupIds.get(i)); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DescribeSecurityGroupReferencesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSecurityGroupReferencesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSecurityGroupReferencesResponse.java new file mode 100644 index 0000000000..2845cf7405 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSecurityGroupReferencesResponse.java @@ -0,0 +1,98 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeSecurityGroupReferencesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeSecurityGroupReferencesResponse extends AcsResponse { + + private String requestId; + + private List securityGroupReferences; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getSecurityGroupReferences() { + return this.securityGroupReferences; + } + + public void setSecurityGroupReferences(List securityGroupReferences) { + this.securityGroupReferences = securityGroupReferences; + } + + public static class SecurityGroupReference { + + private String securityGroupId; + + private List referencingSecurityGroups; + + public String getSecurityGroupId() { + return this.securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + } + + public List getReferencingSecurityGroups() { + return this.referencingSecurityGroups; + } + + public void setReferencingSecurityGroups(List referencingSecurityGroups) { + this.referencingSecurityGroups = referencingSecurityGroups; + } + + public static class ReferencingSecurityGroup { + + private String securityGroupId; + + private String aliUid; + + public String getSecurityGroupId() { + return this.securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + } + + public String getAliUid() { + return this.aliUid; + } + + public void setAliUid(String aliUid) { + this.aliUid = aliUid; + } + } + } + + @Override + public DescribeSecurityGroupReferencesResponse getInstance(UnmarshallerContext context) { + return DescribeSecurityGroupReferencesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSecurityGroupsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSecurityGroupsRequest.java new file mode 100644 index 0000000000..799856c7d5 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSecurityGroupsRequest.java @@ -0,0 +1,315 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeSecurityGroupsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Boolean fuzzyQuery; + + private String securityGroupId; + + private Boolean isQueryEcsCount; + + private String networkType; + + private String securityGroupName; + + private Integer pageNumber; + + private String resourceGroupId; + + private String nextToken; + + private Integer pageSize; + + private List tags; + + private Boolean dryRun; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String securityGroupIds; + + private String securityGroupType; + + private String vpcId; + + private Integer maxResults; + public DescribeSecurityGroupsRequest() { + super("Ecs", "2014-05-26", "DescribeSecurityGroups", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Boolean getFuzzyQuery() { + return this.fuzzyQuery; + } + + public void setFuzzyQuery(Boolean fuzzyQuery) { + this.fuzzyQuery = fuzzyQuery; + if(fuzzyQuery != null){ + putQueryParameter("FuzzyQuery", fuzzyQuery.toString()); + } + } + + public String getSecurityGroupId() { + return this.securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + if(securityGroupId != null){ + putQueryParameter("SecurityGroupId", securityGroupId); + } + } + + public Boolean getIsQueryEcsCount() { + return this.isQueryEcsCount; + } + + public void setIsQueryEcsCount(Boolean isQueryEcsCount) { + this.isQueryEcsCount = isQueryEcsCount; + if(isQueryEcsCount != null){ + putQueryParameter("IsQueryEcsCount", isQueryEcsCount.toString()); + } + } + + public String getNetworkType() { + return this.networkType; + } + + public void setNetworkType(String networkType) { + this.networkType = networkType; + if(networkType != null){ + putQueryParameter("NetworkType", networkType); + } + } + + public String getSecurityGroupName() { + return this.securityGroupName; + } + + public void setSecurityGroupName(String securityGroupName) { + this.securityGroupName = securityGroupName; + if(securityGroupName != null){ + putQueryParameter("SecurityGroupName", securityGroupName); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + if(nextToken != null){ + putQueryParameter("NextToken", nextToken); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + } + } + } + + public Boolean getDryRun() { + return this.dryRun; + } + + public void setDryRun(Boolean dryRun) { + this.dryRun = dryRun; + if(dryRun != null){ + putQueryParameter("DryRun", dryRun.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getSecurityGroupIds() { + return this.securityGroupIds; + } + + public void setSecurityGroupIds(String securityGroupIds) { + this.securityGroupIds = securityGroupIds; + if(securityGroupIds != null){ + putQueryParameter("SecurityGroupIds", securityGroupIds); + } + } + + public String getSecurityGroupType() { + return this.securityGroupType; + } + + public void setSecurityGroupType(String securityGroupType) { + this.securityGroupType = securityGroupType; + if(securityGroupType != null){ + putQueryParameter("SecurityGroupType", securityGroupType); + } + } + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + if(vpcId != null){ + putQueryParameter("VpcId", vpcId); + } + } + + public Integer getMaxResults() { + return this.maxResults; + } + + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + if(maxResults != null){ + putQueryParameter("MaxResults", maxResults.toString()); + } + } + + public static class Tag { + + private String value; + + private String key; + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + } + + @Override + public Class getResponseClass() { + return DescribeSecurityGroupsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSecurityGroupsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSecurityGroupsResponse.java new file mode 100644 index 0000000000..1f7f451b7b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSecurityGroupsResponse.java @@ -0,0 +1,248 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeSecurityGroupsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeSecurityGroupsResponse extends AcsResponse { + + private String requestId; + + private String regionId; + + private String nextToken; + + private Integer totalCount; + + private Integer pageNumber; + + private Integer pageSize; + + private List securityGroups; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public List getSecurityGroups() { + return this.securityGroups; + } + + public void setSecurityGroups(List securityGroups) { + this.securityGroups = securityGroups; + } + + public static class SecurityGroup { + + private String securityGroupId; + + private String securityGroupName; + + private String description; + + private String securityGroupType; + + private String vpcId; + + private String creationTime; + + private Integer ecsCount; + + private Integer availableInstanceAmount; + + private String resourceGroupId; + + private Boolean serviceManaged; + + private Long serviceID; + + private List tags; + + public String getSecurityGroupId() { + return this.securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + } + + public String getSecurityGroupName() { + return this.securityGroupName; + } + + public void setSecurityGroupName(String securityGroupName) { + this.securityGroupName = securityGroupName; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getSecurityGroupType() { + return this.securityGroupType; + } + + public void setSecurityGroupType(String securityGroupType) { + this.securityGroupType = securityGroupType; + } + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public Integer getEcsCount() { + return this.ecsCount; + } + + public void setEcsCount(Integer ecsCount) { + this.ecsCount = ecsCount; + } + + public Integer getAvailableInstanceAmount() { + return this.availableInstanceAmount; + } + + public void setAvailableInstanceAmount(Integer availableInstanceAmount) { + this.availableInstanceAmount = availableInstanceAmount; + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + } + + public Boolean getServiceManaged() { + return this.serviceManaged; + } + + public void setServiceManaged(Boolean serviceManaged) { + this.serviceManaged = serviceManaged; + } + + public Long getServiceID() { + return this.serviceID; + } + + public void setServiceID(Long serviceID) { + this.serviceID = serviceID; + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public static class Tag { + + private String tagValue; + + private String tagKey; + + public String getTagValue() { + return this.tagValue; + } + + public void setTagValue(String tagValue) { + this.tagValue = tagValue; + } + + public String getTagKey() { + return this.tagKey; + } + + public void setTagKey(String tagKey) { + this.tagKey = tagKey; + } + } + } + + @Override + public DescribeSecurityGroupsResponse getInstance(UnmarshallerContext context) { + return DescribeSecurityGroupsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSendFileResultsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSendFileResultsRequest.java new file mode 100644 index 0000000000..4683961869 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSendFileResultsRequest.java @@ -0,0 +1,211 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeSendFileResultsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Long pageNumber; + + private String resourceGroupId; + + private Long pageSize; + + private List tags; + + private String invokeId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceId; + + private String name; + public DescribeSendFileResultsRequest() { + super("Ecs", "2014-05-26", "DescribeSendFileResults", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Long getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Long pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public Long getPageSize() { + return this.pageSize; + } + + public void setPageSize(Long pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public String getInvokeId() { + return this.invokeId; + } + + public void setInvokeId(String invokeId) { + this.invokeId = invokeId; + if(invokeId != null){ + putQueryParameter("InvokeId", invokeId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + if(name != null){ + putQueryParameter("Name", name); + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return DescribeSendFileResultsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSendFileResultsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSendFileResultsResponse.java new file mode 100644 index 0000000000..5d1db48f22 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSendFileResultsResponse.java @@ -0,0 +1,341 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeSendFileResultsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeSendFileResultsResponse extends AcsResponse { + + private Long pageSize; + + private String requestId; + + private Long pageNumber; + + private Long totalCount; + + private List invocations; + + public Long getPageSize() { + return this.pageSize; + } + + public void setPageSize(Long pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Long getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Long pageNumber) { + this.pageNumber = pageNumber; + } + + public Long getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Long totalCount) { + this.totalCount = totalCount; + } + + public List getInvocations() { + return this.invocations; + } + + public void setInvocations(List invocations) { + this.invocations = invocations; + } + + public static class Invocation { + + private String creationTime; + + private String invocationStatus; + + private String contentType; + + private String targetDir; + + private String fileOwner; + + private String description; + + private Integer vmCount; + + private String fileMode; + + private String fileGroup; + + private String invokeId; + + private String name; + + private String content; + + private String overwrite; + + private List invokeInstances; + + private List tags; + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getInvocationStatus() { + return this.invocationStatus; + } + + public void setInvocationStatus(String invocationStatus) { + this.invocationStatus = invocationStatus; + } + + public String getContentType() { + return this.contentType; + } + + public void setContentType(String contentType) { + this.contentType = contentType; + } + + public String getTargetDir() { + return this.targetDir; + } + + public void setTargetDir(String targetDir) { + this.targetDir = targetDir; + } + + public String getFileOwner() { + return this.fileOwner; + } + + public void setFileOwner(String fileOwner) { + this.fileOwner = fileOwner; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getVmCount() { + return this.vmCount; + } + + public void setVmCount(Integer vmCount) { + this.vmCount = vmCount; + } + + public String getFileMode() { + return this.fileMode; + } + + public void setFileMode(String fileMode) { + this.fileMode = fileMode; + } + + public String getFileGroup() { + return this.fileGroup; + } + + public void setFileGroup(String fileGroup) { + this.fileGroup = fileGroup; + } + + public String getInvokeId() { + return this.invokeId; + } + + public void setInvokeId(String invokeId) { + this.invokeId = invokeId; + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public String getContent() { + return this.content; + } + + public void setContent(String content) { + this.content = content; + } + + public String getOverwrite() { + return this.overwrite; + } + + public void setOverwrite(String overwrite) { + this.overwrite = overwrite; + } + + public List getInvokeInstances() { + return this.invokeInstances; + } + + public void setInvokeInstances(List invokeInstances) { + this.invokeInstances = invokeInstances; + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public static class InvokeInstance { + + private String creationTime; + + private String startTime; + + private String invocationStatus; + + private String finishTime; + + private String updateTime; + + private String errorInfo; + + private String errorCode; + + private String instanceId; + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getStartTime() { + return this.startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + public String getInvocationStatus() { + return this.invocationStatus; + } + + public void setInvocationStatus(String invocationStatus) { + this.invocationStatus = invocationStatus; + } + + public String getFinishTime() { + return this.finishTime; + } + + public void setFinishTime(String finishTime) { + this.finishTime = finishTime; + } + + public String getUpdateTime() { + return this.updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + + public String getErrorInfo() { + return this.errorInfo; + } + + public void setErrorInfo(String errorInfo) { + this.errorInfo = errorInfo; + } + + public String getErrorCode() { + return this.errorCode; + } + + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + } + + public static class Tag { + + private String tagKey; + + private String tagValue; + + public String getTagKey() { + return this.tagKey; + } + + public void setTagKey(String tagKey) { + this.tagKey = tagKey; + } + + public String getTagValue() { + return this.tagValue; + } + + public void setTagValue(String tagValue) { + this.tagValue = tagValue; + } + } + } + + @Override + public DescribeSendFileResultsResponse getInstance(UnmarshallerContext context) { + return DescribeSendFileResultsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotGroupsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotGroupsRequest.java new file mode 100644 index 0000000000..d3a6d30463 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotGroupsRequest.java @@ -0,0 +1,243 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeSnapshotGroupsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceGroupId; + + private String nextToken; + + private List tags; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private List snapshotGroupIds; + + private Long ownerId; + + private List additionalAttributess; + + private String instanceId; + + private String name; + + private Integer maxResults; + + private List statuss; + public DescribeSnapshotGroupsRequest() { + super("Ecs", "2014-05-26", "DescribeSnapshotGroups", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + if(nextToken != null){ + putQueryParameter("NextToken", nextToken); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public List getSnapshotGroupIds() { + return this.snapshotGroupIds; + } + + public void setSnapshotGroupIds(List snapshotGroupIds) { + this.snapshotGroupIds = snapshotGroupIds; + if (snapshotGroupIds != null) { + for (int i = 0; i < snapshotGroupIds.size(); i++) { + putQueryParameter("SnapshotGroupId." + (i + 1) , snapshotGroupIds.get(i)); + } + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getAdditionalAttributess() { + return this.additionalAttributess; + } + + public void setAdditionalAttributess(List additionalAttributess) { + this.additionalAttributess = additionalAttributess; + if (additionalAttributess != null) { + for (int i = 0; i < additionalAttributess.size(); i++) { + putQueryParameter("AdditionalAttributes." + (i + 1) , additionalAttributess.get(i)); + } + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + if(name != null){ + putQueryParameter("Name", name); + } + } + + public Integer getMaxResults() { + return this.maxResults; + } + + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + if(maxResults != null){ + putQueryParameter("MaxResults", maxResults.toString()); + } + } + + public List getStatuss() { + return this.statuss; + } + + public void setStatuss(List statuss) { + this.statuss = statuss; + if (statuss != null) { + for (int i = 0; i < statuss.size(); i++) { + putQueryParameter("Status." + (i + 1) , statuss.get(i)); + } + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return DescribeSnapshotGroupsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotGroupsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotGroupsResponse.java new file mode 100644 index 0000000000..ecc9fc0024 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotGroupsResponse.java @@ -0,0 +1,284 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeSnapshotGroupsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeSnapshotGroupsResponse extends AcsResponse { + + private String nextToken; + + private String requestId; + + private List snapshotGroups; + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getSnapshotGroups() { + return this.snapshotGroups; + } + + public void setSnapshotGroups(List snapshotGroups) { + this.snapshotGroups = snapshotGroups; + } + + public static class SnapshotGroup { + + private String status; + + private String creationTime; + + private String description; + + private String progressStatus; + + private String snapshotGroupId; + + private String instanceId; + + private String name; + + private String resourceGroupId; + + private List tags; + + private List snapshots; + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getProgressStatus() { + return this.progressStatus; + } + + public void setProgressStatus(String progressStatus) { + this.progressStatus = progressStatus; + } + + public String getSnapshotGroupId() { + return this.snapshotGroupId; + } + + public void setSnapshotGroupId(String snapshotGroupId) { + this.snapshotGroupId = snapshotGroupId; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public List getSnapshots() { + return this.snapshots; + } + + public void setSnapshots(List snapshots) { + this.snapshots = snapshots; + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + public static class Snapshot { + + private String sourceDiskId; + + private String progress; + + private Integer instantAccessRetentionDays; + + private String snapshotId; + + private Boolean instantAccess; + + private String sourceDiskType; + + private List tags1; + + public String getSourceDiskId() { + return this.sourceDiskId; + } + + public void setSourceDiskId(String sourceDiskId) { + this.sourceDiskId = sourceDiskId; + } + + public String getProgress() { + return this.progress; + } + + public void setProgress(String progress) { + this.progress = progress; + } + + public Integer getInstantAccessRetentionDays() { + return this.instantAccessRetentionDays; + } + + public void setInstantAccessRetentionDays(Integer instantAccessRetentionDays) { + this.instantAccessRetentionDays = instantAccessRetentionDays; + } + + public String getSnapshotId() { + return this.snapshotId; + } + + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; + } + + public Boolean getInstantAccess() { + return this.instantAccess; + } + + public void setInstantAccess(Boolean instantAccess) { + this.instantAccess = instantAccess; + } + + public String getSourceDiskType() { + return this.sourceDiskType; + } + + public void setSourceDiskType(String sourceDiskType) { + this.sourceDiskType = sourceDiskType; + } + + public List getTags1() { + return this.tags1; + } + + public void setTags1(List tags1) { + this.tags1 = tags1; + } + + public static class Tag2 { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + } + } + + @Override + public DescribeSnapshotGroupsResponse getInstance(UnmarshallerContext context) { + return DescribeSnapshotGroupsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotLinksRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotLinksRequest.java new file mode 100644 index 0000000000..c1fb4497c8 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotLinksRequest.java @@ -0,0 +1,158 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeSnapshotLinksRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Integer pageNumber; + + private Integer pageSize; + + private String diskIds; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String snapshotLinkIds; + + private Long ownerId; + + private String instanceId; + public DescribeSnapshotLinksRequest() { + super("Ecs", "2014-05-26", "DescribeSnapshotLinks", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getDiskIds() { + return this.diskIds; + } + + public void setDiskIds(String diskIds) { + this.diskIds = diskIds; + if(diskIds != null){ + putQueryParameter("DiskIds", diskIds); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getSnapshotLinkIds() { + return this.snapshotLinkIds; + } + + public void setSnapshotLinkIds(String snapshotLinkIds) { + this.snapshotLinkIds = snapshotLinkIds; + if(snapshotLinkIds != null){ + putQueryParameter("SnapshotLinkIds", snapshotLinkIds); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + @Override + public Class getResponseClass() { + return DescribeSnapshotLinksResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotLinksResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotLinksResponse.java new file mode 100644 index 0000000000..3ec1a36e73 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotLinksResponse.java @@ -0,0 +1,205 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeSnapshotLinksResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeSnapshotLinksResponse extends AcsResponse { + + private Integer pageSize; + + private String requestId; + + private Integer pageNumber; + + private Integer totalCount; + + private List snapshotLinks; + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getSnapshotLinks() { + return this.snapshotLinks; + } + + public void setSnapshotLinks(List snapshotLinks) { + this.snapshotLinks = snapshotLinks; + } + + public static class SnapshotLink { + + private Boolean instantAccess; + + private Long totalSize; + + private String sourceDiskName; + + private Integer sourceDiskSize; + + private String sourceDiskType; + + private String instanceId; + + private String snapshotLinkId; + + private Integer totalCount; + + private String regionId; + + private String sourceDiskId; + + private String instanceName; + + private String category; + + public Boolean getInstantAccess() { + return this.instantAccess; + } + + public void setInstantAccess(Boolean instantAccess) { + this.instantAccess = instantAccess; + } + + public Long getTotalSize() { + return this.totalSize; + } + + public void setTotalSize(Long totalSize) { + this.totalSize = totalSize; + } + + public String getSourceDiskName() { + return this.sourceDiskName; + } + + public void setSourceDiskName(String sourceDiskName) { + this.sourceDiskName = sourceDiskName; + } + + public Integer getSourceDiskSize() { + return this.sourceDiskSize; + } + + public void setSourceDiskSize(Integer sourceDiskSize) { + this.sourceDiskSize = sourceDiskSize; + } + + public String getSourceDiskType() { + return this.sourceDiskType; + } + + public void setSourceDiskType(String sourceDiskType) { + this.sourceDiskType = sourceDiskType; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getSnapshotLinkId() { + return this.snapshotLinkId; + } + + public void setSnapshotLinkId(String snapshotLinkId) { + this.snapshotLinkId = snapshotLinkId; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public String getSourceDiskId() { + return this.sourceDiskId; + } + + public void setSourceDiskId(String sourceDiskId) { + this.sourceDiskId = sourceDiskId; + } + + public String getInstanceName() { + return this.instanceName; + } + + public void setInstanceName(String instanceName) { + this.instanceName = instanceName; + } + + public String getCategory() { + return this.category; + } + + public void setCategory(String category) { + this.category = category; + } + } + + @Override + public DescribeSnapshotLinksResponse getInstance(UnmarshallerContext context) { + return DescribeSnapshotLinksResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotMonitorDataRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotMonitorDataRequest.java new file mode 100644 index 0000000000..f85ada56f5 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotMonitorDataRequest.java @@ -0,0 +1,145 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeSnapshotMonitorDataRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String startTime; + + private Integer period; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String endTime; + + private Long ownerId; + + private String category; + public DescribeSnapshotMonitorDataRequest() { + super("Ecs", "2014-05-26", "DescribeSnapshotMonitorData", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getStartTime() { + return this.startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + if(startTime != null){ + putQueryParameter("StartTime", startTime); + } + } + + public Integer getPeriod() { + return this.period; + } + + public void setPeriod(Integer period) { + this.period = period; + if(period != null){ + putQueryParameter("Period", period.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getEndTime() { + return this.endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + if(endTime != null){ + putQueryParameter("EndTime", endTime); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getCategory() { + return this.category; + } + + public void setCategory(String category) { + this.category = category; + if(category != null){ + putQueryParameter("Category", category); + } + } + + @Override + public Class getResponseClass() { + return DescribeSnapshotMonitorDataResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotMonitorDataResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotMonitorDataResponse.java new file mode 100644 index 0000000000..9066c28a90 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotMonitorDataResponse.java @@ -0,0 +1,75 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeSnapshotMonitorDataResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeSnapshotMonitorDataResponse extends AcsResponse { + + private String requestId; + + private List monitorData; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getMonitorData() { + return this.monitorData; + } + + public void setMonitorData(List monitorData) { + this.monitorData = monitorData; + } + + public static class DataPoint { + + private Long size; + + private String timeStamp; + + public Long getSize() { + return this.size; + } + + public void setSize(Long size) { + this.size = size; + } + + public String getTimeStamp() { + return this.timeStamp; + } + + public void setTimeStamp(String timeStamp) { + this.timeStamp = timeStamp; + } + } + + @Override + public DescribeSnapshotMonitorDataResponse getInstance(UnmarshallerContext context) { + return DescribeSnapshotMonitorDataResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotPackageRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotPackageRequest.java new file mode 100644 index 0000000000..5ad04737c1 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotPackageRequest.java @@ -0,0 +1,119 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeSnapshotPackageRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Integer pageNumber; + + private Integer pageSize; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public DescribeSnapshotPackageRequest() { + super("Ecs", "2014-05-26", "DescribeSnapshotPackage", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DescribeSnapshotPackageResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotPackageResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotPackageResponse.java new file mode 100644 index 0000000000..c2e6c43937 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotPackageResponse.java @@ -0,0 +1,125 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeSnapshotPackageResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeSnapshotPackageResponse extends AcsResponse { + + private Integer pageSize; + + private String requestId; + + private Integer pageNumber; + + private Integer totalCount; + + private List snapshotPackages; + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getSnapshotPackages() { + return this.snapshotPackages; + } + + public void setSnapshotPackages(List snapshotPackages) { + this.snapshotPackages = snapshotPackages; + } + + public static class SnapshotPackage { + + private String displayName; + + private String endTime; + + private String startTime; + + private Long initCapacity; + + public String getDisplayName() { + return this.displayName; + } + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + public String getEndTime() { + return this.endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + + public String getStartTime() { + return this.startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + public Long getInitCapacity() { + return this.initCapacity; + } + + public void setInitCapacity(Long initCapacity) { + this.initCapacity = initCapacity; + } + } + + @Override + public DescribeSnapshotPackageResponse getInstance(UnmarshallerContext context) { + return DescribeSnapshotPackageResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotsRequest.java new file mode 100644 index 0000000000..5794e394b1 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotsRequest.java @@ -0,0 +1,419 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeSnapshotsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String filter2Value; + + private String snapshotIds; + + private String usage; + + private String snapshotLinkId; + + private String resourceGroupId; + + private String filter1Key; + + private List tags; + + private Boolean dryRun; + + private String filter1Value; + + private Long ownerId; + + private String instanceId; + + private Integer maxResults; + + private String status; + + private String snapshotName; + + private Integer pageNumber; + + private String nextToken; + + private Integer pageSize; + + private String diskId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String sourceDiskType; + + private String filter2Key; + + private Boolean encrypted; + + private String snapshotType; + + private String kMSKeyId; + + private String category; + public DescribeSnapshotsRequest() { + super("Ecs", "2014-05-26", "DescribeSnapshots", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getFilter2Value() { + return this.filter2Value; + } + + public void setFilter2Value(String filter2Value) { + this.filter2Value = filter2Value; + if(filter2Value != null){ + putQueryParameter("Filter.2.Value", filter2Value); + } + } + + public String getSnapshotIds() { + return this.snapshotIds; + } + + public void setSnapshotIds(String snapshotIds) { + this.snapshotIds = snapshotIds; + if(snapshotIds != null){ + putQueryParameter("SnapshotIds", snapshotIds); + } + } + + public String getUsage() { + return this.usage; + } + + public void setUsage(String usage) { + this.usage = usage; + if(usage != null){ + putQueryParameter("Usage", usage); + } + } + + public String getSnapshotLinkId() { + return this.snapshotLinkId; + } + + public void setSnapshotLinkId(String snapshotLinkId) { + this.snapshotLinkId = snapshotLinkId; + if(snapshotLinkId != null){ + putQueryParameter("SnapshotLinkId", snapshotLinkId); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public String getFilter1Key() { + return this.filter1Key; + } + + public void setFilter1Key(String filter1Key) { + this.filter1Key = filter1Key; + if(filter1Key != null){ + putQueryParameter("Filter.1.Key", filter1Key); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + } + } + } + + public Boolean getDryRun() { + return this.dryRun; + } + + public void setDryRun(Boolean dryRun) { + this.dryRun = dryRun; + if(dryRun != null){ + putQueryParameter("DryRun", dryRun.toString()); + } + } + + public String getFilter1Value() { + return this.filter1Value; + } + + public void setFilter1Value(String filter1Value) { + this.filter1Value = filter1Value; + if(filter1Value != null){ + putQueryParameter("Filter.1.Value", filter1Value); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public Integer getMaxResults() { + return this.maxResults; + } + + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + if(maxResults != null){ + putQueryParameter("MaxResults", maxResults.toString()); + } + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + if(status != null){ + putQueryParameter("Status", status); + } + } + + public String getSnapshotName() { + return this.snapshotName; + } + + public void setSnapshotName(String snapshotName) { + this.snapshotName = snapshotName; + if(snapshotName != null){ + putQueryParameter("SnapshotName", snapshotName); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + if(nextToken != null){ + putQueryParameter("NextToken", nextToken); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getDiskId() { + return this.diskId; + } + + public void setDiskId(String diskId) { + this.diskId = diskId; + if(diskId != null){ + putQueryParameter("DiskId", diskId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getSourceDiskType() { + return this.sourceDiskType; + } + + public void setSourceDiskType(String sourceDiskType) { + this.sourceDiskType = sourceDiskType; + if(sourceDiskType != null){ + putQueryParameter("SourceDiskType", sourceDiskType); + } + } + + public String getFilter2Key() { + return this.filter2Key; + } + + public void setFilter2Key(String filter2Key) { + this.filter2Key = filter2Key; + if(filter2Key != null){ + putQueryParameter("Filter.2.Key", filter2Key); + } + } + + public Boolean getEncrypted() { + return this.encrypted; + } + + public void setEncrypted(Boolean encrypted) { + this.encrypted = encrypted; + if(encrypted != null){ + putQueryParameter("Encrypted", encrypted.toString()); + } + } + + public String getSnapshotType() { + return this.snapshotType; + } + + public void setSnapshotType(String snapshotType) { + this.snapshotType = snapshotType; + if(snapshotType != null){ + putQueryParameter("SnapshotType", snapshotType); + } + } + + public String getKMSKeyId() { + return this.kMSKeyId; + } + + public void setKMSKeyId(String kMSKeyId) { + this.kMSKeyId = kMSKeyId; + if(kMSKeyId != null){ + putQueryParameter("KMSKeyId", kMSKeyId); + } + } + + public String getCategory() { + return this.category; + } + + public void setCategory(String category) { + this.category = category; + if(category != null){ + putQueryParameter("Category", category); + } + } + + public static class Tag { + + private String value; + + private String key; + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + } + + @Override + public Class getResponseClass() { + return DescribeSnapshotsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotsResponse.java new file mode 100644 index 0000000000..73def810b8 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotsResponse.java @@ -0,0 +1,378 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeSnapshotsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeSnapshotsResponse extends AcsResponse { + + private String nextToken; + + private Integer pageSize; + + private Integer pageNumber; + + private String requestId; + + private Integer totalCount; + + private List snapshots; + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getSnapshots() { + return this.snapshots; + } + + public void setSnapshots(List snapshots) { + this.snapshots = snapshots; + } + + public static class Snapshot { + + private String status; + + private String creationTime; + + private String progress; + + private Boolean instantAccess; + + private Integer remainTime; + + private String sourceDiskSize; + + private Integer retentionDays; + + private String sourceDiskType; + + private String sourceStorageType; + + private String usage; + + private String lastModifiedTime; + + private Boolean encrypted; + + private String snapshotType; + + private String sourceDiskId; + + private String snapshotName; + + private Integer instantAccessRetentionDays; + + private String description; + + private String snapshotId; + + private String resourceGroupId; + + private String category; + + private String kMSKeyId; + + private String snapshotSN; + + private String productCode; + + private String sourceSnapshotId; + + private String sourceRegionId; + + private List tags; + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getProgress() { + return this.progress; + } + + public void setProgress(String progress) { + this.progress = progress; + } + + public Boolean getInstantAccess() { + return this.instantAccess; + } + + public void setInstantAccess(Boolean instantAccess) { + this.instantAccess = instantAccess; + } + + public Integer getRemainTime() { + return this.remainTime; + } + + public void setRemainTime(Integer remainTime) { + this.remainTime = remainTime; + } + + public String getSourceDiskSize() { + return this.sourceDiskSize; + } + + public void setSourceDiskSize(String sourceDiskSize) { + this.sourceDiskSize = sourceDiskSize; + } + + public Integer getRetentionDays() { + return this.retentionDays; + } + + public void setRetentionDays(Integer retentionDays) { + this.retentionDays = retentionDays; + } + + public String getSourceDiskType() { + return this.sourceDiskType; + } + + public void setSourceDiskType(String sourceDiskType) { + this.sourceDiskType = sourceDiskType; + } + + public String getSourceStorageType() { + return this.sourceStorageType; + } + + public void setSourceStorageType(String sourceStorageType) { + this.sourceStorageType = sourceStorageType; + } + + public String getUsage() { + return this.usage; + } + + public void setUsage(String usage) { + this.usage = usage; + } + + public String getLastModifiedTime() { + return this.lastModifiedTime; + } + + public void setLastModifiedTime(String lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + public Boolean getEncrypted() { + return this.encrypted; + } + + public void setEncrypted(Boolean encrypted) { + this.encrypted = encrypted; + } + + public String getSnapshotType() { + return this.snapshotType; + } + + public void setSnapshotType(String snapshotType) { + this.snapshotType = snapshotType; + } + + public String getSourceDiskId() { + return this.sourceDiskId; + } + + public void setSourceDiskId(String sourceDiskId) { + this.sourceDiskId = sourceDiskId; + } + + public String getSnapshotName() { + return this.snapshotName; + } + + public void setSnapshotName(String snapshotName) { + this.snapshotName = snapshotName; + } + + public Integer getInstantAccessRetentionDays() { + return this.instantAccessRetentionDays; + } + + public void setInstantAccessRetentionDays(Integer instantAccessRetentionDays) { + this.instantAccessRetentionDays = instantAccessRetentionDays; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getSnapshotId() { + return this.snapshotId; + } + + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + } + + public String getCategory() { + return this.category; + } + + public void setCategory(String category) { + this.category = category; + } + + public String getKMSKeyId() { + return this.kMSKeyId; + } + + public void setKMSKeyId(String kMSKeyId) { + this.kMSKeyId = kMSKeyId; + } + + public String getSnapshotSN() { + return this.snapshotSN; + } + + public void setSnapshotSN(String snapshotSN) { + this.snapshotSN = snapshotSN; + } + + public String getProductCode() { + return this.productCode; + } + + public void setProductCode(String productCode) { + this.productCode = productCode; + } + + public String getSourceSnapshotId() { + return this.sourceSnapshotId; + } + + public void setSourceSnapshotId(String sourceSnapshotId) { + this.sourceSnapshotId = sourceSnapshotId; + } + + public String getSourceRegionId() { + return this.sourceRegionId; + } + + public void setSourceRegionId(String sourceRegionId) { + this.sourceRegionId = sourceRegionId; + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public static class Tag { + + private String tagValue; + + private String tagKey; + + public String getTagValue() { + return this.tagValue; + } + + public void setTagValue(String tagValue) { + this.tagValue = tagValue; + } + + public String getTagKey() { + return this.tagKey; + } + + public void setTagKey(String tagKey) { + this.tagKey = tagKey; + } + } + } + + @Override + public DescribeSnapshotsResponse getInstance(UnmarshallerContext context) { + return DescribeSnapshotsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotsUsageRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotsUsageRequest.java new file mode 100644 index 0000000000..ec09cfba77 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotsUsageRequest.java @@ -0,0 +1,93 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeSnapshotsUsageRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public DescribeSnapshotsUsageRequest() { + super("Ecs", "2014-05-26", "DescribeSnapshotsUsage", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DescribeSnapshotsUsageResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotsUsageResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotsUsageResponse.java new file mode 100644 index 0000000000..41200376c1 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSnapshotsUsageResponse.java @@ -0,0 +1,61 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeSnapshotsUsageResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeSnapshotsUsageResponse extends AcsResponse { + + private Long snapshotSize; + + private String requestId; + + private Integer snapshotCount; + + public Long getSnapshotSize() { + return this.snapshotSize; + } + + public void setSnapshotSize(Long snapshotSize) { + this.snapshotSize = snapshotSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getSnapshotCount() { + return this.snapshotCount; + } + + public void setSnapshotCount(Integer snapshotCount) { + this.snapshotCount = snapshotCount; + } + + @Override + public DescribeSnapshotsUsageResponse getInstance(UnmarshallerContext context) { + return DescribeSnapshotsUsageResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSpotAdviceRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSpotAdviceRequest.java new file mode 100644 index 0000000000..3b6317d254 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSpotAdviceRequest.java @@ -0,0 +1,226 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeSpotAdviceRequest extends RpcAcsRequest { + + + private String gpuSpec; + + private Long resourceOwnerId; + + private Float memory; + + private List instanceTypess; + + private Integer minCores; + + private Integer cores; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String instanceTypeFamily; + + private Long ownerId; + + private String instanceFamilyLevel; + + private String zoneId; + + private Integer gpuAmount; + + private Float minMemory; + public DescribeSpotAdviceRequest() { + super("Ecs", "2014-05-26", "DescribeSpotAdvice", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getGpuSpec() { + return this.gpuSpec; + } + + public void setGpuSpec(String gpuSpec) { + this.gpuSpec = gpuSpec; + if(gpuSpec != null){ + putQueryParameter("GpuSpec", gpuSpec); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Float getMemory() { + return this.memory; + } + + public void setMemory(Float memory) { + this.memory = memory; + if(memory != null){ + putQueryParameter("Memory", memory.toString()); + } + } + + public List getInstanceTypess() { + return this.instanceTypess; + } + + public void setInstanceTypess(List instanceTypess) { + this.instanceTypess = instanceTypess; + if (instanceTypess != null) { + for (int i = 0; i < instanceTypess.size(); i++) { + putQueryParameter("InstanceTypes." + (i + 1) , instanceTypess.get(i)); + } + } + } + + public Integer getMinCores() { + return this.minCores; + } + + public void setMinCores(Integer minCores) { + this.minCores = minCores; + if(minCores != null){ + putQueryParameter("MinCores", minCores.toString()); + } + } + + public Integer getCores() { + return this.cores; + } + + public void setCores(Integer cores) { + this.cores = cores; + if(cores != null){ + putQueryParameter("Cores", cores.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getInstanceTypeFamily() { + return this.instanceTypeFamily; + } + + public void setInstanceTypeFamily(String instanceTypeFamily) { + this.instanceTypeFamily = instanceTypeFamily; + if(instanceTypeFamily != null){ + putQueryParameter("InstanceTypeFamily", instanceTypeFamily); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceFamilyLevel() { + return this.instanceFamilyLevel; + } + + public void setInstanceFamilyLevel(String instanceFamilyLevel) { + this.instanceFamilyLevel = instanceFamilyLevel; + if(instanceFamilyLevel != null){ + putQueryParameter("InstanceFamilyLevel", instanceFamilyLevel); + } + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + if(zoneId != null){ + putQueryParameter("ZoneId", zoneId); + } + } + + public Integer getGpuAmount() { + return this.gpuAmount; + } + + public void setGpuAmount(Integer gpuAmount) { + this.gpuAmount = gpuAmount; + if(gpuAmount != null){ + putQueryParameter("GpuAmount", gpuAmount.toString()); + } + } + + public Float getMinMemory() { + return this.minMemory; + } + + public void setMinMemory(Float minMemory) { + this.minMemory = minMemory; + if(minMemory != null){ + putQueryParameter("MinMemory", minMemory.toString()); + } + } + + @Override + public Class getResponseClass() { + return DescribeSpotAdviceResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSpotAdviceResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSpotAdviceResponse.java new file mode 100644 index 0000000000..102a992e36 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSpotAdviceResponse.java @@ -0,0 +1,128 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeSpotAdviceResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeSpotAdviceResponse extends AcsResponse { + + private String regionId; + + private String requestId; + + private List availableSpotZones; + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getAvailableSpotZones() { + return this.availableSpotZones; + } + + public void setAvailableSpotZones(List availableSpotZones) { + this.availableSpotZones = availableSpotZones; + } + + public static class AvailableSpotZone { + + private String zoneId; + + private List availableSpotResources; + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + } + + public List getAvailableSpotResources() { + return this.availableSpotResources; + } + + public void setAvailableSpotResources(List availableSpotResources) { + this.availableSpotResources = availableSpotResources; + } + + public static class AvailableSpotResource { + + private String interruptRateDesc; + + private Integer averageSpotDiscount; + + private String instanceType; + + private Float interruptionRate; + + public String getInterruptRateDesc() { + return this.interruptRateDesc; + } + + public void setInterruptRateDesc(String interruptRateDesc) { + this.interruptRateDesc = interruptRateDesc; + } + + public Integer getAverageSpotDiscount() { + return this.averageSpotDiscount; + } + + public void setAverageSpotDiscount(Integer averageSpotDiscount) { + this.averageSpotDiscount = averageSpotDiscount; + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public Float getInterruptionRate() { + return this.interruptionRate; + } + + public void setInterruptionRate(Float interruptionRate) { + this.interruptionRate = interruptionRate; + } + } + } + + @Override + public DescribeSpotAdviceResponse getInstance(UnmarshallerContext context) { + return DescribeSpotAdviceResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSpotPriceHistoryRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSpotPriceHistoryRequest.java new file mode 100644 index 0000000000..eecfe24436 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSpotPriceHistoryRequest.java @@ -0,0 +1,210 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeSpotPriceHistoryRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String ioOptimized; + + private String networkType; + + private String startTime; + + private String instanceType; + + private Integer offset; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String endTime; + + private String oSType; + + private Long ownerId; + + private Integer spotDuration; + + private String zoneId; + public DescribeSpotPriceHistoryRequest() { + super("Ecs", "2014-05-26", "DescribeSpotPriceHistory", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getIoOptimized() { + return this.ioOptimized; + } + + public void setIoOptimized(String ioOptimized) { + this.ioOptimized = ioOptimized; + if(ioOptimized != null){ + putQueryParameter("IoOptimized", ioOptimized); + } + } + + public String getNetworkType() { + return this.networkType; + } + + public void setNetworkType(String networkType) { + this.networkType = networkType; + if(networkType != null){ + putQueryParameter("NetworkType", networkType); + } + } + + public String getStartTime() { + return this.startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + if(startTime != null){ + putQueryParameter("StartTime", startTime); + } + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + if(instanceType != null){ + putQueryParameter("InstanceType", instanceType); + } + } + + public Integer getOffset() { + return this.offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + if(offset != null){ + putQueryParameter("Offset", offset.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getEndTime() { + return this.endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + if(endTime != null){ + putQueryParameter("EndTime", endTime); + } + } + + public String getOSType() { + return this.oSType; + } + + public void setOSType(String oSType) { + this.oSType = oSType; + if(oSType != null){ + putQueryParameter("OSType", oSType); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public Integer getSpotDuration() { + return this.spotDuration; + } + + public void setSpotDuration(Integer spotDuration) { + this.spotDuration = spotDuration; + if(spotDuration != null){ + putQueryParameter("SpotDuration", spotDuration.toString()); + } + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + if(zoneId != null){ + putQueryParameter("ZoneId", zoneId); + } + } + + @Override + public Class getResponseClass() { + return DescribeSpotPriceHistoryResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSpotPriceHistoryResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSpotPriceHistoryResponse.java new file mode 100644 index 0000000000..be721b35c6 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeSpotPriceHistoryResponse.java @@ -0,0 +1,145 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeSpotPriceHistoryResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeSpotPriceHistoryResponse extends AcsResponse { + + private String requestId; + + private String currency; + + private Integer nextOffset; + + private List spotPrices; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getCurrency() { + return this.currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + public Integer getNextOffset() { + return this.nextOffset; + } + + public void setNextOffset(Integer nextOffset) { + this.nextOffset = nextOffset; + } + + public List getSpotPrices() { + return this.spotPrices; + } + + public void setSpotPrices(List spotPrices) { + this.spotPrices = spotPrices; + } + + public static class SpotPriceType { + + private String ioOptimized; + + private String zoneId; + + private Float spotPrice; + + private String timestamp; + + private String networkType; + + private String instanceType; + + private Float originPrice; + + public String getIoOptimized() { + return this.ioOptimized; + } + + public void setIoOptimized(String ioOptimized) { + this.ioOptimized = ioOptimized; + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + } + + public Float getSpotPrice() { + return this.spotPrice; + } + + public void setSpotPrice(Float spotPrice) { + this.spotPrice = spotPrice; + } + + public String getTimestamp() { + return this.timestamp; + } + + public void setTimestamp(String timestamp) { + this.timestamp = timestamp; + } + + public String getNetworkType() { + return this.networkType; + } + + public void setNetworkType(String networkType) { + this.networkType = networkType; + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public Float getOriginPrice() { + return this.originPrice; + } + + public void setOriginPrice(Float originPrice) { + this.originPrice = originPrice; + } + } + + @Override + public DescribeSpotPriceHistoryResponse getInstance(UnmarshallerContext context) { + return DescribeSpotPriceHistoryResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeStorageCapacityUnitsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeStorageCapacityUnitsRequest.java new file mode 100644 index 0000000000..69335da211 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeStorageCapacityUnitsRequest.java @@ -0,0 +1,228 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeStorageCapacityUnitsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Integer pageNumber; + + private Integer capacity; + + private List storageCapacityUnitIds; + + private Integer pageSize; + + private List tags; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String name; + + private String allocationType; + + private List statuss; + public DescribeStorageCapacityUnitsRequest() { + super("Ecs", "2014-05-26", "DescribeStorageCapacityUnits", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getCapacity() { + return this.capacity; + } + + public void setCapacity(Integer capacity) { + this.capacity = capacity; + if(capacity != null){ + putQueryParameter("Capacity", capacity.toString()); + } + } + + public List getStorageCapacityUnitIds() { + return this.storageCapacityUnitIds; + } + + public void setStorageCapacityUnitIds(List storageCapacityUnitIds) { + this.storageCapacityUnitIds = storageCapacityUnitIds; + if (storageCapacityUnitIds != null) { + for (int i = 0; i < storageCapacityUnitIds.size(); i++) { + putQueryParameter("StorageCapacityUnitId." + (i + 1) , storageCapacityUnitIds.get(i)); + } + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + if(name != null){ + putQueryParameter("Name", name); + } + } + + public String getAllocationType() { + return this.allocationType; + } + + public void setAllocationType(String allocationType) { + this.allocationType = allocationType; + if(allocationType != null){ + putQueryParameter("AllocationType", allocationType); + } + } + + public List getStatuss() { + return this.statuss; + } + + public void setStatuss(List statuss) { + this.statuss = statuss; + if (statuss != null) { + for (int i = 0; i < statuss.size(); i++) { + putQueryParameter("Status." + (i + 1) , statuss.get(i)); + } + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return DescribeStorageCapacityUnitsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeStorageCapacityUnitsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeStorageCapacityUnitsResponse.java new file mode 100644 index 0000000000..f760d17d61 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeStorageCapacityUnitsResponse.java @@ -0,0 +1,218 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeStorageCapacityUnitsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeStorageCapacityUnitsResponse extends AcsResponse { + + private Integer pageSize; + + private String requestId; + + private Integer pageNumber; + + private Integer totalCount; + + private List storageCapacityUnits; + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getStorageCapacityUnits() { + return this.storageCapacityUnits; + } + + public void setStorageCapacityUnits(List storageCapacityUnits) { + this.storageCapacityUnits = storageCapacityUnits; + } + + public static class StorageCapacityUnit { + + private String creationTime; + + private String status; + + private String startTime; + + private Integer capacity; + + private String description; + + private String allocationStatus; + + private String expiredTime; + + private String storageCapacityUnitId; + + private String name; + + private String regionId; + + private List tags; + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getStartTime() { + return this.startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + public Integer getCapacity() { + return this.capacity; + } + + public void setCapacity(Integer capacity) { + this.capacity = capacity; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getAllocationStatus() { + return this.allocationStatus; + } + + public void setAllocationStatus(String allocationStatus) { + this.allocationStatus = allocationStatus; + } + + public String getExpiredTime() { + return this.expiredTime; + } + + public void setExpiredTime(String expiredTime) { + this.expiredTime = expiredTime; + } + + public String getStorageCapacityUnitId() { + return this.storageCapacityUnitId; + } + + public void setStorageCapacityUnitId(String storageCapacityUnitId) { + this.storageCapacityUnitId = storageCapacityUnitId; + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public static class Tag { + + private String tagValue; + + private String tagKey; + + public String getTagValue() { + return this.tagValue; + } + + public void setTagValue(String tagValue) { + this.tagValue = tagValue; + } + + public String getTagKey() { + return this.tagKey; + } + + public void setTagKey(String tagKey) { + this.tagKey = tagKey; + } + } + } + + @Override + public DescribeStorageCapacityUnitsResponse getInstance(UnmarshallerContext context) { + return DescribeStorageCapacityUnitsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeStorageSetDetailsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeStorageSetDetailsRequest.java similarity index 95% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeStorageSetDetailsRequest.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeStorageSetDetailsRequest.java index bd39cec7cc..a9dce3bbd7 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeStorageSetDetailsRequest.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeStorageSetDetailsRequest.java @@ -12,7 +12,7 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.RpcAcsRequest; import com.aliyuncs.http.MethodType; @@ -45,7 +45,7 @@ public class DescribeStorageSetDetailsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Integer pageNumber; + + private Integer pageSize; + + private List tags; + + private String resourceId; + + private String resourceOwnerAccount; + + private Long ownerId; + + private String resourceType; + + private String category; + public DescribeTagsRequest() { + super("Ecs", "2014-05-26", "DescribeTags", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + } + } + } + + public String getResourceId() { + return this.resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + if(resourceId != null){ + putQueryParameter("ResourceId", resourceId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getResourceType() { + return this.resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + if(resourceType != null){ + putQueryParameter("ResourceType", resourceType); + } + } + + public String getCategory() { + return this.category; + } + + public void setCategory(String category) { + this.category = category; + if(category != null){ + putQueryParameter("Category", category); + } + } + + public static class Tag { + + private String value; + + private String key; + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + } + + @Override + public Class getResponseClass() { + return DescribeTagsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeTagsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeTagsResponse.java new file mode 100644 index 0000000000..3489844935 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeTagsResponse.java @@ -0,0 +1,238 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeTagsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeTagsResponse extends AcsResponse { + + private String requestId; + + private Integer pageSize; + + private Integer pageNumber; + + private Integer totalCount; + + private List tags; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public static class Tag { + + private String tagValue; + + private String tagKey; + + private ResourceTypeCount resourceTypeCount; + + public String getTagValue() { + return this.tagValue; + } + + public void setTagValue(String tagValue) { + this.tagValue = tagValue; + } + + public String getTagKey() { + return this.tagKey; + } + + public void setTagKey(String tagKey) { + this.tagKey = tagKey; + } + + public ResourceTypeCount getResourceTypeCount() { + return this.resourceTypeCount; + } + + public void setResourceTypeCount(ResourceTypeCount resourceTypeCount) { + this.resourceTypeCount = resourceTypeCount; + } + + public static class ResourceTypeCount { + + private Integer instance; + + private Integer image; + + private Integer ddh; + + private Integer snapshotPolicy; + + private Integer securitygroup; + + private Integer snapshot; + + private Integer reservedInstance; + + private Integer launchTemplate; + + private Integer eni; + + private Integer disk; + + private Integer keyPair; + + private Integer volume; + + public Integer getInstance() { + return this.instance; + } + + public void setInstance(Integer instance) { + this.instance = instance; + } + + public Integer getImage() { + return this.image; + } + + public void setImage(Integer image) { + this.image = image; + } + + public Integer getDdh() { + return this.ddh; + } + + public void setDdh(Integer ddh) { + this.ddh = ddh; + } + + public Integer getSnapshotPolicy() { + return this.snapshotPolicy; + } + + public void setSnapshotPolicy(Integer snapshotPolicy) { + this.snapshotPolicy = snapshotPolicy; + } + + public Integer getSecuritygroup() { + return this.securitygroup; + } + + public void setSecuritygroup(Integer securitygroup) { + this.securitygroup = securitygroup; + } + + public Integer getSnapshot() { + return this.snapshot; + } + + public void setSnapshot(Integer snapshot) { + this.snapshot = snapshot; + } + + public Integer getReservedInstance() { + return this.reservedInstance; + } + + public void setReservedInstance(Integer reservedInstance) { + this.reservedInstance = reservedInstance; + } + + public Integer getLaunchTemplate() { + return this.launchTemplate; + } + + public void setLaunchTemplate(Integer launchTemplate) { + this.launchTemplate = launchTemplate; + } + + public Integer getEni() { + return this.eni; + } + + public void setEni(Integer eni) { + this.eni = eni; + } + + public Integer getDisk() { + return this.disk; + } + + public void setDisk(Integer disk) { + this.disk = disk; + } + + public Integer getKeyPair() { + return this.keyPair; + } + + public void setKeyPair(Integer keyPair) { + this.keyPair = keyPair; + } + + public Integer getVolume() { + return this.volume; + } + + public void setVolume(Integer volume) { + this.volume = volume; + } + } + } + + @Override + public DescribeTagsResponse getInstance(UnmarshallerContext context) { + return DescribeTagsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeTaskAttributeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeTaskAttributeRequest.java new file mode 100644 index 0000000000..1365526e62 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeTaskAttributeRequest.java @@ -0,0 +1,93 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeTaskAttributeRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String taskId; + + private String resourceOwnerAccount; + + private Long ownerId; + public DescribeTaskAttributeRequest() { + super("Ecs", "2014-05-26", "DescribeTaskAttribute", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getTaskId() { + return this.taskId; + } + + public void setTaskId(String taskId) { + this.taskId = taskId; + if(taskId != null){ + putQueryParameter("TaskId", taskId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DescribeTaskAttributeResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeTaskAttributeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeTaskAttributeResponse.java new file mode 100644 index 0000000000..8cedf7efeb --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeTaskAttributeResponse.java @@ -0,0 +1,228 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeTaskAttributeResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeTaskAttributeResponse extends AcsResponse { + + private String creationTime; + + private String supportCancel; + + private Integer totalCount; + + private Integer successCount; + + private String regionId; + + private String taskAction; + + private Integer failedCount; + + private String requestId; + + private String taskStatus; + + private String taskProcess; + + private String finishedTime; + + private String taskId; + + private List operationProgressSet; + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getSupportCancel() { + return this.supportCancel; + } + + public void setSupportCancel(String supportCancel) { + this.supportCancel = supportCancel; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public Integer getSuccessCount() { + return this.successCount; + } + + public void setSuccessCount(Integer successCount) { + this.successCount = successCount; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public String getTaskAction() { + return this.taskAction; + } + + public void setTaskAction(String taskAction) { + this.taskAction = taskAction; + } + + public Integer getFailedCount() { + return this.failedCount; + } + + public void setFailedCount(Integer failedCount) { + this.failedCount = failedCount; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getTaskStatus() { + return this.taskStatus; + } + + public void setTaskStatus(String taskStatus) { + this.taskStatus = taskStatus; + } + + public String getTaskProcess() { + return this.taskProcess; + } + + public void setTaskProcess(String taskProcess) { + this.taskProcess = taskProcess; + } + + public String getFinishedTime() { + return this.finishedTime; + } + + public void setFinishedTime(String finishedTime) { + this.finishedTime = finishedTime; + } + + public String getTaskId() { + return this.taskId; + } + + public void setTaskId(String taskId) { + this.taskId = taskId; + } + + public List getOperationProgressSet() { + return this.operationProgressSet; + } + + public void setOperationProgressSet(List operationProgressSet) { + this.operationProgressSet = operationProgressSet; + } + + public static class OperationProgress { + + private String errorMsg; + + private String errorCode; + + private String operationStatus; + + private List relatedItemSet; + + public String getErrorMsg() { + return this.errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + public String getErrorCode() { + return this.errorCode; + } + + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + public String getOperationStatus() { + return this.operationStatus; + } + + public void setOperationStatus(String operationStatus) { + this.operationStatus = operationStatus; + } + + public List getRelatedItemSet() { + return this.relatedItemSet; + } + + public void setRelatedItemSet(List relatedItemSet) { + this.relatedItemSet = relatedItemSet; + } + + public static class RelatedItem { + + private String name; + + private String value; + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + } + + @Override + public DescribeTaskAttributeResponse getInstance(UnmarshallerContext context) { + return DescribeTaskAttributeResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeTasksRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeTasksRequest.java new file mode 100644 index 0000000000..f0b434a4fd --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeTasksRequest.java @@ -0,0 +1,200 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeTasksRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String startTime; + + private String taskIds; + + private Integer pageNumber; + + private String taskStatus; + + private Integer pageSize; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String endTime; + + private Long ownerId; + + private String taskAction; + + private List resourceIdss; + public DescribeTasksRequest() { + super("Ecs", "2014-05-26", "DescribeTasks", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getStartTime() { + return this.startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + if(startTime != null){ + putQueryParameter("StartTime", startTime); + } + } + + public String getTaskIds() { + return this.taskIds; + } + + public void setTaskIds(String taskIds) { + this.taskIds = taskIds; + if(taskIds != null){ + putQueryParameter("TaskIds", taskIds); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public String getTaskStatus() { + return this.taskStatus; + } + + public void setTaskStatus(String taskStatus) { + this.taskStatus = taskStatus; + if(taskStatus != null){ + putQueryParameter("TaskStatus", taskStatus); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getEndTime() { + return this.endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + if(endTime != null){ + putQueryParameter("EndTime", endTime); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getTaskAction() { + return this.taskAction; + } + + public void setTaskAction(String taskAction) { + this.taskAction = taskAction; + if(taskAction != null){ + putQueryParameter("TaskAction", taskAction); + } + } + + public List getResourceIdss() { + return this.resourceIdss; + } + + public void setResourceIdss(List resourceIdss) { + this.resourceIdss = resourceIdss; + if (resourceIdss != null) { + for (int i = 0; i < resourceIdss.size(); i++) { + putQueryParameter("ResourceIds." + (i + 1) , resourceIdss.get(i)); + } + } + } + + @Override + public Class getResponseClass() { + return DescribeTasksResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeTasksResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeTasksResponse.java new file mode 100644 index 0000000000..4e67c92871 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeTasksResponse.java @@ -0,0 +1,165 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeTasksResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeTasksResponse extends AcsResponse { + + private Integer pageSize; + + private Integer pageNumber; + + private String requestId; + + private Integer totalCount; + + private String regionId; + + private List taskSet; + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public List getTaskSet() { + return this.taskSet; + } + + public void setTaskSet(List taskSet) { + this.taskSet = taskSet; + } + + public static class Task { + + private String creationTime; + + private String taskStatus; + + private String finishedTime; + + private String supportCancel; + + private String taskId; + + private String taskAction; + + private String resourceId; + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getTaskStatus() { + return this.taskStatus; + } + + public void setTaskStatus(String taskStatus) { + this.taskStatus = taskStatus; + } + + public String getFinishedTime() { + return this.finishedTime; + } + + public void setFinishedTime(String finishedTime) { + this.finishedTime = finishedTime; + } + + public String getSupportCancel() { + return this.supportCancel; + } + + public void setSupportCancel(String supportCancel) { + this.supportCancel = supportCancel; + } + + public String getTaskId() { + return this.taskId; + } + + public void setTaskId(String taskId) { + this.taskId = taskId; + } + + public String getTaskAction() { + return this.taskAction; + } + + public void setTaskAction(String taskAction) { + this.taskAction = taskAction; + } + + public String getResourceId() { + return this.resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + } + + @Override + public DescribeTasksResponse getInstance(UnmarshallerContext context) { + return DescribeTasksResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeUserBusinessBehaviorRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeUserBusinessBehaviorRequest.java new file mode 100644 index 0000000000..075181906f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeUserBusinessBehaviorRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeUserBusinessBehaviorRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String statusKey; + public DescribeUserBusinessBehaviorRequest() { + super("Ecs", "2014-05-26", "DescribeUserBusinessBehavior", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getStatusKey() { + return this.statusKey; + } + + public void setStatusKey(String statusKey) { + this.statusKey = statusKey; + if(statusKey != null){ + putQueryParameter("statusKey", statusKey); + } + } + + @Override + public Class getResponseClass() { + return DescribeUserBusinessBehaviorResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeUserBusinessBehaviorResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeUserBusinessBehaviorResponse.java new file mode 100644 index 0000000000..1b049aa255 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeUserBusinessBehaviorResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeUserBusinessBehaviorResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeUserBusinessBehaviorResponse extends AcsResponse { + + private String statusValue; + + private String requestId; + + public String getStatusValue() { + return this.statusValue; + } + + public void setStatusValue(String statusValue) { + this.statusValue = statusValue; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DescribeUserBusinessBehaviorResponse getInstance(UnmarshallerContext context) { + return DescribeUserBusinessBehaviorResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeUserDataRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeUserDataRequest.java new file mode 100644 index 0000000000..c1865ad019 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeUserDataRequest.java @@ -0,0 +1,93 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeUserDataRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private Long ownerId; + + private String instanceId; + public DescribeUserDataRequest() { + super("Ecs", "2014-05-26", "DescribeUserData", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + @Override + public Class getResponseClass() { + return DescribeUserDataResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeUserDataResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeUserDataResponse.java new file mode 100644 index 0000000000..5abf6a7de7 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeUserDataResponse.java @@ -0,0 +1,71 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeUserDataResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeUserDataResponse extends AcsResponse { + + private String requestId; + + private String instanceId; + + private String userData; + + private String regionId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getUserData() { + return this.userData; + } + + public void setUserData(String userData) { + this.userData = userData; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + @Override + public DescribeUserDataResponse getInstance(UnmarshallerContext context) { + return DescribeUserDataResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeVRoutersRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeVRoutersRequest.java new file mode 100644 index 0000000000..4bad98fbbe --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeVRoutersRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeVRoutersRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String vRouterId; + + private Integer pageNumber; + + private Integer pageSize; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public DescribeVRoutersRequest() { + super("Ecs", "2014-05-26", "DescribeVRouters", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getVRouterId() { + return this.vRouterId; + } + + public void setVRouterId(String vRouterId) { + this.vRouterId = vRouterId; + if(vRouterId != null){ + putQueryParameter("VRouterId", vRouterId); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return DescribeVRoutersResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeVRoutersResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeVRoutersResponse.java new file mode 100644 index 0000000000..5679d7977a --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeVRoutersResponse.java @@ -0,0 +1,155 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeVRoutersResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeVRoutersResponse extends AcsResponse { + + private Integer pageSize; + + private String requestId; + + private Integer pageNumber; + + private Integer totalCount; + + private List vRouters; + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getVRouters() { + return this.vRouters; + } + + public void setVRouters(List vRouters) { + this.vRouters = vRouters; + } + + public static class VRouter { + + private String vpcId; + + private String creationTime; + + private String vRouterId; + + private String description; + + private String vRouterName; + + private String regionId; + + private List routeTableIds; + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getVRouterId() { + return this.vRouterId; + } + + public void setVRouterId(String vRouterId) { + this.vRouterId = vRouterId; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getVRouterName() { + return this.vRouterName; + } + + public void setVRouterName(String vRouterName) { + this.vRouterName = vRouterName; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public List getRouteTableIds() { + return this.routeTableIds; + } + + public void setRouteTableIds(List routeTableIds) { + this.routeTableIds = routeTableIds; + } + } + + @Override + public DescribeVRoutersResponse getInstance(UnmarshallerContext context) { + return DescribeVRoutersResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeVSwitchesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeVSwitchesRequest.java new file mode 100644 index 0000000000..a5c7711dbc --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeVSwitchesRequest.java @@ -0,0 +1,171 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeVSwitchesRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Integer pageNumber; + + private Integer pageSize; + + private Boolean isDefault; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String vSwitchId; + + private String vpcId; + + private String zoneId; + public DescribeVSwitchesRequest() { + super("Ecs", "2014-05-26", "DescribeVSwitches", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public Boolean getIsDefault() { + return this.isDefault; + } + + public void setIsDefault(Boolean isDefault) { + this.isDefault = isDefault; + if(isDefault != null){ + putQueryParameter("IsDefault", isDefault.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getVSwitchId() { + return this.vSwitchId; + } + + public void setVSwitchId(String vSwitchId) { + this.vSwitchId = vSwitchId; + if(vSwitchId != null){ + putQueryParameter("VSwitchId", vSwitchId); + } + } + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + if(vpcId != null){ + putQueryParameter("VpcId", vpcId); + } + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + if(zoneId != null){ + putQueryParameter("ZoneId", zoneId); + } + } + + @Override + public Class getResponseClass() { + return DescribeVSwitchesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeVSwitchesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeVSwitchesResponse.java new file mode 100644 index 0000000000..4c0b1e3ff6 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeVSwitchesResponse.java @@ -0,0 +1,195 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeVSwitchesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeVSwitchesResponse extends AcsResponse { + + private Integer pageSize; + + private String requestId; + + private Integer pageNumber; + + private Integer totalCount; + + private List vSwitches; + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getVSwitches() { + return this.vSwitches; + } + + public void setVSwitches(List vSwitches) { + this.vSwitches = vSwitches; + } + + public static class VSwitch { + + private String creationTime; + + private String status; + + private String vpcId; + + private Boolean isDefault; + + private String vSwitchId; + + private String cidrBlock; + + private String description; + + private Long availableIpAddressCount; + + private String resourceGroupId; + + private String zoneId; + + private String vSwitchName; + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + public Boolean getIsDefault() { + return this.isDefault; + } + + public void setIsDefault(Boolean isDefault) { + this.isDefault = isDefault; + } + + public String getVSwitchId() { + return this.vSwitchId; + } + + public void setVSwitchId(String vSwitchId) { + this.vSwitchId = vSwitchId; + } + + public String getCidrBlock() { + return this.cidrBlock; + } + + public void setCidrBlock(String cidrBlock) { + this.cidrBlock = cidrBlock; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Long getAvailableIpAddressCount() { + return this.availableIpAddressCount; + } + + public void setAvailableIpAddressCount(Long availableIpAddressCount) { + this.availableIpAddressCount = availableIpAddressCount; + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + } + + public String getVSwitchName() { + return this.vSwitchName; + } + + public void setVSwitchName(String vSwitchName) { + this.vSwitchName = vSwitchName; + } + } + + @Override + public DescribeVSwitchesResponse getInstance(UnmarshallerContext context) { + return DescribeVSwitchesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.java new file mode 100644 index 0000000000..387793059b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.java @@ -0,0 +1,163 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeVirtualBorderRoutersForPhysicalConnectionRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Integer pageNumber; + + private Integer pageSize; + + private String resourceOwnerAccount; + + private Long ownerId; + + private List filters; + + private String physicalConnectionId; + public DescribeVirtualBorderRoutersForPhysicalConnectionRequest() { + super("Ecs", "2014-05-26", "DescribeVirtualBorderRoutersForPhysicalConnection", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getFilters() { + return this.filters; + } + + public void setFilters(List filters) { + this.filters = filters; + if (filters != null) { + for (int depth1 = 0; depth1 < filters.size(); depth1++) { + if (filters.get(depth1).getValues() != null) { + for (int i = 0; i < filters.get(depth1).getValues().size(); i++) { + putQueryParameter("Filter." + (depth1 + 1) + ".Value." + (i + 1) , filters.get(depth1).getValues().get(i)); + } + } + putQueryParameter("Filter." + (depth1 + 1) + ".Key" , filters.get(depth1).getKey()); + } + } + } + + public String getPhysicalConnectionId() { + return this.physicalConnectionId; + } + + public void setPhysicalConnectionId(String physicalConnectionId) { + this.physicalConnectionId = physicalConnectionId; + if(physicalConnectionId != null){ + putQueryParameter("PhysicalConnectionId", physicalConnectionId); + } + } + + public static class Filter { + + private List values; + + private String key; + + public List getValues() { + return this.values; + } + + public void setValues(List values) { + this.values = values; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + } + + @Override + public Class getResponseClass() { + return DescribeVirtualBorderRoutersForPhysicalConnectionResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeVirtualBorderRoutersForPhysicalConnectionResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeVirtualBorderRoutersForPhysicalConnectionResponse.java new file mode 100644 index 0000000000..9134f77744 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeVirtualBorderRoutersForPhysicalConnectionResponse.java @@ -0,0 +1,165 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeVirtualBorderRoutersForPhysicalConnectionResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeVirtualBorderRoutersForPhysicalConnectionResponse extends AcsResponse { + + private String requestId; + + private Integer pageNumber; + + private Integer pageSize; + + private Integer totalCount; + + private List virtualBorderRouterForPhysicalConnectionSet; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getVirtualBorderRouterForPhysicalConnectionSet() { + return this.virtualBorderRouterForPhysicalConnectionSet; + } + + public void setVirtualBorderRouterForPhysicalConnectionSet(List virtualBorderRouterForPhysicalConnectionSet) { + this.virtualBorderRouterForPhysicalConnectionSet = virtualBorderRouterForPhysicalConnectionSet; + } + + public static class VirtualBorderRouterForPhysicalConnectionType { + + private String creationTime; + + private String circuitCode; + + private String recoveryTime; + + private String terminationTime; + + private String activationTime; + + private Long vbrOwnerUid; + + private String vbrId; + + private Integer vlanId; + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getCircuitCode() { + return this.circuitCode; + } + + public void setCircuitCode(String circuitCode) { + this.circuitCode = circuitCode; + } + + public String getRecoveryTime() { + return this.recoveryTime; + } + + public void setRecoveryTime(String recoveryTime) { + this.recoveryTime = recoveryTime; + } + + public String getTerminationTime() { + return this.terminationTime; + } + + public void setTerminationTime(String terminationTime) { + this.terminationTime = terminationTime; + } + + public String getActivationTime() { + return this.activationTime; + } + + public void setActivationTime(String activationTime) { + this.activationTime = activationTime; + } + + public Long getVbrOwnerUid() { + return this.vbrOwnerUid; + } + + public void setVbrOwnerUid(Long vbrOwnerUid) { + this.vbrOwnerUid = vbrOwnerUid; + } + + public String getVbrId() { + return this.vbrId; + } + + public void setVbrId(String vbrId) { + this.vbrId = vbrId; + } + + public Integer getVlanId() { + return this.vlanId; + } + + public void setVlanId(Integer vlanId) { + this.vlanId = vlanId; + } + } + + @Override + public DescribeVirtualBorderRoutersForPhysicalConnectionResponse getInstance(UnmarshallerContext context) { + return DescribeVirtualBorderRoutersForPhysicalConnectionResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeVirtualBorderRoutersRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeVirtualBorderRoutersRequest.java new file mode 100644 index 0000000000..2880b7936a --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeVirtualBorderRoutersRequest.java @@ -0,0 +1,150 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeVirtualBorderRoutersRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Integer pageNumber; + + private Integer pageSize; + + private String resourceOwnerAccount; + + private Long ownerId; + + private List filters; + public DescribeVirtualBorderRoutersRequest() { + super("Ecs", "2014-05-26", "DescribeVirtualBorderRouters", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getFilters() { + return this.filters; + } + + public void setFilters(List filters) { + this.filters = filters; + if (filters != null) { + for (int depth1 = 0; depth1 < filters.size(); depth1++) { + if (filters.get(depth1).getValues() != null) { + for (int i = 0; i < filters.get(depth1).getValues().size(); i++) { + putQueryParameter("Filter." + (depth1 + 1) + ".Value." + (i + 1) , filters.get(depth1).getValues().get(i)); + } + } + putQueryParameter("Filter." + (depth1 + 1) + ".Key" , filters.get(depth1).getKey()); + } + } + } + + public static class Filter { + + private List values; + + private String key; + + public List getValues() { + return this.values; + } + + public void setValues(List values) { + this.values = values; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + } + + @Override + public Class getResponseClass() { + return DescribeVirtualBorderRoutersResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeVirtualBorderRoutersResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeVirtualBorderRoutersResponse.java new file mode 100644 index 0000000000..459ff932af --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeVirtualBorderRoutersResponse.java @@ -0,0 +1,285 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeVirtualBorderRoutersResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeVirtualBorderRoutersResponse extends AcsResponse { + + private String requestId; + + private Integer pageNumber; + + private Integer pageSize; + + private Integer totalCount; + + private List virtualBorderRouterSet; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getVirtualBorderRouterSet() { + return this.virtualBorderRouterSet; + } + + public void setVirtualBorderRouterSet(List virtualBorderRouterSet) { + this.virtualBorderRouterSet = virtualBorderRouterSet; + } + + public static class VirtualBorderRouterType { + + private String vlanInterfaceId; + + private String status; + + private String creationTime; + + private String circuitCode; + + private String physicalConnectionOwnerUid; + + private String localGatewayIp; + + private String activationTime; + + private String physicalConnectionBusinessStatus; + + private String peeringSubnetMask; + + private String routeTableId; + + private String description; + + private String physicalConnectionStatus; + + private String recoveryTime; + + private String terminationTime; + + private String peerGatewayIp; + + private String name; + + private String accessPointId; + + private String vbrId; + + private String physicalConnectionId; + + private Integer vlanId; + + public String getVlanInterfaceId() { + return this.vlanInterfaceId; + } + + public void setVlanInterfaceId(String vlanInterfaceId) { + this.vlanInterfaceId = vlanInterfaceId; + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getCircuitCode() { + return this.circuitCode; + } + + public void setCircuitCode(String circuitCode) { + this.circuitCode = circuitCode; + } + + public String getPhysicalConnectionOwnerUid() { + return this.physicalConnectionOwnerUid; + } + + public void setPhysicalConnectionOwnerUid(String physicalConnectionOwnerUid) { + this.physicalConnectionOwnerUid = physicalConnectionOwnerUid; + } + + public String getLocalGatewayIp() { + return this.localGatewayIp; + } + + public void setLocalGatewayIp(String localGatewayIp) { + this.localGatewayIp = localGatewayIp; + } + + public String getActivationTime() { + return this.activationTime; + } + + public void setActivationTime(String activationTime) { + this.activationTime = activationTime; + } + + public String getPhysicalConnectionBusinessStatus() { + return this.physicalConnectionBusinessStatus; + } + + public void setPhysicalConnectionBusinessStatus(String physicalConnectionBusinessStatus) { + this.physicalConnectionBusinessStatus = physicalConnectionBusinessStatus; + } + + public String getPeeringSubnetMask() { + return this.peeringSubnetMask; + } + + public void setPeeringSubnetMask(String peeringSubnetMask) { + this.peeringSubnetMask = peeringSubnetMask; + } + + public String getRouteTableId() { + return this.routeTableId; + } + + public void setRouteTableId(String routeTableId) { + this.routeTableId = routeTableId; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getPhysicalConnectionStatus() { + return this.physicalConnectionStatus; + } + + public void setPhysicalConnectionStatus(String physicalConnectionStatus) { + this.physicalConnectionStatus = physicalConnectionStatus; + } + + public String getRecoveryTime() { + return this.recoveryTime; + } + + public void setRecoveryTime(String recoveryTime) { + this.recoveryTime = recoveryTime; + } + + public String getTerminationTime() { + return this.terminationTime; + } + + public void setTerminationTime(String terminationTime) { + this.terminationTime = terminationTime; + } + + public String getPeerGatewayIp() { + return this.peerGatewayIp; + } + + public void setPeerGatewayIp(String peerGatewayIp) { + this.peerGatewayIp = peerGatewayIp; + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public String getAccessPointId() { + return this.accessPointId; + } + + public void setAccessPointId(String accessPointId) { + this.accessPointId = accessPointId; + } + + public String getVbrId() { + return this.vbrId; + } + + public void setVbrId(String vbrId) { + this.vbrId = vbrId; + } + + public String getPhysicalConnectionId() { + return this.physicalConnectionId; + } + + public void setPhysicalConnectionId(String physicalConnectionId) { + this.physicalConnectionId = physicalConnectionId; + } + + public Integer getVlanId() { + return this.vlanId; + } + + public void setVlanId(Integer vlanId) { + this.vlanId = vlanId; + } + } + + @Override + public DescribeVirtualBorderRoutersResponse getInstance(UnmarshallerContext context) { + return DescribeVirtualBorderRoutersResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeVpcsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeVpcsRequest.java new file mode 100644 index 0000000000..4a30df3451 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeVpcsRequest.java @@ -0,0 +1,145 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeVpcsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Integer pageNumber; + + private Integer pageSize; + + private Boolean isDefault; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String vpcId; + public DescribeVpcsRequest() { + super("Ecs", "2014-05-26", "DescribeVpcs", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public Boolean getIsDefault() { + return this.isDefault; + } + + public void setIsDefault(Boolean isDefault) { + this.isDefault = isDefault; + if(isDefault != null){ + putQueryParameter("IsDefault", isDefault.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + if(vpcId != null){ + putQueryParameter("VpcId", vpcId); + } + } + + @Override + public Class getResponseClass() { + return DescribeVpcsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeVpcsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeVpcsResponse.java new file mode 100644 index 0000000000..56f97786b1 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeVpcsResponse.java @@ -0,0 +1,195 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeVpcsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeVpcsResponse extends AcsResponse { + + private Integer pageSize; + + private String requestId; + + private Integer pageNumber; + + private Integer totalCount; + + private List vpcs; + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getVpcs() { + return this.vpcs; + } + + public void setVpcs(List vpcs) { + this.vpcs = vpcs; + } + + public static class Vpc { + + private String creationTime; + + private String vpcName; + + private String status; + + private String vpcId; + + private String vRouterId; + + private Boolean isDefault; + + private String cidrBlock; + + private String description; + + private String regionId; + + private List vSwitchIds; + + private List userCidrs; + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getVpcName() { + return this.vpcName; + } + + public void setVpcName(String vpcName) { + this.vpcName = vpcName; + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + public String getVRouterId() { + return this.vRouterId; + } + + public void setVRouterId(String vRouterId) { + this.vRouterId = vRouterId; + } + + public Boolean getIsDefault() { + return this.isDefault; + } + + public void setIsDefault(Boolean isDefault) { + this.isDefault = isDefault; + } + + public String getCidrBlock() { + return this.cidrBlock; + } + + public void setCidrBlock(String cidrBlock) { + this.cidrBlock = cidrBlock; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public List getVSwitchIds() { + return this.vSwitchIds; + } + + public void setVSwitchIds(List vSwitchIds) { + this.vSwitchIds = vSwitchIds; + } + + public List getUserCidrs() { + return this.userCidrs; + } + + public void setUserCidrs(List userCidrs) { + this.userCidrs = userCidrs; + } + } + + @Override + public DescribeVpcsResponse getInstance(UnmarshallerContext context) { + return DescribeVpcsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeZonesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeZonesRequest.java new file mode 100644 index 0000000000..9768d34c73 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeZonesRequest.java @@ -0,0 +1,145 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DescribeZonesRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String instanceChargeType; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private Boolean verbose; + + private String spotStrategy; + + private String acceptLanguage; + public DescribeZonesRequest() { + super("Ecs", "2014-05-26", "DescribeZones", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getInstanceChargeType() { + return this.instanceChargeType; + } + + public void setInstanceChargeType(String instanceChargeType) { + this.instanceChargeType = instanceChargeType; + if(instanceChargeType != null){ + putQueryParameter("InstanceChargeType", instanceChargeType); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public Boolean getVerbose() { + return this.verbose; + } + + public void setVerbose(Boolean verbose) { + this.verbose = verbose; + if(verbose != null){ + putQueryParameter("Verbose", verbose.toString()); + } + } + + public String getSpotStrategy() { + return this.spotStrategy; + } + + public void setSpotStrategy(String spotStrategy) { + this.spotStrategy = spotStrategy; + if(spotStrategy != null){ + putQueryParameter("SpotStrategy", spotStrategy); + } + } + + public String getAcceptLanguage() { + return this.acceptLanguage; + } + + public void setAcceptLanguage(String acceptLanguage) { + this.acceptLanguage = acceptLanguage; + if(acceptLanguage != null){ + putQueryParameter("AcceptLanguage", acceptLanguage); + } + } + + @Override + public Class getResponseClass() { + return DescribeZonesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeZonesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeZonesResponse.java new file mode 100644 index 0000000000..4f0f86ab3d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeZonesResponse.java @@ -0,0 +1,228 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DescribeZonesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeZonesResponse extends AcsResponse { + + private String requestId; + + private List zones; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getZones() { + return this.zones; + } + + public void setZones(List zones) { + this.zones = zones; + } + + public static class Zone { + + private String zoneId; + + private String zoneType; + + private String localName; + + private List availableResources; + + private List availableResourceCreation; + + private List dedicatedHostGenerations; + + private List availableInstanceTypes; + + private List availableDiskCategories; + + private List availableDedicatedHostTypes; + + private List availableVolumeCategories; + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + } + + public String getZoneType() { + return this.zoneType; + } + + public void setZoneType(String zoneType) { + this.zoneType = zoneType; + } + + public String getLocalName() { + return this.localName; + } + + public void setLocalName(String localName) { + this.localName = localName; + } + + public List getAvailableResources() { + return this.availableResources; + } + + public void setAvailableResources(List availableResources) { + this.availableResources = availableResources; + } + + public List getAvailableResourceCreation() { + return this.availableResourceCreation; + } + + public void setAvailableResourceCreation(List availableResourceCreation) { + this.availableResourceCreation = availableResourceCreation; + } + + public List getDedicatedHostGenerations() { + return this.dedicatedHostGenerations; + } + + public void setDedicatedHostGenerations(List dedicatedHostGenerations) { + this.dedicatedHostGenerations = dedicatedHostGenerations; + } + + public List getAvailableInstanceTypes() { + return this.availableInstanceTypes; + } + + public void setAvailableInstanceTypes(List availableInstanceTypes) { + this.availableInstanceTypes = availableInstanceTypes; + } + + public List getAvailableDiskCategories() { + return this.availableDiskCategories; + } + + public void setAvailableDiskCategories(List availableDiskCategories) { + this.availableDiskCategories = availableDiskCategories; + } + + public List getAvailableDedicatedHostTypes() { + return this.availableDedicatedHostTypes; + } + + public void setAvailableDedicatedHostTypes(List availableDedicatedHostTypes) { + this.availableDedicatedHostTypes = availableDedicatedHostTypes; + } + + public List getAvailableVolumeCategories() { + return this.availableVolumeCategories; + } + + public void setAvailableVolumeCategories(List availableVolumeCategories) { + this.availableVolumeCategories = availableVolumeCategories; + } + + public static class ResourcesInfo { + + private Boolean ioOptimized; + + private List systemDiskCategories; + + private List instanceGenerations; + + private List dataDiskCategories; + + private List instanceTypes; + + private List instanceTypeFamilies; + + private List networkTypes; + + public Boolean getIoOptimized() { + return this.ioOptimized; + } + + public void setIoOptimized(Boolean ioOptimized) { + this.ioOptimized = ioOptimized; + } + + public List getSystemDiskCategories() { + return this.systemDiskCategories; + } + + public void setSystemDiskCategories(List systemDiskCategories) { + this.systemDiskCategories = systemDiskCategories; + } + + public List getInstanceGenerations() { + return this.instanceGenerations; + } + + public void setInstanceGenerations(List instanceGenerations) { + this.instanceGenerations = instanceGenerations; + } + + public List getDataDiskCategories() { + return this.dataDiskCategories; + } + + public void setDataDiskCategories(List dataDiskCategories) { + this.dataDiskCategories = dataDiskCategories; + } + + public List getInstanceTypes() { + return this.instanceTypes; + } + + public void setInstanceTypes(List instanceTypes) { + this.instanceTypes = instanceTypes; + } + + public List getInstanceTypeFamilies() { + return this.instanceTypeFamilies; + } + + public void setInstanceTypeFamilies(List instanceTypeFamilies) { + this.instanceTypeFamilies = instanceTypeFamilies; + } + + public List getNetworkTypes() { + return this.networkTypes; + } + + public void setNetworkTypes(List networkTypes) { + this.networkTypes = networkTypes; + } + } + } + + @Override + public DescribeZonesResponse getInstance(UnmarshallerContext context) { + return DescribeZonesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DetachClassicLinkVpcRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DetachClassicLinkVpcRequest.java new file mode 100644 index 0000000000..99d45effb5 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DetachClassicLinkVpcRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DetachClassicLinkVpcRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private Long ownerId; + + private String instanceId; + + private String vpcId; + public DetachClassicLinkVpcRequest() { + super("Ecs", "2014-05-26", "DetachClassicLinkVpc", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + if(vpcId != null){ + putQueryParameter("VpcId", vpcId); + } + } + + @Override + public Class getResponseClass() { + return DetachClassicLinkVpcResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DetachClassicLinkVpcResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DetachClassicLinkVpcResponse.java new file mode 100644 index 0000000000..7fdae7785a --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DetachClassicLinkVpcResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DetachClassicLinkVpcResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DetachClassicLinkVpcResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DetachClassicLinkVpcResponse getInstance(UnmarshallerContext context) { + return DetachClassicLinkVpcResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DetachDiskRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DetachDiskRequest.java new file mode 100644 index 0000000000..6dc7f8d473 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DetachDiskRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DetachDiskRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String diskId; + + private Boolean deleteWithInstance; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceId; + public DetachDiskRequest() { + super("Ecs", "2014-05-26", "DetachDisk", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getDiskId() { + return this.diskId; + } + + public void setDiskId(String diskId) { + this.diskId = diskId; + if(diskId != null){ + putQueryParameter("DiskId", diskId); + } + } + + public Boolean getDeleteWithInstance() { + return this.deleteWithInstance; + } + + public void setDeleteWithInstance(Boolean deleteWithInstance) { + this.deleteWithInstance = deleteWithInstance; + if(deleteWithInstance != null){ + putQueryParameter("DeleteWithInstance", deleteWithInstance.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + @Override + public Class getResponseClass() { + return DetachDiskResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DetachDiskResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DetachDiskResponse.java new file mode 100644 index 0000000000..f40da45e27 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DetachDiskResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DetachDiskResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DetachDiskResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DetachDiskResponse getInstance(UnmarshallerContext context) { + return DetachDiskResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DetachInstanceRamRoleRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DetachInstanceRamRoleRequest.java new file mode 100644 index 0000000000..a9bae62930 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DetachInstanceRamRoleRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DetachInstanceRamRoleRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private String ramRoleName; + + private Long ownerId; + + private String instanceIds; + public DetachInstanceRamRoleRequest() { + super("Ecs", "2014-05-26", "DetachInstanceRamRole", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getRamRoleName() { + return this.ramRoleName; + } + + public void setRamRoleName(String ramRoleName) { + this.ramRoleName = ramRoleName; + if(ramRoleName != null){ + putQueryParameter("RamRoleName", ramRoleName); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceIds() { + return this.instanceIds; + } + + public void setInstanceIds(String instanceIds) { + this.instanceIds = instanceIds; + if(instanceIds != null){ + putQueryParameter("InstanceIds", instanceIds); + } + } + + @Override + public Class getResponseClass() { + return DetachInstanceRamRoleResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DetachInstanceRamRoleResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DetachInstanceRamRoleResponse.java new file mode 100644 index 0000000000..3956d20246 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DetachInstanceRamRoleResponse.java @@ -0,0 +1,158 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DetachInstanceRamRoleResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DetachInstanceRamRoleResponse extends AcsResponse { + + private String ramRoleName; + + private String requestId; + + private Integer totalCount; + + private Integer failCount; + + private List detachInstanceRamRoleResults; + + public String getRamRoleName() { + return this.ramRoleName; + } + + public void setRamRoleName(String ramRoleName) { + this.ramRoleName = ramRoleName; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public Integer getFailCount() { + return this.failCount; + } + + public void setFailCount(Integer failCount) { + this.failCount = failCount; + } + + public List getDetachInstanceRamRoleResults() { + return this.detachInstanceRamRoleResults; + } + + public void setDetachInstanceRamRoleResults(List detachInstanceRamRoleResults) { + this.detachInstanceRamRoleResults = detachInstanceRamRoleResults; + } + + public static class DetachInstanceRamRoleResult { + + private String code; + + private String message; + + private String instanceId; + + private Boolean success; + + private List instanceRamRoleSets; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getMessage() { + return this.message; + } + + public void setMessage(String message) { + this.message = message; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public Boolean getSuccess() { + return this.success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public List getInstanceRamRoleSets() { + return this.instanceRamRoleSets; + } + + public void setInstanceRamRoleSets(List instanceRamRoleSets) { + this.instanceRamRoleSets = instanceRamRoleSets; + } + + public static class InstanceRamRoleSet { + + private String ramRoleName; + + private String instanceId; + + public String getRamRoleName() { + return this.ramRoleName; + } + + public void setRamRoleName(String ramRoleName) { + this.ramRoleName = ramRoleName; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + } + } + + @Override + public DetachInstanceRamRoleResponse getInstance(UnmarshallerContext context) { + return DetachInstanceRamRoleResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DetachKeyPairRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DetachKeyPairRequest.java new file mode 100644 index 0000000000..ed3c4b867f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DetachKeyPairRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DetachKeyPairRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String keyPairName; + + private String resourceOwnerAccount; + + private Long ownerId; + + private String instanceIds; + public DetachKeyPairRequest() { + super("Ecs", "2014-05-26", "DetachKeyPair", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getKeyPairName() { + return this.keyPairName; + } + + public void setKeyPairName(String keyPairName) { + this.keyPairName = keyPairName; + if(keyPairName != null){ + putQueryParameter("KeyPairName", keyPairName); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceIds() { + return this.instanceIds; + } + + public void setInstanceIds(String instanceIds) { + this.instanceIds = instanceIds; + if(instanceIds != null){ + putQueryParameter("InstanceIds", instanceIds); + } + } + + @Override + public Class getResponseClass() { + return DetachKeyPairResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DetachKeyPairResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DetachKeyPairResponse.java new file mode 100644 index 0000000000..2a4e24eddc --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DetachKeyPairResponse.java @@ -0,0 +1,125 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DetachKeyPairResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DetachKeyPairResponse extends AcsResponse { + + private String keyPairName; + + private String requestId; + + private String totalCount; + + private String failCount; + + private List results; + + public String getKeyPairName() { + return this.keyPairName; + } + + public void setKeyPairName(String keyPairName) { + this.keyPairName = keyPairName; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public String getFailCount() { + return this.failCount; + } + + public void setFailCount(String failCount) { + this.failCount = failCount; + } + + public List getResults() { + return this.results; + } + + public void setResults(List results) { + this.results = results; + } + + public static class Result { + + private String code; + + private String message; + + private String instanceId; + + private String success; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getMessage() { + return this.message; + } + + public void setMessage(String message) { + this.message = message; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getSuccess() { + return this.success; + } + + public void setSuccess(String success) { + this.success = success; + } + } + + @Override + public DetachKeyPairResponse getInstance(UnmarshallerContext context) { + return DetachKeyPairResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DetachNetworkInterfaceRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DetachNetworkInterfaceRequest.java new file mode 100644 index 0000000000..6fe84b707e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DetachNetworkInterfaceRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DetachNetworkInterfaceRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String trunkNetworkInstanceId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceId; + + private String networkInterfaceId; + public DetachNetworkInterfaceRequest() { + super("Ecs", "2014-05-26", "DetachNetworkInterface", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getTrunkNetworkInstanceId() { + return this.trunkNetworkInstanceId; + } + + public void setTrunkNetworkInstanceId(String trunkNetworkInstanceId) { + this.trunkNetworkInstanceId = trunkNetworkInstanceId; + if(trunkNetworkInstanceId != null){ + putQueryParameter("TrunkNetworkInstanceId", trunkNetworkInstanceId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public String getNetworkInterfaceId() { + return this.networkInterfaceId; + } + + public void setNetworkInterfaceId(String networkInterfaceId) { + this.networkInterfaceId = networkInterfaceId; + if(networkInterfaceId != null){ + putQueryParameter("NetworkInterfaceId", networkInterfaceId); + } + } + + @Override + public Class getResponseClass() { + return DetachNetworkInterfaceResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DetachNetworkInterfaceResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DetachNetworkInterfaceResponse.java new file mode 100644 index 0000000000..1fcbe3eea5 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DetachNetworkInterfaceResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DetachNetworkInterfaceResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DetachNetworkInterfaceResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DetachNetworkInterfaceResponse getInstance(UnmarshallerContext context) { + return DetachNetworkInterfaceResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DisableActivationRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DisableActivationRequest.java new file mode 100644 index 0000000000..e1d1080dba --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DisableActivationRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class DisableActivationRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String activationId; + public DisableActivationRequest() { + super("Ecs", "2014-05-26", "DisableActivation", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getActivationId() { + return this.activationId; + } + + public void setActivationId(String activationId) { + this.activationId = activationId; + if(activationId != null){ + putQueryParameter("ActivationId", activationId); + } + } + + @Override + public Class getResponseClass() { + return DisableActivationResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DisableActivationResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DisableActivationResponse.java new file mode 100644 index 0000000000..0120cf2401 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DisableActivationResponse.java @@ -0,0 +1,159 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.DisableActivationResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DisableActivationResponse extends AcsResponse { + + private String requestId; + + private Activation activation; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Activation getActivation() { + return this.activation; + } + + public void setActivation(Activation activation) { + this.activation = activation; + } + + public static class Activation { + + private String creationTime; + + private Integer deregisteredCount; + + private Integer instanceCount; + + private String description; + + private Integer registeredCount; + + private String instanceName; + + private Boolean disabled; + + private String ipAddressRange; + + private Long timeToLiveInHours; + + private String activationId; + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public Integer getDeregisteredCount() { + return this.deregisteredCount; + } + + public void setDeregisteredCount(Integer deregisteredCount) { + this.deregisteredCount = deregisteredCount; + } + + public Integer getInstanceCount() { + return this.instanceCount; + } + + public void setInstanceCount(Integer instanceCount) { + this.instanceCount = instanceCount; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getRegisteredCount() { + return this.registeredCount; + } + + public void setRegisteredCount(Integer registeredCount) { + this.registeredCount = registeredCount; + } + + public String getInstanceName() { + return this.instanceName; + } + + public void setInstanceName(String instanceName) { + this.instanceName = instanceName; + } + + public Boolean getDisabled() { + return this.disabled; + } + + public void setDisabled(Boolean disabled) { + this.disabled = disabled; + } + + public String getIpAddressRange() { + return this.ipAddressRange; + } + + public void setIpAddressRange(String ipAddressRange) { + this.ipAddressRange = ipAddressRange; + } + + public Long getTimeToLiveInHours() { + return this.timeToLiveInHours; + } + + public void setTimeToLiveInHours(Long timeToLiveInHours) { + this.timeToLiveInHours = timeToLiveInHours; + } + + public String getActivationId() { + return this.activationId; + } + + public void setActivationId(String activationId) { + this.activationId = activationId; + } + } + + @Override + public DisableActivationResponse getInstance(UnmarshallerContext context) { + return DisableActivationResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/EipFillParamsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/EipFillParamsRequest.java new file mode 100644 index 0000000000..db658af44e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/EipFillParamsRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class EipFillParamsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String data; + + private String clientToken; + + private String userCidr; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public EipFillParamsRequest() { + super("Ecs", "2014-05-26", "EipFillParams", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getData() { + return this.data; + } + + public void setData(String data) { + this.data = data; + if(data != null){ + putQueryParameter("data", data); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getUserCidr() { + return this.userCidr; + } + + public void setUserCidr(String userCidr) { + this.userCidr = userCidr; + if(userCidr != null){ + putQueryParameter("UserCidr", userCidr); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return EipFillParamsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/EipFillParamsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/EipFillParamsResponse.java new file mode 100644 index 0000000000..024a23b62a --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/EipFillParamsResponse.java @@ -0,0 +1,81 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.EipFillParamsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class EipFillParamsResponse extends AcsResponse { + + private String code; + + private Boolean success; + + private String message; + + private String data; + + private String requestId; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public Boolean getSuccess() { + return this.success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public String getMessage() { + return this.message; + } + + public void setMessage(String message) { + this.message = message; + } + + public String getData() { + return this.data; + } + + public void setData(String data) { + this.data = data; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public EipFillParamsResponse getInstance(UnmarshallerContext context) { + return EipFillParamsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/EipFillProductRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/EipFillProductRequest.java new file mode 100644 index 0000000000..c3d8002ed3 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/EipFillProductRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class EipFillProductRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String data; + + private String clientToken; + + private String userCidr; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public EipFillProductRequest() { + super("Ecs", "2014-05-26", "EipFillProduct", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getData() { + return this.data; + } + + public void setData(String data) { + this.data = data; + if(data != null){ + putQueryParameter("data", data); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getUserCidr() { + return this.userCidr; + } + + public void setUserCidr(String userCidr) { + this.userCidr = userCidr; + if(userCidr != null){ + putQueryParameter("UserCidr", userCidr); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return EipFillProductResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/EipFillProductResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/EipFillProductResponse.java new file mode 100644 index 0000000000..8525d15914 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/EipFillProductResponse.java @@ -0,0 +1,81 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.EipFillProductResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class EipFillProductResponse extends AcsResponse { + + private String code; + + private Boolean success; + + private String message; + + private String data; + + private String requestId; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public Boolean getSuccess() { + return this.success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public String getMessage() { + return this.message; + } + + public void setMessage(String message) { + this.message = message; + } + + public String getData() { + return this.data; + } + + public void setData(String data) { + this.data = data; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public EipFillProductResponse getInstance(UnmarshallerContext context) { + return EipFillProductResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/EipNotifyPaidRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/EipNotifyPaidRequest.java new file mode 100644 index 0000000000..24bd56a4e7 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/EipNotifyPaidRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class EipNotifyPaidRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String data; + + private String clientToken; + + private String userCidr; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public EipNotifyPaidRequest() { + super("Ecs", "2014-05-26", "EipNotifyPaid", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getData() { + return this.data; + } + + public void setData(String data) { + this.data = data; + if(data != null){ + putQueryParameter("data", data); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getUserCidr() { + return this.userCidr; + } + + public void setUserCidr(String userCidr) { + this.userCidr = userCidr; + if(userCidr != null){ + putQueryParameter("UserCidr", userCidr); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return EipNotifyPaidResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/EipNotifyPaidResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/EipNotifyPaidResponse.java new file mode 100644 index 0000000000..b4857beb39 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/EipNotifyPaidResponse.java @@ -0,0 +1,81 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.EipNotifyPaidResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class EipNotifyPaidResponse extends AcsResponse { + + private String code; + + private Boolean success; + + private String message; + + private String data; + + private String requestId; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public Boolean getSuccess() { + return this.success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public String getMessage() { + return this.message; + } + + public void setMessage(String message) { + this.message = message; + } + + public String getData() { + return this.data; + } + + public void setData(String data) { + this.data = data; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public EipNotifyPaidResponse getInstance(UnmarshallerContext context) { + return EipNotifyPaidResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/EnablePhysicalConnectionRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/EnablePhysicalConnectionRequest.java new file mode 100644 index 0000000000..adab93cd51 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/EnablePhysicalConnectionRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class EnablePhysicalConnectionRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private String userCidr; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String physicalConnectionId; + public EnablePhysicalConnectionRequest() { + super("Ecs", "2014-05-26", "EnablePhysicalConnection", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getUserCidr() { + return this.userCidr; + } + + public void setUserCidr(String userCidr) { + this.userCidr = userCidr; + if(userCidr != null){ + putQueryParameter("UserCidr", userCidr); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getPhysicalConnectionId() { + return this.physicalConnectionId; + } + + public void setPhysicalConnectionId(String physicalConnectionId) { + this.physicalConnectionId = physicalConnectionId; + if(physicalConnectionId != null){ + putQueryParameter("PhysicalConnectionId", physicalConnectionId); + } + } + + @Override + public Class getResponseClass() { + return EnablePhysicalConnectionResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/EnablePhysicalConnectionResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/EnablePhysicalConnectionResponse.java new file mode 100644 index 0000000000..89d90a615b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/EnablePhysicalConnectionResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.EnablePhysicalConnectionResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class EnablePhysicalConnectionResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public EnablePhysicalConnectionResponse getInstance(UnmarshallerContext context) { + return EnablePhysicalConnectionResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ExportImageRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ExportImageRequest.java new file mode 100644 index 0000000000..edc12c2d78 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ExportImageRequest.java @@ -0,0 +1,145 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ExportImageRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String imageId; + + private String imageFormat; + + private String oSSBucket; + + private String resourceOwnerAccount; + + private String roleName; + + private Long ownerId; + + private String oSSPrefix; + public ExportImageRequest() { + super("Ecs", "2014-05-26", "ExportImage", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getImageId() { + return this.imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + if(imageId != null){ + putQueryParameter("ImageId", imageId); + } + } + + public String getImageFormat() { + return this.imageFormat; + } + + public void setImageFormat(String imageFormat) { + this.imageFormat = imageFormat; + if(imageFormat != null){ + putQueryParameter("ImageFormat", imageFormat); + } + } + + public String getOSSBucket() { + return this.oSSBucket; + } + + public void setOSSBucket(String oSSBucket) { + this.oSSBucket = oSSBucket; + if(oSSBucket != null){ + putQueryParameter("OSSBucket", oSSBucket); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getRoleName() { + return this.roleName; + } + + public void setRoleName(String roleName) { + this.roleName = roleName; + if(roleName != null){ + putQueryParameter("RoleName", roleName); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getOSSPrefix() { + return this.oSSPrefix; + } + + public void setOSSPrefix(String oSSPrefix) { + this.oSSPrefix = oSSPrefix; + if(oSSPrefix != null){ + putQueryParameter("OSSPrefix", oSSPrefix); + } + } + + @Override + public Class getResponseClass() { + return ExportImageResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ExportImageResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ExportImageResponse.java new file mode 100644 index 0000000000..e00daf54d9 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ExportImageResponse.java @@ -0,0 +1,61 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ExportImageResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ExportImageResponse extends AcsResponse { + + private String requestId; + + private String taskId; + + private String regionId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getTaskId() { + return this.taskId; + } + + public void setTaskId(String taskId) { + this.taskId = taskId; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + @Override + public ExportImageResponse getInstance(UnmarshallerContext context) { + return ExportImageResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ExportSnapshotRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ExportSnapshotRequest.java new file mode 100644 index 0000000000..0942a4abe3 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ExportSnapshotRequest.java @@ -0,0 +1,119 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ExportSnapshotRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String snapshotId; + + private String ossBucket; + + private String resourceOwnerAccount; + + private String roleName; + + private Long ownerId; + public ExportSnapshotRequest() { + super("Ecs", "2014-05-26", "ExportSnapshot", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getSnapshotId() { + return this.snapshotId; + } + + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; + if(snapshotId != null){ + putQueryParameter("SnapshotId", snapshotId); + } + } + + public String getOssBucket() { + return this.ossBucket; + } + + public void setOssBucket(String ossBucket) { + this.ossBucket = ossBucket; + if(ossBucket != null){ + putQueryParameter("OssBucket", ossBucket); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getRoleName() { + return this.roleName; + } + + public void setRoleName(String roleName) { + this.roleName = roleName; + if(roleName != null){ + putQueryParameter("RoleName", roleName); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return ExportSnapshotResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ExportSnapshotResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ExportSnapshotResponse.java new file mode 100644 index 0000000000..acf63bfff3 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ExportSnapshotResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ExportSnapshotResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ExportSnapshotResponse extends AcsResponse { + + private String taskId; + + private String requestId; + + public String getTaskId() { + return this.taskId; + } + + public void setTaskId(String taskId) { + this.taskId = taskId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ExportSnapshotResponse getInstance(UnmarshallerContext context) { + return ExportSnapshotResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/GetInstanceConsoleOutputRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/GetInstanceConsoleOutputRequest.java new file mode 100644 index 0000000000..2212ed617b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/GetInstanceConsoleOutputRequest.java @@ -0,0 +1,119 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class GetInstanceConsoleOutputRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Boolean removeSymbols; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceId; + public GetInstanceConsoleOutputRequest() { + super("Ecs", "2014-05-26", "GetInstanceConsoleOutput", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Boolean getRemoveSymbols() { + return this.removeSymbols; + } + + public void setRemoveSymbols(Boolean removeSymbols) { + this.removeSymbols = removeSymbols; + if(removeSymbols != null){ + putQueryParameter("RemoveSymbols", removeSymbols.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + @Override + public Class getResponseClass() { + return GetInstanceConsoleOutputResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/GetInstanceConsoleOutputResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/GetInstanceConsoleOutputResponse.java new file mode 100644 index 0000000000..4d7d4c5000 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/GetInstanceConsoleOutputResponse.java @@ -0,0 +1,71 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.GetInstanceConsoleOutputResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class GetInstanceConsoleOutputResponse extends AcsResponse { + + private String lastUpdateTime; + + private String requestId; + + private String instanceId; + + private String consoleOutput; + + public String getLastUpdateTime() { + return this.lastUpdateTime; + } + + public void setLastUpdateTime(String lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getConsoleOutput() { + return this.consoleOutput; + } + + public void setConsoleOutput(String consoleOutput) { + this.consoleOutput = consoleOutput; + } + + @Override + public GetInstanceConsoleOutputResponse getInstance(UnmarshallerContext context) { + return GetInstanceConsoleOutputResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/GetInstanceScreenshotRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/GetInstanceScreenshotRequest.java new file mode 100644 index 0000000000..c9d525ad17 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/GetInstanceScreenshotRequest.java @@ -0,0 +1,119 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class GetInstanceScreenshotRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private Boolean wakeUp; + + private String ownerAccount; + + private Long ownerId; + + private String instanceId; + public GetInstanceScreenshotRequest() { + super("Ecs", "2014-05-26", "GetInstanceScreenshot", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Boolean getWakeUp() { + return this.wakeUp; + } + + public void setWakeUp(Boolean wakeUp) { + this.wakeUp = wakeUp; + if(wakeUp != null){ + putQueryParameter("WakeUp", wakeUp.toString()); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + @Override + public Class getResponseClass() { + return GetInstanceScreenshotResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/GetInstanceScreenshotResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/GetInstanceScreenshotResponse.java new file mode 100644 index 0000000000..9db822a0b0 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/GetInstanceScreenshotResponse.java @@ -0,0 +1,61 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.GetInstanceScreenshotResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class GetInstanceScreenshotResponse extends AcsResponse { + + private String requestId; + + private String instanceId; + + private String screenshot; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getScreenshot() { + return this.screenshot; + } + + public void setScreenshot(String screenshot) { + this.screenshot = screenshot; + } + + @Override + public GetInstanceScreenshotResponse getInstance(UnmarshallerContext context) { + return GetInstanceScreenshotResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ImportImageRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ImportImageRequest.java new file mode 100644 index 0000000000..64995e165e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ImportImageRequest.java @@ -0,0 +1,333 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ImportImageRequest extends RpcAcsRequest { + + + private List diskDeviceMappings; + + private Long resourceOwnerId; + + private String description; + + private String platform; + + private String resourceGroupId; + + private String bootMode; + + private String imageName; + + private List tags; + + private String architecture; + + private String licenseType; + + private String detectionStrategy; + + private String resourceOwnerAccount; + + private String roleName; + + private String oSType; + + private Long ownerId; + public ImportImageRequest() { + super("Ecs", "2014-05-26", "ImportImage", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public List getDiskDeviceMappings() { + return this.diskDeviceMappings; + } + + public void setDiskDeviceMappings(List diskDeviceMappings) { + this.diskDeviceMappings = diskDeviceMappings; + if (diskDeviceMappings != null) { + for (int depth1 = 0; depth1 < diskDeviceMappings.size(); depth1++) { + putQueryParameter("DiskDeviceMapping." + (depth1 + 1) + ".OSSBucket" , diskDeviceMappings.get(depth1).getOSSBucket()); + putQueryParameter("DiskDeviceMapping." + (depth1 + 1) + ".DiskImSize" , diskDeviceMappings.get(depth1).getDiskImSize()); + putQueryParameter("DiskDeviceMapping." + (depth1 + 1) + ".Format" , diskDeviceMappings.get(depth1).getFormat()); + putQueryParameter("DiskDeviceMapping." + (depth1 + 1) + ".Device" , diskDeviceMappings.get(depth1).getDevice()); + putQueryParameter("DiskDeviceMapping." + (depth1 + 1) + ".OSSObject" , diskDeviceMappings.get(depth1).getOSSObject()); + putQueryParameter("DiskDeviceMapping." + (depth1 + 1) + ".DiskImageSize" , diskDeviceMappings.get(depth1).getDiskImageSize()); + } + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getPlatform() { + return this.platform; + } + + public void setPlatform(String platform) { + this.platform = platform; + if(platform != null){ + putQueryParameter("Platform", platform); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public String getBootMode() { + return this.bootMode; + } + + public void setBootMode(String bootMode) { + this.bootMode = bootMode; + if(bootMode != null){ + putQueryParameter("BootMode", bootMode); + } + } + + public String getImageName() { + return this.imageName; + } + + public void setImageName(String imageName) { + this.imageName = imageName; + if(imageName != null){ + putQueryParameter("ImageName", imageName); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + } + } + } + + public String getArchitecture() { + return this.architecture; + } + + public void setArchitecture(String architecture) { + this.architecture = architecture; + if(architecture != null){ + putQueryParameter("Architecture", architecture); + } + } + + public String getLicenseType() { + return this.licenseType; + } + + public void setLicenseType(String licenseType) { + this.licenseType = licenseType; + if(licenseType != null){ + putQueryParameter("LicenseType", licenseType); + } + } + + public String getDetectionStrategy() { + return this.detectionStrategy; + } + + public void setDetectionStrategy(String detectionStrategy) { + this.detectionStrategy = detectionStrategy; + if(detectionStrategy != null){ + putQueryParameter("DetectionStrategy", detectionStrategy); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getRoleName() { + return this.roleName; + } + + public void setRoleName(String roleName) { + this.roleName = roleName; + if(roleName != null){ + putQueryParameter("RoleName", roleName); + } + } + + public String getOSType() { + return this.oSType; + } + + public void setOSType(String oSType) { + this.oSType = oSType; + if(oSType != null){ + putQueryParameter("OSType", oSType); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public static class DiskDeviceMapping { + + private String oSSBucket; + + private Integer diskImSize; + + private String format; + + private String device; + + private String oSSObject; + + private Integer diskImageSize; + + public String getOSSBucket() { + return this.oSSBucket; + } + + public void setOSSBucket(String oSSBucket) { + this.oSSBucket = oSSBucket; + } + + public Integer getDiskImSize() { + return this.diskImSize; + } + + public void setDiskImSize(Integer diskImSize) { + this.diskImSize = diskImSize; + } + + public String getFormat() { + return this.format; + } + + public void setFormat(String format) { + this.format = format; + } + + public String getDevice() { + return this.device; + } + + public void setDevice(String device) { + this.device = device; + } + + public String getOSSObject() { + return this.oSSObject; + } + + public void setOSSObject(String oSSObject) { + this.oSSObject = oSSObject; + } + + public Integer getDiskImageSize() { + return this.diskImageSize; + } + + public void setDiskImageSize(Integer diskImageSize) { + this.diskImageSize = diskImageSize; + } + } + + public static class Tag { + + private String value; + + private String key; + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + } + + @Override + public Class getResponseClass() { + return ImportImageResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ImportImageResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ImportImageResponse.java new file mode 100644 index 0000000000..718cba1d68 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ImportImageResponse.java @@ -0,0 +1,71 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ImportImageResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ImportImageResponse extends AcsResponse { + + private String requestId; + + private String imageId; + + private String taskId; + + private String regionId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getImageId() { + return this.imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public String getTaskId() { + return this.taskId; + } + + public void setTaskId(String taskId) { + this.taskId = taskId; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + @Override + public ImportImageResponse getInstance(UnmarshallerContext context) { + return ImportImageResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ImportKeyPairRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ImportKeyPairRequest.java new file mode 100644 index 0000000000..e1c90a7182 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ImportKeyPairRequest.java @@ -0,0 +1,159 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ImportKeyPairRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String keyPairName; + + private String resourceGroupId; + + private List tags; + + private String resourceOwnerAccount; + + private String publicKeyBody; + + private Long ownerId; + public ImportKeyPairRequest() { + super("Ecs", "2014-05-26", "ImportKeyPair", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getKeyPairName() { + return this.keyPairName; + } + + public void setKeyPairName(String keyPairName) { + this.keyPairName = keyPairName; + if(keyPairName != null){ + putQueryParameter("KeyPairName", keyPairName); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getPublicKeyBody() { + return this.publicKeyBody; + } + + public void setPublicKeyBody(String publicKeyBody) { + this.publicKeyBody = publicKeyBody; + if(publicKeyBody != null){ + putQueryParameter("PublicKeyBody", publicKeyBody); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public static class Tag { + + private String value; + + private String key; + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + } + + @Override + public Class getResponseClass() { + return ImportKeyPairResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ImportKeyPairResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ImportKeyPairResponse.java new file mode 100644 index 0000000000..764dec4074 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ImportKeyPairResponse.java @@ -0,0 +1,61 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ImportKeyPairResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ImportKeyPairResponse extends AcsResponse { + + private String requestId; + + private String keyPairName; + + private String keyPairFingerPrint; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getKeyPairName() { + return this.keyPairName; + } + + public void setKeyPairName(String keyPairName) { + this.keyPairName = keyPairName; + } + + public String getKeyPairFingerPrint() { + return this.keyPairFingerPrint; + } + + public void setKeyPairFingerPrint(String keyPairFingerPrint) { + this.keyPairFingerPrint = keyPairFingerPrint; + } + + @Override + public ImportKeyPairResponse getInstance(UnmarshallerContext context) { + return ImportKeyPairResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ImportSnapshotRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ImportSnapshotRequest.java new file mode 100644 index 0000000000..558d7e6ce0 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ImportSnapshotRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ImportSnapshotRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String snapshotName; + + private String ossObject; + + private String ossBucket; + + private String resourceOwnerAccount; + + private String roleName; + + private Long ownerId; + public ImportSnapshotRequest() { + super("Ecs", "2014-05-26", "ImportSnapshot", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getSnapshotName() { + return this.snapshotName; + } + + public void setSnapshotName(String snapshotName) { + this.snapshotName = snapshotName; + if(snapshotName != null){ + putQueryParameter("SnapshotName", snapshotName); + } + } + + public String getOssObject() { + return this.ossObject; + } + + public void setOssObject(String ossObject) { + this.ossObject = ossObject; + if(ossObject != null){ + putQueryParameter("OssObject", ossObject); + } + } + + public String getOssBucket() { + return this.ossBucket; + } + + public void setOssBucket(String ossBucket) { + this.ossBucket = ossBucket; + if(ossBucket != null){ + putQueryParameter("OssBucket", ossBucket); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getRoleName() { + return this.roleName; + } + + public void setRoleName(String roleName) { + this.roleName = roleName; + if(roleName != null){ + putQueryParameter("RoleName", roleName); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return ImportSnapshotResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ImportSnapshotResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ImportSnapshotResponse.java new file mode 100644 index 0000000000..8b4be2845d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ImportSnapshotResponse.java @@ -0,0 +1,61 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ImportSnapshotResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ImportSnapshotResponse extends AcsResponse { + + private String requestId; + + private String taskId; + + private String snapshotId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getTaskId() { + return this.taskId; + } + + public void setTaskId(String taskId) { + this.taskId = taskId; + } + + public String getSnapshotId() { + return this.snapshotId; + } + + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; + } + + @Override + public ImportSnapshotResponse getInstance(UnmarshallerContext context) { + return ImportSnapshotResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/InstallCloudAssistantRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/InstallCloudAssistantRequest.java new file mode 100644 index 0000000000..a97280ff6a --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/InstallCloudAssistantRequest.java @@ -0,0 +1,109 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class InstallCloudAssistantRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private List instanceIds; + public InstallCloudAssistantRequest() { + super("Ecs", "2014-05-26", "InstallCloudAssistant", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getInstanceIds() { + return this.instanceIds; + } + + public void setInstanceIds(List instanceIds) { + this.instanceIds = instanceIds; + if (instanceIds != null) { + for (int i = 0; i < instanceIds.size(); i++) { + putQueryParameter("InstanceId." + (i + 1) , instanceIds.get(i)); + } + } + } + + @Override + public Class getResponseClass() { + return InstallCloudAssistantResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/InstallCloudAssistantResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/InstallCloudAssistantResponse.java new file mode 100644 index 0000000000..3cf47409d4 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/InstallCloudAssistantResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.InstallCloudAssistantResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class InstallCloudAssistantResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public InstallCloudAssistantResponse getInstance(UnmarshallerContext context) { + return InstallCloudAssistantResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/InvokeCommandRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/InvokeCommandRequest.java new file mode 100644 index 0000000000..dd4696154e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/InvokeCommandRequest.java @@ -0,0 +1,306 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import java.util.Map; +import com.google.gson.Gson; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class InvokeCommandRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String containerName; + + private String clientToken; + + private String commandId; + + private Long timeout; + + private String frequency; + + private String resourceGroupId; + + private String repeatMode; + + private String windowsPasswordName; + + private List tags; + + private Boolean timed; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private List instanceIds; + + private String containerId; + + private Map parameters; + + private String username; + public InvokeCommandRequest() { + super("Ecs", "2014-05-26", "InvokeCommand", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getContainerName() { + return this.containerName; + } + + public void setContainerName(String containerName) { + this.containerName = containerName; + if(containerName != null){ + putQueryParameter("ContainerName", containerName); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getCommandId() { + return this.commandId; + } + + public void setCommandId(String commandId) { + this.commandId = commandId; + if(commandId != null){ + putQueryParameter("CommandId", commandId); + } + } + + public Long getTimeout() { + return this.timeout; + } + + public void setTimeout(Long timeout) { + this.timeout = timeout; + if(timeout != null){ + putQueryParameter("Timeout", timeout.toString()); + } + } + + public String getFrequency() { + return this.frequency; + } + + public void setFrequency(String frequency) { + this.frequency = frequency; + if(frequency != null){ + putQueryParameter("Frequency", frequency); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public String getRepeatMode() { + return this.repeatMode; + } + + public void setRepeatMode(String repeatMode) { + this.repeatMode = repeatMode; + if(repeatMode != null){ + putQueryParameter("RepeatMode", repeatMode); + } + } + + public String getWindowsPasswordName() { + return this.windowsPasswordName; + } + + public void setWindowsPasswordName(String windowsPasswordName) { + this.windowsPasswordName = windowsPasswordName; + if(windowsPasswordName != null){ + putQueryParameter("WindowsPasswordName", windowsPasswordName); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public Boolean getTimed() { + return this.timed; + } + + public void setTimed(Boolean timed) { + this.timed = timed; + if(timed != null){ + putQueryParameter("Timed", timed.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getInstanceIds() { + return this.instanceIds; + } + + public void setInstanceIds(List instanceIds) { + this.instanceIds = instanceIds; + if (instanceIds != null) { + for (int i = 0; i < instanceIds.size(); i++) { + putQueryParameter("InstanceId." + (i + 1) , instanceIds.get(i)); + } + } + } + + public String getContainerId() { + return this.containerId; + } + + public void setContainerId(String containerId) { + this.containerId = containerId; + if(containerId != null){ + putQueryParameter("ContainerId", containerId); + } + } + + public Map getParameters() { + return this.parameters; + } + + public void setParameters(Map parameters) { + this.parameters = parameters; + if(parameters != null){ + putQueryParameter("Parameters", new Gson().toJson(parameters)); + } + } + + public String getUsername() { + return this.username; + } + + public void setUsername(String username) { + this.username = username; + if(username != null){ + putQueryParameter("Username", username); + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return InvokeCommandResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/InvokeCommandResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/InvokeCommandResponse.java new file mode 100644 index 0000000000..d407dde98d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/InvokeCommandResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.InvokeCommandResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class InvokeCommandResponse extends AcsResponse { + + private String invokeId; + + private String requestId; + + public String getInvokeId() { + return this.invokeId; + } + + public void setInvokeId(String invokeId) { + this.invokeId = invokeId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public InvokeCommandResponse getInstance(UnmarshallerContext context) { + return InvokeCommandResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/JoinResourceGroupRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/JoinResourceGroupRequest.java new file mode 100644 index 0000000000..1b2dfac150 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/JoinResourceGroupRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class JoinResourceGroupRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceGroupId; + + private String resourceId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String resourceType; + public JoinResourceGroupRequest() { + super("Ecs", "2014-05-26", "JoinResourceGroup", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public String getResourceId() { + return this.resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + if(resourceId != null){ + putQueryParameter("ResourceId", resourceId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getResourceType() { + return this.resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + if(resourceType != null){ + putQueryParameter("ResourceType", resourceType); + } + } + + @Override + public Class getResponseClass() { + return JoinResourceGroupResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/JoinResourceGroupResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/JoinResourceGroupResponse.java new file mode 100644 index 0000000000..d4042d2c55 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/JoinResourceGroupResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.JoinResourceGroupResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class JoinResourceGroupResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public JoinResourceGroupResponse getInstance(UnmarshallerContext context) { + return JoinResourceGroupResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/JoinSecurityGroupRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/JoinSecurityGroupRequest.java new file mode 100644 index 0000000000..ec148952cd --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/JoinSecurityGroupRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class JoinSecurityGroupRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String securityGroupId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceId; + + private String networkInterfaceId; + public JoinSecurityGroupRequest() { + super("Ecs", "2014-05-26", "JoinSecurityGroup", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getSecurityGroupId() { + return this.securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + if(securityGroupId != null){ + putQueryParameter("SecurityGroupId", securityGroupId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public String getNetworkInterfaceId() { + return this.networkInterfaceId; + } + + public void setNetworkInterfaceId(String networkInterfaceId) { + this.networkInterfaceId = networkInterfaceId; + if(networkInterfaceId != null){ + putQueryParameter("NetworkInterfaceId", networkInterfaceId); + } + } + + @Override + public Class getResponseClass() { + return JoinSecurityGroupResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/JoinSecurityGroupResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/JoinSecurityGroupResponse.java new file mode 100644 index 0000000000..6e9f784c8e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/JoinSecurityGroupResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.JoinSecurityGroupResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class JoinSecurityGroupResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public JoinSecurityGroupResponse getInstance(UnmarshallerContext context) { + return JoinSecurityGroupResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/LeaveSecurityGroupRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/LeaveSecurityGroupRequest.java new file mode 100644 index 0000000000..aa83f39630 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/LeaveSecurityGroupRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class LeaveSecurityGroupRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String securityGroupId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceId; + + private String networkInterfaceId; + public LeaveSecurityGroupRequest() { + super("Ecs", "2014-05-26", "LeaveSecurityGroup", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getSecurityGroupId() { + return this.securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + if(securityGroupId != null){ + putQueryParameter("SecurityGroupId", securityGroupId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public String getNetworkInterfaceId() { + return this.networkInterfaceId; + } + + public void setNetworkInterfaceId(String networkInterfaceId) { + this.networkInterfaceId = networkInterfaceId; + if(networkInterfaceId != null){ + putQueryParameter("NetworkInterfaceId", networkInterfaceId); + } + } + + @Override + public Class getResponseClass() { + return LeaveSecurityGroupResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/LeaveSecurityGroupResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/LeaveSecurityGroupResponse.java new file mode 100644 index 0000000000..da317cd188 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/LeaveSecurityGroupResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.LeaveSecurityGroupResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class LeaveSecurityGroupResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public LeaveSecurityGroupResponse getInstance(UnmarshallerContext context) { + return LeaveSecurityGroupResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ListPluginStatusRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ListPluginStatusRequest.java new file mode 100644 index 0000000000..27433c2522 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ListPluginStatusRequest.java @@ -0,0 +1,148 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ListPluginStatusRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Long pageNumber; + + private Long pageSize; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private List instanceIds; + + private String name; + public ListPluginStatusRequest() { + super("Ecs", "2014-05-26", "ListPluginStatus", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Long getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Long pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Long getPageSize() { + return this.pageSize; + } + + public void setPageSize(Long pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getInstanceIds() { + return this.instanceIds; + } + + public void setInstanceIds(List instanceIds) { + this.instanceIds = instanceIds; + if (instanceIds != null) { + for (int i = 0; i < instanceIds.size(); i++) { + putQueryParameter("InstanceId." + (i + 1) , instanceIds.get(i)); + } + } + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + if(name != null){ + putQueryParameter("Name", name); + } + } + + @Override + public Class getResponseClass() { + return ListPluginStatusResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ListPluginStatusResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ListPluginStatusResponse.java new file mode 100644 index 0000000000..367f888888 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ListPluginStatusResponse.java @@ -0,0 +1,158 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ListPluginStatusResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ListPluginStatusResponse extends AcsResponse { + + private Long pageSize; + + private String requestId; + + private Long pageNumber; + + private Long totalCount; + + private List instancePluginStatusSet; + + public Long getPageSize() { + return this.pageSize; + } + + public void setPageSize(Long pageSize) { + this.pageSize = pageSize; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Long getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Long pageNumber) { + this.pageNumber = pageNumber; + } + + public Long getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Long totalCount) { + this.totalCount = totalCount; + } + + public List getInstancePluginStatusSet() { + return this.instancePluginStatusSet; + } + + public void setInstancePluginStatusSet(List instancePluginStatusSet) { + this.instancePluginStatusSet = instancePluginStatusSet; + } + + public static class InstancePluginStatus { + + private String instanceId; + + private List pluginStatusSet; + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public List getPluginStatusSet() { + return this.pluginStatusSet; + } + + public void setPluginStatusSet(List pluginStatusSet) { + this.pluginStatusSet = pluginStatusSet; + } + + public static class PluginStatus { + + private String pluginVersion; + + private String pluginName; + + private String firstHeartbeatTime; + + private String lastHeartbeatTime; + + private String pluginStatus; + + public String getPluginVersion() { + return this.pluginVersion; + } + + public void setPluginVersion(String pluginVersion) { + this.pluginVersion = pluginVersion; + } + + public String getPluginName() { + return this.pluginName; + } + + public void setPluginName(String pluginName) { + this.pluginName = pluginName; + } + + public String getFirstHeartbeatTime() { + return this.firstHeartbeatTime; + } + + public void setFirstHeartbeatTime(String firstHeartbeatTime) { + this.firstHeartbeatTime = firstHeartbeatTime; + } + + public String getLastHeartbeatTime() { + return this.lastHeartbeatTime; + } + + public void setLastHeartbeatTime(String lastHeartbeatTime) { + this.lastHeartbeatTime = lastHeartbeatTime; + } + + public String getPluginStatus() { + return this.pluginStatus; + } + + public void setPluginStatus(String pluginStatus) { + this.pluginStatus = pluginStatus; + } + } + } + + @Override + public ListPluginStatusResponse getInstance(UnmarshallerContext context) { + return ListPluginStatusResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ListTagResourcesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ListTagResourcesRequest.java new file mode 100644 index 0000000000..071ff94593 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ListTagResourcesRequest.java @@ -0,0 +1,217 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ListTagResourcesRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String nextToken; + + private List tags; + + private List resourceIds; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private List tagFilters; + + private String resourceType; + public ListTagResourcesRequest() { + super("Ecs", "2014-05-26", "ListTagResources", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + if(nextToken != null){ + putQueryParameter("NextToken", nextToken); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public List getResourceIds() { + return this.resourceIds; + } + + public void setResourceIds(List resourceIds) { + this.resourceIds = resourceIds; + if (resourceIds != null) { + for (int i = 0; i < resourceIds.size(); i++) { + putQueryParameter("ResourceId." + (i + 1) , resourceIds.get(i)); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getTagFilters() { + return this.tagFilters; + } + + public void setTagFilters(List tagFilters) { + this.tagFilters = tagFilters; + if (tagFilters != null) { + for (int depth1 = 0; depth1 < tagFilters.size(); depth1++) { + if (tagFilters.get(depth1).getTagValuess() != null) { + for (int i = 0; i < tagFilters.get(depth1).getTagValuess().size(); i++) { + putQueryParameter("TagFilter." + (depth1 + 1) + ".TagValues." + (i + 1) , tagFilters.get(depth1).getTagValuess().get(i)); + } + } + putQueryParameter("TagFilter." + (depth1 + 1) + ".TagKey" , tagFilters.get(depth1).getTagKey()); + } + } + } + + public String getResourceType() { + return this.resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + if(resourceType != null){ + putQueryParameter("ResourceType", resourceType); + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + public static class TagFilter { + + private List tagValuess; + + private String tagKey; + + public List getTagValuess() { + return this.tagValuess; + } + + public void setTagValuess(List tagValuess) { + this.tagValuess = tagValuess; + } + + public String getTagKey() { + return this.tagKey; + } + + public void setTagKey(String tagKey) { + this.tagKey = tagKey; + } + } + + @Override + public Class getResponseClass() { + return ListTagResourcesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ListTagResourcesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ListTagResourcesResponse.java new file mode 100644 index 0000000000..6481eb6652 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ListTagResourcesResponse.java @@ -0,0 +1,105 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ListTagResourcesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ListTagResourcesResponse extends AcsResponse { + + private String nextToken; + + private String requestId; + + private List tagResources; + + public String getNextToken() { + return this.nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getTagResources() { + return this.tagResources; + } + + public void setTagResources(List tagResources) { + this.tagResources = tagResources; + } + + public static class TagResource { + + private String tagValue; + + private String resourceType; + + private String resourceId; + + private String tagKey; + + public String getTagValue() { + return this.tagValue; + } + + public void setTagValue(String tagValue) { + this.tagValue = tagValue; + } + + public String getResourceType() { + return this.resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public String getResourceId() { + return this.resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getTagKey() { + return this.tagKey; + } + + public void setTagKey(String tagKey) { + this.tagKey = tagKey; + } + } + + @Override + public ListTagResourcesResponse getInstance(UnmarshallerContext context) { + return ListTagResourcesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyAutoProvisioningGroupRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyAutoProvisioningGroupRequest.java new file mode 100644 index 0000000000..1acdcee6ae --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyAutoProvisioningGroupRequest.java @@ -0,0 +1,283 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyAutoProvisioningGroupRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Boolean terminateInstancesWithExpiration; + + private String defaultTargetCapacityType; + + private String excessCapacityTerminationPolicy; + + private List launchTemplateConfigs; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String autoProvisioningGroupId; + + private String payAsYouGoTargetCapacity; + + private String totalTargetCapacity; + + private String spotTargetCapacity; + + private Float maxSpotPrice; + + private String autoProvisioningGroupName; + public ModifyAutoProvisioningGroupRequest() { + super("Ecs", "2014-05-26", "ModifyAutoProvisioningGroup", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Boolean getTerminateInstancesWithExpiration() { + return this.terminateInstancesWithExpiration; + } + + public void setTerminateInstancesWithExpiration(Boolean terminateInstancesWithExpiration) { + this.terminateInstancesWithExpiration = terminateInstancesWithExpiration; + if(terminateInstancesWithExpiration != null){ + putQueryParameter("TerminateInstancesWithExpiration", terminateInstancesWithExpiration.toString()); + } + } + + public String getDefaultTargetCapacityType() { + return this.defaultTargetCapacityType; + } + + public void setDefaultTargetCapacityType(String defaultTargetCapacityType) { + this.defaultTargetCapacityType = defaultTargetCapacityType; + if(defaultTargetCapacityType != null){ + putQueryParameter("DefaultTargetCapacityType", defaultTargetCapacityType); + } + } + + public String getExcessCapacityTerminationPolicy() { + return this.excessCapacityTerminationPolicy; + } + + public void setExcessCapacityTerminationPolicy(String excessCapacityTerminationPolicy) { + this.excessCapacityTerminationPolicy = excessCapacityTerminationPolicy; + if(excessCapacityTerminationPolicy != null){ + putQueryParameter("ExcessCapacityTerminationPolicy", excessCapacityTerminationPolicy); + } + } + + public List getLaunchTemplateConfigs() { + return this.launchTemplateConfigs; + } + + public void setLaunchTemplateConfigs(List launchTemplateConfigs) { + this.launchTemplateConfigs = launchTemplateConfigs; + if (launchTemplateConfigs != null) { + for (int depth1 = 0; depth1 < launchTemplateConfigs.size(); depth1++) { + putQueryParameter("LaunchTemplateConfig." + (depth1 + 1) + ".VSwitchId" , launchTemplateConfigs.get(depth1).getVSwitchId()); + putQueryParameter("LaunchTemplateConfig." + (depth1 + 1) + ".MaxPrice" , launchTemplateConfigs.get(depth1).getMaxPrice()); + putQueryParameter("LaunchTemplateConfig." + (depth1 + 1) + ".Priority" , launchTemplateConfigs.get(depth1).getPriority()); + putQueryParameter("LaunchTemplateConfig." + (depth1 + 1) + ".InstanceType" , launchTemplateConfigs.get(depth1).getInstanceType()); + putQueryParameter("LaunchTemplateConfig." + (depth1 + 1) + ".WeightedCapacity" , launchTemplateConfigs.get(depth1).getWeightedCapacity()); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getAutoProvisioningGroupId() { + return this.autoProvisioningGroupId; + } + + public void setAutoProvisioningGroupId(String autoProvisioningGroupId) { + this.autoProvisioningGroupId = autoProvisioningGroupId; + if(autoProvisioningGroupId != null){ + putQueryParameter("AutoProvisioningGroupId", autoProvisioningGroupId); + } + } + + public String getPayAsYouGoTargetCapacity() { + return this.payAsYouGoTargetCapacity; + } + + public void setPayAsYouGoTargetCapacity(String payAsYouGoTargetCapacity) { + this.payAsYouGoTargetCapacity = payAsYouGoTargetCapacity; + if(payAsYouGoTargetCapacity != null){ + putQueryParameter("PayAsYouGoTargetCapacity", payAsYouGoTargetCapacity); + } + } + + public String getTotalTargetCapacity() { + return this.totalTargetCapacity; + } + + public void setTotalTargetCapacity(String totalTargetCapacity) { + this.totalTargetCapacity = totalTargetCapacity; + if(totalTargetCapacity != null){ + putQueryParameter("TotalTargetCapacity", totalTargetCapacity); + } + } + + public String getSpotTargetCapacity() { + return this.spotTargetCapacity; + } + + public void setSpotTargetCapacity(String spotTargetCapacity) { + this.spotTargetCapacity = spotTargetCapacity; + if(spotTargetCapacity != null){ + putQueryParameter("SpotTargetCapacity", spotTargetCapacity); + } + } + + public Float getMaxSpotPrice() { + return this.maxSpotPrice; + } + + public void setMaxSpotPrice(Float maxSpotPrice) { + this.maxSpotPrice = maxSpotPrice; + if(maxSpotPrice != null){ + putQueryParameter("MaxSpotPrice", maxSpotPrice.toString()); + } + } + + public String getAutoProvisioningGroupName() { + return this.autoProvisioningGroupName; + } + + public void setAutoProvisioningGroupName(String autoProvisioningGroupName) { + this.autoProvisioningGroupName = autoProvisioningGroupName; + if(autoProvisioningGroupName != null){ + putQueryParameter("AutoProvisioningGroupName", autoProvisioningGroupName); + } + } + + public static class LaunchTemplateConfig { + + private String vSwitchId; + + private Double maxPrice; + + private Integer priority; + + private String instanceType; + + private Double weightedCapacity; + + public String getVSwitchId() { + return this.vSwitchId; + } + + public void setVSwitchId(String vSwitchId) { + this.vSwitchId = vSwitchId; + } + + public Double getMaxPrice() { + return this.maxPrice; + } + + public void setMaxPrice(Double maxPrice) { + this.maxPrice = maxPrice; + } + + public Integer getPriority() { + return this.priority; + } + + public void setPriority(Integer priority) { + this.priority = priority; + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public Double getWeightedCapacity() { + return this.weightedCapacity; + } + + public void setWeightedCapacity(Double weightedCapacity) { + this.weightedCapacity = weightedCapacity; + } + } + + @Override + public Class getResponseClass() { + return ModifyAutoProvisioningGroupResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyAutoProvisioningGroupResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyAutoProvisioningGroupResponse.java new file mode 100644 index 0000000000..36ad3f393f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyAutoProvisioningGroupResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyAutoProvisioningGroupResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyAutoProvisioningGroupResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyAutoProvisioningGroupResponse getInstance(UnmarshallerContext context) { + return ModifyAutoProvisioningGroupResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyAutoSnapshotPolicyExRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyAutoSnapshotPolicyExRequest.java new file mode 100644 index 0000000000..9e17c17954 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyAutoSnapshotPolicyExRequest.java @@ -0,0 +1,184 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyAutoSnapshotPolicyExRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String autoSnapshotPolicyId; + + private Integer copiedSnapshotsRetentionDays; + + private String timePoints; + + private String repeatWeekdays; + + private Boolean enableCrossRegionCopy; + + private String resourceOwnerAccount; + + private Long ownerId; + + private String autoSnapshotPolicyName; + + private Integer retentionDays; + + private String targetCopyRegions; + public ModifyAutoSnapshotPolicyExRequest() { + super("Ecs", "2014-05-26", "ModifyAutoSnapshotPolicyEx", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getAutoSnapshotPolicyId() { + return this.autoSnapshotPolicyId; + } + + public void setAutoSnapshotPolicyId(String autoSnapshotPolicyId) { + this.autoSnapshotPolicyId = autoSnapshotPolicyId; + if(autoSnapshotPolicyId != null){ + putQueryParameter("autoSnapshotPolicyId", autoSnapshotPolicyId); + } + } + + public Integer getCopiedSnapshotsRetentionDays() { + return this.copiedSnapshotsRetentionDays; + } + + public void setCopiedSnapshotsRetentionDays(Integer copiedSnapshotsRetentionDays) { + this.copiedSnapshotsRetentionDays = copiedSnapshotsRetentionDays; + if(copiedSnapshotsRetentionDays != null){ + putQueryParameter("CopiedSnapshotsRetentionDays", copiedSnapshotsRetentionDays.toString()); + } + } + + public String getTimePoints() { + return this.timePoints; + } + + public void setTimePoints(String timePoints) { + this.timePoints = timePoints; + if(timePoints != null){ + putQueryParameter("timePoints", timePoints); + } + } + + public String getRepeatWeekdays() { + return this.repeatWeekdays; + } + + public void setRepeatWeekdays(String repeatWeekdays) { + this.repeatWeekdays = repeatWeekdays; + if(repeatWeekdays != null){ + putQueryParameter("repeatWeekdays", repeatWeekdays); + } + } + + public Boolean getEnableCrossRegionCopy() { + return this.enableCrossRegionCopy; + } + + public void setEnableCrossRegionCopy(Boolean enableCrossRegionCopy) { + this.enableCrossRegionCopy = enableCrossRegionCopy; + if(enableCrossRegionCopy != null){ + putQueryParameter("EnableCrossRegionCopy", enableCrossRegionCopy.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getAutoSnapshotPolicyName() { + return this.autoSnapshotPolicyName; + } + + public void setAutoSnapshotPolicyName(String autoSnapshotPolicyName) { + this.autoSnapshotPolicyName = autoSnapshotPolicyName; + if(autoSnapshotPolicyName != null){ + putQueryParameter("autoSnapshotPolicyName", autoSnapshotPolicyName); + } + } + + public Integer getRetentionDays() { + return this.retentionDays; + } + + public void setRetentionDays(Integer retentionDays) { + this.retentionDays = retentionDays; + if(retentionDays != null){ + putQueryParameter("retentionDays", retentionDays.toString()); + } + } + + public String getTargetCopyRegions() { + return this.targetCopyRegions; + } + + public void setTargetCopyRegions(String targetCopyRegions) { + this.targetCopyRegions = targetCopyRegions; + if(targetCopyRegions != null){ + putQueryParameter("TargetCopyRegions", targetCopyRegions); + } + } + + @Override + public Class getResponseClass() { + return ModifyAutoSnapshotPolicyExResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyAutoSnapshotPolicyExResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyAutoSnapshotPolicyExResponse.java new file mode 100644 index 0000000000..993c5e028c --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyAutoSnapshotPolicyExResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyAutoSnapshotPolicyExResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyAutoSnapshotPolicyExResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyAutoSnapshotPolicyExResponse getInstance(UnmarshallerContext context) { + return ModifyAutoSnapshotPolicyExResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyAutoSnapshotPolicyRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyAutoSnapshotPolicyRequest.java new file mode 100644 index 0000000000..867295aaa4 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyAutoSnapshotPolicyRequest.java @@ -0,0 +1,197 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyAutoSnapshotPolicyRequest extends RpcAcsRequest { + + + private Boolean dataDiskPolicyEnabled; + + private Long resourceOwnerId; + + private Integer dataDiskPolicyRetentionDays; + + private Boolean systemDiskPolicyRetentionLastWeek; + + private Integer systemDiskPolicyRetentionDays; + + private Integer dataDiskPolicyTimePeriod; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Integer systemDiskPolicyTimePeriod; + + private Long ownerId; + + private Boolean dataDiskPolicyRetentionLastWeek; + + private Boolean systemDiskPolicyEnabled; + public ModifyAutoSnapshotPolicyRequest() { + super("Ecs", "2014-05-26", "ModifyAutoSnapshotPolicy", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Boolean getDataDiskPolicyEnabled() { + return this.dataDiskPolicyEnabled; + } + + public void setDataDiskPolicyEnabled(Boolean dataDiskPolicyEnabled) { + this.dataDiskPolicyEnabled = dataDiskPolicyEnabled; + if(dataDiskPolicyEnabled != null){ + putQueryParameter("DataDiskPolicyEnabled", dataDiskPolicyEnabled.toString()); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Integer getDataDiskPolicyRetentionDays() { + return this.dataDiskPolicyRetentionDays; + } + + public void setDataDiskPolicyRetentionDays(Integer dataDiskPolicyRetentionDays) { + this.dataDiskPolicyRetentionDays = dataDiskPolicyRetentionDays; + if(dataDiskPolicyRetentionDays != null){ + putQueryParameter("DataDiskPolicyRetentionDays", dataDiskPolicyRetentionDays.toString()); + } + } + + public Boolean getSystemDiskPolicyRetentionLastWeek() { + return this.systemDiskPolicyRetentionLastWeek; + } + + public void setSystemDiskPolicyRetentionLastWeek(Boolean systemDiskPolicyRetentionLastWeek) { + this.systemDiskPolicyRetentionLastWeek = systemDiskPolicyRetentionLastWeek; + if(systemDiskPolicyRetentionLastWeek != null){ + putQueryParameter("SystemDiskPolicyRetentionLastWeek", systemDiskPolicyRetentionLastWeek.toString()); + } + } + + public Integer getSystemDiskPolicyRetentionDays() { + return this.systemDiskPolicyRetentionDays; + } + + public void setSystemDiskPolicyRetentionDays(Integer systemDiskPolicyRetentionDays) { + this.systemDiskPolicyRetentionDays = systemDiskPolicyRetentionDays; + if(systemDiskPolicyRetentionDays != null){ + putQueryParameter("SystemDiskPolicyRetentionDays", systemDiskPolicyRetentionDays.toString()); + } + } + + public Integer getDataDiskPolicyTimePeriod() { + return this.dataDiskPolicyTimePeriod; + } + + public void setDataDiskPolicyTimePeriod(Integer dataDiskPolicyTimePeriod) { + this.dataDiskPolicyTimePeriod = dataDiskPolicyTimePeriod; + if(dataDiskPolicyTimePeriod != null){ + putQueryParameter("DataDiskPolicyTimePeriod", dataDiskPolicyTimePeriod.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Integer getSystemDiskPolicyTimePeriod() { + return this.systemDiskPolicyTimePeriod; + } + + public void setSystemDiskPolicyTimePeriod(Integer systemDiskPolicyTimePeriod) { + this.systemDiskPolicyTimePeriod = systemDiskPolicyTimePeriod; + if(systemDiskPolicyTimePeriod != null){ + putQueryParameter("SystemDiskPolicyTimePeriod", systemDiskPolicyTimePeriod.toString()); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public Boolean getDataDiskPolicyRetentionLastWeek() { + return this.dataDiskPolicyRetentionLastWeek; + } + + public void setDataDiskPolicyRetentionLastWeek(Boolean dataDiskPolicyRetentionLastWeek) { + this.dataDiskPolicyRetentionLastWeek = dataDiskPolicyRetentionLastWeek; + if(dataDiskPolicyRetentionLastWeek != null){ + putQueryParameter("DataDiskPolicyRetentionLastWeek", dataDiskPolicyRetentionLastWeek.toString()); + } + } + + public Boolean getSystemDiskPolicyEnabled() { + return this.systemDiskPolicyEnabled; + } + + public void setSystemDiskPolicyEnabled(Boolean systemDiskPolicyEnabled) { + this.systemDiskPolicyEnabled = systemDiskPolicyEnabled; + if(systemDiskPolicyEnabled != null){ + putQueryParameter("SystemDiskPolicyEnabled", systemDiskPolicyEnabled.toString()); + } + } + + @Override + public Class getResponseClass() { + return ModifyAutoSnapshotPolicyResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyAutoSnapshotPolicyResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyAutoSnapshotPolicyResponse.java new file mode 100644 index 0000000000..69fbe6728f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyAutoSnapshotPolicyResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyAutoSnapshotPolicyResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyAutoSnapshotPolicyResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyAutoSnapshotPolicyResponse getInstance(UnmarshallerContext context) { + return ModifyAutoSnapshotPolicyResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyBandwidthPackageSpecRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyBandwidthPackageSpecRequest.java new file mode 100644 index 0000000000..436dce14a1 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyBandwidthPackageSpecRequest.java @@ -0,0 +1,119 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyBandwidthPackageSpecRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String bandwidthPackageId; + + private String resourceOwnerAccount; + + private String bandwidth; + + private String ownerAccount; + + private Long ownerId; + public ModifyBandwidthPackageSpecRequest() { + super("Ecs", "2014-05-26", "ModifyBandwidthPackageSpec", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getBandwidthPackageId() { + return this.bandwidthPackageId; + } + + public void setBandwidthPackageId(String bandwidthPackageId) { + this.bandwidthPackageId = bandwidthPackageId; + if(bandwidthPackageId != null){ + putQueryParameter("BandwidthPackageId", bandwidthPackageId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getBandwidth() { + return this.bandwidth; + } + + public void setBandwidth(String bandwidth) { + this.bandwidth = bandwidth; + if(bandwidth != null){ + putQueryParameter("Bandwidth", bandwidth); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return ModifyBandwidthPackageSpecResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyBandwidthPackageSpecResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyBandwidthPackageSpecResponse.java new file mode 100644 index 0000000000..4557181e01 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyBandwidthPackageSpecResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyBandwidthPackageSpecResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyBandwidthPackageSpecResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyBandwidthPackageSpecResponse getInstance(UnmarshallerContext context) { + return ModifyBandwidthPackageSpecResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyCapacityReservationRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyCapacityReservationRequest.java new file mode 100644 index 0000000000..884caf14ad --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyCapacityReservationRequest.java @@ -0,0 +1,197 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyCapacityReservationRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String description; + + private String startTime; + + private String platform; + + private String privatePoolOptionsId; + + private String endTimeType; + + private String resourceOwnerAccount; + + private String privatePoolOptionsName; + + private String ownerAccount; + + private String endTime; + + private Long ownerId; + + private Integer instanceAmount; + public ModifyCapacityReservationRequest() { + super("Ecs", "2014-05-26", "ModifyCapacityReservation", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getStartTime() { + return this.startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + if(startTime != null){ + putQueryParameter("StartTime", startTime); + } + } + + public String getPlatform() { + return this.platform; + } + + public void setPlatform(String platform) { + this.platform = platform; + if(platform != null){ + putQueryParameter("Platform", platform); + } + } + + public String getPrivatePoolOptionsId() { + return this.privatePoolOptionsId; + } + + public void setPrivatePoolOptionsId(String privatePoolOptionsId) { + this.privatePoolOptionsId = privatePoolOptionsId; + if(privatePoolOptionsId != null){ + putQueryParameter("PrivatePoolOptions.Id", privatePoolOptionsId); + } + } + + public String getEndTimeType() { + return this.endTimeType; + } + + public void setEndTimeType(String endTimeType) { + this.endTimeType = endTimeType; + if(endTimeType != null){ + putQueryParameter("EndTimeType", endTimeType); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getPrivatePoolOptionsName() { + return this.privatePoolOptionsName; + } + + public void setPrivatePoolOptionsName(String privatePoolOptionsName) { + this.privatePoolOptionsName = privatePoolOptionsName; + if(privatePoolOptionsName != null){ + putQueryParameter("PrivatePoolOptions.Name", privatePoolOptionsName); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getEndTime() { + return this.endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + if(endTime != null){ + putQueryParameter("EndTime", endTime); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public Integer getInstanceAmount() { + return this.instanceAmount; + } + + public void setInstanceAmount(Integer instanceAmount) { + this.instanceAmount = instanceAmount; + if(instanceAmount != null){ + putQueryParameter("InstanceAmount", instanceAmount.toString()); + } + } + + @Override + public Class getResponseClass() { + return ModifyCapacityReservationResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyCapacityReservationResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyCapacityReservationResponse.java similarity index 90% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyCapacityReservationResponse.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyCapacityReservationResponse.java index 5b4abbe0aa..3b233b0901 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyCapacityReservationResponse.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyCapacityReservationResponse.java @@ -12,10 +12,10 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.ModifyCapacityReservationResponseUnmarshaller; +import com.aliyuncs.ecs.transform.v20140526.ModifyCapacityReservationResponseUnmarshaller; import com.aliyuncs.transform.UnmarshallerContext; /** diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyCommandRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyCommandRequest.java new file mode 100644 index 0000000000..4b9a4eddfc --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyCommandRequest.java @@ -0,0 +1,171 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyCommandRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String workingDir; + + private String description; + + private String commandId; + + private String commandContent; + + private Long timeout; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String name; + public ModifyCommandRequest() { + super("Ecs", "2014-05-26", "ModifyCommand", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getWorkingDir() { + return this.workingDir; + } + + public void setWorkingDir(String workingDir) { + this.workingDir = workingDir; + if(workingDir != null){ + putQueryParameter("WorkingDir", workingDir); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getCommandId() { + return this.commandId; + } + + public void setCommandId(String commandId) { + this.commandId = commandId; + if(commandId != null){ + putQueryParameter("CommandId", commandId); + } + } + + public String getCommandContent() { + return this.commandContent; + } + + public void setCommandContent(String commandContent) { + this.commandContent = commandContent; + if(commandContent != null){ + putQueryParameter("CommandContent", commandContent); + } + } + + public Long getTimeout() { + return this.timeout; + } + + public void setTimeout(Long timeout) { + this.timeout = timeout; + if(timeout != null){ + putQueryParameter("Timeout", timeout.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + if(name != null){ + putQueryParameter("Name", name); + } + } + + @Override + public Class getResponseClass() { + return ModifyCommandResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyCommandResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyCommandResponse.java new file mode 100644 index 0000000000..cf3a0f4a76 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyCommandResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyCommandResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyCommandResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyCommandResponse getInstance(UnmarshallerContext context) { + return ModifyCommandResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyDedicatedHostAttributeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDedicatedHostAttributeRequest.java similarity index 95% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyDedicatedHostAttributeRequest.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDedicatedHostAttributeRequest.java index 8bbf53f27b..fa28afa0fe 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyDedicatedHostAttributeRequest.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDedicatedHostAttributeRequest.java @@ -12,7 +12,7 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.RpcAcsRequest; import com.aliyuncs.http.MethodType; @@ -51,7 +51,7 @@ public class ModifyDedicatedHostAttributeRequest extends RpcAcsRequest { + private String dedicatedHostIds; + private Long resourceOwnerId; private Integer duration; private String renewalStatus; + private String autoRenewWithEcs; + private String resourceOwnerAccount; private String ownerAccount; private Long ownerId; - private String resourceType; - private String periodUnit; - private Boolean autoRenew; - - private String instanceIds; + private Boolean autoRenew; public ModifyDedicatedHostAutoRenewAttributeRequest() { - super("Ecs", "2016-03-14", "ModifyDedicatedHostAutoRenewAttribute", "ecs"); + super("Ecs", "2014-05-26", "ModifyDedicatedHostAutoRenewAttribute", "ecs"); setMethod(MethodType.POST); try { com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); @@ -53,6 +53,17 @@ public ModifyDedicatedHostAutoRenewAttributeRequest() { } catch (Exception e) {} } + public String getDedicatedHostIds() { + return this.dedicatedHostIds; + } + + public void setDedicatedHostIds(String dedicatedHostIds) { + this.dedicatedHostIds = dedicatedHostIds; + if(dedicatedHostIds != null){ + putQueryParameter("DedicatedHostIds", dedicatedHostIds); + } + } + public Long getResourceOwnerId() { return this.resourceOwnerId; } @@ -86,6 +97,17 @@ public void setRenewalStatus(String renewalStatus) { } } + public String getAutoRenewWithEcs() { + return this.autoRenewWithEcs; + } + + public void setAutoRenewWithEcs(String autoRenewWithEcs) { + this.autoRenewWithEcs = autoRenewWithEcs; + if(autoRenewWithEcs != null){ + putQueryParameter("AutoRenewWithEcs", autoRenewWithEcs); + } + } + public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } @@ -119,17 +141,6 @@ public void setOwnerId(Long ownerId) { } } - public String getResourceType() { - return this.resourceType; - } - - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - if(resourceType != null){ - putQueryParameter("ResourceType", resourceType); - } - } - public String getPeriodUnit() { return this.periodUnit; } @@ -150,17 +161,6 @@ public void setAutoRenew(Boolean autoRenew) { if(autoRenew != null){ putQueryParameter("AutoRenew", autoRenew.toString()); } - } - - public String getInstanceIds() { - return this.instanceIds; - } - - public void setInstanceIds(String instanceIds) { - this.instanceIds = instanceIds; - if(instanceIds != null){ - putQueryParameter("InstanceIds", instanceIds); - } } @Override diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyDedicatedHostAutoRenewAttributeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDedicatedHostAutoRenewAttributeResponse.java similarity index 90% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyDedicatedHostAutoRenewAttributeResponse.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDedicatedHostAutoRenewAttributeResponse.java index d316e0e373..e5f3061ba5 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyDedicatedHostAutoRenewAttributeResponse.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDedicatedHostAutoRenewAttributeResponse.java @@ -12,10 +12,10 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.ModifyDedicatedHostAutoRenewAttributeResponseUnmarshaller; +import com.aliyuncs.ecs.transform.v20140526.ModifyDedicatedHostAutoRenewAttributeResponseUnmarshaller; import com.aliyuncs.transform.UnmarshallerContext; /** diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyDedicatedHostClusterAttributeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDedicatedHostClusterAttributeRequest.java similarity index 95% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyDedicatedHostClusterAttributeRequest.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDedicatedHostClusterAttributeRequest.java index 6914af9289..4e5a74b0c6 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyDedicatedHostClusterAttributeRequest.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDedicatedHostClusterAttributeRequest.java @@ -12,7 +12,7 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.RpcAcsRequest; import com.aliyuncs.http.MethodType; @@ -39,7 +39,7 @@ public class ModifyDedicatedHostClusterAttributeRequest extends RpcAcsRequest { + + + private String dedicatedHostIds; + + private Long resourceOwnerId; + + private String clientToken; + + private String dedicatedHostChargeType; + + private Integer period; + + private Boolean dryRun; + + private Boolean autoPay; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private Boolean detailFee; + + private String periodUnit; + public ModifyDedicatedHostsChargeTypeRequest() { + super("Ecs", "2014-05-26", "ModifyDedicatedHostsChargeType", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getDedicatedHostIds() { + return this.dedicatedHostIds; + } + + public void setDedicatedHostIds(String dedicatedHostIds) { + this.dedicatedHostIds = dedicatedHostIds; + if(dedicatedHostIds != null){ + putQueryParameter("DedicatedHostIds", dedicatedHostIds); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getDedicatedHostChargeType() { + return this.dedicatedHostChargeType; + } + + public void setDedicatedHostChargeType(String dedicatedHostChargeType) { + this.dedicatedHostChargeType = dedicatedHostChargeType; + if(dedicatedHostChargeType != null){ + putQueryParameter("DedicatedHostChargeType", dedicatedHostChargeType); + } + } + + public Integer getPeriod() { + return this.period; + } + + public void setPeriod(Integer period) { + this.period = period; + if(period != null){ + putQueryParameter("Period", period.toString()); + } + } + + public Boolean getDryRun() { + return this.dryRun; + } + + public void setDryRun(Boolean dryRun) { + this.dryRun = dryRun; + if(dryRun != null){ + putQueryParameter("DryRun", dryRun.toString()); + } + } + + public Boolean getAutoPay() { + return this.autoPay; + } + + public void setAutoPay(Boolean autoPay) { + this.autoPay = autoPay; + if(autoPay != null){ + putQueryParameter("AutoPay", autoPay.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public Boolean getDetailFee() { + return this.detailFee; + } + + public void setDetailFee(Boolean detailFee) { + this.detailFee = detailFee; + if(detailFee != null){ + putQueryParameter("DetailFee", detailFee.toString()); + } + } + + public String getPeriodUnit() { + return this.periodUnit; + } + + public void setPeriodUnit(String periodUnit) { + this.periodUnit = periodUnit; + if(periodUnit != null){ + putQueryParameter("PeriodUnit", periodUnit); + } + } + + @Override + public Class getResponseClass() { + return ModifyDedicatedHostsChargeTypeResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDedicatedHostsChargeTypeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDedicatedHostsChargeTypeResponse.java new file mode 100644 index 0000000000..74cb8e1e9e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDedicatedHostsChargeTypeResponse.java @@ -0,0 +1,95 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyDedicatedHostsChargeTypeResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyDedicatedHostsChargeTypeResponse extends AcsResponse { + + private String orderId; + + private String requestId; + + private List feeOfInstances; + + public String getOrderId() { + return this.orderId; + } + + public void setOrderId(String orderId) { + this.orderId = orderId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getFeeOfInstances() { + return this.feeOfInstances; + } + + public void setFeeOfInstances(List feeOfInstances) { + this.feeOfInstances = feeOfInstances; + } + + public static class FeeOfInstance { + + private String instanceId; + + private String currency; + + private String fee; + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getCurrency() { + return this.currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + public String getFee() { + return this.fee; + } + + public void setFee(String fee) { + this.fee = fee; + } + } + + @Override + public ModifyDedicatedHostsChargeTypeResponse getInstance(UnmarshallerContext context) { + return ModifyDedicatedHostsChargeTypeResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDemandRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDemandRequest.java new file mode 100644 index 0000000000..b86103854d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDemandRequest.java @@ -0,0 +1,249 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyDemandRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private String startTime; + + private String demandDescription; + + private String instanceType; + + private String instanceChargeType; + + private String demandName; + + private Integer amount; + + private Integer period; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String endTime; + + private Long ownerId; + + private String periodUnit; + + private String demandId; + + private String zoneId; + public ModifyDemandRequest() { + super("Ecs", "2014-05-26", "ModifyDemand", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getStartTime() { + return this.startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + if(startTime != null){ + putQueryParameter("StartTime", startTime); + } + } + + public String getDemandDescription() { + return this.demandDescription; + } + + public void setDemandDescription(String demandDescription) { + this.demandDescription = demandDescription; + if(demandDescription != null){ + putQueryParameter("DemandDescription", demandDescription); + } + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + if(instanceType != null){ + putQueryParameter("InstanceType", instanceType); + } + } + + public String getInstanceChargeType() { + return this.instanceChargeType; + } + + public void setInstanceChargeType(String instanceChargeType) { + this.instanceChargeType = instanceChargeType; + if(instanceChargeType != null){ + putQueryParameter("InstanceChargeType", instanceChargeType); + } + } + + public String getDemandName() { + return this.demandName; + } + + public void setDemandName(String demandName) { + this.demandName = demandName; + if(demandName != null){ + putQueryParameter("DemandName", demandName); + } + } + + public Integer getAmount() { + return this.amount; + } + + public void setAmount(Integer amount) { + this.amount = amount; + if(amount != null){ + putQueryParameter("Amount", amount.toString()); + } + } + + public Integer getPeriod() { + return this.period; + } + + public void setPeriod(Integer period) { + this.period = period; + if(period != null){ + putQueryParameter("Period", period.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getEndTime() { + return this.endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + if(endTime != null){ + putQueryParameter("EndTime", endTime); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getPeriodUnit() { + return this.periodUnit; + } + + public void setPeriodUnit(String periodUnit) { + this.periodUnit = periodUnit; + if(periodUnit != null){ + putQueryParameter("PeriodUnit", periodUnit); + } + } + + public String getDemandId() { + return this.demandId; + } + + public void setDemandId(String demandId) { + this.demandId = demandId; + if(demandId != null){ + putQueryParameter("DemandId", demandId); + } + } + + public String getZoneId() { + return this.zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + if(zoneId != null){ + putQueryParameter("ZoneId", zoneId); + } + } + + @Override + public Class getResponseClass() { + return ModifyDemandResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDemandResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDemandResponse.java new file mode 100644 index 0000000000..422336467a --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDemandResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyDemandResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyDemandResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyDemandResponse getInstance(UnmarshallerContext context) { + return ModifyDemandResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDeploymentSetAttributeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDeploymentSetAttributeRequest.java new file mode 100644 index 0000000000..043b15bb24 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDeploymentSetAttributeRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyDeploymentSetAttributeRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String description; + + private String deploymentSetId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String deploymentSetName; + + private Long ownerId; + public ModifyDeploymentSetAttributeRequest() { + super("Ecs", "2014-05-26", "ModifyDeploymentSetAttribute", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getDeploymentSetId() { + return this.deploymentSetId; + } + + public void setDeploymentSetId(String deploymentSetId) { + this.deploymentSetId = deploymentSetId; + if(deploymentSetId != null){ + putQueryParameter("DeploymentSetId", deploymentSetId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getDeploymentSetName() { + return this.deploymentSetName; + } + + public void setDeploymentSetName(String deploymentSetName) { + this.deploymentSetName = deploymentSetName; + if(deploymentSetName != null){ + putQueryParameter("DeploymentSetName", deploymentSetName); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return ModifyDeploymentSetAttributeResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDeploymentSetAttributeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDeploymentSetAttributeResponse.java new file mode 100644 index 0000000000..e1075683bb --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDeploymentSetAttributeResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyDeploymentSetAttributeResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyDeploymentSetAttributeResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyDeploymentSetAttributeResponse getInstance(UnmarshallerContext context) { + return ModifyDeploymentSetAttributeResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDiagnosticMetricSetRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDiagnosticMetricSetRequest.java new file mode 100644 index 0000000000..ba6a0fe316 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDiagnosticMetricSetRequest.java @@ -0,0 +1,109 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyDiagnosticMetricSetRequest extends RpcAcsRequest { + + + private List metricIdss; + + private String metricSetId; + + private String description; + + private String metricSetName; + + private String resourceType; + public ModifyDiagnosticMetricSetRequest() { + super("Ecs", "2014-05-26", "ModifyDiagnosticMetricSet", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public List getMetricIdss() { + return this.metricIdss; + } + + public void setMetricIdss(List metricIdss) { + this.metricIdss = metricIdss; + if (metricIdss != null) { + for (int i = 0; i < metricIdss.size(); i++) { + putQueryParameter("MetricIds." + (i + 1) , metricIdss.get(i)); + } + } + } + + public String getMetricSetId() { + return this.metricSetId; + } + + public void setMetricSetId(String metricSetId) { + this.metricSetId = metricSetId; + if(metricSetId != null){ + putQueryParameter("MetricSetId", metricSetId); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getMetricSetName() { + return this.metricSetName; + } + + public void setMetricSetName(String metricSetName) { + this.metricSetName = metricSetName; + if(metricSetName != null){ + putQueryParameter("MetricSetName", metricSetName); + } + } + + public String getResourceType() { + return this.resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + if(resourceType != null){ + putQueryParameter("ResourceType", resourceType); + } + } + + @Override + public Class getResponseClass() { + return ModifyDiagnosticMetricSetResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDiagnosticMetricSetResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDiagnosticMetricSetResponse.java new file mode 100644 index 0000000000..abcd6895bd --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDiagnosticMetricSetResponse.java @@ -0,0 +1,46 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyDiagnosticMetricSetResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyDiagnosticMetricSetResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyDiagnosticMetricSetResponse getInstance(UnmarshallerContext context) { + return ModifyDiagnosticMetricSetResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDiskAttributeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDiskAttributeRequest.java new file mode 100644 index 0000000000..6ae0d9ebb6 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDiskAttributeRequest.java @@ -0,0 +1,200 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyDiskAttributeRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String description; + + private String diskName; + + private Boolean deleteAutoSnapshot; + + private List diskIdss; + + private String diskId; + + private Boolean deleteWithInstance; + + private Boolean enableAutoSnapshot; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private Boolean burstingEnabled; + public ModifyDiskAttributeRequest() { + super("Ecs", "2014-05-26", "ModifyDiskAttribute", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getDiskName() { + return this.diskName; + } + + public void setDiskName(String diskName) { + this.diskName = diskName; + if(diskName != null){ + putQueryParameter("DiskName", diskName); + } + } + + public Boolean getDeleteAutoSnapshot() { + return this.deleteAutoSnapshot; + } + + public void setDeleteAutoSnapshot(Boolean deleteAutoSnapshot) { + this.deleteAutoSnapshot = deleteAutoSnapshot; + if(deleteAutoSnapshot != null){ + putQueryParameter("DeleteAutoSnapshot", deleteAutoSnapshot.toString()); + } + } + + public List getDiskIdss() { + return this.diskIdss; + } + + public void setDiskIdss(List diskIdss) { + this.diskIdss = diskIdss; + if (diskIdss != null) { + for (int i = 0; i < diskIdss.size(); i++) { + putQueryParameter("DiskIds." + (i + 1) , diskIdss.get(i)); + } + } + } + + public String getDiskId() { + return this.diskId; + } + + public void setDiskId(String diskId) { + this.diskId = diskId; + if(diskId != null){ + putQueryParameter("DiskId", diskId); + } + } + + public Boolean getDeleteWithInstance() { + return this.deleteWithInstance; + } + + public void setDeleteWithInstance(Boolean deleteWithInstance) { + this.deleteWithInstance = deleteWithInstance; + if(deleteWithInstance != null){ + putQueryParameter("DeleteWithInstance", deleteWithInstance.toString()); + } + } + + public Boolean getEnableAutoSnapshot() { + return this.enableAutoSnapshot; + } + + public void setEnableAutoSnapshot(Boolean enableAutoSnapshot) { + this.enableAutoSnapshot = enableAutoSnapshot; + if(enableAutoSnapshot != null){ + putQueryParameter("EnableAutoSnapshot", enableAutoSnapshot.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public Boolean getBurstingEnabled() { + return this.burstingEnabled; + } + + public void setBurstingEnabled(Boolean burstingEnabled) { + this.burstingEnabled = burstingEnabled; + if(burstingEnabled != null){ + putQueryParameter("BurstingEnabled", burstingEnabled.toString()); + } + } + + @Override + public Class getResponseClass() { + return ModifyDiskAttributeResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDiskAttributeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDiskAttributeResponse.java new file mode 100644 index 0000000000..91747659f5 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDiskAttributeResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyDiskAttributeResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyDiskAttributeResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyDiskAttributeResponse getInstance(UnmarshallerContext context) { + return ModifyDiskAttributeResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDiskChargeTypeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDiskChargeTypeRequest.java new file mode 100644 index 0000000000..db51439105 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDiskChargeTypeRequest.java @@ -0,0 +1,158 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyDiskChargeTypeRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private String diskChargeType; + + private String diskIds; + + private Boolean autoPay; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceId; + public ModifyDiskChargeTypeRequest() { + super("Ecs", "2014-05-26", "ModifyDiskChargeType", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getDiskChargeType() { + return this.diskChargeType; + } + + public void setDiskChargeType(String diskChargeType) { + this.diskChargeType = diskChargeType; + if(diskChargeType != null){ + putQueryParameter("DiskChargeType", diskChargeType); + } + } + + public String getDiskIds() { + return this.diskIds; + } + + public void setDiskIds(String diskIds) { + this.diskIds = diskIds; + if(diskIds != null){ + putQueryParameter("DiskIds", diskIds); + } + } + + public Boolean getAutoPay() { + return this.autoPay; + } + + public void setAutoPay(Boolean autoPay) { + this.autoPay = autoPay; + if(autoPay != null){ + putQueryParameter("AutoPay", autoPay.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + @Override + public Class getResponseClass() { + return ModifyDiskChargeTypeResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDiskChargeTypeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDiskChargeTypeResponse.java new file mode 100644 index 0000000000..c886cdfdb6 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDiskChargeTypeResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyDiskChargeTypeResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyDiskChargeTypeResponse extends AcsResponse { + + private String orderId; + + private String requestId; + + public String getOrderId() { + return this.orderId; + } + + public void setOrderId(String orderId) { + this.orderId = orderId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyDiskChargeTypeResponse getInstance(UnmarshallerContext context) { + return ModifyDiskChargeTypeResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDiskDeploymentRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDiskDeploymentRequest.java new file mode 100644 index 0000000000..51c9ff7202 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDiskDeploymentRequest.java @@ -0,0 +1,158 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyDiskDeploymentRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String diskCategory; + + private String diskId; + + private Boolean dryRun; + + private String resourceOwnerAccount; + + private String performanceLevel; + + private String ownerAccount; + + private Long ownerId; + + private String storageClusterId; + public ModifyDiskDeploymentRequest() { + super("Ecs", "2014-05-26", "ModifyDiskDeployment", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getDiskCategory() { + return this.diskCategory; + } + + public void setDiskCategory(String diskCategory) { + this.diskCategory = diskCategory; + if(diskCategory != null){ + putQueryParameter("DiskCategory", diskCategory); + } + } + + public String getDiskId() { + return this.diskId; + } + + public void setDiskId(String diskId) { + this.diskId = diskId; + if(diskId != null){ + putQueryParameter("DiskId", diskId); + } + } + + public Boolean getDryRun() { + return this.dryRun; + } + + public void setDryRun(Boolean dryRun) { + this.dryRun = dryRun; + if(dryRun != null){ + putQueryParameter("DryRun", dryRun.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getPerformanceLevel() { + return this.performanceLevel; + } + + public void setPerformanceLevel(String performanceLevel) { + this.performanceLevel = performanceLevel; + if(performanceLevel != null){ + putQueryParameter("PerformanceLevel", performanceLevel); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getStorageClusterId() { + return this.storageClusterId; + } + + public void setStorageClusterId(String storageClusterId) { + this.storageClusterId = storageClusterId; + if(storageClusterId != null){ + putQueryParameter("StorageClusterId", storageClusterId); + } + } + + @Override + public Class getResponseClass() { + return ModifyDiskDeploymentResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDiskDeploymentResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDiskDeploymentResponse.java new file mode 100644 index 0000000000..0bf5cf38bd --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDiskDeploymentResponse.java @@ -0,0 +1,56 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyDiskDeploymentResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyDiskDeploymentResponse extends AcsResponse { + + private String requestId; + + private String taskId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getTaskId() { + return this.taskId; + } + + public void setTaskId(String taskId) { + this.taskId = taskId; + } + + @Override + public ModifyDiskDeploymentResponse getInstance(UnmarshallerContext context) { + return ModifyDiskDeploymentResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDiskSpecRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDiskSpecRequest.java new file mode 100644 index 0000000000..7e70f6f413 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDiskSpecRequest.java @@ -0,0 +1,207 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyDiskSpecRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String diskCategory; + + private String diskId; + + private Boolean dryRun; + + private String resourceOwnerAccount; + + private String performanceLevel; + + private String ownerAccount; + + private PerformanceControlOptions performanceControlOptions; + + private Long ownerId; + + private Long provisionedIops; + public ModifyDiskSpecRequest() { + super("Ecs", "2014-05-26", "ModifyDiskSpec", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getDiskCategory() { + return this.diskCategory; + } + + public void setDiskCategory(String diskCategory) { + this.diskCategory = diskCategory; + if(diskCategory != null){ + putQueryParameter("DiskCategory", diskCategory); + } + } + + public String getDiskId() { + return this.diskId; + } + + public void setDiskId(String diskId) { + this.diskId = diskId; + if(diskId != null){ + putQueryParameter("DiskId", diskId); + } + } + + public Boolean getDryRun() { + return this.dryRun; + } + + public void setDryRun(Boolean dryRun) { + this.dryRun = dryRun; + if(dryRun != null){ + putQueryParameter("DryRun", dryRun.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getPerformanceLevel() { + return this.performanceLevel; + } + + public void setPerformanceLevel(String performanceLevel) { + this.performanceLevel = performanceLevel; + if(performanceLevel != null){ + putQueryParameter("PerformanceLevel", performanceLevel); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public PerformanceControlOptions getPerformanceControlOptions() { + return this.performanceControlOptions; + } + + public void setPerformanceControlOptions(PerformanceControlOptions performanceControlOptions) { + this.performanceControlOptions = performanceControlOptions; + if (performanceControlOptions != null) { + + putQueryParameter("PerformanceControlOptions.IOPS" , performanceControlOptions.getIOPS()); + putQueryParameter("PerformanceControlOptions.Throughput" , performanceControlOptions.getThroughput()); + putQueryParameter("PerformanceControlOptions.Recover" , performanceControlOptions.getRecover()); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public Long getProvisionedIops() { + return this.provisionedIops; + } + + public void setProvisionedIops(Long provisionedIops) { + this.provisionedIops = provisionedIops; + if(provisionedIops != null){ + putQueryParameter("ProvisionedIops", provisionedIops.toString()); + } + } + + public static class PerformanceControlOptions { + + private Integer iOPS; + + private Integer throughput; + + private String recover; + + public Integer getIOPS() { + return this.iOPS; + } + + public void setIOPS(Integer iOPS) { + this.iOPS = iOPS; + } + + public Integer getThroughput() { + return this.throughput; + } + + public void setThroughput(Integer throughput) { + this.throughput = throughput; + } + + public String getRecover() { + return this.recover; + } + + public void setRecover(String recover) { + this.recover = recover; + } + } + + @Override + public Class getResponseClass() { + return ModifyDiskSpecResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyDiskSpecResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDiskSpecResponse.java similarity index 81% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyDiskSpecResponse.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDiskSpecResponse.java index 749a171b95..80de15077d 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyDiskSpecResponse.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyDiskSpecResponse.java @@ -12,10 +12,10 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.ModifyDiskSpecResponseUnmarshaller; +import com.aliyuncs.ecs.transform.v20140526.ModifyDiskSpecResponseUnmarshaller; import com.aliyuncs.transform.UnmarshallerContext; /** @@ -24,17 +24,11 @@ */ public class ModifyDiskSpecResponse extends AcsResponse { - private String orderId; - private String requestId; - public String getOrderId() { - return this.orderId; - } + private String taskId; - public void setOrderId(String orderId) { - this.orderId = orderId; - } + private String orderId; public String getRequestId() { return this.requestId; @@ -44,6 +38,22 @@ public void setRequestId(String requestId) { this.requestId = requestId; } + public String getTaskId() { + return this.taskId; + } + + public void setTaskId(String taskId) { + this.taskId = taskId; + } + + public String getOrderId() { + return this.orderId; + } + + public void setOrderId(String orderId) { + this.orderId = orderId; + } + @Override public ModifyDiskSpecResponse getInstance(UnmarshallerContext context) { return ModifyDiskSpecResponseUnmarshaller.unmarshall(this, context); diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyEipAddressAttributeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyEipAddressAttributeRequest.java new file mode 100644 index 0000000000..6dba3fc5fd --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyEipAddressAttributeRequest.java @@ -0,0 +1,119 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyEipAddressAttributeRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String allocationId; + + private String resourceOwnerAccount; + + private String bandwidth; + + private String ownerAccount; + + private Long ownerId; + public ModifyEipAddressAttributeRequest() { + super("Ecs", "2014-05-26", "ModifyEipAddressAttribute", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getAllocationId() { + return this.allocationId; + } + + public void setAllocationId(String allocationId) { + this.allocationId = allocationId; + if(allocationId != null){ + putQueryParameter("AllocationId", allocationId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getBandwidth() { + return this.bandwidth; + } + + public void setBandwidth(String bandwidth) { + this.bandwidth = bandwidth; + if(bandwidth != null){ + putQueryParameter("Bandwidth", bandwidth); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return ModifyEipAddressAttributeResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyEipAddressAttributeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyEipAddressAttributeResponse.java new file mode 100644 index 0000000000..81ef4ea0b3 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyEipAddressAttributeResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyEipAddressAttributeResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyEipAddressAttributeResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyEipAddressAttributeResponse getInstance(UnmarshallerContext context) { + return ModifyEipAddressAttributeResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyElasticityAssuranceRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyElasticityAssuranceRequest.java new file mode 100644 index 0000000000..1cb4f98b71 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyElasticityAssuranceRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyElasticityAssuranceRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String description; + + private String privatePoolOptionsId; + + private String resourceOwnerAccount; + + private String privatePoolOptionsName; + + private String ownerAccount; + + private Long ownerId; + public ModifyElasticityAssuranceRequest() { + super("Ecs", "2014-05-26", "ModifyElasticityAssurance", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getPrivatePoolOptionsId() { + return this.privatePoolOptionsId; + } + + public void setPrivatePoolOptionsId(String privatePoolOptionsId) { + this.privatePoolOptionsId = privatePoolOptionsId; + if(privatePoolOptionsId != null){ + putQueryParameter("PrivatePoolOptions.Id", privatePoolOptionsId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getPrivatePoolOptionsName() { + return this.privatePoolOptionsName; + } + + public void setPrivatePoolOptionsName(String privatePoolOptionsName) { + this.privatePoolOptionsName = privatePoolOptionsName; + if(privatePoolOptionsName != null){ + putQueryParameter("PrivatePoolOptions.Name", privatePoolOptionsName); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return ModifyElasticityAssuranceResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyElasticityAssuranceResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyElasticityAssuranceResponse.java new file mode 100644 index 0000000000..879473290c --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyElasticityAssuranceResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyElasticityAssuranceResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyElasticityAssuranceResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyElasticityAssuranceResponse getInstance(UnmarshallerContext context) { + return ModifyElasticityAssuranceResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyForwardEntryRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyForwardEntryRequest.java new file mode 100644 index 0000000000..9dd989074c --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyForwardEntryRequest.java @@ -0,0 +1,184 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyForwardEntryRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String forwardTableId; + + private String internalIp; + + private String forwardEntryId; + + private String externalIp; + + private String resourceOwnerAccount; + + private String ipProtocol; + + private String ownerAccount; + + private Long ownerId; + + private String internalPort; + + private String externalPort; + public ModifyForwardEntryRequest() { + super("Ecs", "2014-05-26", "ModifyForwardEntry", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getForwardTableId() { + return this.forwardTableId; + } + + public void setForwardTableId(String forwardTableId) { + this.forwardTableId = forwardTableId; + if(forwardTableId != null){ + putQueryParameter("ForwardTableId", forwardTableId); + } + } + + public String getInternalIp() { + return this.internalIp; + } + + public void setInternalIp(String internalIp) { + this.internalIp = internalIp; + if(internalIp != null){ + putQueryParameter("InternalIp", internalIp); + } + } + + public String getForwardEntryId() { + return this.forwardEntryId; + } + + public void setForwardEntryId(String forwardEntryId) { + this.forwardEntryId = forwardEntryId; + if(forwardEntryId != null){ + putQueryParameter("ForwardEntryId", forwardEntryId); + } + } + + public String getExternalIp() { + return this.externalIp; + } + + public void setExternalIp(String externalIp) { + this.externalIp = externalIp; + if(externalIp != null){ + putQueryParameter("ExternalIp", externalIp); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getIpProtocol() { + return this.ipProtocol; + } + + public void setIpProtocol(String ipProtocol) { + this.ipProtocol = ipProtocol; + if(ipProtocol != null){ + putQueryParameter("IpProtocol", ipProtocol); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInternalPort() { + return this.internalPort; + } + + public void setInternalPort(String internalPort) { + this.internalPort = internalPort; + if(internalPort != null){ + putQueryParameter("InternalPort", internalPort); + } + } + + public String getExternalPort() { + return this.externalPort; + } + + public void setExternalPort(String externalPort) { + this.externalPort = externalPort; + if(externalPort != null){ + putQueryParameter("ExternalPort", externalPort); + } + } + + @Override + public Class getResponseClass() { + return ModifyForwardEntryResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyForwardEntryResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyForwardEntryResponse.java new file mode 100644 index 0000000000..7bba73ab47 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyForwardEntryResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyForwardEntryResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyForwardEntryResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyForwardEntryResponse getInstance(UnmarshallerContext context) { + return ModifyForwardEntryResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyHaVipAttributeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyHaVipAttributeRequest.java new file mode 100644 index 0000000000..207e5610fd --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyHaVipAttributeRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyHaVipAttributeRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private String description; + + private String haVipId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public ModifyHaVipAttributeRequest() { + super("Ecs", "2014-05-26", "ModifyHaVipAttribute", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getHaVipId() { + return this.haVipId; + } + + public void setHaVipId(String haVipId) { + this.haVipId = haVipId; + if(haVipId != null){ + putQueryParameter("HaVipId", haVipId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return ModifyHaVipAttributeResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyHaVipAttributeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyHaVipAttributeResponse.java new file mode 100644 index 0000000000..f208832ed8 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyHaVipAttributeResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyHaVipAttributeResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyHaVipAttributeResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyHaVipAttributeResponse getInstance(UnmarshallerContext context) { + return ModifyHaVipAttributeResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyHpcClusterAttributeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyHpcClusterAttributeRequest.java new file mode 100644 index 0000000000..16a786bdad --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyHpcClusterAttributeRequest.java @@ -0,0 +1,145 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyHpcClusterAttributeRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String hpcClusterId; + + private String clientToken; + + private String description; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String name; + public ModifyHpcClusterAttributeRequest() { + super("Ecs", "2014-05-26", "ModifyHpcClusterAttribute", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getHpcClusterId() { + return this.hpcClusterId; + } + + public void setHpcClusterId(String hpcClusterId) { + this.hpcClusterId = hpcClusterId; + if(hpcClusterId != null){ + putQueryParameter("HpcClusterId", hpcClusterId); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + if(name != null){ + putQueryParameter("Name", name); + } + } + + @Override + public Class getResponseClass() { + return ModifyHpcClusterAttributeResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyHpcClusterAttributeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyHpcClusterAttributeResponse.java new file mode 100644 index 0000000000..2a860fffc6 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyHpcClusterAttributeResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyHpcClusterAttributeResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyHpcClusterAttributeResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyHpcClusterAttributeResponse getInstance(UnmarshallerContext context) { + return ModifyHpcClusterAttributeResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyImageAttributeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyImageAttributeRequest.java new file mode 100644 index 0000000000..0a024e58db --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyImageAttributeRequest.java @@ -0,0 +1,211 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyImageAttributeRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String imageId; + + private String description; + + private Features features; + + private String bootMode; + + private String imageName; + + private String licenseType; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String imageFamily; + + private String status; + public ModifyImageAttributeRequest() { + super("Ecs", "2014-05-26", "ModifyImageAttribute", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getImageId() { + return this.imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + if(imageId != null){ + putQueryParameter("ImageId", imageId); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public Features getFeatures() { + return this.features; + } + + public void setFeatures(Features features) { + this.features = features; + if (features != null) { + + putQueryParameter("Features.NvmeSupport" , features.getNvmeSupport()); + } + } + + public String getBootMode() { + return this.bootMode; + } + + public void setBootMode(String bootMode) { + this.bootMode = bootMode; + if(bootMode != null){ + putQueryParameter("BootMode", bootMode); + } + } + + public String getImageName() { + return this.imageName; + } + + public void setImageName(String imageName) { + this.imageName = imageName; + if(imageName != null){ + putQueryParameter("ImageName", imageName); + } + } + + public String getLicenseType() { + return this.licenseType; + } + + public void setLicenseType(String licenseType) { + this.licenseType = licenseType; + if(licenseType != null){ + putQueryParameter("LicenseType", licenseType); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getImageFamily() { + return this.imageFamily; + } + + public void setImageFamily(String imageFamily) { + this.imageFamily = imageFamily; + if(imageFamily != null){ + putQueryParameter("ImageFamily", imageFamily); + } + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + if(status != null){ + putQueryParameter("Status", status); + } + } + + public static class Features { + + private String nvmeSupport; + + public String getNvmeSupport() { + return this.nvmeSupport; + } + + public void setNvmeSupport(String nvmeSupport) { + this.nvmeSupport = nvmeSupport; + } + } + + @Override + public Class getResponseClass() { + return ModifyImageAttributeResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyImageAttributeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyImageAttributeResponse.java new file mode 100644 index 0000000000..fab609de54 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyImageAttributeResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyImageAttributeResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyImageAttributeResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyImageAttributeResponse getInstance(UnmarshallerContext context) { + return ModifyImageAttributeResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyImageShareGroupPermissionRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyImageShareGroupPermissionRequest.java new file mode 100644 index 0000000000..dd1b5500b6 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyImageShareGroupPermissionRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyImageShareGroupPermissionRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String imageId; + + private String addGroup1; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String removeGroup1; + public ModifyImageShareGroupPermissionRequest() { + super("Ecs", "2014-05-26", "ModifyImageShareGroupPermission", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getImageId() { + return this.imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + if(imageId != null){ + putQueryParameter("ImageId", imageId); + } + } + + public String getAddGroup1() { + return this.addGroup1; + } + + public void setAddGroup1(String addGroup1) { + this.addGroup1 = addGroup1; + if(addGroup1 != null){ + putQueryParameter("AddGroup.1", addGroup1); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getRemoveGroup1() { + return this.removeGroup1; + } + + public void setRemoveGroup1(String removeGroup1) { + this.removeGroup1 = removeGroup1; + if(removeGroup1 != null){ + putQueryParameter("RemoveGroup.1", removeGroup1); + } + } + + @Override + public Class getResponseClass() { + return ModifyImageShareGroupPermissionResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyImageShareGroupPermissionResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyImageShareGroupPermissionResponse.java new file mode 100644 index 0000000000..3ef9de1e32 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyImageShareGroupPermissionResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyImageShareGroupPermissionResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyImageShareGroupPermissionResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyImageShareGroupPermissionResponse getInstance(UnmarshallerContext context) { + return ModifyImageShareGroupPermissionResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyImageSharePermissionRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyImageSharePermissionRequest.java new file mode 100644 index 0000000000..04de66a90d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyImageSharePermissionRequest.java @@ -0,0 +1,163 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyImageSharePermissionRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String imageId; + + private Boolean isPublic; + + private String launchPermission; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private List addAccounts; + + private List removeAccounts; + public ModifyImageSharePermissionRequest() { + super("Ecs", "2014-05-26", "ModifyImageSharePermission", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getImageId() { + return this.imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + if(imageId != null){ + putQueryParameter("ImageId", imageId); + } + } + + public Boolean getIsPublic() { + return this.isPublic; + } + + public void setIsPublic(Boolean isPublic) { + this.isPublic = isPublic; + if(isPublic != null){ + putQueryParameter("IsPublic", isPublic.toString()); + } + } + + public String getLaunchPermission() { + return this.launchPermission; + } + + public void setLaunchPermission(String launchPermission) { + this.launchPermission = launchPermission; + if(launchPermission != null){ + putQueryParameter("LaunchPermission", launchPermission); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getAddAccounts() { + return this.addAccounts; + } + + public void setAddAccounts(List addAccounts) { + this.addAccounts = addAccounts; + if (addAccounts != null) { + for (int i = 0; i < addAccounts.size(); i++) { + putQueryParameter("AddAccount." + (i + 1) , addAccounts.get(i)); + } + } + } + + public List getRemoveAccounts() { + return this.removeAccounts; + } + + public void setRemoveAccounts(List removeAccounts) { + this.removeAccounts = removeAccounts; + if (removeAccounts != null) { + for (int i = 0; i < removeAccounts.size(); i++) { + putQueryParameter("RemoveAccount." + (i + 1) , removeAccounts.get(i)); + } + } + } + + @Override + public Class getResponseClass() { + return ModifyImageSharePermissionResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyImageSharePermissionResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyImageSharePermissionResponse.java new file mode 100644 index 0000000000..c417a51282 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyImageSharePermissionResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyImageSharePermissionResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyImageSharePermissionResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyImageSharePermissionResponse getInstance(UnmarshallerContext context) { + return ModifyImageSharePermissionResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceAttachmentAttributesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceAttachmentAttributesRequest.java new file mode 100644 index 0000000000..9aad7fc6e4 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceAttachmentAttributesRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyInstanceAttachmentAttributesRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String privatePoolOptionsMatchCriteria; + + private String privatePoolOptionsId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceId; + public ModifyInstanceAttachmentAttributesRequest() { + super("Ecs", "2014-05-26", "ModifyInstanceAttachmentAttributes", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getPrivatePoolOptionsMatchCriteria() { + return this.privatePoolOptionsMatchCriteria; + } + + public void setPrivatePoolOptionsMatchCriteria(String privatePoolOptionsMatchCriteria) { + this.privatePoolOptionsMatchCriteria = privatePoolOptionsMatchCriteria; + if(privatePoolOptionsMatchCriteria != null){ + putQueryParameter("PrivatePoolOptions.MatchCriteria", privatePoolOptionsMatchCriteria); + } + } + + public String getPrivatePoolOptionsId() { + return this.privatePoolOptionsId; + } + + public void setPrivatePoolOptionsId(String privatePoolOptionsId) { + this.privatePoolOptionsId = privatePoolOptionsId; + if(privatePoolOptionsId != null){ + putQueryParameter("PrivatePoolOptions.Id", privatePoolOptionsId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + @Override + public Class getResponseClass() { + return ModifyInstanceAttachmentAttributesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceAttachmentAttributesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceAttachmentAttributesResponse.java new file mode 100644 index 0000000000..f8d0b1af47 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceAttachmentAttributesResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyInstanceAttachmentAttributesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyInstanceAttachmentAttributesResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyInstanceAttachmentAttributesResponse getInstance(UnmarshallerContext context) { + return ModifyInstanceAttachmentAttributesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceAttributeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceAttributeRequest.java new file mode 100644 index 0000000000..3e83dcf940 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceAttributeRequest.java @@ -0,0 +1,290 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyInstanceAttributeRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Boolean recyclable; + + private Integer networkInterfaceQueueNumber; + + private String description; + + private Boolean deletionProtection; + + private String userData; + + private String password; + + private String hostName; + + private Boolean enableJumboFrame; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String creditSpecification; + + private Long ownerId; + + private List securityGroupIdss; + + private String instanceId; + + private String instanceName; + + private RemoteConnectionOptions remoteConnectionOptions; + public ModifyInstanceAttributeRequest() { + super("Ecs", "2014-05-26", "ModifyInstanceAttribute", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Boolean getRecyclable() { + return this.recyclable; + } + + public void setRecyclable(Boolean recyclable) { + this.recyclable = recyclable; + if(recyclable != null){ + putQueryParameter("Recyclable", recyclable.toString()); + } + } + + public Integer getNetworkInterfaceQueueNumber() { + return this.networkInterfaceQueueNumber; + } + + public void setNetworkInterfaceQueueNumber(Integer networkInterfaceQueueNumber) { + this.networkInterfaceQueueNumber = networkInterfaceQueueNumber; + if(networkInterfaceQueueNumber != null){ + putQueryParameter("NetworkInterfaceQueueNumber", networkInterfaceQueueNumber.toString()); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public Boolean getDeletionProtection() { + return this.deletionProtection; + } + + public void setDeletionProtection(Boolean deletionProtection) { + this.deletionProtection = deletionProtection; + if(deletionProtection != null){ + putQueryParameter("DeletionProtection", deletionProtection.toString()); + } + } + + public String getUserData() { + return this.userData; + } + + public void setUserData(String userData) { + this.userData = userData; + if(userData != null){ + putQueryParameter("UserData", userData); + } + } + + public String getPassword() { + return this.password; + } + + public void setPassword(String password) { + this.password = password; + if(password != null){ + putQueryParameter("Password", password); + } + } + + public String getHostName() { + return this.hostName; + } + + public void setHostName(String hostName) { + this.hostName = hostName; + if(hostName != null){ + putQueryParameter("HostName", hostName); + } + } + + public Boolean getEnableJumboFrame() { + return this.enableJumboFrame; + } + + public void setEnableJumboFrame(Boolean enableJumboFrame) { + this.enableJumboFrame = enableJumboFrame; + if(enableJumboFrame != null){ + putQueryParameter("EnableJumboFrame", enableJumboFrame.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getCreditSpecification() { + return this.creditSpecification; + } + + public void setCreditSpecification(String creditSpecification) { + this.creditSpecification = creditSpecification; + if(creditSpecification != null){ + putQueryParameter("CreditSpecification", creditSpecification); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getSecurityGroupIdss() { + return this.securityGroupIdss; + } + + public void setSecurityGroupIdss(List securityGroupIdss) { + this.securityGroupIdss = securityGroupIdss; + if (securityGroupIdss != null) { + for (int i = 0; i < securityGroupIdss.size(); i++) { + putQueryParameter("SecurityGroupIds." + (i + 1) , securityGroupIdss.get(i)); + } + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public String getInstanceName() { + return this.instanceName; + } + + public void setInstanceName(String instanceName) { + this.instanceName = instanceName; + if(instanceName != null){ + putQueryParameter("InstanceName", instanceName); + } + } + + public RemoteConnectionOptions getRemoteConnectionOptions() { + return this.remoteConnectionOptions; + } + + public void setRemoteConnectionOptions(RemoteConnectionOptions remoteConnectionOptions) { + this.remoteConnectionOptions = remoteConnectionOptions; + if (remoteConnectionOptions != null) { + + putQueryParameter("RemoteConnectionOptions.Password" , remoteConnectionOptions.getPassword()); + putQueryParameter("RemoteConnectionOptions.Type" , remoteConnectionOptions.getType()); + } + } + + public static class RemoteConnectionOptions { + + private String password; + + private String type; + + public String getPassword() { + return this.password; + } + + public void setPassword(String password) { + this.password = password; + } + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + } + } + + @Override + public Class getResponseClass() { + return ModifyInstanceAttributeResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceAttributeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceAttributeResponse.java new file mode 100644 index 0000000000..2fc01f7f1f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceAttributeResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyInstanceAttributeResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyInstanceAttributeResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyInstanceAttributeResponse getInstance(UnmarshallerContext context) { + return ModifyInstanceAttributeResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceAutoReleaseTimeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceAutoReleaseTimeRequest.java new file mode 100644 index 0000000000..4d3e936c6f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceAutoReleaseTimeRequest.java @@ -0,0 +1,119 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyInstanceAutoReleaseTimeRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String autoReleaseTime; + + private Long ownerId; + + private String instanceId; + public ModifyInstanceAutoReleaseTimeRequest() { + super("Ecs", "2014-05-26", "ModifyInstanceAutoReleaseTime", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getAutoReleaseTime() { + return this.autoReleaseTime; + } + + public void setAutoReleaseTime(String autoReleaseTime) { + this.autoReleaseTime = autoReleaseTime; + if(autoReleaseTime != null){ + putQueryParameter("AutoReleaseTime", autoReleaseTime); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + @Override + public Class getResponseClass() { + return ModifyInstanceAutoReleaseTimeResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceAutoReleaseTimeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceAutoReleaseTimeResponse.java new file mode 100644 index 0000000000..f67548435d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceAutoReleaseTimeResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyInstanceAutoReleaseTimeResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyInstanceAutoReleaseTimeResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyInstanceAutoReleaseTimeResponse getInstance(UnmarshallerContext context) { + return ModifyInstanceAutoReleaseTimeResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceAutoRenewAttributeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceAutoRenewAttributeRequest.java new file mode 100644 index 0000000000..02f726b566 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceAutoRenewAttributeRequest.java @@ -0,0 +1,158 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyInstanceAutoRenewAttributeRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Integer duration; + + private String renewalStatus; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String periodUnit; + + private String instanceId; + + private Boolean autoRenew; + public ModifyInstanceAutoRenewAttributeRequest() { + super("Ecs", "2014-05-26", "ModifyInstanceAutoRenewAttribute", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Integer getDuration() { + return this.duration; + } + + public void setDuration(Integer duration) { + this.duration = duration; + if(duration != null){ + putQueryParameter("Duration", duration.toString()); + } + } + + public String getRenewalStatus() { + return this.renewalStatus; + } + + public void setRenewalStatus(String renewalStatus) { + this.renewalStatus = renewalStatus; + if(renewalStatus != null){ + putQueryParameter("RenewalStatus", renewalStatus); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getPeriodUnit() { + return this.periodUnit; + } + + public void setPeriodUnit(String periodUnit) { + this.periodUnit = periodUnit; + if(periodUnit != null){ + putQueryParameter("PeriodUnit", periodUnit); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public Boolean getAutoRenew() { + return this.autoRenew; + } + + public void setAutoRenew(Boolean autoRenew) { + this.autoRenew = autoRenew; + if(autoRenew != null){ + putQueryParameter("AutoRenew", autoRenew.toString()); + } + } + + @Override + public Class getResponseClass() { + return ModifyInstanceAutoRenewAttributeResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceAutoRenewAttributeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceAutoRenewAttributeResponse.java new file mode 100644 index 0000000000..5bdf0955b6 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceAutoRenewAttributeResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyInstanceAutoRenewAttributeResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyInstanceAutoRenewAttributeResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyInstanceAutoRenewAttributeResponse getInstance(UnmarshallerContext context) { + return ModifyInstanceAutoRenewAttributeResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyInstanceChargeTypeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceChargeTypeRequest.java similarity index 90% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyInstanceChargeTypeRequest.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceChargeTypeRequest.java index e518bbfbe0..f49c215a8a 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyInstanceChargeTypeRequest.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceChargeTypeRequest.java @@ -12,7 +12,7 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.RpcAcsRequest; import com.aliyuncs.http.MethodType; @@ -29,8 +29,6 @@ public class ModifyInstanceChargeTypeRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Boolean removeFromDeploymentSet; + + private Integer deploymentSetGroupNo; + + private String dedicatedHostClusterId; + + private String instanceType; + + private String deploymentSetId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String tenancy; + + private String dedicatedHostId; + + private Long ownerId; + + private String instanceId; + + private Boolean force; + + private String migrationType; + + private String affinity; + public ModifyInstanceDeploymentRequest() { + super("Ecs", "2014-05-26", "ModifyInstanceDeployment", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Boolean getRemoveFromDeploymentSet() { + return this.removeFromDeploymentSet; + } + + public void setRemoveFromDeploymentSet(Boolean removeFromDeploymentSet) { + this.removeFromDeploymentSet = removeFromDeploymentSet; + if(removeFromDeploymentSet != null){ + putQueryParameter("RemoveFromDeploymentSet", removeFromDeploymentSet.toString()); + } + } + + public Integer getDeploymentSetGroupNo() { + return this.deploymentSetGroupNo; + } + + public void setDeploymentSetGroupNo(Integer deploymentSetGroupNo) { + this.deploymentSetGroupNo = deploymentSetGroupNo; + if(deploymentSetGroupNo != null){ + putQueryParameter("DeploymentSetGroupNo", deploymentSetGroupNo.toString()); + } + } + + public String getDedicatedHostClusterId() { + return this.dedicatedHostClusterId; + } + + public void setDedicatedHostClusterId(String dedicatedHostClusterId) { + this.dedicatedHostClusterId = dedicatedHostClusterId; + if(dedicatedHostClusterId != null){ + putQueryParameter("DedicatedHostClusterId", dedicatedHostClusterId); + } + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + if(instanceType != null){ + putQueryParameter("InstanceType", instanceType); + } + } + + public String getDeploymentSetId() { + return this.deploymentSetId; + } + + public void setDeploymentSetId(String deploymentSetId) { + this.deploymentSetId = deploymentSetId; + if(deploymentSetId != null){ + putQueryParameter("DeploymentSetId", deploymentSetId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getTenancy() { + return this.tenancy; + } + + public void setTenancy(String tenancy) { + this.tenancy = tenancy; + if(tenancy != null){ + putQueryParameter("Tenancy", tenancy); + } + } + + public String getDedicatedHostId() { + return this.dedicatedHostId; + } + + public void setDedicatedHostId(String dedicatedHostId) { + this.dedicatedHostId = dedicatedHostId; + if(dedicatedHostId != null){ + putQueryParameter("DedicatedHostId", dedicatedHostId); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public Boolean getForce() { + return this.force; + } + + public void setForce(Boolean force) { + this.force = force; + if(force != null){ + putQueryParameter("Force", force.toString()); + } + } + + public String getMigrationType() { + return this.migrationType; + } + + public void setMigrationType(String migrationType) { + this.migrationType = migrationType; + if(migrationType != null){ + putQueryParameter("MigrationType", migrationType); + } + } + + public String getAffinity() { + return this.affinity; + } + + public void setAffinity(String affinity) { + this.affinity = affinity; + if(affinity != null){ + putQueryParameter("Affinity", affinity); + } + } + + @Override + public Class getResponseClass() { + return ModifyInstanceDeploymentResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyInstanceDeploymentResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceDeploymentResponse.java similarity index 90% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyInstanceDeploymentResponse.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceDeploymentResponse.java index b6a44de1f3..1a2f3771b4 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyInstanceDeploymentResponse.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceDeploymentResponse.java @@ -12,10 +12,10 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.ModifyInstanceDeploymentResponseUnmarshaller; +import com.aliyuncs.ecs.transform.v20140526.ModifyInstanceDeploymentResponseUnmarshaller; import com.aliyuncs.transform.UnmarshallerContext; /** diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyInstanceMaintenanceAttributesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceMaintenanceAttributesRequest.java similarity index 88% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyInstanceMaintenanceAttributesRequest.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceMaintenanceAttributesRequest.java index 6ffa55b0f2..85218b90b9 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyInstanceMaintenanceAttributesRequest.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceMaintenanceAttributesRequest.java @@ -12,7 +12,7 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.RpcAcsRequest; import java.util.List; @@ -32,17 +32,17 @@ public class ModifyInstanceMaintenanceAttributesRequest extends RpcAcsRequest instanceIds; public ModifyInstanceMaintenanceAttributesRequest() { - super("Ecs", "2016-03-14", "ModifyInstanceMaintenanceAttributes", "ecs"); + super("Ecs", "2014-05-26", "ModifyInstanceMaintenanceAttributes", "ecs"); setMethod(MethodType.POST); try { com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); @@ -86,17 +86,6 @@ public void setActionOnMaintenance(String actionOnMaintenance) { } } - public Boolean getLiveMigration() { - return this.liveMigration; - } - - public void setLiveMigration(Boolean liveMigration) { - this.liveMigration = liveMigration; - if(liveMigration != null){ - putQueryParameter("LiveMigration", liveMigration.toString()); - } - } - public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } @@ -130,6 +119,17 @@ public void setOwnerId(Long ownerId) { } } + public Boolean getNotifyOnMaintenance() { + return this.notifyOnMaintenance; + } + + public void setNotifyOnMaintenance(Boolean notifyOnMaintenance) { + this.notifyOnMaintenance = notifyOnMaintenance; + if(notifyOnMaintenance != null){ + putQueryParameter("NotifyOnMaintenance", notifyOnMaintenance.toString()); + } + } + public List getInstanceIds() { return this.instanceIds; } diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyInstanceMaintenanceAttributesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceMaintenanceAttributesResponse.java similarity index 90% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyInstanceMaintenanceAttributesResponse.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceMaintenanceAttributesResponse.java index 5879dbd991..3eb84de55f 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyInstanceMaintenanceAttributesResponse.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceMaintenanceAttributesResponse.java @@ -12,10 +12,10 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.ModifyInstanceMaintenanceAttributesResponseUnmarshaller; +import com.aliyuncs.ecs.transform.v20140526.ModifyInstanceMaintenanceAttributesResponseUnmarshaller; import com.aliyuncs.transform.UnmarshallerContext; /** diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceMetadataOptionsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceMetadataOptionsRequest.java new file mode 100644 index 0000000000..d97e0af874 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceMetadataOptionsRequest.java @@ -0,0 +1,145 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyInstanceMetadataOptionsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String instanceMetadataTags; + + private Integer httpPutResponseHopLimit; + + private String httpEndpoint; + + private String resourceOwnerAccount; + + private Long ownerId; + + private String instanceId; + + private String httpTokens; + public ModifyInstanceMetadataOptionsRequest() { + super("Ecs", "2014-05-26", "ModifyInstanceMetadataOptions", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getInstanceMetadataTags() { + return this.instanceMetadataTags; + } + + public void setInstanceMetadataTags(String instanceMetadataTags) { + this.instanceMetadataTags = instanceMetadataTags; + if(instanceMetadataTags != null){ + putQueryParameter("InstanceMetadataTags", instanceMetadataTags); + } + } + + public Integer getHttpPutResponseHopLimit() { + return this.httpPutResponseHopLimit; + } + + public void setHttpPutResponseHopLimit(Integer httpPutResponseHopLimit) { + this.httpPutResponseHopLimit = httpPutResponseHopLimit; + if(httpPutResponseHopLimit != null){ + putQueryParameter("HttpPutResponseHopLimit", httpPutResponseHopLimit.toString()); + } + } + + public String getHttpEndpoint() { + return this.httpEndpoint; + } + + public void setHttpEndpoint(String httpEndpoint) { + this.httpEndpoint = httpEndpoint; + if(httpEndpoint != null){ + putQueryParameter("HttpEndpoint", httpEndpoint); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public String getHttpTokens() { + return this.httpTokens; + } + + public void setHttpTokens(String httpTokens) { + this.httpTokens = httpTokens; + if(httpTokens != null){ + putQueryParameter("HttpTokens", httpTokens); + } + } + + @Override + public Class getResponseClass() { + return ModifyInstanceMetadataOptionsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceMetadataOptionsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceMetadataOptionsResponse.java new file mode 100644 index 0000000000..80a8819f34 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceMetadataOptionsResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyInstanceMetadataOptionsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyInstanceMetadataOptionsResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyInstanceMetadataOptionsResponse getInstance(UnmarshallerContext context) { + return ModifyInstanceMetadataOptionsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceNetworkSpecRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceNetworkSpecRequest.java new file mode 100644 index 0000000000..03bacb761b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceNetworkSpecRequest.java @@ -0,0 +1,223 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyInstanceNetworkSpecRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private String iSP; + + private Integer internetMaxBandwidthOut; + + private String startTime; + + private Boolean autoPay; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String endTime; + + private Long ownerId; + + private String instanceId; + + private String networkChargeType; + + private Integer internetMaxBandwidthIn; + + private Boolean allocatePublicIp; + public ModifyInstanceNetworkSpecRequest() { + super("Ecs", "2014-05-26", "ModifyInstanceNetworkSpec", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getISP() { + return this.iSP; + } + + public void setISP(String iSP) { + this.iSP = iSP; + if(iSP != null){ + putQueryParameter("ISP", iSP); + } + } + + public Integer getInternetMaxBandwidthOut() { + return this.internetMaxBandwidthOut; + } + + public void setInternetMaxBandwidthOut(Integer internetMaxBandwidthOut) { + this.internetMaxBandwidthOut = internetMaxBandwidthOut; + if(internetMaxBandwidthOut != null){ + putQueryParameter("InternetMaxBandwidthOut", internetMaxBandwidthOut.toString()); + } + } + + public String getStartTime() { + return this.startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + if(startTime != null){ + putQueryParameter("StartTime", startTime); + } + } + + public Boolean getAutoPay() { + return this.autoPay; + } + + public void setAutoPay(Boolean autoPay) { + this.autoPay = autoPay; + if(autoPay != null){ + putQueryParameter("AutoPay", autoPay.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getEndTime() { + return this.endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + if(endTime != null){ + putQueryParameter("EndTime", endTime); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public String getNetworkChargeType() { + return this.networkChargeType; + } + + public void setNetworkChargeType(String networkChargeType) { + this.networkChargeType = networkChargeType; + if(networkChargeType != null){ + putQueryParameter("NetworkChargeType", networkChargeType); + } + } + + public Integer getInternetMaxBandwidthIn() { + return this.internetMaxBandwidthIn; + } + + public void setInternetMaxBandwidthIn(Integer internetMaxBandwidthIn) { + this.internetMaxBandwidthIn = internetMaxBandwidthIn; + if(internetMaxBandwidthIn != null){ + putQueryParameter("InternetMaxBandwidthIn", internetMaxBandwidthIn.toString()); + } + } + + public Boolean getAllocatePublicIp() { + return this.allocatePublicIp; + } + + public void setAllocatePublicIp(Boolean allocatePublicIp) { + this.allocatePublicIp = allocatePublicIp; + if(allocatePublicIp != null){ + putQueryParameter("AllocatePublicIp", allocatePublicIp.toString()); + } + } + + @Override + public Class getResponseClass() { + return ModifyInstanceNetworkSpecResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceNetworkSpecResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceNetworkSpecResponse.java new file mode 100644 index 0000000000..0e6cf5c779 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceNetworkSpecResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyInstanceNetworkSpecResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyInstanceNetworkSpecResponse extends AcsResponse { + + private String orderId; + + private String requestId; + + public String getOrderId() { + return this.orderId; + } + + public void setOrderId(String orderId) { + this.orderId = orderId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyInstanceNetworkSpecResponse getInstance(UnmarshallerContext context) { + return ModifyInstanceNetworkSpecResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceSpecRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceSpecRequest.java new file mode 100644 index 0000000000..6b3b5482e8 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceSpecRequest.java @@ -0,0 +1,300 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyInstanceSpecRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private Boolean allowMigrateAcrossZone; + + private Integer internetMaxBandwidthOut; + + private String systemDiskCategory; + + private String instanceType; + + private String temporaryEndTime; + + private String modifyMode; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private Integer temporaryInternetMaxBandwidthOut; + + private String temporaryStartTime; + + private Boolean async; + + private List disks; + + private String instanceId; + + private Integer internetMaxBandwidthIn; + public ModifyInstanceSpecRequest() { + super("Ecs", "2014-05-26", "ModifyInstanceSpec", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public Boolean getAllowMigrateAcrossZone() { + return this.allowMigrateAcrossZone; + } + + public void setAllowMigrateAcrossZone(Boolean allowMigrateAcrossZone) { + this.allowMigrateAcrossZone = allowMigrateAcrossZone; + if(allowMigrateAcrossZone != null){ + putQueryParameter("AllowMigrateAcrossZone", allowMigrateAcrossZone.toString()); + } + } + + public Integer getInternetMaxBandwidthOut() { + return this.internetMaxBandwidthOut; + } + + public void setInternetMaxBandwidthOut(Integer internetMaxBandwidthOut) { + this.internetMaxBandwidthOut = internetMaxBandwidthOut; + if(internetMaxBandwidthOut != null){ + putQueryParameter("InternetMaxBandwidthOut", internetMaxBandwidthOut.toString()); + } + } + + public String getSystemDiskCategory() { + return this.systemDiskCategory; + } + + public void setSystemDiskCategory(String systemDiskCategory) { + this.systemDiskCategory = systemDiskCategory; + if(systemDiskCategory != null){ + putQueryParameter("SystemDisk.Category", systemDiskCategory); + } + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + if(instanceType != null){ + putQueryParameter("InstanceType", instanceType); + } + } + + public String getTemporaryEndTime() { + return this.temporaryEndTime; + } + + public void setTemporaryEndTime(String temporaryEndTime) { + this.temporaryEndTime = temporaryEndTime; + if(temporaryEndTime != null){ + putQueryParameter("Temporary.EndTime", temporaryEndTime); + } + } + + public String getModifyMode() { + return this.modifyMode; + } + + public void setModifyMode(String modifyMode) { + this.modifyMode = modifyMode; + if(modifyMode != null){ + putQueryParameter("ModifyMode", modifyMode); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public Integer getTemporaryInternetMaxBandwidthOut() { + return this.temporaryInternetMaxBandwidthOut; + } + + public void setTemporaryInternetMaxBandwidthOut(Integer temporaryInternetMaxBandwidthOut) { + this.temporaryInternetMaxBandwidthOut = temporaryInternetMaxBandwidthOut; + if(temporaryInternetMaxBandwidthOut != null){ + putQueryParameter("Temporary.InternetMaxBandwidthOut", temporaryInternetMaxBandwidthOut.toString()); + } + } + + public String getTemporaryStartTime() { + return this.temporaryStartTime; + } + + public void setTemporaryStartTime(String temporaryStartTime) { + this.temporaryStartTime = temporaryStartTime; + if(temporaryStartTime != null){ + putQueryParameter("Temporary.StartTime", temporaryStartTime); + } + } + + public Boolean getAsync() { + return this.async; + } + + public void setAsync(Boolean async) { + this.async = async; + if(async != null){ + putQueryParameter("Async", async.toString()); + } + } + + public List getDisks() { + return this.disks; + } + + public void setDisks(List disks) { + this.disks = disks; + if (disks != null) { + for (int depth1 = 0; depth1 < disks.size(); depth1++) { + putQueryParameter("Disk." + (depth1 + 1) + ".PerformanceLevel" , disks.get(depth1).getPerformanceLevel()); + putQueryParameter("Disk." + (depth1 + 1) + ".DiskId" , disks.get(depth1).getDiskId()); + putQueryParameter("Disk." + (depth1 + 1) + ".Category" , disks.get(depth1).getCategory()); + } + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public Integer getInternetMaxBandwidthIn() { + return this.internetMaxBandwidthIn; + } + + public void setInternetMaxBandwidthIn(Integer internetMaxBandwidthIn) { + this.internetMaxBandwidthIn = internetMaxBandwidthIn; + if(internetMaxBandwidthIn != null){ + putQueryParameter("InternetMaxBandwidthIn", internetMaxBandwidthIn.toString()); + } + } + + public static class Disk { + + private String performanceLevel; + + private String diskId; + + private String category; + + public String getPerformanceLevel() { + return this.performanceLevel; + } + + public void setPerformanceLevel(String performanceLevel) { + this.performanceLevel = performanceLevel; + } + + public String getDiskId() { + return this.diskId; + } + + public void setDiskId(String diskId) { + this.diskId = diskId; + } + + public String getCategory() { + return this.category; + } + + public void setCategory(String category) { + this.category = category; + } + } + + @Override + public Class getResponseClass() { + return ModifyInstanceSpecResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceSpecResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceSpecResponse.java new file mode 100644 index 0000000000..360f5efd4c --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceSpecResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyInstanceSpecResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyInstanceSpecResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyInstanceSpecResponse getInstance(UnmarshallerContext context) { + return ModifyInstanceSpecResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceVncPasswdRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceVncPasswdRequest.java new file mode 100644 index 0000000000..e7e6d7671a --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceVncPasswdRequest.java @@ -0,0 +1,119 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyInstanceVncPasswdRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceId; + + private String vncPassword; + public ModifyInstanceVncPasswdRequest() { + super("Ecs", "2014-05-26", "ModifyInstanceVncPasswd", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public String getVncPassword() { + return this.vncPassword; + } + + public void setVncPassword(String vncPassword) { + this.vncPassword = vncPassword; + if(vncPassword != null){ + putQueryParameter("VncPassword", vncPassword); + } + } + + @Override + public Class getResponseClass() { + return ModifyInstanceVncPasswdResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceVncPasswdResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceVncPasswdResponse.java new file mode 100644 index 0000000000..d9911af948 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceVncPasswdResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyInstanceVncPasswdResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyInstanceVncPasswdResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyInstanceVncPasswdResponse getInstance(UnmarshallerContext context) { + return ModifyInstanceVncPasswdResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceVpcAttributeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceVpcAttributeRequest.java new file mode 100644 index 0000000000..1a0c3a3144 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceVpcAttributeRequest.java @@ -0,0 +1,161 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyInstanceVpcAttributeRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private List securityGroupIds; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String vSwitchId; + + private String privateIpAddress; + + private String instanceId; + + private String vpcId; + public ModifyInstanceVpcAttributeRequest() { + super("Ecs", "2014-05-26", "ModifyInstanceVpcAttribute", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public List getSecurityGroupIds() { + return this.securityGroupIds; + } + + public void setSecurityGroupIds(List securityGroupIds) { + this.securityGroupIds = securityGroupIds; + if (securityGroupIds != null) { + for (int i = 0; i < securityGroupIds.size(); i++) { + putQueryParameter("SecurityGroupId." + (i + 1) , securityGroupIds.get(i)); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getVSwitchId() { + return this.vSwitchId; + } + + public void setVSwitchId(String vSwitchId) { + this.vSwitchId = vSwitchId; + if(vSwitchId != null){ + putQueryParameter("VSwitchId", vSwitchId); + } + } + + public String getPrivateIpAddress() { + return this.privateIpAddress; + } + + public void setPrivateIpAddress(String privateIpAddress) { + this.privateIpAddress = privateIpAddress; + if(privateIpAddress != null){ + putQueryParameter("PrivateIpAddress", privateIpAddress); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + if(vpcId != null){ + putQueryParameter("VpcId", vpcId); + } + } + + @Override + public Class getResponseClass() { + return ModifyInstanceVpcAttributeResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceVpcAttributeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceVpcAttributeResponse.java new file mode 100644 index 0000000000..c6a019ffe7 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyInstanceVpcAttributeResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyInstanceVpcAttributeResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyInstanceVpcAttributeResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyInstanceVpcAttributeResponse getInstance(UnmarshallerContext context) { + return ModifyInstanceVpcAttributeResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyLaunchTemplateDefaultVersionRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyLaunchTemplateDefaultVersionRequest.java new file mode 100644 index 0000000000..e5df770e69 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyLaunchTemplateDefaultVersionRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyLaunchTemplateDefaultVersionRequest extends RpcAcsRequest { + + + private String launchTemplateName; + + private Long resourceOwnerId; + + private String launchTemplateId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private Long defaultVersionNumber; + public ModifyLaunchTemplateDefaultVersionRequest() { + super("Ecs", "2014-05-26", "ModifyLaunchTemplateDefaultVersion", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getLaunchTemplateName() { + return this.launchTemplateName; + } + + public void setLaunchTemplateName(String launchTemplateName) { + this.launchTemplateName = launchTemplateName; + if(launchTemplateName != null){ + putQueryParameter("LaunchTemplateName", launchTemplateName); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getLaunchTemplateId() { + return this.launchTemplateId; + } + + public void setLaunchTemplateId(String launchTemplateId) { + this.launchTemplateId = launchTemplateId; + if(launchTemplateId != null){ + putQueryParameter("LaunchTemplateId", launchTemplateId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public Long getDefaultVersionNumber() { + return this.defaultVersionNumber; + } + + public void setDefaultVersionNumber(Long defaultVersionNumber) { + this.defaultVersionNumber = defaultVersionNumber; + if(defaultVersionNumber != null){ + putQueryParameter("DefaultVersionNumber", defaultVersionNumber.toString()); + } + } + + @Override + public Class getResponseClass() { + return ModifyLaunchTemplateDefaultVersionResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyLaunchTemplateDefaultVersionResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyLaunchTemplateDefaultVersionResponse.java new file mode 100644 index 0000000000..2a3e861cba --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyLaunchTemplateDefaultVersionResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyLaunchTemplateDefaultVersionResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyLaunchTemplateDefaultVersionResponse extends AcsResponse { + + private String requestId; + + private String launchTemplateId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getLaunchTemplateId() { + return this.launchTemplateId; + } + + public void setLaunchTemplateId(String launchTemplateId) { + this.launchTemplateId = launchTemplateId; + } + + @Override + public ModifyLaunchTemplateDefaultVersionResponse getInstance(UnmarshallerContext context) { + return ModifyLaunchTemplateDefaultVersionResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyManagedInstanceRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyManagedInstanceRequest.java new file mode 100644 index 0000000000..c5ff0e7021 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyManagedInstanceRequest.java @@ -0,0 +1,119 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyManagedInstanceRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceId; + + private String instanceName; + public ModifyManagedInstanceRequest() { + super("Ecs", "2014-05-26", "ModifyManagedInstance", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public String getInstanceName() { + return this.instanceName; + } + + public void setInstanceName(String instanceName) { + this.instanceName = instanceName; + if(instanceName != null){ + putQueryParameter("InstanceName", instanceName); + } + } + + @Override + public Class getResponseClass() { + return ModifyManagedInstanceResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyManagedInstanceResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyManagedInstanceResponse.java new file mode 100644 index 0000000000..011d5eb55b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyManagedInstanceResponse.java @@ -0,0 +1,79 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyManagedInstanceResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyManagedInstanceResponse extends AcsResponse { + + private String requestId; + + private Instance instance; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Instance getInstance() { + return this.instance; + } + + public void setInstance(Instance instance) { + this.instance = instance; + } + + public static class Instance { + + private String instanceName; + + private String instanceId; + + public String getInstanceName() { + return this.instanceName; + } + + public void setInstanceName(String instanceName) { + this.instanceName = instanceName; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + } + + @Override + public ModifyManagedInstanceResponse getInstance(UnmarshallerContext context) { + return ModifyManagedInstanceResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyNetworkInterfaceAttributeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyNetworkInterfaceAttributeRequest.java new file mode 100644 index 0000000000..1c798b74a3 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyNetworkInterfaceAttributeRequest.java @@ -0,0 +1,161 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyNetworkInterfaceAttributeRequest extends RpcAcsRequest { + + + private Integer queueNumber; + + private Long resourceOwnerId; + + private List securityGroupIds; + + private String description; + + private String networkInterfaceName; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String networkInterfaceId; + public ModifyNetworkInterfaceAttributeRequest() { + super("Ecs", "2014-05-26", "ModifyNetworkInterfaceAttribute", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Integer getQueueNumber() { + return this.queueNumber; + } + + public void setQueueNumber(Integer queueNumber) { + this.queueNumber = queueNumber; + if(queueNumber != null){ + putQueryParameter("QueueNumber", queueNumber.toString()); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public List getSecurityGroupIds() { + return this.securityGroupIds; + } + + public void setSecurityGroupIds(List securityGroupIds) { + this.securityGroupIds = securityGroupIds; + if (securityGroupIds != null) { + for (int i = 0; i < securityGroupIds.size(); i++) { + putQueryParameter("SecurityGroupId." + (i + 1) , securityGroupIds.get(i)); + } + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getNetworkInterfaceName() { + return this.networkInterfaceName; + } + + public void setNetworkInterfaceName(String networkInterfaceName) { + this.networkInterfaceName = networkInterfaceName; + if(networkInterfaceName != null){ + putQueryParameter("NetworkInterfaceName", networkInterfaceName); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getNetworkInterfaceId() { + return this.networkInterfaceId; + } + + public void setNetworkInterfaceId(String networkInterfaceId) { + this.networkInterfaceId = networkInterfaceId; + if(networkInterfaceId != null){ + putQueryParameter("NetworkInterfaceId", networkInterfaceId); + } + } + + @Override + public Class getResponseClass() { + return ModifyNetworkInterfaceAttributeResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyNetworkInterfaceAttributeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyNetworkInterfaceAttributeResponse.java new file mode 100644 index 0000000000..2a80cbb5b7 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyNetworkInterfaceAttributeResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyNetworkInterfaceAttributeResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyNetworkInterfaceAttributeResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyNetworkInterfaceAttributeResponse getInstance(UnmarshallerContext context) { + return ModifyNetworkInterfaceAttributeResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyPhysicalConnectionAttributeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyPhysicalConnectionAttributeRequest.java new file mode 100644 index 0000000000..f0cd125d7e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyPhysicalConnectionAttributeRequest.java @@ -0,0 +1,236 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyPhysicalConnectionAttributeRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String portType; + + private String circuitCode; + + private String clientToken; + + private String description; + + private String userCidr; + + private String redundantPhysicalConnectionId; + + private String peerLocation; + + private Integer bandwidth; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String lineOperator; + + private String physicalConnectionId; + + private String name; + public ModifyPhysicalConnectionAttributeRequest() { + super("Ecs", "2014-05-26", "ModifyPhysicalConnectionAttribute", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getPortType() { + return this.portType; + } + + public void setPortType(String portType) { + this.portType = portType; + if(portType != null){ + putQueryParameter("PortType", portType); + } + } + + public String getCircuitCode() { + return this.circuitCode; + } + + public void setCircuitCode(String circuitCode) { + this.circuitCode = circuitCode; + if(circuitCode != null){ + putQueryParameter("CircuitCode", circuitCode); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getUserCidr() { + return this.userCidr; + } + + public void setUserCidr(String userCidr) { + this.userCidr = userCidr; + if(userCidr != null){ + putQueryParameter("UserCidr", userCidr); + } + } + + public String getRedundantPhysicalConnectionId() { + return this.redundantPhysicalConnectionId; + } + + public void setRedundantPhysicalConnectionId(String redundantPhysicalConnectionId) { + this.redundantPhysicalConnectionId = redundantPhysicalConnectionId; + if(redundantPhysicalConnectionId != null){ + putQueryParameter("RedundantPhysicalConnectionId", redundantPhysicalConnectionId); + } + } + + public String getPeerLocation() { + return this.peerLocation; + } + + public void setPeerLocation(String peerLocation) { + this.peerLocation = peerLocation; + if(peerLocation != null){ + putQueryParameter("PeerLocation", peerLocation); + } + } + + public Integer getBandwidth() { + return this.bandwidth; + } + + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + if(bandwidth != null){ + putQueryParameter("bandwidth", bandwidth.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getLineOperator() { + return this.lineOperator; + } + + public void setLineOperator(String lineOperator) { + this.lineOperator = lineOperator; + if(lineOperator != null){ + putQueryParameter("LineOperator", lineOperator); + } + } + + public String getPhysicalConnectionId() { + return this.physicalConnectionId; + } + + public void setPhysicalConnectionId(String physicalConnectionId) { + this.physicalConnectionId = physicalConnectionId; + if(physicalConnectionId != null){ + putQueryParameter("PhysicalConnectionId", physicalConnectionId); + } + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + if(name != null){ + putQueryParameter("Name", name); + } + } + + @Override + public Class getResponseClass() { + return ModifyPhysicalConnectionAttributeResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyPhysicalConnectionAttributeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyPhysicalConnectionAttributeResponse.java new file mode 100644 index 0000000000..2902369ab9 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyPhysicalConnectionAttributeResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyPhysicalConnectionAttributeResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyPhysicalConnectionAttributeResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyPhysicalConnectionAttributeResponse getInstance(UnmarshallerContext context) { + return ModifyPhysicalConnectionAttributeResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyPrefixListRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyPrefixListRequest.java new file mode 100644 index 0000000000..55138a8d5c --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyPrefixListRequest.java @@ -0,0 +1,200 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyPrefixListRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String description; + + private String prefixListId; + + private List addEntrys; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String prefixListName; + + private List removeEntrys; + public ModifyPrefixListRequest() { + super("Ecs", "2014-05-26", "ModifyPrefixList", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getPrefixListId() { + return this.prefixListId; + } + + public void setPrefixListId(String prefixListId) { + this.prefixListId = prefixListId; + if(prefixListId != null){ + putQueryParameter("PrefixListId", prefixListId); + } + } + + public List getAddEntrys() { + return this.addEntrys; + } + + public void setAddEntrys(List addEntrys) { + this.addEntrys = addEntrys; + if (addEntrys != null) { + for (int depth1 = 0; depth1 < addEntrys.size(); depth1++) { + putQueryParameter("AddEntry." + (depth1 + 1) + ".Description" , addEntrys.get(depth1).getDescription()); + putQueryParameter("AddEntry." + (depth1 + 1) + ".Cidr" , addEntrys.get(depth1).getCidr()); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getPrefixListName() { + return this.prefixListName; + } + + public void setPrefixListName(String prefixListName) { + this.prefixListName = prefixListName; + if(prefixListName != null){ + putQueryParameter("PrefixListName", prefixListName); + } + } + + public List getRemoveEntrys() { + return this.removeEntrys; + } + + public void setRemoveEntrys(List removeEntrys) { + this.removeEntrys = removeEntrys; + if (removeEntrys != null) { + for (int depth1 = 0; depth1 < removeEntrys.size(); depth1++) { + putQueryParameter("RemoveEntry." + (depth1 + 1) + ".Cidr" , removeEntrys.get(depth1).getCidr()); + } + } + } + + public static class AddEntry { + + private String description; + + private String cidr; + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getCidr() { + return this.cidr; + } + + public void setCidr(String cidr) { + this.cidr = cidr; + } + } + + public static class RemoveEntry { + + private String cidr; + + public String getCidr() { + return this.cidr; + } + + public void setCidr(String cidr) { + this.cidr = cidr; + } + } + + @Override + public Class getResponseClass() { + return ModifyPrefixListResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyPrefixListResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyPrefixListResponse.java new file mode 100644 index 0000000000..e8e530a057 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyPrefixListResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyPrefixListResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyPrefixListResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyPrefixListResponse getInstance(UnmarshallerContext context) { + return ModifyPrefixListResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyPrepayInstanceSpecRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyPrepayInstanceSpecRequest.java new file mode 100644 index 0000000000..9d140c2018 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyPrepayInstanceSpecRequest.java @@ -0,0 +1,287 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyPrepayInstanceSpecRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private String operatorType; + + private String systemDiskCategory; + + private String rebootTime; + + private Boolean migrateAcrossZone; + + private String instanceType; + + private String modifyMode; + + private Boolean autoPay; + + private Boolean rebootWhenFinished; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String endTime; + + private Long ownerId; + + private List disks; + + private String instanceId; + public ModifyPrepayInstanceSpecRequest() { + super("Ecs", "2014-05-26", "ModifyPrepayInstanceSpec", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getOperatorType() { + return this.operatorType; + } + + public void setOperatorType(String operatorType) { + this.operatorType = operatorType; + if(operatorType != null){ + putQueryParameter("OperatorType", operatorType); + } + } + + public String getSystemDiskCategory() { + return this.systemDiskCategory; + } + + public void setSystemDiskCategory(String systemDiskCategory) { + this.systemDiskCategory = systemDiskCategory; + if(systemDiskCategory != null){ + putQueryParameter("SystemDisk.Category", systemDiskCategory); + } + } + + public String getRebootTime() { + return this.rebootTime; + } + + public void setRebootTime(String rebootTime) { + this.rebootTime = rebootTime; + if(rebootTime != null){ + putQueryParameter("RebootTime", rebootTime); + } + } + + public Boolean getMigrateAcrossZone() { + return this.migrateAcrossZone; + } + + public void setMigrateAcrossZone(Boolean migrateAcrossZone) { + this.migrateAcrossZone = migrateAcrossZone; + if(migrateAcrossZone != null){ + putQueryParameter("MigrateAcrossZone", migrateAcrossZone.toString()); + } + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + if(instanceType != null){ + putQueryParameter("InstanceType", instanceType); + } + } + + public String getModifyMode() { + return this.modifyMode; + } + + public void setModifyMode(String modifyMode) { + this.modifyMode = modifyMode; + if(modifyMode != null){ + putQueryParameter("ModifyMode", modifyMode); + } + } + + public Boolean getAutoPay() { + return this.autoPay; + } + + public void setAutoPay(Boolean autoPay) { + this.autoPay = autoPay; + if(autoPay != null){ + putQueryParameter("AutoPay", autoPay.toString()); + } + } + + public Boolean getRebootWhenFinished() { + return this.rebootWhenFinished; + } + + public void setRebootWhenFinished(Boolean rebootWhenFinished) { + this.rebootWhenFinished = rebootWhenFinished; + if(rebootWhenFinished != null){ + putQueryParameter("RebootWhenFinished", rebootWhenFinished.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getEndTime() { + return this.endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + if(endTime != null){ + putQueryParameter("EndTime", endTime); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getDisks() { + return this.disks; + } + + public void setDisks(List disks) { + this.disks = disks; + if (disks != null) { + for (int depth1 = 0; depth1 < disks.size(); depth1++) { + putQueryParameter("Disk." + (depth1 + 1) + ".PerformanceLevel" , disks.get(depth1).getPerformanceLevel()); + putQueryParameter("Disk." + (depth1 + 1) + ".DiskId" , disks.get(depth1).getDiskId()); + putQueryParameter("Disk." + (depth1 + 1) + ".Category" , disks.get(depth1).getCategory()); + } + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public static class Disk { + + private String performanceLevel; + + private String diskId; + + private String category; + + public String getPerformanceLevel() { + return this.performanceLevel; + } + + public void setPerformanceLevel(String performanceLevel) { + this.performanceLevel = performanceLevel; + } + + public String getDiskId() { + return this.diskId; + } + + public void setDiskId(String diskId) { + this.diskId = diskId; + } + + public String getCategory() { + return this.category; + } + + public void setCategory(String category) { + this.category = category; + } + } + + @Override + public Class getResponseClass() { + return ModifyPrepayInstanceSpecResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyPrepayInstanceSpecResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyPrepayInstanceSpecResponse.java new file mode 100644 index 0000000000..5c566f4904 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyPrepayInstanceSpecResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyPrepayInstanceSpecResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyPrepayInstanceSpecResponse extends AcsResponse { + + private String orderId; + + private String requestId; + + public String getOrderId() { + return this.orderId; + } + + public void setOrderId(String orderId) { + this.orderId = orderId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyPrepayInstanceSpecResponse getInstance(UnmarshallerContext context) { + return ModifyPrepayInstanceSpecResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyReservedInstanceAttributeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyReservedInstanceAttributeRequest.java similarity index 94% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyReservedInstanceAttributeRequest.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyReservedInstanceAttributeRequest.java index 9174797313..43a6ac5850 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyReservedInstanceAttributeRequest.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyReservedInstanceAttributeRequest.java @@ -12,7 +12,7 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.RpcAcsRequest; import com.aliyuncs.http.MethodType; @@ -39,7 +39,7 @@ public class ModifyReservedInstanceAttributeRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String renewalStatus; + + private Integer period; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String periodUnit; + + private List reservedInstanceIds; + public ModifyReservedInstanceAutoRenewAttributeRequest() { + super("Ecs", "2014-05-26", "ModifyReservedInstanceAutoRenewAttribute", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getRenewalStatus() { + return this.renewalStatus; + } + + public void setRenewalStatus(String renewalStatus) { + this.renewalStatus = renewalStatus; + if(renewalStatus != null){ + putQueryParameter("RenewalStatus", renewalStatus); + } + } + + public Integer getPeriod() { + return this.period; + } + + public void setPeriod(Integer period) { + this.period = period; + if(period != null){ + putQueryParameter("Period", period.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getPeriodUnit() { + return this.periodUnit; + } + + public void setPeriodUnit(String periodUnit) { + this.periodUnit = periodUnit; + if(periodUnit != null){ + putQueryParameter("PeriodUnit", periodUnit); + } + } + + public List getReservedInstanceIds() { + return this.reservedInstanceIds; + } + + public void setReservedInstanceIds(List reservedInstanceIds) { + this.reservedInstanceIds = reservedInstanceIds; + if (reservedInstanceIds != null) { + for (int i = 0; i < reservedInstanceIds.size(); i++) { + putQueryParameter("ReservedInstanceId." + (i + 1) , reservedInstanceIds.get(i)); + } + } + } + + @Override + public Class getResponseClass() { + return ModifyReservedInstanceAutoRenewAttributeResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyReservedInstanceAutoRenewAttributeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyReservedInstanceAutoRenewAttributeResponse.java new file mode 100644 index 0000000000..cc76c836f3 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyReservedInstanceAutoRenewAttributeResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyReservedInstanceAutoRenewAttributeResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyReservedInstanceAutoRenewAttributeResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyReservedInstanceAutoRenewAttributeResponse getInstance(UnmarshallerContext context) { + return ModifyReservedInstanceAutoRenewAttributeResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyReservedInstancesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyReservedInstancesRequest.java similarity index 83% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyReservedInstancesRequest.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyReservedInstancesRequest.java index 31a42f0b77..7498dcd954 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyReservedInstancesRequest.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyReservedInstancesRequest.java @@ -12,7 +12,7 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.RpcAcsRequest; import java.util.List; @@ -30,8 +30,6 @@ public class ModifyReservedInstancesRequest extends RpcAcsRequest configurations; - private List tags; - private String resourceOwnerAccount; private String ownerAccount; @@ -40,7 +38,7 @@ public class ModifyReservedInstancesRequest extends RpcAcsRequest reservedInstanceIds; public ModifyReservedInstancesRequest() { - super("Ecs", "2016-03-14", "ModifyReservedInstances", "ecs"); + super("Ecs", "2014-05-26", "ModifyReservedInstances", "ecs"); setMethod(MethodType.POST); try { com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); @@ -76,20 +74,6 @@ public void setConfigurations(List configurations) { } } - public List getTags() { - return this.tags; - } - - public void setTags(List tags) { - this.tags = tags; - if (tags != null) { - for (int depth1 = 0; depth1 < tags.size(); depth1++) { - putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); - putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); - } - } - } - public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } @@ -187,29 +171,6 @@ public Integer getInstanceAmount() { public void setInstanceAmount(Integer instanceAmount) { this.instanceAmount = instanceAmount; } - } - - public static class Tag { - - private String key; - - private String value; - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } } @Override diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyReservedInstancesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyReservedInstancesResponse.java similarity index 82% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyReservedInstancesResponse.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyReservedInstancesResponse.java index 1019ffe275..aaa0f4700b 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyReservedInstancesResponse.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyReservedInstancesResponse.java @@ -12,11 +12,11 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import java.util.List; import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.ModifyReservedInstancesResponseUnmarshaller; +import com.aliyuncs.ecs.transform.v20140526.ModifyReservedInstancesResponseUnmarshaller; import com.aliyuncs.transform.UnmarshallerContext; /** @@ -25,20 +25,10 @@ */ public class ModifyReservedInstancesResponse extends AcsResponse { - private String orderId; - private String requestId; private List reservedInstanceIdSets; - public String getOrderId() { - return this.orderId; - } - - public void setOrderId(String orderId) { - this.orderId = orderId; - } - public String getRequestId() { return this.requestId; } diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyRouterInterfaceAttributeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyRouterInterfaceAttributeRequest.java new file mode 100644 index 0000000000..f562de02f4 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyRouterInterfaceAttributeRequest.java @@ -0,0 +1,197 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyRouterInterfaceAttributeRequest extends RpcAcsRequest { + + + private String oppositeRouterId; + + private Long resourceOwnerId; + + private String description; + + private String healthCheckTargetIp; + + private String oppositeInterfaceId; + + private String resourceOwnerAccount; + + private Long ownerId; + + private String routerInterfaceId; + + private Long oppositeInterfaceOwnerId; + + private String healthCheckSourceIp; + + private String name; + + private String oppositeRouterType; + public ModifyRouterInterfaceAttributeRequest() { + super("Ecs", "2014-05-26", "ModifyRouterInterfaceAttribute", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getOppositeRouterId() { + return this.oppositeRouterId; + } + + public void setOppositeRouterId(String oppositeRouterId) { + this.oppositeRouterId = oppositeRouterId; + if(oppositeRouterId != null){ + putQueryParameter("OppositeRouterId", oppositeRouterId); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getHealthCheckTargetIp() { + return this.healthCheckTargetIp; + } + + public void setHealthCheckTargetIp(String healthCheckTargetIp) { + this.healthCheckTargetIp = healthCheckTargetIp; + if(healthCheckTargetIp != null){ + putQueryParameter("HealthCheckTargetIp", healthCheckTargetIp); + } + } + + public String getOppositeInterfaceId() { + return this.oppositeInterfaceId; + } + + public void setOppositeInterfaceId(String oppositeInterfaceId) { + this.oppositeInterfaceId = oppositeInterfaceId; + if(oppositeInterfaceId != null){ + putQueryParameter("OppositeInterfaceId", oppositeInterfaceId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getRouterInterfaceId() { + return this.routerInterfaceId; + } + + public void setRouterInterfaceId(String routerInterfaceId) { + this.routerInterfaceId = routerInterfaceId; + if(routerInterfaceId != null){ + putQueryParameter("RouterInterfaceId", routerInterfaceId); + } + } + + public Long getOppositeInterfaceOwnerId() { + return this.oppositeInterfaceOwnerId; + } + + public void setOppositeInterfaceOwnerId(Long oppositeInterfaceOwnerId) { + this.oppositeInterfaceOwnerId = oppositeInterfaceOwnerId; + if(oppositeInterfaceOwnerId != null){ + putQueryParameter("OppositeInterfaceOwnerId", oppositeInterfaceOwnerId.toString()); + } + } + + public String getHealthCheckSourceIp() { + return this.healthCheckSourceIp; + } + + public void setHealthCheckSourceIp(String healthCheckSourceIp) { + this.healthCheckSourceIp = healthCheckSourceIp; + if(healthCheckSourceIp != null){ + putQueryParameter("HealthCheckSourceIp", healthCheckSourceIp); + } + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + if(name != null){ + putQueryParameter("Name", name); + } + } + + public String getOppositeRouterType() { + return this.oppositeRouterType; + } + + public void setOppositeRouterType(String oppositeRouterType) { + this.oppositeRouterType = oppositeRouterType; + if(oppositeRouterType != null){ + putQueryParameter("OppositeRouterType", oppositeRouterType); + } + } + + @Override + public Class getResponseClass() { + return ModifyRouterInterfaceAttributeResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyRouterInterfaceAttributeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyRouterInterfaceAttributeResponse.java new file mode 100644 index 0000000000..679e898c94 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyRouterInterfaceAttributeResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyRouterInterfaceAttributeResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyRouterInterfaceAttributeResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyRouterInterfaceAttributeResponse getInstance(UnmarshallerContext context) { + return ModifyRouterInterfaceAttributeResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyRouterInterfaceSpecRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyRouterInterfaceSpecRequest.java new file mode 100644 index 0000000000..4b53979436 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyRouterInterfaceSpecRequest.java @@ -0,0 +1,145 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyRouterInterfaceSpecRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private String spec; + + private String userCidr; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String routerInterfaceId; + + private Long ownerId; + public ModifyRouterInterfaceSpecRequest() { + super("Ecs", "2014-05-26", "ModifyRouterInterfaceSpec", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getSpec() { + return this.spec; + } + + public void setSpec(String spec) { + this.spec = spec; + if(spec != null){ + putQueryParameter("Spec", spec); + } + } + + public String getUserCidr() { + return this.userCidr; + } + + public void setUserCidr(String userCidr) { + this.userCidr = userCidr; + if(userCidr != null){ + putQueryParameter("UserCidr", userCidr); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getRouterInterfaceId() { + return this.routerInterfaceId; + } + + public void setRouterInterfaceId(String routerInterfaceId) { + this.routerInterfaceId = routerInterfaceId; + if(routerInterfaceId != null){ + putQueryParameter("RouterInterfaceId", routerInterfaceId); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return ModifyRouterInterfaceSpecResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyRouterInterfaceSpecResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyRouterInterfaceSpecResponse.java new file mode 100644 index 0000000000..95d08a555a --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyRouterInterfaceSpecResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyRouterInterfaceSpecResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyRouterInterfaceSpecResponse extends AcsResponse { + + private String spec; + + private String requestId; + + public String getSpec() { + return this.spec; + } + + public void setSpec(String spec) { + this.spec = spec; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyRouterInterfaceSpecResponse getInstance(UnmarshallerContext context) { + return ModifyRouterInterfaceSpecResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySecurityGroupAttributeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySecurityGroupAttributeRequest.java new file mode 100644 index 0000000000..c163164c5b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySecurityGroupAttributeRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifySecurityGroupAttributeRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String securityGroupId; + + private String description; + + private String securityGroupName; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public ModifySecurityGroupAttributeRequest() { + super("Ecs", "2014-05-26", "ModifySecurityGroupAttribute", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getSecurityGroupId() { + return this.securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + if(securityGroupId != null){ + putQueryParameter("SecurityGroupId", securityGroupId); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getSecurityGroupName() { + return this.securityGroupName; + } + + public void setSecurityGroupName(String securityGroupName) { + this.securityGroupName = securityGroupName; + if(securityGroupName != null){ + putQueryParameter("SecurityGroupName", securityGroupName); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return ModifySecurityGroupAttributeResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySecurityGroupAttributeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySecurityGroupAttributeResponse.java new file mode 100644 index 0000000000..80f6eda9a7 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySecurityGroupAttributeResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifySecurityGroupAttributeResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifySecurityGroupAttributeResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifySecurityGroupAttributeResponse getInstance(UnmarshallerContext context) { + return ModifySecurityGroupAttributeResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySecurityGroupEgressRuleRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySecurityGroupEgressRuleRequest.java new file mode 100644 index 0000000000..d8b235dac5 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySecurityGroupEgressRuleRequest.java @@ -0,0 +1,327 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifySecurityGroupEgressRuleRequest extends RpcAcsRequest { + + + private String nicType; + + private Long resourceOwnerId; + + private String sourcePortRange; + + private String clientToken; + + private String destPrefixListId; + + private String securityGroupId; + + private String description; + + private String policy; + + private String ipv6DestCidrIp; + + private String ipv6SourceCidrIp; + + private String portRange; + + private String resourceOwnerAccount; + + private String ipProtocol; + + private String ownerAccount; + + private String sourceCidrIp; + + private String destGroupId; + + private Long ownerId; + + private String priority; + + private String destGroupOwnerAccount; + + private String destCidrIp; + + private Long destGroupOwnerId; + + private String securityGroupRuleId; + public ModifySecurityGroupEgressRuleRequest() { + super("Ecs", "2014-05-26", "ModifySecurityGroupEgressRule", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getNicType() { + return this.nicType; + } + + public void setNicType(String nicType) { + this.nicType = nicType; + if(nicType != null){ + putQueryParameter("NicType", nicType); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getSourcePortRange() { + return this.sourcePortRange; + } + + public void setSourcePortRange(String sourcePortRange) { + this.sourcePortRange = sourcePortRange; + if(sourcePortRange != null){ + putQueryParameter("SourcePortRange", sourcePortRange); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getDestPrefixListId() { + return this.destPrefixListId; + } + + public void setDestPrefixListId(String destPrefixListId) { + this.destPrefixListId = destPrefixListId; + if(destPrefixListId != null){ + putQueryParameter("DestPrefixListId", destPrefixListId); + } + } + + public String getSecurityGroupId() { + return this.securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + if(securityGroupId != null){ + putQueryParameter("SecurityGroupId", securityGroupId); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getPolicy() { + return this.policy; + } + + public void setPolicy(String policy) { + this.policy = policy; + if(policy != null){ + putQueryParameter("Policy", policy); + } + } + + public String getIpv6DestCidrIp() { + return this.ipv6DestCidrIp; + } + + public void setIpv6DestCidrIp(String ipv6DestCidrIp) { + this.ipv6DestCidrIp = ipv6DestCidrIp; + if(ipv6DestCidrIp != null){ + putQueryParameter("Ipv6DestCidrIp", ipv6DestCidrIp); + } + } + + public String getIpv6SourceCidrIp() { + return this.ipv6SourceCidrIp; + } + + public void setIpv6SourceCidrIp(String ipv6SourceCidrIp) { + this.ipv6SourceCidrIp = ipv6SourceCidrIp; + if(ipv6SourceCidrIp != null){ + putQueryParameter("Ipv6SourceCidrIp", ipv6SourceCidrIp); + } + } + + public String getPortRange() { + return this.portRange; + } + + public void setPortRange(String portRange) { + this.portRange = portRange; + if(portRange != null){ + putQueryParameter("PortRange", portRange); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getIpProtocol() { + return this.ipProtocol; + } + + public void setIpProtocol(String ipProtocol) { + this.ipProtocol = ipProtocol; + if(ipProtocol != null){ + putQueryParameter("IpProtocol", ipProtocol); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getSourceCidrIp() { + return this.sourceCidrIp; + } + + public void setSourceCidrIp(String sourceCidrIp) { + this.sourceCidrIp = sourceCidrIp; + if(sourceCidrIp != null){ + putQueryParameter("SourceCidrIp", sourceCidrIp); + } + } + + public String getDestGroupId() { + return this.destGroupId; + } + + public void setDestGroupId(String destGroupId) { + this.destGroupId = destGroupId; + if(destGroupId != null){ + putQueryParameter("DestGroupId", destGroupId); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getPriority() { + return this.priority; + } + + public void setPriority(String priority) { + this.priority = priority; + if(priority != null){ + putQueryParameter("Priority", priority); + } + } + + public String getDestGroupOwnerAccount() { + return this.destGroupOwnerAccount; + } + + public void setDestGroupOwnerAccount(String destGroupOwnerAccount) { + this.destGroupOwnerAccount = destGroupOwnerAccount; + if(destGroupOwnerAccount != null){ + putQueryParameter("DestGroupOwnerAccount", destGroupOwnerAccount); + } + } + + public String getDestCidrIp() { + return this.destCidrIp; + } + + public void setDestCidrIp(String destCidrIp) { + this.destCidrIp = destCidrIp; + if(destCidrIp != null){ + putQueryParameter("DestCidrIp", destCidrIp); + } + } + + public Long getDestGroupOwnerId() { + return this.destGroupOwnerId; + } + + public void setDestGroupOwnerId(Long destGroupOwnerId) { + this.destGroupOwnerId = destGroupOwnerId; + if(destGroupOwnerId != null){ + putQueryParameter("DestGroupOwnerId", destGroupOwnerId.toString()); + } + } + + public String getSecurityGroupRuleId() { + return this.securityGroupRuleId; + } + + public void setSecurityGroupRuleId(String securityGroupRuleId) { + this.securityGroupRuleId = securityGroupRuleId; + if(securityGroupRuleId != null){ + putQueryParameter("SecurityGroupRuleId", securityGroupRuleId); + } + } + + @Override + public Class getResponseClass() { + return ModifySecurityGroupEgressRuleResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySecurityGroupEgressRuleResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySecurityGroupEgressRuleResponse.java new file mode 100644 index 0000000000..81bf73f5f0 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySecurityGroupEgressRuleResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifySecurityGroupEgressRuleResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifySecurityGroupEgressRuleResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifySecurityGroupEgressRuleResponse getInstance(UnmarshallerContext context) { + return ModifySecurityGroupEgressRuleResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySecurityGroupPolicyRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySecurityGroupPolicyRequest.java new file mode 100644 index 0000000000..5daf5aa8a8 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySecurityGroupPolicyRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifySecurityGroupPolicyRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private String securityGroupId; + + private String innerAccessPolicy; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public ModifySecurityGroupPolicyRequest() { + super("Ecs", "2014-05-26", "ModifySecurityGroupPolicy", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getSecurityGroupId() { + return this.securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + if(securityGroupId != null){ + putQueryParameter("SecurityGroupId", securityGroupId); + } + } + + public String getInnerAccessPolicy() { + return this.innerAccessPolicy; + } + + public void setInnerAccessPolicy(String innerAccessPolicy) { + this.innerAccessPolicy = innerAccessPolicy; + if(innerAccessPolicy != null){ + putQueryParameter("InnerAccessPolicy", innerAccessPolicy); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return ModifySecurityGroupPolicyResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySecurityGroupPolicyResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySecurityGroupPolicyResponse.java new file mode 100644 index 0000000000..76032cbd80 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySecurityGroupPolicyResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifySecurityGroupPolicyResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifySecurityGroupPolicyResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifySecurityGroupPolicyResponse getInstance(UnmarshallerContext context) { + return ModifySecurityGroupPolicyResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySecurityGroupRuleRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySecurityGroupRuleRequest.java new file mode 100644 index 0000000000..9aef6dbf11 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySecurityGroupRuleRequest.java @@ -0,0 +1,327 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifySecurityGroupRuleRequest extends RpcAcsRequest { + + + private String nicType; + + private Long resourceOwnerId; + + private String sourcePrefixListId; + + private String sourcePortRange; + + private String clientToken; + + private String securityGroupId; + + private String description; + + private Long sourceGroupOwnerId; + + private String sourceGroupOwnerAccount; + + private String policy; + + private String ipv6SourceCidrIp; + + private String ipv6DestCidrIp; + + private String portRange; + + private String resourceOwnerAccount; + + private String ipProtocol; + + private String ownerAccount; + + private String sourceCidrIp; + + private Long ownerId; + + private String priority; + + private String destCidrIp; + + private String sourceGroupId; + + private String securityGroupRuleId; + public ModifySecurityGroupRuleRequest() { + super("Ecs", "2014-05-26", "ModifySecurityGroupRule", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getNicType() { + return this.nicType; + } + + public void setNicType(String nicType) { + this.nicType = nicType; + if(nicType != null){ + putQueryParameter("NicType", nicType); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getSourcePrefixListId() { + return this.sourcePrefixListId; + } + + public void setSourcePrefixListId(String sourcePrefixListId) { + this.sourcePrefixListId = sourcePrefixListId; + if(sourcePrefixListId != null){ + putQueryParameter("SourcePrefixListId", sourcePrefixListId); + } + } + + public String getSourcePortRange() { + return this.sourcePortRange; + } + + public void setSourcePortRange(String sourcePortRange) { + this.sourcePortRange = sourcePortRange; + if(sourcePortRange != null){ + putQueryParameter("SourcePortRange", sourcePortRange); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getSecurityGroupId() { + return this.securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + if(securityGroupId != null){ + putQueryParameter("SecurityGroupId", securityGroupId); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public Long getSourceGroupOwnerId() { + return this.sourceGroupOwnerId; + } + + public void setSourceGroupOwnerId(Long sourceGroupOwnerId) { + this.sourceGroupOwnerId = sourceGroupOwnerId; + if(sourceGroupOwnerId != null){ + putQueryParameter("SourceGroupOwnerId", sourceGroupOwnerId.toString()); + } + } + + public String getSourceGroupOwnerAccount() { + return this.sourceGroupOwnerAccount; + } + + public void setSourceGroupOwnerAccount(String sourceGroupOwnerAccount) { + this.sourceGroupOwnerAccount = sourceGroupOwnerAccount; + if(sourceGroupOwnerAccount != null){ + putQueryParameter("SourceGroupOwnerAccount", sourceGroupOwnerAccount); + } + } + + public String getPolicy() { + return this.policy; + } + + public void setPolicy(String policy) { + this.policy = policy; + if(policy != null){ + putQueryParameter("Policy", policy); + } + } + + public String getIpv6SourceCidrIp() { + return this.ipv6SourceCidrIp; + } + + public void setIpv6SourceCidrIp(String ipv6SourceCidrIp) { + this.ipv6SourceCidrIp = ipv6SourceCidrIp; + if(ipv6SourceCidrIp != null){ + putQueryParameter("Ipv6SourceCidrIp", ipv6SourceCidrIp); + } + } + + public String getIpv6DestCidrIp() { + return this.ipv6DestCidrIp; + } + + public void setIpv6DestCidrIp(String ipv6DestCidrIp) { + this.ipv6DestCidrIp = ipv6DestCidrIp; + if(ipv6DestCidrIp != null){ + putQueryParameter("Ipv6DestCidrIp", ipv6DestCidrIp); + } + } + + public String getPortRange() { + return this.portRange; + } + + public void setPortRange(String portRange) { + this.portRange = portRange; + if(portRange != null){ + putQueryParameter("PortRange", portRange); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getIpProtocol() { + return this.ipProtocol; + } + + public void setIpProtocol(String ipProtocol) { + this.ipProtocol = ipProtocol; + if(ipProtocol != null){ + putQueryParameter("IpProtocol", ipProtocol); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getSourceCidrIp() { + return this.sourceCidrIp; + } + + public void setSourceCidrIp(String sourceCidrIp) { + this.sourceCidrIp = sourceCidrIp; + if(sourceCidrIp != null){ + putQueryParameter("SourceCidrIp", sourceCidrIp); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getPriority() { + return this.priority; + } + + public void setPriority(String priority) { + this.priority = priority; + if(priority != null){ + putQueryParameter("Priority", priority); + } + } + + public String getDestCidrIp() { + return this.destCidrIp; + } + + public void setDestCidrIp(String destCidrIp) { + this.destCidrIp = destCidrIp; + if(destCidrIp != null){ + putQueryParameter("DestCidrIp", destCidrIp); + } + } + + public String getSourceGroupId() { + return this.sourceGroupId; + } + + public void setSourceGroupId(String sourceGroupId) { + this.sourceGroupId = sourceGroupId; + if(sourceGroupId != null){ + putQueryParameter("SourceGroupId", sourceGroupId); + } + } + + public String getSecurityGroupRuleId() { + return this.securityGroupRuleId; + } + + public void setSecurityGroupRuleId(String securityGroupRuleId) { + this.securityGroupRuleId = securityGroupRuleId; + if(securityGroupRuleId != null){ + putQueryParameter("SecurityGroupRuleId", securityGroupRuleId); + } + } + + @Override + public Class getResponseClass() { + return ModifySecurityGroupRuleResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySecurityGroupRuleResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySecurityGroupRuleResponse.java new file mode 100644 index 0000000000..2b3976997a --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySecurityGroupRuleResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifySecurityGroupRuleResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifySecurityGroupRuleResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifySecurityGroupRuleResponse getInstance(UnmarshallerContext context) { + return ModifySecurityGroupRuleResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySnapshotAttributeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySnapshotAttributeRequest.java new file mode 100644 index 0000000000..e1dd0435cf --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySnapshotAttributeRequest.java @@ -0,0 +1,145 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifySnapshotAttributeRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String snapshotId; + + private String description; + + private String snapshotName; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private Boolean disableInstantAccess; + public ModifySnapshotAttributeRequest() { + super("Ecs", "2014-05-26", "ModifySnapshotAttribute", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getSnapshotId() { + return this.snapshotId; + } + + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; + if(snapshotId != null){ + putQueryParameter("SnapshotId", snapshotId); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getSnapshotName() { + return this.snapshotName; + } + + public void setSnapshotName(String snapshotName) { + this.snapshotName = snapshotName; + if(snapshotName != null){ + putQueryParameter("SnapshotName", snapshotName); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public Boolean getDisableInstantAccess() { + return this.disableInstantAccess; + } + + public void setDisableInstantAccess(Boolean disableInstantAccess) { + this.disableInstantAccess = disableInstantAccess; + if(disableInstantAccess != null){ + putQueryParameter("DisableInstantAccess", disableInstantAccess.toString()); + } + } + + @Override + public Class getResponseClass() { + return ModifySnapshotAttributeResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySnapshotAttributeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySnapshotAttributeResponse.java new file mode 100644 index 0000000000..a7782dfa48 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySnapshotAttributeResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifySnapshotAttributeResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifySnapshotAttributeResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifySnapshotAttributeResponse getInstance(UnmarshallerContext context) { + return ModifySnapshotAttributeResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySnapshotGroupRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySnapshotGroupRequest.java new file mode 100644 index 0000000000..23e5cc27a2 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySnapshotGroupRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifySnapshotGroupRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String description; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String snapshotGroupId; + + private Long ownerId; + + private String name; + public ModifySnapshotGroupRequest() { + super("Ecs", "2014-05-26", "ModifySnapshotGroup", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getSnapshotGroupId() { + return this.snapshotGroupId; + } + + public void setSnapshotGroupId(String snapshotGroupId) { + this.snapshotGroupId = snapshotGroupId; + if(snapshotGroupId != null){ + putQueryParameter("SnapshotGroupId", snapshotGroupId); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + if(name != null){ + putQueryParameter("Name", name); + } + } + + @Override + public Class getResponseClass() { + return ModifySnapshotGroupResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySnapshotGroupResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySnapshotGroupResponse.java new file mode 100644 index 0000000000..3e1fa98a83 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifySnapshotGroupResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifySnapshotGroupResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifySnapshotGroupResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifySnapshotGroupResponse getInstance(UnmarshallerContext context) { + return ModifySnapshotGroupResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyStorageCapacityUnitAttributeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyStorageCapacityUnitAttributeRequest.java new file mode 100644 index 0000000000..22ce4e3b58 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyStorageCapacityUnitAttributeRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyStorageCapacityUnitAttributeRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String description; + + private String storageCapacityUnitId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String name; + public ModifyStorageCapacityUnitAttributeRequest() { + super("Ecs", "2014-05-26", "ModifyStorageCapacityUnitAttribute", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getStorageCapacityUnitId() { + return this.storageCapacityUnitId; + } + + public void setStorageCapacityUnitId(String storageCapacityUnitId) { + this.storageCapacityUnitId = storageCapacityUnitId; + if(storageCapacityUnitId != null){ + putQueryParameter("StorageCapacityUnitId", storageCapacityUnitId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + if(name != null){ + putQueryParameter("Name", name); + } + } + + @Override + public Class getResponseClass() { + return ModifyStorageCapacityUnitAttributeResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyStorageCapacityUnitAttributeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyStorageCapacityUnitAttributeResponse.java new file mode 100644 index 0000000000..8d57e13ec4 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyStorageCapacityUnitAttributeResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyStorageCapacityUnitAttributeResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyStorageCapacityUnitAttributeResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyStorageCapacityUnitAttributeResponse getInstance(UnmarshallerContext context) { + return ModifyStorageCapacityUnitAttributeResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyStorageSetAttributeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyStorageSetAttributeRequest.java similarity index 94% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyStorageSetAttributeRequest.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyStorageSetAttributeRequest.java index 448e094bb0..dd4d234be4 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyStorageSetAttributeRequest.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyStorageSetAttributeRequest.java @@ -12,7 +12,7 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.RpcAcsRequest; import com.aliyuncs.http.MethodType; @@ -41,7 +41,7 @@ public class ModifyStorageSetAttributeRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String statusValue; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String statusKey; + public ModifyUserBusinessBehaviorRequest() { + super("Ecs", "2014-05-26", "ModifyUserBusinessBehavior", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getStatusValue() { + return this.statusValue; + } + + public void setStatusValue(String statusValue) { + this.statusValue = statusValue; + if(statusValue != null){ + putQueryParameter("statusValue", statusValue); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getStatusKey() { + return this.statusKey; + } + + public void setStatusKey(String statusKey) { + this.statusKey = statusKey; + if(statusKey != null){ + putQueryParameter("statusKey", statusKey); + } + } + + @Override + public Class getResponseClass() { + return ModifyUserBusinessBehaviorResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyUserBusinessBehaviorResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyUserBusinessBehaviorResponse.java new file mode 100644 index 0000000000..a7e2d7071b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyUserBusinessBehaviorResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyUserBusinessBehaviorResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyUserBusinessBehaviorResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyUserBusinessBehaviorResponse getInstance(UnmarshallerContext context) { + return ModifyUserBusinessBehaviorResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyVRouterAttributeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyVRouterAttributeRequest.java new file mode 100644 index 0000000000..d5b8d9bf2e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyVRouterAttributeRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyVRouterAttributeRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String vRouterId; + + private String description; + + private String vRouterName; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public ModifyVRouterAttributeRequest() { + super("Ecs", "2014-05-26", "ModifyVRouterAttribute", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getVRouterId() { + return this.vRouterId; + } + + public void setVRouterId(String vRouterId) { + this.vRouterId = vRouterId; + if(vRouterId != null){ + putQueryParameter("VRouterId", vRouterId); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getVRouterName() { + return this.vRouterName; + } + + public void setVRouterName(String vRouterName) { + this.vRouterName = vRouterName; + if(vRouterName != null){ + putQueryParameter("VRouterName", vRouterName); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return ModifyVRouterAttributeResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyVRouterAttributeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyVRouterAttributeResponse.java new file mode 100644 index 0000000000..9e096f668f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyVRouterAttributeResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyVRouterAttributeResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyVRouterAttributeResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyVRouterAttributeResponse getInstance(UnmarshallerContext context) { + return ModifyVRouterAttributeResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyVSwitchAttributeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyVSwitchAttributeRequest.java new file mode 100644 index 0000000000..2e1d0fc623 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyVSwitchAttributeRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyVSwitchAttributeRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String description; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String vSwitchId; + + private String vSwitchName; + public ModifyVSwitchAttributeRequest() { + super("Ecs", "2014-05-26", "ModifyVSwitchAttribute", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getVSwitchId() { + return this.vSwitchId; + } + + public void setVSwitchId(String vSwitchId) { + this.vSwitchId = vSwitchId; + if(vSwitchId != null){ + putQueryParameter("VSwitchId", vSwitchId); + } + } + + public String getVSwitchName() { + return this.vSwitchName; + } + + public void setVSwitchName(String vSwitchName) { + this.vSwitchName = vSwitchName; + if(vSwitchName != null){ + putQueryParameter("VSwitchName", vSwitchName); + } + } + + @Override + public Class getResponseClass() { + return ModifyVSwitchAttributeResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyVSwitchAttributeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyVSwitchAttributeResponse.java new file mode 100644 index 0000000000..35d7b8bd63 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyVSwitchAttributeResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyVSwitchAttributeResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyVSwitchAttributeResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyVSwitchAttributeResponse getInstance(UnmarshallerContext context) { + return ModifyVSwitchAttributeResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyVirtualBorderRouterAttributeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyVirtualBorderRouterAttributeRequest.java new file mode 100644 index 0000000000..4c74fcf42b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyVirtualBorderRouterAttributeRequest.java @@ -0,0 +1,223 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyVirtualBorderRouterAttributeRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String circuitCode; + + private Integer vlanId; + + private String clientToken; + + private String description; + + private String vbrId; + + private String peerGatewayIp; + + private String peeringSubnetMask; + + private String localGatewayIp; + + private String userCidr; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String name; + public ModifyVirtualBorderRouterAttributeRequest() { + super("Ecs", "2014-05-26", "ModifyVirtualBorderRouterAttribute", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getCircuitCode() { + return this.circuitCode; + } + + public void setCircuitCode(String circuitCode) { + this.circuitCode = circuitCode; + if(circuitCode != null){ + putQueryParameter("CircuitCode", circuitCode); + } + } + + public Integer getVlanId() { + return this.vlanId; + } + + public void setVlanId(Integer vlanId) { + this.vlanId = vlanId; + if(vlanId != null){ + putQueryParameter("VlanId", vlanId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getVbrId() { + return this.vbrId; + } + + public void setVbrId(String vbrId) { + this.vbrId = vbrId; + if(vbrId != null){ + putQueryParameter("VbrId", vbrId); + } + } + + public String getPeerGatewayIp() { + return this.peerGatewayIp; + } + + public void setPeerGatewayIp(String peerGatewayIp) { + this.peerGatewayIp = peerGatewayIp; + if(peerGatewayIp != null){ + putQueryParameter("PeerGatewayIp", peerGatewayIp); + } + } + + public String getPeeringSubnetMask() { + return this.peeringSubnetMask; + } + + public void setPeeringSubnetMask(String peeringSubnetMask) { + this.peeringSubnetMask = peeringSubnetMask; + if(peeringSubnetMask != null){ + putQueryParameter("PeeringSubnetMask", peeringSubnetMask); + } + } + + public String getLocalGatewayIp() { + return this.localGatewayIp; + } + + public void setLocalGatewayIp(String localGatewayIp) { + this.localGatewayIp = localGatewayIp; + if(localGatewayIp != null){ + putQueryParameter("LocalGatewayIp", localGatewayIp); + } + } + + public String getUserCidr() { + return this.userCidr; + } + + public void setUserCidr(String userCidr) { + this.userCidr = userCidr; + if(userCidr != null){ + putQueryParameter("UserCidr", userCidr); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + if(name != null){ + putQueryParameter("Name", name); + } + } + + @Override + public Class getResponseClass() { + return ModifyVirtualBorderRouterAttributeResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyVirtualBorderRouterAttributeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyVirtualBorderRouterAttributeResponse.java new file mode 100644 index 0000000000..023819bf3d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyVirtualBorderRouterAttributeResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyVirtualBorderRouterAttributeResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyVirtualBorderRouterAttributeResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyVirtualBorderRouterAttributeResponse getInstance(UnmarshallerContext context) { + return ModifyVirtualBorderRouterAttributeResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyVpcAttributeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyVpcAttributeRequest.java new file mode 100644 index 0000000000..90e36eba26 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyVpcAttributeRequest.java @@ -0,0 +1,158 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ModifyVpcAttributeRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String description; + + private String vpcName; + + private String userCidr; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String vpcId; + + private String cidrBlock; + public ModifyVpcAttributeRequest() { + super("Ecs", "2014-05-26", "ModifyVpcAttribute", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getVpcName() { + return this.vpcName; + } + + public void setVpcName(String vpcName) { + this.vpcName = vpcName; + if(vpcName != null){ + putQueryParameter("VpcName", vpcName); + } + } + + public String getUserCidr() { + return this.userCidr; + } + + public void setUserCidr(String userCidr) { + this.userCidr = userCidr; + if(userCidr != null){ + putQueryParameter("UserCidr", userCidr); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + if(vpcId != null){ + putQueryParameter("VpcId", vpcId); + } + } + + public String getCidrBlock() { + return this.cidrBlock; + } + + public void setCidrBlock(String cidrBlock) { + this.cidrBlock = cidrBlock; + if(cidrBlock != null){ + putQueryParameter("CidrBlock", cidrBlock); + } + } + + @Override + public Class getResponseClass() { + return ModifyVpcAttributeResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyVpcAttributeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyVpcAttributeResponse.java new file mode 100644 index 0000000000..1975125d82 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ModifyVpcAttributeResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ModifyVpcAttributeResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyVpcAttributeResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ModifyVpcAttributeResponse getInstance(UnmarshallerContext context) { + return ModifyVpcAttributeResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/PurchaseReservedInstancesOfferingRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/PurchaseReservedInstancesOfferingRequest.java similarity index 81% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/PurchaseReservedInstancesOfferingRequest.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/PurchaseReservedInstancesOfferingRequest.java index 800600379b..28432a8265 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/PurchaseReservedInstancesOfferingRequest.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/PurchaseReservedInstancesOfferingRequest.java @@ -12,7 +12,7 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.RpcAcsRequest; import java.util.List; @@ -32,8 +32,6 @@ public class PurchaseReservedInstancesOfferingRequest extends RpcAcsRequest tags; - private String businessInfo; - private Integer autoRenewPeriod; private Integer period; - private Boolean autoPay; - - private String fromApp; - private String resourceOwnerAccount; private String ownerAccount; @@ -70,11 +62,9 @@ public class PurchaseReservedInstancesOfferingRequest extends RpcAcsRequest tags) { } } - public String getBusinessInfo() { - return this.businessInfo; - } - - public void setBusinessInfo(String businessInfo) { - this.businessInfo = businessInfo; - if(businessInfo != null){ - putQueryParameter("BusinessInfo", businessInfo); - } - } - public Integer getAutoRenewPeriod() { return this.autoRenewPeriod; } @@ -217,28 +185,6 @@ public void setPeriod(Integer period) { } } - public Boolean getAutoPay() { - return this.autoPay; - } - - public void setAutoPay(Boolean autoPay) { - this.autoPay = autoPay; - if(autoPay != null){ - putQueryParameter("AutoPay", autoPay.toString()); - } - } - - public String getFromApp() { - return this.fromApp; - } - - public void setFromApp(String fromApp) { - this.fromApp = fromApp; - if(fromApp != null){ - putQueryParameter("FromApp", fromApp); - } - } - public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } @@ -327,17 +273,6 @@ public void setReservedInstanceName(String reservedInstanceName) { } } - public String getChargeType() { - return this.chargeType; - } - - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - if(chargeType != null){ - putQueryParameter("ChargeType", chargeType); - } - } - public Integer getInstanceAmount() { return this.instanceAmount; } diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/PurchaseReservedInstancesOfferingResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/PurchaseReservedInstancesOfferingResponse.java similarity index 83% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/PurchaseReservedInstancesOfferingResponse.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/PurchaseReservedInstancesOfferingResponse.java index 07ba55a3f6..6ef95284b7 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/PurchaseReservedInstancesOfferingResponse.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/PurchaseReservedInstancesOfferingResponse.java @@ -12,11 +12,11 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import java.util.List; import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.PurchaseReservedInstancesOfferingResponseUnmarshaller; +import com.aliyuncs.ecs.transform.v20140526.PurchaseReservedInstancesOfferingResponseUnmarshaller; import com.aliyuncs.transform.UnmarshallerContext; /** @@ -25,20 +25,10 @@ */ public class PurchaseReservedInstancesOfferingResponse extends AcsResponse { - private String orderId; - private String requestId; private List reservedInstanceIdSets; - public String getOrderId() { - return this.orderId; - } - - public void setOrderId(String orderId) { - this.orderId = orderId; - } - public String getRequestId() { return this.requestId; } diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/PurchaseStorageCapacityUnitRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/PurchaseStorageCapacityUnitRequest.java similarity index 90% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/PurchaseStorageCapacityUnitRequest.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/PurchaseStorageCapacityUnitRequest.java index 3119784e6d..dc9ef3cbf2 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/PurchaseStorageCapacityUnitRequest.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/PurchaseStorageCapacityUnitRequest.java @@ -12,7 +12,7 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.RpcAcsRequest; import java.util.List; @@ -34,8 +34,6 @@ public class PurchaseStorageCapacityUnitRequest extends RpcAcsRequest tags; @@ -56,7 +54,7 @@ public class PurchaseStorageCapacityUnitRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceId; + public ReActivateInstancesRequest() { + super("Ecs", "2014-05-26", "ReActivateInstances", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + @Override + public Class getResponseClass() { + return ReActivateInstancesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReActivateInstancesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReActivateInstancesResponse.java new file mode 100644 index 0000000000..664b85eae9 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReActivateInstancesResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ReActivateInstancesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ReActivateInstancesResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ReActivateInstancesResponse getInstance(UnmarshallerContext context) { + return ReActivateInstancesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReInitDiskRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReInitDiskRequest.java new file mode 100644 index 0000000000..9fc471c387 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReInitDiskRequest.java @@ -0,0 +1,158 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ReInitDiskRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Boolean autoStartInstance; + + private String securityEnhancementStrategy; + + private String keyPairName; + + private String password; + + private String diskId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public ReInitDiskRequest() { + super("Ecs", "2014-05-26", "ReInitDisk", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Boolean getAutoStartInstance() { + return this.autoStartInstance; + } + + public void setAutoStartInstance(Boolean autoStartInstance) { + this.autoStartInstance = autoStartInstance; + if(autoStartInstance != null){ + putQueryParameter("AutoStartInstance", autoStartInstance.toString()); + } + } + + public String getSecurityEnhancementStrategy() { + return this.securityEnhancementStrategy; + } + + public void setSecurityEnhancementStrategy(String securityEnhancementStrategy) { + this.securityEnhancementStrategy = securityEnhancementStrategy; + if(securityEnhancementStrategy != null){ + putQueryParameter("SecurityEnhancementStrategy", securityEnhancementStrategy); + } + } + + public String getKeyPairName() { + return this.keyPairName; + } + + public void setKeyPairName(String keyPairName) { + this.keyPairName = keyPairName; + if(keyPairName != null){ + putQueryParameter("KeyPairName", keyPairName); + } + } + + public String getPassword() { + return this.password; + } + + public void setPassword(String password) { + this.password = password; + if(password != null){ + putQueryParameter("Password", password); + } + } + + public String getDiskId() { + return this.diskId; + } + + public void setDiskId(String diskId) { + this.diskId = diskId; + if(diskId != null){ + putQueryParameter("DiskId", diskId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return ReInitDiskResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReInitDiskResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReInitDiskResponse.java new file mode 100644 index 0000000000..a110fdeea1 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReInitDiskResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ReInitDiskResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ReInitDiskResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ReInitDiskResponse getInstance(UnmarshallerContext context) { + return ReInitDiskResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RebootInstanceRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RebootInstanceRequest.java new file mode 100644 index 0000000000..20fb53df6b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RebootInstanceRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class RebootInstanceRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Boolean forceStop; + + private Boolean dryRun; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceId; + public RebootInstanceRequest() { + super("Ecs", "2014-05-26", "RebootInstance", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Boolean getForceStop() { + return this.forceStop; + } + + public void setForceStop(Boolean forceStop) { + this.forceStop = forceStop; + if(forceStop != null){ + putQueryParameter("ForceStop", forceStop.toString()); + } + } + + public Boolean getDryRun() { + return this.dryRun; + } + + public void setDryRun(Boolean dryRun) { + this.dryRun = dryRun; + if(dryRun != null){ + putQueryParameter("DryRun", dryRun.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + @Override + public Class getResponseClass() { + return RebootInstanceResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RebootInstanceResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RebootInstanceResponse.java new file mode 100644 index 0000000000..0f4c0043b4 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RebootInstanceResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.RebootInstanceResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class RebootInstanceResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public RebootInstanceResponse getInstance(UnmarshallerContext context) { + return RebootInstanceResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RebootInstancesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RebootInstancesRequest.java new file mode 100644 index 0000000000..d68c732696 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RebootInstancesRequest.java @@ -0,0 +1,148 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class RebootInstancesRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String batchOptimization; + + private Boolean dryRun; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private Boolean forceReboot; + + private List instanceIds; + public RebootInstancesRequest() { + super("Ecs", "2014-05-26", "RebootInstances", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getBatchOptimization() { + return this.batchOptimization; + } + + public void setBatchOptimization(String batchOptimization) { + this.batchOptimization = batchOptimization; + if(batchOptimization != null){ + putQueryParameter("BatchOptimization", batchOptimization); + } + } + + public Boolean getDryRun() { + return this.dryRun; + } + + public void setDryRun(Boolean dryRun) { + this.dryRun = dryRun; + if(dryRun != null){ + putQueryParameter("DryRun", dryRun.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public Boolean getForceReboot() { + return this.forceReboot; + } + + public void setForceReboot(Boolean forceReboot) { + this.forceReboot = forceReboot; + if(forceReboot != null){ + putQueryParameter("ForceReboot", forceReboot.toString()); + } + } + + public List getInstanceIds() { + return this.instanceIds; + } + + public void setInstanceIds(List instanceIds) { + this.instanceIds = instanceIds; + if (instanceIds != null) { + for (int i = 0; i < instanceIds.size(); i++) { + putQueryParameter("InstanceId." + (i + 1) , instanceIds.get(i)); + } + } + } + + @Override + public Class getResponseClass() { + return RebootInstancesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RebootInstancesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RebootInstancesResponse.java new file mode 100644 index 0000000000..b9f30b909b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RebootInstancesResponse.java @@ -0,0 +1,105 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.RebootInstancesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class RebootInstancesResponse extends AcsResponse { + + private String requestId; + + private List instanceResponses; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getInstanceResponses() { + return this.instanceResponses; + } + + public void setInstanceResponses(List instanceResponses) { + this.instanceResponses = instanceResponses; + } + + public static class InstanceResponse { + + private String code; + + private String message; + + private String instanceId; + + private String currentStatus; + + private String previousStatus; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getMessage() { + return this.message; + } + + public void setMessage(String message) { + this.message = message; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getCurrentStatus() { + return this.currentStatus; + } + + public void setCurrentStatus(String currentStatus) { + this.currentStatus = currentStatus; + } + + public String getPreviousStatus() { + return this.previousStatus; + } + + public void setPreviousStatus(String previousStatus) { + this.previousStatus = previousStatus; + } + } + + @Override + public RebootInstancesResponse getInstance(UnmarshallerContext context) { + return RebootInstancesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RecoverVirtualBorderRouterRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RecoverVirtualBorderRouterRequest.java new file mode 100644 index 0000000000..1a9288c66f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RecoverVirtualBorderRouterRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class RecoverVirtualBorderRouterRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private String vbrId; + + private String userCidr; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public RecoverVirtualBorderRouterRequest() { + super("Ecs", "2014-05-26", "RecoverVirtualBorderRouter", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getVbrId() { + return this.vbrId; + } + + public void setVbrId(String vbrId) { + this.vbrId = vbrId; + if(vbrId != null){ + putQueryParameter("VbrId", vbrId); + } + } + + public String getUserCidr() { + return this.userCidr; + } + + public void setUserCidr(String userCidr) { + this.userCidr = userCidr; + if(userCidr != null){ + putQueryParameter("UserCidr", userCidr); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return RecoverVirtualBorderRouterResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RecoverVirtualBorderRouterResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RecoverVirtualBorderRouterResponse.java new file mode 100644 index 0000000000..e3289428a7 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RecoverVirtualBorderRouterResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.RecoverVirtualBorderRouterResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class RecoverVirtualBorderRouterResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public RecoverVirtualBorderRouterResponse getInstance(UnmarshallerContext context) { + return RecoverVirtualBorderRouterResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RedeployDedicatedHostRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RedeployDedicatedHostRequest.java new file mode 100644 index 0000000000..c04ff61f70 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RedeployDedicatedHostRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class RedeployDedicatedHostRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String dedicatedHostId; + + private Long ownerId; + public RedeployDedicatedHostRequest() { + super("Ecs", "2014-05-26", "RedeployDedicatedHost", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getDedicatedHostId() { + return this.dedicatedHostId; + } + + public void setDedicatedHostId(String dedicatedHostId) { + this.dedicatedHostId = dedicatedHostId; + if(dedicatedHostId != null){ + putQueryParameter("DedicatedHostId", dedicatedHostId); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return RedeployDedicatedHostResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RedeployDedicatedHostResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RedeployDedicatedHostResponse.java new file mode 100644 index 0000000000..7923289a3e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RedeployDedicatedHostResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.RedeployDedicatedHostResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class RedeployDedicatedHostResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public RedeployDedicatedHostResponse getInstance(UnmarshallerContext context) { + return RedeployDedicatedHostResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RedeployInstanceRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RedeployInstanceRequest.java new file mode 100644 index 0000000000..82b4806461 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RedeployInstanceRequest.java @@ -0,0 +1,119 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class RedeployInstanceRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Boolean forceStop; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceId; + public RedeployInstanceRequest() { + super("Ecs", "2014-05-26", "RedeployInstance", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Boolean getForceStop() { + return this.forceStop; + } + + public void setForceStop(Boolean forceStop) { + this.forceStop = forceStop; + if(forceStop != null){ + putQueryParameter("ForceStop", forceStop.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + @Override + public Class getResponseClass() { + return RedeployInstanceResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RedeployInstanceResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RedeployInstanceResponse.java new file mode 100644 index 0000000000..9a6574daa8 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RedeployInstanceResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.RedeployInstanceResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class RedeployInstanceResponse extends AcsResponse { + + private String taskId; + + private String requestId; + + public String getTaskId() { + return this.taskId; + } + + public void setTaskId(String taskId) { + this.taskId = taskId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public RedeployInstanceResponse getInstance(UnmarshallerContext context) { + return RedeployInstanceResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ReleaseCapacityReservationRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReleaseCapacityReservationRequest.java similarity index 77% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ReleaseCapacityReservationRequest.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReleaseCapacityReservationRequest.java index 8470c4ed7d..d8d10e2374 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ReleaseCapacityReservationRequest.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReleaseCapacityReservationRequest.java @@ -12,7 +12,7 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.RpcAcsRequest; import com.aliyuncs.http.MethodType; @@ -27,17 +27,17 @@ public class ReleaseCapacityReservationRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String allocationId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public ReleaseEipAddressRequest() { + super("Ecs", "2014-05-26", "ReleaseEipAddress", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getAllocationId() { + return this.allocationId; + } + + public void setAllocationId(String allocationId) { + this.allocationId = allocationId; + if(allocationId != null){ + putQueryParameter("AllocationId", allocationId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return ReleaseEipAddressResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReleaseEipAddressResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReleaseEipAddressResponse.java new file mode 100644 index 0000000000..617c08279a --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReleaseEipAddressResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ReleaseEipAddressResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ReleaseEipAddressResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ReleaseEipAddressResponse getInstance(UnmarshallerContext context) { + return ReleaseEipAddressResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReleasePublicIpAddressRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReleasePublicIpAddressRequest.java new file mode 100644 index 0000000000..c04016a598 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReleasePublicIpAddressRequest.java @@ -0,0 +1,80 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ReleasePublicIpAddressRequest extends RpcAcsRequest { + + + private Boolean dryRun; + + private String publicIpAddress; + + private String instanceId; + public ReleasePublicIpAddressRequest() { + super("Ecs", "2014-05-26", "ReleasePublicIpAddress", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Boolean getDryRun() { + return this.dryRun; + } + + public void setDryRun(Boolean dryRun) { + this.dryRun = dryRun; + if(dryRun != null){ + putQueryParameter("DryRun", dryRun.toString()); + } + } + + public String getPublicIpAddress() { + return this.publicIpAddress; + } + + public void setPublicIpAddress(String publicIpAddress) { + this.publicIpAddress = publicIpAddress; + if(publicIpAddress != null){ + putQueryParameter("PublicIpAddress", publicIpAddress); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + @Override + public Class getResponseClass() { + return ReleasePublicIpAddressResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReleasePublicIpAddressResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReleasePublicIpAddressResponse.java new file mode 100644 index 0000000000..03985edefa --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReleasePublicIpAddressResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ReleasePublicIpAddressResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ReleasePublicIpAddressResponse extends AcsResponse { + + private String requestId; + + private String remainTimes; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getRemainTimes() { + return this.remainTimes; + } + + public void setRemainTimes(String remainTimes) { + this.remainTimes = remainTimes; + } + + @Override + public ReleasePublicIpAddressResponse getInstance(UnmarshallerContext context) { + return ReleasePublicIpAddressResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RemoveBandwidthPackageIpsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RemoveBandwidthPackageIpsRequest.java new file mode 100644 index 0000000000..ce23e23c80 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RemoveBandwidthPackageIpsRequest.java @@ -0,0 +1,135 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class RemoveBandwidthPackageIpsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private List removedIpAddressess; + + private String bandwidthPackageId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public RemoveBandwidthPackageIpsRequest() { + super("Ecs", "2014-05-26", "RemoveBandwidthPackageIps", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public List getRemovedIpAddressess() { + return this.removedIpAddressess; + } + + public void setRemovedIpAddressess(List removedIpAddressess) { + this.removedIpAddressess = removedIpAddressess; + if (removedIpAddressess != null) { + for (int i = 0; i < removedIpAddressess.size(); i++) { + putQueryParameter("RemovedIpAddresses." + (i + 1) , removedIpAddressess.get(i)); + } + } + } + + public String getBandwidthPackageId() { + return this.bandwidthPackageId; + } + + public void setBandwidthPackageId(String bandwidthPackageId) { + this.bandwidthPackageId = bandwidthPackageId; + if(bandwidthPackageId != null){ + putQueryParameter("BandwidthPackageId", bandwidthPackageId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return RemoveBandwidthPackageIpsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RemoveBandwidthPackageIpsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RemoveBandwidthPackageIpsResponse.java new file mode 100644 index 0000000000..e543f24a87 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RemoveBandwidthPackageIpsResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.RemoveBandwidthPackageIpsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class RemoveBandwidthPackageIpsResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public RemoveBandwidthPackageIpsResponse getInstance(UnmarshallerContext context) { + return RemoveBandwidthPackageIpsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RemoveTagsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RemoveTagsRequest.java new file mode 100644 index 0000000000..501a500887 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RemoveTagsRequest.java @@ -0,0 +1,146 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class RemoveTagsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private List tags; + + private String resourceId; + + private String resourceOwnerAccount; + + private Long ownerId; + + private String resourceType; + public RemoveTagsRequest() { + super("Ecs", "2014-05-26", "RemoveTags", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + } + } + } + + public String getResourceId() { + return this.resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + if(resourceId != null){ + putQueryParameter("ResourceId", resourceId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getResourceType() { + return this.resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + if(resourceType != null){ + putQueryParameter("ResourceType", resourceType); + } + } + + public static class Tag { + + private String value; + + private String key; + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + } + + @Override + public Class getResponseClass() { + return RemoveTagsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RemoveTagsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RemoveTagsResponse.java new file mode 100644 index 0000000000..d94e2bc2b8 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RemoveTagsResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.RemoveTagsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class RemoveTagsResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public RemoveTagsResponse getInstance(UnmarshallerContext context) { + return RemoveTagsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/RenewDedicatedHostsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RenewDedicatedHostsRequest.java similarity index 83% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/RenewDedicatedHostsRequest.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RenewDedicatedHostsRequest.java index a246fa0779..fd5b6378a8 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/RenewDedicatedHostsRequest.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RenewDedicatedHostsRequest.java @@ -12,7 +12,7 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.RpcAcsRequest; import com.aliyuncs.http.MethodType; @@ -31,12 +31,8 @@ public class RenewDedicatedHostsRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private Integer period; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Integer expectedRenewDay; + + private Long ownerId; + + private String periodUnit; + + private String instanceId; + public RenewInstanceRequest() { + super("Ecs", "2014-05-26", "RenewInstance", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public Integer getPeriod() { + return this.period; + } + + public void setPeriod(Integer period) { + this.period = period; + if(period != null){ + putQueryParameter("Period", period.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Integer getExpectedRenewDay() { + return this.expectedRenewDay; + } + + public void setExpectedRenewDay(Integer expectedRenewDay) { + this.expectedRenewDay = expectedRenewDay; + if(expectedRenewDay != null){ + putQueryParameter("ExpectedRenewDay", expectedRenewDay.toString()); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getPeriodUnit() { + return this.periodUnit; + } + + public void setPeriodUnit(String periodUnit) { + this.periodUnit = periodUnit; + if(periodUnit != null){ + putQueryParameter("PeriodUnit", periodUnit); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + @Override + public Class getResponseClass() { + return RenewInstanceResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RenewInstanceResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RenewInstanceResponse.java new file mode 100644 index 0000000000..ce37f8590d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RenewInstanceResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.RenewInstanceResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class RenewInstanceResponse extends AcsResponse { + + private String orderId; + + private String requestId; + + public String getOrderId() { + return this.orderId; + } + + public void setOrderId(String orderId) { + this.orderId = orderId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public RenewInstanceResponse getInstance(UnmarshallerContext context) { + return RenewInstanceResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RenewReservedInstancesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RenewReservedInstancesRequest.java new file mode 100644 index 0000000000..953962c495 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RenewReservedInstancesRequest.java @@ -0,0 +1,174 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class RenewReservedInstancesRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private Integer autoRenewPeriod; + + private Integer period; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String periodUnit; + + private List reservedInstanceIds; + + private Boolean autoRenew; + public RenewReservedInstancesRequest() { + super("Ecs", "2014-05-26", "RenewReservedInstances", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public Integer getAutoRenewPeriod() { + return this.autoRenewPeriod; + } + + public void setAutoRenewPeriod(Integer autoRenewPeriod) { + this.autoRenewPeriod = autoRenewPeriod; + if(autoRenewPeriod != null){ + putQueryParameter("AutoRenewPeriod", autoRenewPeriod.toString()); + } + } + + public Integer getPeriod() { + return this.period; + } + + public void setPeriod(Integer period) { + this.period = period; + if(period != null){ + putQueryParameter("Period", period.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getPeriodUnit() { + return this.periodUnit; + } + + public void setPeriodUnit(String periodUnit) { + this.periodUnit = periodUnit; + if(periodUnit != null){ + putQueryParameter("PeriodUnit", periodUnit); + } + } + + public List getReservedInstanceIds() { + return this.reservedInstanceIds; + } + + public void setReservedInstanceIds(List reservedInstanceIds) { + this.reservedInstanceIds = reservedInstanceIds; + if (reservedInstanceIds != null) { + for (int i = 0; i < reservedInstanceIds.size(); i++) { + putQueryParameter("ReservedInstanceId." + (i + 1) , reservedInstanceIds.get(i)); + } + } + } + + public Boolean getAutoRenew() { + return this.autoRenew; + } + + public void setAutoRenew(Boolean autoRenew) { + this.autoRenew = autoRenew; + if(autoRenew != null){ + putQueryParameter("AutoRenew", autoRenew.toString()); + } + } + + @Override + public Class getResponseClass() { + return RenewReservedInstancesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RenewReservedInstancesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RenewReservedInstancesResponse.java new file mode 100644 index 0000000000..891f1cc6e7 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RenewReservedInstancesResponse.java @@ -0,0 +1,62 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.RenewReservedInstancesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class RenewReservedInstancesResponse extends AcsResponse { + + private String requestId; + + private String orderId; + + private List reservedInstanceIdSets; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getOrderId() { + return this.orderId; + } + + public void setOrderId(String orderId) { + this.orderId = orderId; + } + + public List getReservedInstanceIdSets() { + return this.reservedInstanceIdSets; + } + + public void setReservedInstanceIdSets(List reservedInstanceIdSets) { + this.reservedInstanceIdSets = reservedInstanceIdSets; + } + + @Override + public RenewReservedInstancesResponse getInstance(UnmarshallerContext context) { + return RenewReservedInstancesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReplaceSystemDiskRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReplaceSystemDiskRequest.java new file mode 100644 index 0000000000..3dfcf75629 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReplaceSystemDiskRequest.java @@ -0,0 +1,339 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ReplaceSystemDiskRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String imageId; + + private String clientToken; + + private String encryptAlgorithm; + + private String securityEnhancementStrategy; + + private String keyPairName; + + private String platform; + + private String password; + + private Boolean passwordInherit; + + private String diskId; + + private List arns; + + private String architecture; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceId; + + private Integer systemDiskSize; + + private Boolean encrypted; + + private String kMSKeyId; + + private Boolean useAdditionalService; + public ReplaceSystemDiskRequest() { + super("Ecs", "2014-05-26", "ReplaceSystemDisk", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getImageId() { + return this.imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + if(imageId != null){ + putQueryParameter("ImageId", imageId); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getEncryptAlgorithm() { + return this.encryptAlgorithm; + } + + public void setEncryptAlgorithm(String encryptAlgorithm) { + this.encryptAlgorithm = encryptAlgorithm; + if(encryptAlgorithm != null){ + putQueryParameter("EncryptAlgorithm", encryptAlgorithm); + } + } + + public String getSecurityEnhancementStrategy() { + return this.securityEnhancementStrategy; + } + + public void setSecurityEnhancementStrategy(String securityEnhancementStrategy) { + this.securityEnhancementStrategy = securityEnhancementStrategy; + if(securityEnhancementStrategy != null){ + putQueryParameter("SecurityEnhancementStrategy", securityEnhancementStrategy); + } + } + + public String getKeyPairName() { + return this.keyPairName; + } + + public void setKeyPairName(String keyPairName) { + this.keyPairName = keyPairName; + if(keyPairName != null){ + putQueryParameter("KeyPairName", keyPairName); + } + } + + public String getPlatform() { + return this.platform; + } + + public void setPlatform(String platform) { + this.platform = platform; + if(platform != null){ + putQueryParameter("Platform", platform); + } + } + + public String getPassword() { + return this.password; + } + + public void setPassword(String password) { + this.password = password; + if(password != null){ + putQueryParameter("Password", password); + } + } + + public Boolean getPasswordInherit() { + return this.passwordInherit; + } + + public void setPasswordInherit(Boolean passwordInherit) { + this.passwordInherit = passwordInherit; + if(passwordInherit != null){ + putQueryParameter("PasswordInherit", passwordInherit.toString()); + } + } + + public String getDiskId() { + return this.diskId; + } + + public void setDiskId(String diskId) { + this.diskId = diskId; + if(diskId != null){ + putQueryParameter("DiskId", diskId); + } + } + + public List getArns() { + return this.arns; + } + + public void setArns(List arns) { + this.arns = arns; + if (arns != null) { + for (int depth1 = 0; depth1 < arns.size(); depth1++) { + putQueryParameter("Arn." + (depth1 + 1) + ".Rolearn" , arns.get(depth1).getRolearn()); + putQueryParameter("Arn." + (depth1 + 1) + ".RoleType" , arns.get(depth1).getRoleType()); + putQueryParameter("Arn." + (depth1 + 1) + ".AssumeRoleFor" , arns.get(depth1).getAssumeRoleFor()); + } + } + } + + public String getArchitecture() { + return this.architecture; + } + + public void setArchitecture(String architecture) { + this.architecture = architecture; + if(architecture != null){ + putQueryParameter("Architecture", architecture); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public Integer getSystemDiskSize() { + return this.systemDiskSize; + } + + public void setSystemDiskSize(Integer systemDiskSize) { + this.systemDiskSize = systemDiskSize; + if(systemDiskSize != null){ + putQueryParameter("SystemDisk.Size", systemDiskSize.toString()); + } + } + + public Boolean getEncrypted() { + return this.encrypted; + } + + public void setEncrypted(Boolean encrypted) { + this.encrypted = encrypted; + if(encrypted != null){ + putQueryParameter("Encrypted", encrypted.toString()); + } + } + + public String getKMSKeyId() { + return this.kMSKeyId; + } + + public void setKMSKeyId(String kMSKeyId) { + this.kMSKeyId = kMSKeyId; + if(kMSKeyId != null){ + putQueryParameter("KMSKeyId", kMSKeyId); + } + } + + public Boolean getUseAdditionalService() { + return this.useAdditionalService; + } + + public void setUseAdditionalService(Boolean useAdditionalService) { + this.useAdditionalService = useAdditionalService; + if(useAdditionalService != null){ + putQueryParameter("UseAdditionalService", useAdditionalService.toString()); + } + } + + public static class Arn { + + private String rolearn; + + private String roleType; + + private Long assumeRoleFor; + + public String getRolearn() { + return this.rolearn; + } + + public void setRolearn(String rolearn) { + this.rolearn = rolearn; + } + + public String getRoleType() { + return this.roleType; + } + + public void setRoleType(String roleType) { + this.roleType = roleType; + } + + public Long getAssumeRoleFor() { + return this.assumeRoleFor; + } + + public void setAssumeRoleFor(Long assumeRoleFor) { + this.assumeRoleFor = assumeRoleFor; + } + } + + @Override + public Class getResponseClass() { + return ReplaceSystemDiskResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReplaceSystemDiskResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReplaceSystemDiskResponse.java new file mode 100644 index 0000000000..5715a3cd29 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReplaceSystemDiskResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ReplaceSystemDiskResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ReplaceSystemDiskResponse extends AcsResponse { + + private String diskId; + + private String requestId; + + public String getDiskId() { + return this.diskId; + } + + public void setDiskId(String diskId) { + this.diskId = diskId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ReplaceSystemDiskResponse getInstance(UnmarshallerContext context) { + return ReplaceSystemDiskResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReportInstancesStatusRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReportInstancesStatusRequest.java new file mode 100644 index 0000000000..3c8e29613a --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReportInstancesStatusRequest.java @@ -0,0 +1,204 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ReportInstancesStatusRequest extends RpcAcsRequest { + + + private String reason; + + private Long resourceOwnerId; + + private String description; + + private String startTime; + + private String issueCategory; + + private List diskIds; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String endTime; + + private Long ownerId; + + private List instanceIds; + + private List devices; + public ReportInstancesStatusRequest() { + super("Ecs", "2014-05-26", "ReportInstancesStatus", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getReason() { + return this.reason; + } + + public void setReason(String reason) { + this.reason = reason; + if(reason != null){ + putQueryParameter("Reason", reason); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getStartTime() { + return this.startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + if(startTime != null){ + putQueryParameter("StartTime", startTime); + } + } + + public String getIssueCategory() { + return this.issueCategory; + } + + public void setIssueCategory(String issueCategory) { + this.issueCategory = issueCategory; + if(issueCategory != null){ + putQueryParameter("IssueCategory", issueCategory); + } + } + + public List getDiskIds() { + return this.diskIds; + } + + public void setDiskIds(List diskIds) { + this.diskIds = diskIds; + if (diskIds != null) { + for (int i = 0; i < diskIds.size(); i++) { + putQueryParameter("DiskId." + (i + 1) , diskIds.get(i)); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getEndTime() { + return this.endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + if(endTime != null){ + putQueryParameter("EndTime", endTime); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getInstanceIds() { + return this.instanceIds; + } + + public void setInstanceIds(List instanceIds) { + this.instanceIds = instanceIds; + if (instanceIds != null) { + for (int i = 0; i < instanceIds.size(); i++) { + putQueryParameter("InstanceId." + (i + 1) , instanceIds.get(i)); + } + } + } + + public List getDevices() { + return this.devices; + } + + public void setDevices(List devices) { + this.devices = devices; + if (devices != null) { + for (int i = 0; i < devices.size(); i++) { + putQueryParameter("Device." + (i + 1) , devices.get(i)); + } + } + } + + @Override + public Class getResponseClass() { + return ReportInstancesStatusResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReportInstancesStatusResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReportInstancesStatusResponse.java new file mode 100644 index 0000000000..fafeb0a545 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ReportInstancesStatusResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ReportInstancesStatusResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ReportInstancesStatusResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ReportInstancesStatusResponse getInstance(UnmarshallerContext context) { + return ReportInstancesStatusResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ResetDiskRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ResetDiskRequest.java new file mode 100644 index 0000000000..b43c41660b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ResetDiskRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ResetDiskRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String snapshotId; + + private String diskId; + + private Boolean dryRun; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public ResetDiskRequest() { + super("Ecs", "2014-05-26", "ResetDisk", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getSnapshotId() { + return this.snapshotId; + } + + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; + if(snapshotId != null){ + putQueryParameter("SnapshotId", snapshotId); + } + } + + public String getDiskId() { + return this.diskId; + } + + public void setDiskId(String diskId) { + this.diskId = diskId; + if(diskId != null){ + putQueryParameter("DiskId", diskId); + } + } + + public Boolean getDryRun() { + return this.dryRun; + } + + public void setDryRun(Boolean dryRun) { + this.dryRun = dryRun; + if(dryRun != null){ + putQueryParameter("DryRun", dryRun.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return ResetDiskResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ResetDiskResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ResetDiskResponse.java new file mode 100644 index 0000000000..87e482bc3d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ResetDiskResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ResetDiskResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ResetDiskResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ResetDiskResponse getInstance(UnmarshallerContext context) { + return ResetDiskResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ResetDisksRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ResetDisksRequest.java new file mode 100644 index 0000000000..398adc3ae5 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ResetDisksRequest.java @@ -0,0 +1,146 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ResetDisksRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Boolean dryRun; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private List disks; + public ResetDisksRequest() { + super("Ecs", "2014-05-26", "ResetDisks", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Boolean getDryRun() { + return this.dryRun; + } + + public void setDryRun(Boolean dryRun) { + this.dryRun = dryRun; + if(dryRun != null){ + putQueryParameter("DryRun", dryRun.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getDisks() { + return this.disks; + } + + public void setDisks(List disks) { + this.disks = disks; + if (disks != null) { + for (int depth1 = 0; depth1 < disks.size(); depth1++) { + putQueryParameter("Disk." + (depth1 + 1) + ".SnapshotId" , disks.get(depth1).getSnapshotId()); + putQueryParameter("Disk." + (depth1 + 1) + ".DiskId" , disks.get(depth1).getDiskId()); + } + } + } + + public static class Disk { + + private String snapshotId; + + private String diskId; + + public String getSnapshotId() { + return this.snapshotId; + } + + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; + } + + public String getDiskId() { + return this.diskId; + } + + public void setDiskId(String diskId) { + this.diskId = diskId; + } + } + + @Override + public Class getResponseClass() { + return ResetDisksResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ResetDisksResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ResetDisksResponse.java new file mode 100644 index 0000000000..213acb30fb --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ResetDisksResponse.java @@ -0,0 +1,118 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ResetDisksResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ResetDisksResponse extends AcsResponse { + + private String requestId; + + private List operationProgressSet; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getOperationProgressSet() { + return this.operationProgressSet; + } + + public void setOperationProgressSet(List operationProgressSet) { + this.operationProgressSet = operationProgressSet; + } + + public static class OperationProgress { + + private String errorMsg; + + private String errorCode; + + private String operationStatus; + + private List relatedItemSet; + + public String getErrorMsg() { + return this.errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + public String getErrorCode() { + return this.errorCode; + } + + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + public String getOperationStatus() { + return this.operationStatus; + } + + public void setOperationStatus(String operationStatus) { + this.operationStatus = operationStatus; + } + + public List getRelatedItemSet() { + return this.relatedItemSet; + } + + public void setRelatedItemSet(List relatedItemSet) { + this.relatedItemSet = relatedItemSet; + } + + public static class RelatedItem { + + private String name; + + private String value; + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + } + + @Override + public ResetDisksResponse getInstance(UnmarshallerContext context) { + return ResetDisksResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ResizeDiskRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ResizeDiskRequest.java new file mode 100644 index 0000000000..38280b1216 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ResizeDiskRequest.java @@ -0,0 +1,145 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class ResizeDiskRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private String type; + + private String diskId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Integer newSize; + + private Long ownerId; + public ResizeDiskRequest() { + super("Ecs", "2014-05-26", "ResizeDisk", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + if(type != null){ + putQueryParameter("Type", type); + } + } + + public String getDiskId() { + return this.diskId; + } + + public void setDiskId(String diskId) { + this.diskId = diskId; + if(diskId != null){ + putQueryParameter("DiskId", diskId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Integer getNewSize() { + return this.newSize; + } + + public void setNewSize(Integer newSize) { + this.newSize = newSize; + if(newSize != null){ + putQueryParameter("NewSize", newSize.toString()); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return ResizeDiskResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ResizeDiskResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ResizeDiskResponse.java new file mode 100644 index 0000000000..a0c5f880dc --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ResizeDiskResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.ResizeDiskResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ResizeDiskResponse extends AcsResponse { + + private String orderId; + + private String requestId; + + public String getOrderId() { + return this.orderId; + } + + public void setOrderId(String orderId) { + this.orderId = orderId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public ResizeDiskResponse getInstance(UnmarshallerContext context) { + return ResizeDiskResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RevokeSecurityGroupEgressRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RevokeSecurityGroupEgressRequest.java new file mode 100644 index 0000000000..4134f76e3a --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RevokeSecurityGroupEgressRequest.java @@ -0,0 +1,515 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class RevokeSecurityGroupEgressRequest extends RpcAcsRequest { + + + private String nicType; + + private Long resourceOwnerId; + + private String sourcePortRange; + + private String clientToken; + + private String destPrefixListId; + + private String securityGroupId; + + private String description; + + private List permissions; + + private String policy; + + private String ipv6DestCidrIp; + + private String ipv6SourceCidrIp; + + private String portRange; + + private String resourceOwnerAccount; + + private String ipProtocol; + + private String ownerAccount; + + private String sourceCidrIp; + + private String destGroupId; + + private Long ownerId; + + private String priority; + + private String destGroupOwnerAccount; + + private String destCidrIp; + + private Long destGroupOwnerId; + + private List securityGroupRuleIds; + public RevokeSecurityGroupEgressRequest() { + super("Ecs", "2014-05-26", "RevokeSecurityGroupEgress", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getNicType() { + return this.nicType; + } + + public void setNicType(String nicType) { + this.nicType = nicType; + if(nicType != null){ + putQueryParameter("NicType", nicType); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getSourcePortRange() { + return this.sourcePortRange; + } + + public void setSourcePortRange(String sourcePortRange) { + this.sourcePortRange = sourcePortRange; + if(sourcePortRange != null){ + putQueryParameter("SourcePortRange", sourcePortRange); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getDestPrefixListId() { + return this.destPrefixListId; + } + + public void setDestPrefixListId(String destPrefixListId) { + this.destPrefixListId = destPrefixListId; + if(destPrefixListId != null){ + putQueryParameter("DestPrefixListId", destPrefixListId); + } + } + + public String getSecurityGroupId() { + return this.securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + if(securityGroupId != null){ + putQueryParameter("SecurityGroupId", securityGroupId); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public List getPermissions() { + return this.permissions; + } + + public void setPermissions(List permissions) { + this.permissions = permissions; + if (permissions != null) { + for (int depth1 = 0; depth1 < permissions.size(); depth1++) { + if (permissions.get(depth1) != null) { + + putQueryParameter("Permissions." + (depth1 + 1) + ".Policy" , permissions.get(depth1).getPolicy()); + putQueryParameter("Permissions." + (depth1 + 1) + ".Priority" , permissions.get(depth1).getPriority()); + putQueryParameter("Permissions." + (depth1 + 1) + ".IpProtocol" , permissions.get(depth1).getIpProtocol()); + putQueryParameter("Permissions." + (depth1 + 1) + ".DestCidrIp" , permissions.get(depth1).getDestCidrIp()); + putQueryParameter("Permissions." + (depth1 + 1) + ".Ipv6DestCidrIp" , permissions.get(depth1).getIpv6DestCidrIp()); + putQueryParameter("Permissions." + (depth1 + 1) + ".DestGroupId" , permissions.get(depth1).getDestGroupId()); + putQueryParameter("Permissions." + (depth1 + 1) + ".DestPrefixListId" , permissions.get(depth1).getDestPrefixListId()); + putQueryParameter("Permissions." + (depth1 + 1) + ".PortRange" , permissions.get(depth1).getPortRange()); + putQueryParameter("Permissions." + (depth1 + 1) + ".SourceCidrIp" , permissions.get(depth1).getSourceCidrIp()); + putQueryParameter("Permissions." + (depth1 + 1) + ".Ipv6SourceCidrIp" , permissions.get(depth1).getIpv6SourceCidrIp()); + putQueryParameter("Permissions." + (depth1 + 1) + ".SourcePortRange" , permissions.get(depth1).getSourcePortRange()); + putQueryParameter("Permissions." + (depth1 + 1) + ".DestGroupOwnerAccount" , permissions.get(depth1).getDestGroupOwnerAccount()); + putQueryParameter("Permissions." + (depth1 + 1) + ".DestGroupOwnerId" , permissions.get(depth1).getDestGroupOwnerId()); + putQueryParameter("Permissions." + (depth1 + 1) + ".NicType" , permissions.get(depth1).getNicType()); + putQueryParameter("Permissions." + (depth1 + 1) + ".Description" , permissions.get(depth1).getDescription()); + } + } + } + } + + public String getPolicy() { + return this.policy; + } + + public void setPolicy(String policy) { + this.policy = policy; + if(policy != null){ + putQueryParameter("Policy", policy); + } + } + + public String getIpv6DestCidrIp() { + return this.ipv6DestCidrIp; + } + + public void setIpv6DestCidrIp(String ipv6DestCidrIp) { + this.ipv6DestCidrIp = ipv6DestCidrIp; + if(ipv6DestCidrIp != null){ + putQueryParameter("Ipv6DestCidrIp", ipv6DestCidrIp); + } + } + + public String getIpv6SourceCidrIp() { + return this.ipv6SourceCidrIp; + } + + public void setIpv6SourceCidrIp(String ipv6SourceCidrIp) { + this.ipv6SourceCidrIp = ipv6SourceCidrIp; + if(ipv6SourceCidrIp != null){ + putQueryParameter("Ipv6SourceCidrIp", ipv6SourceCidrIp); + } + } + + public String getPortRange() { + return this.portRange; + } + + public void setPortRange(String portRange) { + this.portRange = portRange; + if(portRange != null){ + putQueryParameter("PortRange", portRange); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getIpProtocol() { + return this.ipProtocol; + } + + public void setIpProtocol(String ipProtocol) { + this.ipProtocol = ipProtocol; + if(ipProtocol != null){ + putQueryParameter("IpProtocol", ipProtocol); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getSourceCidrIp() { + return this.sourceCidrIp; + } + + public void setSourceCidrIp(String sourceCidrIp) { + this.sourceCidrIp = sourceCidrIp; + if(sourceCidrIp != null){ + putQueryParameter("SourceCidrIp", sourceCidrIp); + } + } + + public String getDestGroupId() { + return this.destGroupId; + } + + public void setDestGroupId(String destGroupId) { + this.destGroupId = destGroupId; + if(destGroupId != null){ + putQueryParameter("DestGroupId", destGroupId); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getPriority() { + return this.priority; + } + + public void setPriority(String priority) { + this.priority = priority; + if(priority != null){ + putQueryParameter("Priority", priority); + } + } + + public String getDestGroupOwnerAccount() { + return this.destGroupOwnerAccount; + } + + public void setDestGroupOwnerAccount(String destGroupOwnerAccount) { + this.destGroupOwnerAccount = destGroupOwnerAccount; + if(destGroupOwnerAccount != null){ + putQueryParameter("DestGroupOwnerAccount", destGroupOwnerAccount); + } + } + + public String getDestCidrIp() { + return this.destCidrIp; + } + + public void setDestCidrIp(String destCidrIp) { + this.destCidrIp = destCidrIp; + if(destCidrIp != null){ + putQueryParameter("DestCidrIp", destCidrIp); + } + } + + public Long getDestGroupOwnerId() { + return this.destGroupOwnerId; + } + + public void setDestGroupOwnerId(Long destGroupOwnerId) { + this.destGroupOwnerId = destGroupOwnerId; + if(destGroupOwnerId != null){ + putQueryParameter("DestGroupOwnerId", destGroupOwnerId.toString()); + } + } + + public List getSecurityGroupRuleIds() { + return this.securityGroupRuleIds; + } + + public void setSecurityGroupRuleIds(List securityGroupRuleIds) { + this.securityGroupRuleIds = securityGroupRuleIds; + if (securityGroupRuleIds != null) { + for (int i = 0; i < securityGroupRuleIds.size(); i++) { + putQueryParameter("SecurityGroupRuleId." + (i + 1) , securityGroupRuleIds.get(i)); + } + } + } + + public static class Permissions { + + private String policy; + + private String priority; + + private String ipProtocol; + + private String destCidrIp; + + private String ipv6DestCidrIp; + + private String destGroupId; + + private String destPrefixListId; + + private String portRange; + + private String sourceCidrIp; + + private String ipv6SourceCidrIp; + + private String sourcePortRange; + + private String destGroupOwnerAccount; + + private String destGroupOwnerId; + + private String nicType; + + private String description; + + public String getPolicy() { + return this.policy; + } + + public void setPolicy(String policy) { + this.policy = policy; + } + + public String getPriority() { + return this.priority; + } + + public void setPriority(String priority) { + this.priority = priority; + } + + public String getIpProtocol() { + return this.ipProtocol; + } + + public void setIpProtocol(String ipProtocol) { + this.ipProtocol = ipProtocol; + } + + public String getDestCidrIp() { + return this.destCidrIp; + } + + public void setDestCidrIp(String destCidrIp) { + this.destCidrIp = destCidrIp; + } + + public String getIpv6DestCidrIp() { + return this.ipv6DestCidrIp; + } + + public void setIpv6DestCidrIp(String ipv6DestCidrIp) { + this.ipv6DestCidrIp = ipv6DestCidrIp; + } + + public String getDestGroupId() { + return this.destGroupId; + } + + public void setDestGroupId(String destGroupId) { + this.destGroupId = destGroupId; + } + + public String getDestPrefixListId() { + return this.destPrefixListId; + } + + public void setDestPrefixListId(String destPrefixListId) { + this.destPrefixListId = destPrefixListId; + } + + public String getPortRange() { + return this.portRange; + } + + public void setPortRange(String portRange) { + this.portRange = portRange; + } + + public String getSourceCidrIp() { + return this.sourceCidrIp; + } + + public void setSourceCidrIp(String sourceCidrIp) { + this.sourceCidrIp = sourceCidrIp; + } + + public String getIpv6SourceCidrIp() { + return this.ipv6SourceCidrIp; + } + + public void setIpv6SourceCidrIp(String ipv6SourceCidrIp) { + this.ipv6SourceCidrIp = ipv6SourceCidrIp; + } + + public String getSourcePortRange() { + return this.sourcePortRange; + } + + public void setSourcePortRange(String sourcePortRange) { + this.sourcePortRange = sourcePortRange; + } + + public String getDestGroupOwnerAccount() { + return this.destGroupOwnerAccount; + } + + public void setDestGroupOwnerAccount(String destGroupOwnerAccount) { + this.destGroupOwnerAccount = destGroupOwnerAccount; + } + + public String getDestGroupOwnerId() { + return this.destGroupOwnerId; + } + + public void setDestGroupOwnerId(String destGroupOwnerId) { + this.destGroupOwnerId = destGroupOwnerId; + } + + public String getNicType() { + return this.nicType; + } + + public void setNicType(String nicType) { + this.nicType = nicType; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + } + + @Override + public Class getResponseClass() { + return RevokeSecurityGroupEgressResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RevokeSecurityGroupEgressResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RevokeSecurityGroupEgressResponse.java new file mode 100644 index 0000000000..1129620233 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RevokeSecurityGroupEgressResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.RevokeSecurityGroupEgressResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class RevokeSecurityGroupEgressResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public RevokeSecurityGroupEgressResponse getInstance(UnmarshallerContext context) { + return RevokeSecurityGroupEgressResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RevokeSecurityGroupRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RevokeSecurityGroupRequest.java new file mode 100644 index 0000000000..44b6909430 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RevokeSecurityGroupRequest.java @@ -0,0 +1,515 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class RevokeSecurityGroupRequest extends RpcAcsRequest { + + + private String nicType; + + private Long resourceOwnerId; + + private String sourcePrefixListId; + + private String sourcePortRange; + + private String clientToken; + + private String securityGroupId; + + private String description; + + private Long sourceGroupOwnerId; + + private String sourceGroupOwnerAccount; + + private List permissions; + + private String policy; + + private String ipv6SourceCidrIp; + + private String ipv6DestCidrIp; + + private String portRange; + + private String resourceOwnerAccount; + + private String ipProtocol; + + private String ownerAccount; + + private String sourceCidrIp; + + private Long ownerId; + + private String priority; + + private String destCidrIp; + + private String sourceGroupId; + + private List securityGroupRuleIds; + public RevokeSecurityGroupRequest() { + super("Ecs", "2014-05-26", "RevokeSecurityGroup", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getNicType() { + return this.nicType; + } + + public void setNicType(String nicType) { + this.nicType = nicType; + if(nicType != null){ + putQueryParameter("NicType", nicType); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getSourcePrefixListId() { + return this.sourcePrefixListId; + } + + public void setSourcePrefixListId(String sourcePrefixListId) { + this.sourcePrefixListId = sourcePrefixListId; + if(sourcePrefixListId != null){ + putQueryParameter("SourcePrefixListId", sourcePrefixListId); + } + } + + public String getSourcePortRange() { + return this.sourcePortRange; + } + + public void setSourcePortRange(String sourcePortRange) { + this.sourcePortRange = sourcePortRange; + if(sourcePortRange != null){ + putQueryParameter("SourcePortRange", sourcePortRange); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getSecurityGroupId() { + return this.securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + if(securityGroupId != null){ + putQueryParameter("SecurityGroupId", securityGroupId); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public Long getSourceGroupOwnerId() { + return this.sourceGroupOwnerId; + } + + public void setSourceGroupOwnerId(Long sourceGroupOwnerId) { + this.sourceGroupOwnerId = sourceGroupOwnerId; + if(sourceGroupOwnerId != null){ + putQueryParameter("SourceGroupOwnerId", sourceGroupOwnerId.toString()); + } + } + + public String getSourceGroupOwnerAccount() { + return this.sourceGroupOwnerAccount; + } + + public void setSourceGroupOwnerAccount(String sourceGroupOwnerAccount) { + this.sourceGroupOwnerAccount = sourceGroupOwnerAccount; + if(sourceGroupOwnerAccount != null){ + putQueryParameter("SourceGroupOwnerAccount", sourceGroupOwnerAccount); + } + } + + public List getPermissions() { + return this.permissions; + } + + public void setPermissions(List permissions) { + this.permissions = permissions; + if (permissions != null) { + for (int depth1 = 0; depth1 < permissions.size(); depth1++) { + if (permissions.get(depth1) != null) { + + putQueryParameter("Permissions." + (depth1 + 1) + ".Policy" , permissions.get(depth1).getPolicy()); + putQueryParameter("Permissions." + (depth1 + 1) + ".Priority" , permissions.get(depth1).getPriority()); + putQueryParameter("Permissions." + (depth1 + 1) + ".IpProtocol" , permissions.get(depth1).getIpProtocol()); + putQueryParameter("Permissions." + (depth1 + 1) + ".SourceCidrIp" , permissions.get(depth1).getSourceCidrIp()); + putQueryParameter("Permissions." + (depth1 + 1) + ".Ipv6SourceCidrIp" , permissions.get(depth1).getIpv6SourceCidrIp()); + putQueryParameter("Permissions." + (depth1 + 1) + ".SourceGroupId" , permissions.get(depth1).getSourceGroupId()); + putQueryParameter("Permissions." + (depth1 + 1) + ".SourcePrefixListId" , permissions.get(depth1).getSourcePrefixListId()); + putQueryParameter("Permissions." + (depth1 + 1) + ".PortRange" , permissions.get(depth1).getPortRange()); + putQueryParameter("Permissions." + (depth1 + 1) + ".DestCidrIp" , permissions.get(depth1).getDestCidrIp()); + putQueryParameter("Permissions." + (depth1 + 1) + ".Ipv6DestCidrIp" , permissions.get(depth1).getIpv6DestCidrIp()); + putQueryParameter("Permissions." + (depth1 + 1) + ".SourcePortRange" , permissions.get(depth1).getSourcePortRange()); + putQueryParameter("Permissions." + (depth1 + 1) + ".SourceGroupOwnerAccount" , permissions.get(depth1).getSourceGroupOwnerAccount()); + putQueryParameter("Permissions." + (depth1 + 1) + ".SourceGroupOwnerId" , permissions.get(depth1).getSourceGroupOwnerId()); + putQueryParameter("Permissions." + (depth1 + 1) + ".NicType" , permissions.get(depth1).getNicType()); + putQueryParameter("Permissions." + (depth1 + 1) + ".Description" , permissions.get(depth1).getDescription()); + } + } + } + } + + public String getPolicy() { + return this.policy; + } + + public void setPolicy(String policy) { + this.policy = policy; + if(policy != null){ + putQueryParameter("Policy", policy); + } + } + + public String getIpv6SourceCidrIp() { + return this.ipv6SourceCidrIp; + } + + public void setIpv6SourceCidrIp(String ipv6SourceCidrIp) { + this.ipv6SourceCidrIp = ipv6SourceCidrIp; + if(ipv6SourceCidrIp != null){ + putQueryParameter("Ipv6SourceCidrIp", ipv6SourceCidrIp); + } + } + + public String getIpv6DestCidrIp() { + return this.ipv6DestCidrIp; + } + + public void setIpv6DestCidrIp(String ipv6DestCidrIp) { + this.ipv6DestCidrIp = ipv6DestCidrIp; + if(ipv6DestCidrIp != null){ + putQueryParameter("Ipv6DestCidrIp", ipv6DestCidrIp); + } + } + + public String getPortRange() { + return this.portRange; + } + + public void setPortRange(String portRange) { + this.portRange = portRange; + if(portRange != null){ + putQueryParameter("PortRange", portRange); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getIpProtocol() { + return this.ipProtocol; + } + + public void setIpProtocol(String ipProtocol) { + this.ipProtocol = ipProtocol; + if(ipProtocol != null){ + putQueryParameter("IpProtocol", ipProtocol); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getSourceCidrIp() { + return this.sourceCidrIp; + } + + public void setSourceCidrIp(String sourceCidrIp) { + this.sourceCidrIp = sourceCidrIp; + if(sourceCidrIp != null){ + putQueryParameter("SourceCidrIp", sourceCidrIp); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getPriority() { + return this.priority; + } + + public void setPriority(String priority) { + this.priority = priority; + if(priority != null){ + putQueryParameter("Priority", priority); + } + } + + public String getDestCidrIp() { + return this.destCidrIp; + } + + public void setDestCidrIp(String destCidrIp) { + this.destCidrIp = destCidrIp; + if(destCidrIp != null){ + putQueryParameter("DestCidrIp", destCidrIp); + } + } + + public String getSourceGroupId() { + return this.sourceGroupId; + } + + public void setSourceGroupId(String sourceGroupId) { + this.sourceGroupId = sourceGroupId; + if(sourceGroupId != null){ + putQueryParameter("SourceGroupId", sourceGroupId); + } + } + + public List getSecurityGroupRuleIds() { + return this.securityGroupRuleIds; + } + + public void setSecurityGroupRuleIds(List securityGroupRuleIds) { + this.securityGroupRuleIds = securityGroupRuleIds; + if (securityGroupRuleIds != null) { + for (int i = 0; i < securityGroupRuleIds.size(); i++) { + putQueryParameter("SecurityGroupRuleId." + (i + 1) , securityGroupRuleIds.get(i)); + } + } + } + + public static class Permissions { + + private String policy; + + private String priority; + + private String ipProtocol; + + private String sourceCidrIp; + + private String ipv6SourceCidrIp; + + private String sourceGroupId; + + private String sourcePrefixListId; + + private String portRange; + + private String destCidrIp; + + private String ipv6DestCidrIp; + + private String sourcePortRange; + + private String sourceGroupOwnerAccount; + + private Long sourceGroupOwnerId; + + private String nicType; + + private String description; + + public String getPolicy() { + return this.policy; + } + + public void setPolicy(String policy) { + this.policy = policy; + } + + public String getPriority() { + return this.priority; + } + + public void setPriority(String priority) { + this.priority = priority; + } + + public String getIpProtocol() { + return this.ipProtocol; + } + + public void setIpProtocol(String ipProtocol) { + this.ipProtocol = ipProtocol; + } + + public String getSourceCidrIp() { + return this.sourceCidrIp; + } + + public void setSourceCidrIp(String sourceCidrIp) { + this.sourceCidrIp = sourceCidrIp; + } + + public String getIpv6SourceCidrIp() { + return this.ipv6SourceCidrIp; + } + + public void setIpv6SourceCidrIp(String ipv6SourceCidrIp) { + this.ipv6SourceCidrIp = ipv6SourceCidrIp; + } + + public String getSourceGroupId() { + return this.sourceGroupId; + } + + public void setSourceGroupId(String sourceGroupId) { + this.sourceGroupId = sourceGroupId; + } + + public String getSourcePrefixListId() { + return this.sourcePrefixListId; + } + + public void setSourcePrefixListId(String sourcePrefixListId) { + this.sourcePrefixListId = sourcePrefixListId; + } + + public String getPortRange() { + return this.portRange; + } + + public void setPortRange(String portRange) { + this.portRange = portRange; + } + + public String getDestCidrIp() { + return this.destCidrIp; + } + + public void setDestCidrIp(String destCidrIp) { + this.destCidrIp = destCidrIp; + } + + public String getIpv6DestCidrIp() { + return this.ipv6DestCidrIp; + } + + public void setIpv6DestCidrIp(String ipv6DestCidrIp) { + this.ipv6DestCidrIp = ipv6DestCidrIp; + } + + public String getSourcePortRange() { + return this.sourcePortRange; + } + + public void setSourcePortRange(String sourcePortRange) { + this.sourcePortRange = sourcePortRange; + } + + public String getSourceGroupOwnerAccount() { + return this.sourceGroupOwnerAccount; + } + + public void setSourceGroupOwnerAccount(String sourceGroupOwnerAccount) { + this.sourceGroupOwnerAccount = sourceGroupOwnerAccount; + } + + public Long getSourceGroupOwnerId() { + return this.sourceGroupOwnerId; + } + + public void setSourceGroupOwnerId(Long sourceGroupOwnerId) { + this.sourceGroupOwnerId = sourceGroupOwnerId; + } + + public String getNicType() { + return this.nicType; + } + + public void setNicType(String nicType) { + this.nicType = nicType; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + } + + @Override + public Class getResponseClass() { + return RevokeSecurityGroupResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RevokeSecurityGroupResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RevokeSecurityGroupResponse.java new file mode 100644 index 0000000000..8dfb638c53 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RevokeSecurityGroupResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.RevokeSecurityGroupResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class RevokeSecurityGroupResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public RevokeSecurityGroupResponse getInstance(UnmarshallerContext context) { + return RevokeSecurityGroupResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RunCommandRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RunCommandRequest.java new file mode 100644 index 0000000000..1ea8538d7c --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RunCommandRequest.java @@ -0,0 +1,397 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import java.util.Map; +import com.google.gson.Gson; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class RunCommandRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String workingDir; + + private String type; + + private String frequency; + + private String resourceGroupId; + + private String repeatMode; + + private List tags; + + private Boolean keepCommand; + + private Boolean timed; + + private Long ownerId; + + private List instanceIds; + + private String name; + + private String containerId; + + private Map parameters; + + private String containerName; + + private String clientToken; + + private String description; + + private String commandContent; + + private Long timeout; + + private String contentEncoding; + + private String windowsPasswordName; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Boolean enableParameter; + + private String username; + public RunCommandRequest() { + super("Ecs", "2014-05-26", "RunCommand", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getWorkingDir() { + return this.workingDir; + } + + public void setWorkingDir(String workingDir) { + this.workingDir = workingDir; + if(workingDir != null){ + putQueryParameter("WorkingDir", workingDir); + } + } + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + if(type != null){ + putQueryParameter("Type", type); + } + } + + public String getFrequency() { + return this.frequency; + } + + public void setFrequency(String frequency) { + this.frequency = frequency; + if(frequency != null){ + putQueryParameter("Frequency", frequency); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public String getRepeatMode() { + return this.repeatMode; + } + + public void setRepeatMode(String repeatMode) { + this.repeatMode = repeatMode; + if(repeatMode != null){ + putQueryParameter("RepeatMode", repeatMode); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public Boolean getKeepCommand() { + return this.keepCommand; + } + + public void setKeepCommand(Boolean keepCommand) { + this.keepCommand = keepCommand; + if(keepCommand != null){ + putQueryParameter("KeepCommand", keepCommand.toString()); + } + } + + public Boolean getTimed() { + return this.timed; + } + + public void setTimed(Boolean timed) { + this.timed = timed; + if(timed != null){ + putQueryParameter("Timed", timed.toString()); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getInstanceIds() { + return this.instanceIds; + } + + public void setInstanceIds(List instanceIds) { + this.instanceIds = instanceIds; + if (instanceIds != null) { + for (int i = 0; i < instanceIds.size(); i++) { + putQueryParameter("InstanceId." + (i + 1) , instanceIds.get(i)); + } + } + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + if(name != null){ + putQueryParameter("Name", name); + } + } + + public String getContainerId() { + return this.containerId; + } + + public void setContainerId(String containerId) { + this.containerId = containerId; + if(containerId != null){ + putQueryParameter("ContainerId", containerId); + } + } + + public Map getParameters() { + return this.parameters; + } + + public void setParameters(Map parameters) { + this.parameters = parameters; + if(parameters != null){ + putQueryParameter("Parameters", new Gson().toJson(parameters)); + } + } + + public String getContainerName() { + return this.containerName; + } + + public void setContainerName(String containerName) { + this.containerName = containerName; + if(containerName != null){ + putQueryParameter("ContainerName", containerName); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public String getCommandContent() { + return this.commandContent; + } + + public void setCommandContent(String commandContent) { + this.commandContent = commandContent; + if(commandContent != null){ + putQueryParameter("CommandContent", commandContent); + } + } + + public Long getTimeout() { + return this.timeout; + } + + public void setTimeout(Long timeout) { + this.timeout = timeout; + if(timeout != null){ + putQueryParameter("Timeout", timeout.toString()); + } + } + + public String getContentEncoding() { + return this.contentEncoding; + } + + public void setContentEncoding(String contentEncoding) { + this.contentEncoding = contentEncoding; + if(contentEncoding != null){ + putQueryParameter("ContentEncoding", contentEncoding); + } + } + + public String getWindowsPasswordName() { + return this.windowsPasswordName; + } + + public void setWindowsPasswordName(String windowsPasswordName) { + this.windowsPasswordName = windowsPasswordName; + if(windowsPasswordName != null){ + putQueryParameter("WindowsPasswordName", windowsPasswordName); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Boolean getEnableParameter() { + return this.enableParameter; + } + + public void setEnableParameter(Boolean enableParameter) { + this.enableParameter = enableParameter; + if(enableParameter != null){ + putQueryParameter("EnableParameter", enableParameter.toString()); + } + } + + public String getUsername() { + return this.username; + } + + public void setUsername(String username) { + this.username = username; + if(username != null){ + putQueryParameter("Username", username); + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return RunCommandResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RunCommandResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RunCommandResponse.java new file mode 100644 index 0000000000..b926a9f5e2 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RunCommandResponse.java @@ -0,0 +1,61 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.RunCommandResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class RunCommandResponse extends AcsResponse { + + private String requestId; + + private String commandId; + + private String invokeId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getCommandId() { + return this.commandId; + } + + public void setCommandId(String commandId) { + this.commandId = commandId; + } + + public String getInvokeId() { + return this.invokeId; + } + + public void setInvokeId(String invokeId) { + this.invokeId = invokeId; + } + + @Override + public RunCommandResponse getInstance(UnmarshallerContext context) { + return RunCommandResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/RunInstancesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RunInstancesRequest.java similarity index 81% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/RunInstancesRequest.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RunInstancesRequest.java index 36c9f9796a..8d64b6fb41 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/RunInstancesRequest.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RunInstancesRequest.java @@ -12,7 +12,7 @@ * limitations under the License. */ -package com.aliyuncs.ecs.model.v20160314; +package com.aliyuncs.ecs.model.v20140526; import com.aliyuncs.RpcAcsRequest; import java.util.List; @@ -30,8 +30,6 @@ public class RunInstancesRequest extends RpcAcsRequest { private String securityEnhancementStrategy; - private String networkType; - private Integer minAmount; private Boolean deletionProtection; @@ -48,30 +46,40 @@ public class RunInstancesRequest extends RpcAcsRequest { private ImageOptions imageOptions; - private String deploymentSetGroupNo; + private Integer deploymentSetGroupNo; private String systemDiskAutoSnapshotPolicyId; + private Integer cpuOptionsCore; + + private Integer period; + private Boolean dryRun; + private String cpuOptionsNuma; + private Long ownerId; private String spotStrategy; private String privateIpAddress; + private String periodUnit; + + private Boolean autoRenew; + private String internetChargeType; private Integer internetMaxBandwidthIn; - private Boolean systemDiskDeleteWithInstance; - private String affinity; private String imageId; private String spotInterruptionBehavior; + private Integer networkInterfaceQueueNumber; + private String ioOptimized; private String securityGroupId; @@ -84,11 +92,13 @@ public class RunInstancesRequest extends RpcAcsRequest { private String instanceType; + private List arns; + private String resourceOwnerAccount; - private String systemDiskDiskName; + private String schedulerOptionsDedicatedHostClusterId; - private String relationOrderId; + private String systemDiskDiskName; private String dedicatedHostId; @@ -102,12 +112,10 @@ public class RunInstancesRequest extends RpcAcsRequest { private String imageFamily; - private String defaultVpc; + private String launchTemplateName; private Long resourceOwnerId; - private List instances; - private String hpcClusterId; private Integer httpPutResponseHopLimit; @@ -122,24 +130,18 @@ public class RunInstancesRequest extends RpcAcsRequest { private List tags; - private String businessInfo; - private String privatePoolOptionsId; - private String nodeControllerId; + private Integer autoRenewPeriod; - private String fromApp; + private String launchTemplateId; private Integer ipv6AddressCount; - private Integer maxAmount; - private List hostNamess; private String vSwitchId; - private String recycleBinResourceId; - private String instanceName; private String zoneId; @@ -154,6 +156,8 @@ public class RunInstancesRequest extends RpcAcsRequest { private String description; + private Integer cpuOptionsThreadsPerCore; + private String systemDiskCategory; private String securityOptionsTrustedSystemMode; @@ -162,37 +166,35 @@ public class RunInstancesRequest extends RpcAcsRequest { private String httpEndpoint; - private String dedicatedHostClusterId; + private String instanceChargeType; private String deploymentSetId; private List networkInterfaces; + private Integer amount; + private String ownerAccount; private String tenancy; - private String autoReleaseTime; - private String ramRoleName; - private String clusterId; + private String autoReleaseTime; private String creditSpecification; - private String schedulerOptionsManagedPrivateSpaceId; + private Long launchTemplateVersion; private List dataDisks; private String storageSetId; - private List securityGroupRules; - private String httpTokens; private String systemDiskDescription; public RunInstancesRequest() { - super("Ecs", "2016-03-14", "RunInstances", "ecs"); + super("Ecs", "2014-05-26", "RunInstances", "ecs"); setMethod(MethodType.POST); try { com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); @@ -222,17 +224,6 @@ public void setSecurityEnhancementStrategy(String securityEnhancementStrategy) { } } - public String getNetworkType() { - return this.networkType; - } - - public void setNetworkType(String networkType) { - this.networkType = networkType; - if(networkType != null){ - putQueryParameter("NetworkType", networkType); - } - } - public Integer getMinAmount() { return this.minAmount; } @@ -307,12 +298,12 @@ public void setSystemDisk(SystemDisk systemDisk) { this.systemDisk = systemDisk; if (systemDisk != null) { + putQueryParameter("SystemDisk.StorageClusterId" , systemDisk.getStorageClusterId()); putQueryParameter("SystemDisk.ProvisionedIops" , systemDisk.getProvisionedIops()); + putQueryParameter("SystemDisk.BurstingEnabled" , systemDisk.getBurstingEnabled()); putQueryParameter("SystemDisk.Encrypted" , systemDisk.getEncrypted()); - putQueryParameter("SystemDisk.EncryptAlgorithm" , systemDisk.getEncryptAlgorithm()); - putQueryParameter("SystemDisk.StorageClusterId" , systemDisk.getStorageClusterId()); putQueryParameter("SystemDisk.KMSKeyId" , systemDisk.getKMSKeyId()); - putQueryParameter("SystemDisk.BurstingEnabled" , systemDisk.getBurstingEnabled()); + putQueryParameter("SystemDisk.EncryptAlgorithm" , systemDisk.getEncryptAlgorithm()); } } @@ -328,14 +319,14 @@ public void setImageOptions(ImageOptions imageOptions) { } } - public String getDeploymentSetGroupNo() { + public Integer getDeploymentSetGroupNo() { return this.deploymentSetGroupNo; } - public void setDeploymentSetGroupNo(String deploymentSetGroupNo) { + public void setDeploymentSetGroupNo(Integer deploymentSetGroupNo) { this.deploymentSetGroupNo = deploymentSetGroupNo; if(deploymentSetGroupNo != null){ - putQueryParameter("DeploymentSetGroupNo", deploymentSetGroupNo); + putQueryParameter("DeploymentSetGroupNo", deploymentSetGroupNo.toString()); } } @@ -350,6 +341,28 @@ public void setSystemDiskAutoSnapshotPolicyId(String systemDiskAutoSnapshotPolic } } + public Integer getCpuOptionsCore() { + return this.cpuOptionsCore; + } + + public void setCpuOptionsCore(Integer cpuOptionsCore) { + this.cpuOptionsCore = cpuOptionsCore; + if(cpuOptionsCore != null){ + putQueryParameter("CpuOptions.Core", cpuOptionsCore.toString()); + } + } + + public Integer getPeriod() { + return this.period; + } + + public void setPeriod(Integer period) { + this.period = period; + if(period != null){ + putQueryParameter("Period", period.toString()); + } + } + public Boolean getDryRun() { return this.dryRun; } @@ -361,6 +374,17 @@ public void setDryRun(Boolean dryRun) { } } + public String getCpuOptionsNuma() { + return this.cpuOptionsNuma; + } + + public void setCpuOptionsNuma(String cpuOptionsNuma) { + this.cpuOptionsNuma = cpuOptionsNuma; + if(cpuOptionsNuma != null){ + putQueryParameter("CpuOptions.Numa", cpuOptionsNuma); + } + } + public Long getOwnerId() { return this.ownerId; } @@ -394,6 +418,28 @@ public void setPrivateIpAddress(String privateIpAddress) { } } + public String getPeriodUnit() { + return this.periodUnit; + } + + public void setPeriodUnit(String periodUnit) { + this.periodUnit = periodUnit; + if(periodUnit != null){ + putQueryParameter("PeriodUnit", periodUnit); + } + } + + public Boolean getAutoRenew() { + return this.autoRenew; + } + + public void setAutoRenew(Boolean autoRenew) { + this.autoRenew = autoRenew; + if(autoRenew != null){ + putQueryParameter("AutoRenew", autoRenew.toString()); + } + } + public String getInternetChargeType() { return this.internetChargeType; } @@ -416,17 +462,6 @@ public void setInternetMaxBandwidthIn(Integer internetMaxBandwidthIn) { } } - public Boolean getSystemDiskDeleteWithInstance() { - return this.systemDiskDeleteWithInstance; - } - - public void setSystemDiskDeleteWithInstance(Boolean systemDiskDeleteWithInstance) { - this.systemDiskDeleteWithInstance = systemDiskDeleteWithInstance; - if(systemDiskDeleteWithInstance != null){ - putQueryParameter("SystemDisk.DeleteWithInstance", systemDiskDeleteWithInstance.toString()); - } - } - public String getAffinity() { return this.affinity; } @@ -460,6 +495,17 @@ public void setSpotInterruptionBehavior(String spotInterruptionBehavior) { } } + public Integer getNetworkInterfaceQueueNumber() { + return this.networkInterfaceQueueNumber; + } + + public void setNetworkInterfaceQueueNumber(Integer networkInterfaceQueueNumber) { + this.networkInterfaceQueueNumber = networkInterfaceQueueNumber; + if(networkInterfaceQueueNumber != null){ + putQueryParameter("NetworkInterfaceQueueNumber", networkInterfaceQueueNumber.toString()); + } + } + public String getIoOptimized() { return this.ioOptimized; } @@ -526,6 +572,21 @@ public void setInstanceType(String instanceType) { } } + public List getArns() { + return this.arns; + } + + public void setArns(List arns) { + this.arns = arns; + if (arns != null) { + for (int depth1 = 0; depth1 < arns.size(); depth1++) { + putQueryParameter("Arn." + (depth1 + 1) + ".RoleType" , arns.get(depth1).getRoleType()); + putQueryParameter("Arn." + (depth1 + 1) + ".Rolearn" , arns.get(depth1).getRolearn()); + putQueryParameter("Arn." + (depth1 + 1) + ".AssumeRoleFor" , arns.get(depth1).getAssumeRoleFor()); + } + } + } + public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } @@ -537,6 +598,17 @@ public void setResourceOwnerAccount(String resourceOwnerAccount) { } } + public String getSchedulerOptionsDedicatedHostClusterId() { + return this.schedulerOptionsDedicatedHostClusterId; + } + + public void setSchedulerOptionsDedicatedHostClusterId(String schedulerOptionsDedicatedHostClusterId) { + this.schedulerOptionsDedicatedHostClusterId = schedulerOptionsDedicatedHostClusterId; + if(schedulerOptionsDedicatedHostClusterId != null){ + putQueryParameter("SchedulerOptions.DedicatedHostClusterId", schedulerOptionsDedicatedHostClusterId); + } + } + public String getSystemDiskDiskName() { return this.systemDiskDiskName; } @@ -548,17 +620,6 @@ public void setSystemDiskDiskName(String systemDiskDiskName) { } } - public String getRelationOrderId() { - return this.relationOrderId; - } - - public void setRelationOrderId(String relationOrderId) { - this.relationOrderId = relationOrderId; - if(relationOrderId != null){ - putQueryParameter("RelationOrderId", relationOrderId); - } - } - public String getDedicatedHostId() { return this.dedicatedHostId; } @@ -628,14 +689,14 @@ public void setImageFamily(String imageFamily) { } } - public String getDefaultVpc() { - return this.defaultVpc; + public String getLaunchTemplateName() { + return this.launchTemplateName; } - public void setDefaultVpc(String defaultVpc) { - this.defaultVpc = defaultVpc; - if(defaultVpc != null){ - putQueryParameter("DefaultVpc", defaultVpc); + public void setLaunchTemplateName(String launchTemplateName) { + this.launchTemplateName = launchTemplateName; + if(launchTemplateName != null){ + putQueryParameter("LaunchTemplateName", launchTemplateName); } } @@ -650,19 +711,6 @@ public void setResourceOwnerId(Long resourceOwnerId) { } } - public List getInstances() { - return this.instances; - } - - public void setInstances(List instances) { - this.instances = instances; - if (instances != null) { - for (int depth1 = 0; depth1 < instances.size(); depth1++) { - putQueryParameter("Instance." + (depth1 + 1) + ".PrivateIpAddress" , instances.get(depth1).getPrivateIpAddress()); - } - } - } - public String getHpcClusterId() { return this.hpcClusterId; } @@ -737,23 +785,12 @@ public void setTags(List tags) { this.tags = tags; if (tags != null) { for (int depth1 = 0; depth1 < tags.size(); depth1++) { - putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); } } } - public String getBusinessInfo() { - return this.businessInfo; - } - - public void setBusinessInfo(String businessInfo) { - this.businessInfo = businessInfo; - if(businessInfo != null){ - putQueryParameter("BusinessInfo", businessInfo); - } - } - public String getPrivatePoolOptionsId() { return this.privatePoolOptionsId; } @@ -765,25 +802,25 @@ public void setPrivatePoolOptionsId(String privatePoolOptionsId) { } } - public String getNodeControllerId() { - return this.nodeControllerId; + public Integer getAutoRenewPeriod() { + return this.autoRenewPeriod; } - public void setNodeControllerId(String nodeControllerId) { - this.nodeControllerId = nodeControllerId; - if(nodeControllerId != null){ - putQueryParameter("NodeControllerId", nodeControllerId); + public void setAutoRenewPeriod(Integer autoRenewPeriod) { + this.autoRenewPeriod = autoRenewPeriod; + if(autoRenewPeriod != null){ + putQueryParameter("AutoRenewPeriod", autoRenewPeriod.toString()); } } - public String getFromApp() { - return this.fromApp; + public String getLaunchTemplateId() { + return this.launchTemplateId; } - public void setFromApp(String fromApp) { - this.fromApp = fromApp; - if(fromApp != null){ - putQueryParameter("FromApp", fromApp); + public void setLaunchTemplateId(String launchTemplateId) { + this.launchTemplateId = launchTemplateId; + if(launchTemplateId != null){ + putQueryParameter("LaunchTemplateId", launchTemplateId); } } @@ -798,17 +835,6 @@ public void setIpv6AddressCount(Integer ipv6AddressCount) { } } - public Integer getMaxAmount() { - return this.maxAmount; - } - - public void setMaxAmount(Integer maxAmount) { - this.maxAmount = maxAmount; - if(maxAmount != null){ - putQueryParameter("MaxAmount", maxAmount.toString()); - } - } - public List getHostNamess() { return this.hostNamess; } @@ -833,17 +859,6 @@ public void setVSwitchId(String vSwitchId) { } } - public String getRecycleBinResourceId() { - return this.recycleBinResourceId; - } - - public void setRecycleBinResourceId(String recycleBinResourceId) { - this.recycleBinResourceId = recycleBinResourceId; - if(recycleBinResourceId != null){ - putQueryParameter("RecycleBinResourceId", recycleBinResourceId); - } - } - public String getInstanceName() { return this.instanceName; } @@ -923,6 +938,17 @@ public void setDescription(String description) { } } + public Integer getCpuOptionsThreadsPerCore() { + return this.cpuOptionsThreadsPerCore; + } + + public void setCpuOptionsThreadsPerCore(Integer cpuOptionsThreadsPerCore) { + this.cpuOptionsThreadsPerCore = cpuOptionsThreadsPerCore; + if(cpuOptionsThreadsPerCore != null){ + putQueryParameter("CpuOptions.ThreadsPerCore", cpuOptionsThreadsPerCore.toString()); + } + } + public String getSystemDiskCategory() { return this.systemDiskCategory; } @@ -967,14 +993,14 @@ public void setHttpEndpoint(String httpEndpoint) { } } - public String getDedicatedHostClusterId() { - return this.dedicatedHostClusterId; + public String getInstanceChargeType() { + return this.instanceChargeType; } - public void setDedicatedHostClusterId(String dedicatedHostClusterId) { - this.dedicatedHostClusterId = dedicatedHostClusterId; - if(dedicatedHostClusterId != null){ - putQueryParameter("DedicatedHostClusterId", dedicatedHostClusterId); + public void setInstanceChargeType(String instanceChargeType) { + this.instanceChargeType = instanceChargeType; + if(instanceChargeType != null){ + putQueryParameter("InstanceChargeType", instanceChargeType); } } @@ -998,29 +1024,41 @@ public void setNetworkInterfaces(List networkInterfaces) { if (networkInterfaces != null) { for (int depth1 = 0; depth1 < networkInterfaces.size(); depth1++) { putQueryParameter("NetworkInterface." + (depth1 + 1) + ".VSwitchId" , networkInterfaces.get(depth1).getVSwitchId()); - putQueryParameter("NetworkInterface." + (depth1 + 1) + ".NetworkCardIndex" , networkInterfaces.get(depth1).getNetworkCardIndex()); - putQueryParameter("NetworkInterface." + (depth1 + 1) + ".Ipv6AddressCount" , networkInterfaces.get(depth1).getIpv6AddressCount()); - putQueryParameter("NetworkInterface." + (depth1 + 1) + ".SecurityGroupId" , networkInterfaces.get(depth1).getSecurityGroupId()); + putQueryParameter("NetworkInterface." + (depth1 + 1) + ".NetworkInterfaceName" , networkInterfaces.get(depth1).getNetworkInterfaceName()); putQueryParameter("NetworkInterface." + (depth1 + 1) + ".Description" , networkInterfaces.get(depth1).getDescription()); + putQueryParameter("NetworkInterface." + (depth1 + 1) + ".SecurityGroupId" , networkInterfaces.get(depth1).getSecurityGroupId()); putQueryParameter("NetworkInterface." + (depth1 + 1) + ".PrimaryIpAddress" , networkInterfaces.get(depth1).getPrimaryIpAddress()); - putQueryParameter("NetworkInterface." + (depth1 + 1) + ".InstanceType" , networkInterfaces.get(depth1).getInstanceType()); - putQueryParameter("NetworkInterface." + (depth1 + 1) + ".QueuePairNumber" , networkInterfaces.get(depth1).getQueuePairNumber()); + putQueryParameter("NetworkInterface." + (depth1 + 1) + ".QueueNumber" , networkInterfaces.get(depth1).getQueueNumber()); if (networkInterfaces.get(depth1).getSecurityGroupIdss() != null) { for (int i = 0; i < networkInterfaces.get(depth1).getSecurityGroupIdss().size(); i++) { putQueryParameter("NetworkInterface." + (depth1 + 1) + ".SecurityGroupIds." + (i + 1) , networkInterfaces.get(depth1).getSecurityGroupIdss().get(i)); } } + putQueryParameter("NetworkInterface." + (depth1 + 1) + ".NetworkInterfaceTrafficMode" , networkInterfaces.get(depth1).getNetworkInterfaceTrafficMode()); + putQueryParameter("NetworkInterface." + (depth1 + 1) + ".QueuePairNumber" , networkInterfaces.get(depth1).getQueuePairNumber()); + putQueryParameter("NetworkInterface." + (depth1 + 1) + ".InstanceType" , networkInterfaces.get(depth1).getInstanceType()); + putQueryParameter("NetworkInterface." + (depth1 + 1) + ".Ipv6AddressCount" , networkInterfaces.get(depth1).getIpv6AddressCount()); if (networkInterfaces.get(depth1).getIpv6Addresss() != null) { for (int i = 0; i < networkInterfaces.get(depth1).getIpv6Addresss().size(); i++) { putQueryParameter("NetworkInterface." + (depth1 + 1) + ".Ipv6Address." + (i + 1) , networkInterfaces.get(depth1).getIpv6Addresss().get(i)); } } - putQueryParameter("NetworkInterface." + (depth1 + 1) + ".NetworkInterfaceTrafficMode" , networkInterfaces.get(depth1).getNetworkInterfaceTrafficMode()); - putQueryParameter("NetworkInterface." + (depth1 + 1) + ".NetworkInterfaceName" , networkInterfaces.get(depth1).getNetworkInterfaceName()); + putQueryParameter("NetworkInterface." + (depth1 + 1) + ".NetworkCardIndex" , networkInterfaces.get(depth1).getNetworkCardIndex()); } } } + public Integer getAmount() { + return this.amount; + } + + public void setAmount(Integer amount) { + this.amount = amount; + if(amount != null){ + putQueryParameter("Amount", amount.toString()); + } + } + public String getOwnerAccount() { return this.ownerAccount; } @@ -1043,17 +1081,6 @@ public void setTenancy(String tenancy) { } } - public String getAutoReleaseTime() { - return this.autoReleaseTime; - } - - public void setAutoReleaseTime(String autoReleaseTime) { - this.autoReleaseTime = autoReleaseTime; - if(autoReleaseTime != null){ - putQueryParameter("AutoReleaseTime", autoReleaseTime); - } - } - public String getRamRoleName() { return this.ramRoleName; } @@ -1065,14 +1092,14 @@ public void setRamRoleName(String ramRoleName) { } } - public String getClusterId() { - return this.clusterId; + public String getAutoReleaseTime() { + return this.autoReleaseTime; } - public void setClusterId(String clusterId) { - this.clusterId = clusterId; - if(clusterId != null){ - putQueryParameter("ClusterId", clusterId); + public void setAutoReleaseTime(String autoReleaseTime) { + this.autoReleaseTime = autoReleaseTime; + if(autoReleaseTime != null){ + putQueryParameter("AutoReleaseTime", autoReleaseTime); } } @@ -1087,14 +1114,14 @@ public void setCreditSpecification(String creditSpecification) { } } - public String getSchedulerOptionsManagedPrivateSpaceId() { - return this.schedulerOptionsManagedPrivateSpaceId; + public Long getLaunchTemplateVersion() { + return this.launchTemplateVersion; } - public void setSchedulerOptionsManagedPrivateSpaceId(String schedulerOptionsManagedPrivateSpaceId) { - this.schedulerOptionsManagedPrivateSpaceId = schedulerOptionsManagedPrivateSpaceId; - if(schedulerOptionsManagedPrivateSpaceId != null){ - putQueryParameter("SchedulerOptions.ManagedPrivateSpaceId", schedulerOptionsManagedPrivateSpaceId); + public void setLaunchTemplateVersion(Long launchTemplateVersion) { + this.launchTemplateVersion = launchTemplateVersion; + if(launchTemplateVersion != null){ + putQueryParameter("LaunchTemplateVersion", launchTemplateVersion.toString()); } } @@ -1106,21 +1133,21 @@ public void setDataDisks(List dataDisks) { this.dataDisks = dataDisks; if (dataDisks != null) { for (int depth1 = 0; depth1 < dataDisks.size(); depth1++) { - putQueryParameter("DataDisk." + (depth1 + 1) + ".SnapshotId" , dataDisks.get(depth1).getSnapshotId()); putQueryParameter("DataDisk." + (depth1 + 1) + ".PerformanceLevel" , dataDisks.get(depth1).getPerformanceLevel()); - putQueryParameter("DataDisk." + (depth1 + 1) + ".EncryptAlgorithm" , dataDisks.get(depth1).getEncryptAlgorithm()); putQueryParameter("DataDisk." + (depth1 + 1) + ".AutoSnapshotPolicyId" , dataDisks.get(depth1).getAutoSnapshotPolicyId()); - putQueryParameter("DataDisk." + (depth1 + 1) + ".Description" , dataDisks.get(depth1).getDescription()); - putQueryParameter("DataDisk." + (depth1 + 1) + ".BurstingEnabled" , dataDisks.get(depth1).getBurstingEnabled()); - putQueryParameter("DataDisk." + (depth1 + 1) + ".DiskName" , dataDisks.get(depth1).getDiskName()); - putQueryParameter("DataDisk." + (depth1 + 1) + ".ProvisionedIops" , dataDisks.get(depth1).getProvisionedIops()); putQueryParameter("DataDisk." + (depth1 + 1) + ".Encrypted" , dataDisks.get(depth1).getEncrypted()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".Description" , dataDisks.get(depth1).getDescription()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".SnapshotId" , dataDisks.get(depth1).getSnapshotId()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".Device" , dataDisks.get(depth1).getDevice()); putQueryParameter("DataDisk." + (depth1 + 1) + ".Size" , dataDisks.get(depth1).getSize()); - putQueryParameter("DataDisk." + (depth1 + 1) + ".StorageClusterId" , dataDisks.get(depth1).getStorageClusterId()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".DiskName" , dataDisks.get(depth1).getDiskName()); putQueryParameter("DataDisk." + (depth1 + 1) + ".Category" , dataDisks.get(depth1).getCategory()); - putQueryParameter("DataDisk." + (depth1 + 1) + ".KMSKeyId" , dataDisks.get(depth1).getKMSKeyId()); - putQueryParameter("DataDisk." + (depth1 + 1) + ".Device" , dataDisks.get(depth1).getDevice()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".EncryptAlgorithm" , dataDisks.get(depth1).getEncryptAlgorithm()); putQueryParameter("DataDisk." + (depth1 + 1) + ".DeleteWithInstance" , dataDisks.get(depth1).getDeleteWithInstance()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".KMSKeyId" , dataDisks.get(depth1).getKMSKeyId()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".StorageClusterId" , dataDisks.get(depth1).getStorageClusterId()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".ProvisionedIops" , dataDisks.get(depth1).getProvisionedIops()); + putQueryParameter("DataDisk." + (depth1 + 1) + ".BurstingEnabled" , dataDisks.get(depth1).getBurstingEnabled()); } } } @@ -1136,23 +1163,6 @@ public void setStorageSetId(String storageSetId) { } } - public List getSecurityGroupRules() { - return this.securityGroupRules; - } - - public void setSecurityGroupRules(List securityGroupRules) { - this.securityGroupRules = securityGroupRules; - if (securityGroupRules != null) { - for (int depth1 = 0; depth1 < securityGroupRules.size(); depth1++) { - putQueryParameter("SecurityGroupRule." + (depth1 + 1) + ".NicType" , securityGroupRules.get(depth1).getNicType()); - putQueryParameter("SecurityGroupRule." + (depth1 + 1) + ".PortRange" , securityGroupRules.get(depth1).getPortRange()); - putQueryParameter("SecurityGroupRule." + (depth1 + 1) + ".IpProtocol" , securityGroupRules.get(depth1).getIpProtocol()); - putQueryParameter("SecurityGroupRule." + (depth1 + 1) + ".Priority" , securityGroupRules.get(depth1).getPriority()); - putQueryParameter("SecurityGroupRule." + (depth1 + 1) + ".Policy" , securityGroupRules.get(depth1).getPolicy()); - } - } - } - public String getHttpTokens() { return this.httpTokens; } @@ -1177,48 +1187,48 @@ public void setSystemDiskDescription(String systemDiskDescription) { public static class SystemDisk { - private Long provisionedIops; + private String storageClusterId; - private Boolean encrypted; + private Long provisionedIops; - private String encryptAlgorithm; + private Boolean burstingEnabled; - private String storageClusterId; + private String encrypted; private String kMSKeyId; - private Boolean burstingEnabled; + private String encryptAlgorithm; - public Long getProvisionedIops() { - return this.provisionedIops; + public String getStorageClusterId() { + return this.storageClusterId; } - public void setProvisionedIops(Long provisionedIops) { - this.provisionedIops = provisionedIops; + public void setStorageClusterId(String storageClusterId) { + this.storageClusterId = storageClusterId; } - public Boolean getEncrypted() { - return this.encrypted; + public Long getProvisionedIops() { + return this.provisionedIops; } - public void setEncrypted(Boolean encrypted) { - this.encrypted = encrypted; + public void setProvisionedIops(Long provisionedIops) { + this.provisionedIops = provisionedIops; } - public String getEncryptAlgorithm() { - return this.encryptAlgorithm; + public Boolean getBurstingEnabled() { + return this.burstingEnabled; } - public void setEncryptAlgorithm(String encryptAlgorithm) { - this.encryptAlgorithm = encryptAlgorithm; + public void setBurstingEnabled(Boolean burstingEnabled) { + this.burstingEnabled = burstingEnabled; } - public String getStorageClusterId() { - return this.storageClusterId; + public String getEncrypted() { + return this.encrypted; } - public void setStorageClusterId(String storageClusterId) { - this.storageClusterId = storageClusterId; + public void setEncrypted(String encrypted) { + this.encrypted = encrypted; } public String getKMSKeyId() { @@ -1229,12 +1239,12 @@ public void setKMSKeyId(String kMSKeyId) { this.kMSKeyId = kMSKeyId; } - public Boolean getBurstingEnabled() { - return this.burstingEnabled; + public String getEncryptAlgorithm() { + return this.encryptAlgorithm; } - public void setBurstingEnabled(Boolean burstingEnabled) { - this.burstingEnabled = burstingEnabled; + public void setEncryptAlgorithm(String encryptAlgorithm) { + this.encryptAlgorithm = encryptAlgorithm; } } @@ -1251,45 +1261,57 @@ public void setLoginAsNonRoot(Boolean loginAsNonRoot) { } } - public static class NetworkOptions { + public static class Arn { - private Boolean enableJumboFrame; + private String roleType; - public Boolean getEnableJumboFrame() { - return this.enableJumboFrame; + private String rolearn; + + private Long assumeRoleFor; + + public String getRoleType() { + return this.roleType; } - public void setEnableJumboFrame(Boolean enableJumboFrame) { - this.enableJumboFrame = enableJumboFrame; + public void setRoleType(String roleType) { + this.roleType = roleType; } - } - public static class Instance { + public String getRolearn() { + return this.rolearn; + } - private String privateIpAddress; + public void setRolearn(String rolearn) { + this.rolearn = rolearn; + } - public String getPrivateIpAddress() { - return this.privateIpAddress; + public Long getAssumeRoleFor() { + return this.assumeRoleFor; } - public void setPrivateIpAddress(String privateIpAddress) { - this.privateIpAddress = privateIpAddress; + public void setAssumeRoleFor(Long assumeRoleFor) { + this.assumeRoleFor = assumeRoleFor; } } - public static class Tag { - - private String value; + public static class NetworkOptions { - private String key; + private Boolean enableJumboFrame; - public String getValue() { - return this.value; + public Boolean getEnableJumboFrame() { + return this.enableJumboFrame; } - public void setValue(String value) { - this.value = value; + public void setEnableJumboFrame(Boolean enableJumboFrame) { + this.enableJumboFrame = enableJumboFrame; } + } + + public static class Tag { + + private String key; + + private String value; public String getKey() { return this.key; @@ -1298,33 +1320,43 @@ public String getKey() { public void setKey(String key) { this.key = key; } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } } public static class NetworkInterface { private String vSwitchId; - private Integer networkCardIndex; + private String networkInterfaceName; - private Long ipv6AddressCount; + private String description; private String securityGroupId; - private String description; - private String primaryIpAddress; - private String instanceType; + private Integer queueNumber; + + private List securityGroupIdss; + + private String networkInterfaceTrafficMode; private Long queuePairNumber; - private List securityGroupIdss; + private String instanceType; - private List ipv6Addresss; + private Long ipv6AddressCount; - private String networkInterfaceTrafficMode; + private List ipv6Addresss; - private String networkInterfaceName; + private Integer networkCardIndex; public String getVSwitchId() { return this.vSwitchId; @@ -1334,20 +1366,20 @@ public void setVSwitchId(String vSwitchId) { this.vSwitchId = vSwitchId; } - public Integer getNetworkCardIndex() { - return this.networkCardIndex; + public String getNetworkInterfaceName() { + return this.networkInterfaceName; } - public void setNetworkCardIndex(Integer networkCardIndex) { - this.networkCardIndex = networkCardIndex; + public void setNetworkInterfaceName(String networkInterfaceName) { + this.networkInterfaceName = networkInterfaceName; } - public Long getIpv6AddressCount() { - return this.ipv6AddressCount; + public String getDescription() { + return this.description; } - public void setIpv6AddressCount(Long ipv6AddressCount) { - this.ipv6AddressCount = ipv6AddressCount; + public void setDescription(String description) { + this.description = description; } public String getSecurityGroupId() { @@ -1358,14 +1390,6 @@ public void setSecurityGroupId(String securityGroupId) { this.securityGroupId = securityGroupId; } - public String getDescription() { - return this.description; - } - - public void setDescription(String description) { - this.description = description; - } - public String getPrimaryIpAddress() { return this.primaryIpAddress; } @@ -1374,12 +1398,28 @@ public void setPrimaryIpAddress(String primaryIpAddress) { this.primaryIpAddress = primaryIpAddress; } - public String getInstanceType() { - return this.instanceType; + public Integer getQueueNumber() { + return this.queueNumber; } - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; + public void setQueueNumber(Integer queueNumber) { + this.queueNumber = queueNumber; + } + + public List getSecurityGroupIdss() { + return this.securityGroupIdss; + } + + public void setSecurityGroupIdss(List securityGroupIdss) { + this.securityGroupIdss = securityGroupIdss; + } + + public String getNetworkInterfaceTrafficMode() { + return this.networkInterfaceTrafficMode; + } + + public void setNetworkInterfaceTrafficMode(String networkInterfaceTrafficMode) { + this.networkInterfaceTrafficMode = networkInterfaceTrafficMode; } public Long getQueuePairNumber() { @@ -1390,78 +1430,70 @@ public void setQueuePairNumber(Long queuePairNumber) { this.queuePairNumber = queuePairNumber; } - public List getSecurityGroupIdss() { - return this.securityGroupIdss; + public String getInstanceType() { + return this.instanceType; } - public void setSecurityGroupIdss(List securityGroupIdss) { - this.securityGroupIdss = securityGroupIdss; + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; } - public List getIpv6Addresss() { - return this.ipv6Addresss; + public Long getIpv6AddressCount() { + return this.ipv6AddressCount; } - public void setIpv6Addresss(List ipv6Addresss) { - this.ipv6Addresss = ipv6Addresss; + public void setIpv6AddressCount(Long ipv6AddressCount) { + this.ipv6AddressCount = ipv6AddressCount; } - public String getNetworkInterfaceTrafficMode() { - return this.networkInterfaceTrafficMode; + public List getIpv6Addresss() { + return this.ipv6Addresss; } - public void setNetworkInterfaceTrafficMode(String networkInterfaceTrafficMode) { - this.networkInterfaceTrafficMode = networkInterfaceTrafficMode; + public void setIpv6Addresss(List ipv6Addresss) { + this.ipv6Addresss = ipv6Addresss; } - public String getNetworkInterfaceName() { - return this.networkInterfaceName; + public Integer getNetworkCardIndex() { + return this.networkCardIndex; } - public void setNetworkInterfaceName(String networkInterfaceName) { - this.networkInterfaceName = networkInterfaceName; + public void setNetworkCardIndex(Integer networkCardIndex) { + this.networkCardIndex = networkCardIndex; } } public static class DataDisk { - private String snapshotId; - private String performanceLevel; - private String encryptAlgorithm; - private String autoSnapshotPolicyId; - private String description; - - private Boolean burstingEnabled; + private String encrypted; - private String diskName; + private String description; - private Long provisionedIops; + private String snapshotId; - private Boolean encrypted; + private String device; private Integer size; - private String storageClusterId; + private String diskName; private String category; - private String kMSKeyId; - - private String device; + private String encryptAlgorithm; private Boolean deleteWithInstance; - public String getSnapshotId() { - return this.snapshotId; - } + private String kMSKeyId; - public void setSnapshotId(String snapshotId) { - this.snapshotId = snapshotId; - } + private String storageClusterId; + + private Long provisionedIops; + + private Boolean burstingEnabled; public String getPerformanceLevel() { return this.performanceLevel; @@ -1471,14 +1503,6 @@ public void setPerformanceLevel(String performanceLevel) { this.performanceLevel = performanceLevel; } - public String getEncryptAlgorithm() { - return this.encryptAlgorithm; - } - - public void setEncryptAlgorithm(String encryptAlgorithm) { - this.encryptAlgorithm = encryptAlgorithm; - } - public String getAutoSnapshotPolicyId() { return this.autoSnapshotPolicyId; } @@ -1487,44 +1511,36 @@ public void setAutoSnapshotPolicyId(String autoSnapshotPolicyId) { this.autoSnapshotPolicyId = autoSnapshotPolicyId; } - public String getDescription() { - return this.description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Boolean getBurstingEnabled() { - return this.burstingEnabled; + public String getEncrypted() { + return this.encrypted; } - public void setBurstingEnabled(Boolean burstingEnabled) { - this.burstingEnabled = burstingEnabled; + public void setEncrypted(String encrypted) { + this.encrypted = encrypted; } - public String getDiskName() { - return this.diskName; + public String getDescription() { + return this.description; } - public void setDiskName(String diskName) { - this.diskName = diskName; + public void setDescription(String description) { + this.description = description; } - public Long getProvisionedIops() { - return this.provisionedIops; + public String getSnapshotId() { + return this.snapshotId; } - public void setProvisionedIops(Long provisionedIops) { - this.provisionedIops = provisionedIops; + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; } - public Boolean getEncrypted() { - return this.encrypted; + public String getDevice() { + return this.device; } - public void setEncrypted(Boolean encrypted) { - this.encrypted = encrypted; + public void setDevice(String device) { + this.device = device; } public Integer getSize() { @@ -1535,12 +1551,12 @@ public void setSize(Integer size) { this.size = size; } - public String getStorageClusterId() { - return this.storageClusterId; + public String getDiskName() { + return this.diskName; } - public void setStorageClusterId(String storageClusterId) { - this.storageClusterId = storageClusterId; + public void setDiskName(String diskName) { + this.diskName = diskName; } public String getCategory() { @@ -1551,20 +1567,12 @@ public void setCategory(String category) { this.category = category; } - public String getKMSKeyId() { - return this.kMSKeyId; - } - - public void setKMSKeyId(String kMSKeyId) { - this.kMSKeyId = kMSKeyId; - } - - public String getDevice() { - return this.device; + public String getEncryptAlgorithm() { + return this.encryptAlgorithm; } - public void setDevice(String device) { - this.device = device; + public void setEncryptAlgorithm(String encryptAlgorithm) { + this.encryptAlgorithm = encryptAlgorithm; } public Boolean getDeleteWithInstance() { @@ -1574,58 +1582,37 @@ public Boolean getDeleteWithInstance() { public void setDeleteWithInstance(Boolean deleteWithInstance) { this.deleteWithInstance = deleteWithInstance; } - } - - public static class SecurityGroupRule { - - private String nicType; - - private String portRange; - - private String ipProtocol; - - private String priority; - private String policy; - - public String getNicType() { - return this.nicType; - } - - public void setNicType(String nicType) { - this.nicType = nicType; - } - - public String getPortRange() { - return this.portRange; + public String getKMSKeyId() { + return this.kMSKeyId; } - public void setPortRange(String portRange) { - this.portRange = portRange; + public void setKMSKeyId(String kMSKeyId) { + this.kMSKeyId = kMSKeyId; } - public String getIpProtocol() { - return this.ipProtocol; + public String getStorageClusterId() { + return this.storageClusterId; } - public void setIpProtocol(String ipProtocol) { - this.ipProtocol = ipProtocol; + public void setStorageClusterId(String storageClusterId) { + this.storageClusterId = storageClusterId; } - public String getPriority() { - return this.priority; + public Long getProvisionedIops() { + return this.provisionedIops; } - public void setPriority(String priority) { - this.priority = priority; + public void setProvisionedIops(Long provisionedIops) { + this.provisionedIops = provisionedIops; } - public String getPolicy() { - return this.policy; + public Boolean getBurstingEnabled() { + return this.burstingEnabled; } - public void setPolicy(String policy) { - this.policy = policy; + public void setBurstingEnabled(Boolean burstingEnabled) { + this.burstingEnabled = burstingEnabled; } } diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RunInstancesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RunInstancesResponse.java new file mode 100644 index 0000000000..e89ec5d543 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/RunInstancesResponse.java @@ -0,0 +1,72 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.RunInstancesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class RunInstancesResponse extends AcsResponse { + + private String requestId; + + private String orderId; + + private Float tradePrice; + + private List instanceIdSets; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getOrderId() { + return this.orderId; + } + + public void setOrderId(String orderId) { + this.orderId = orderId; + } + + public Float getTradePrice() { + return this.tradePrice; + } + + public void setTradePrice(Float tradePrice) { + this.tradePrice = tradePrice; + } + + public List getInstanceIdSets() { + return this.instanceIdSets; + } + + public void setInstanceIdSets(List instanceIdSets) { + this.instanceIdSets = instanceIdSets; + } + + @Override + public RunInstancesResponse getInstance(UnmarshallerContext context) { + return RunInstancesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/SendFileRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/SendFileRequest.java new file mode 100644 index 0000000000..e13902f9d8 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/SendFileRequest.java @@ -0,0 +1,291 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class SendFileRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String description; + + private Long timeout; + + private String content; + + private String resourceGroupId; + + private String fileOwner; + + private List tags; + + private Boolean overwrite; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private String fileMode; + + private Long ownerId; + + private String contentType; + + private List instanceIds; + + private String name; + + private String fileGroup; + + private String targetDir; + public SendFileRequest() { + super("Ecs", "2014-05-26", "SendFile", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public Long getTimeout() { + return this.timeout; + } + + public void setTimeout(Long timeout) { + this.timeout = timeout; + if(timeout != null){ + putQueryParameter("Timeout", timeout.toString()); + } + } + + public String getContent() { + return this.content; + } + + public void setContent(String content) { + this.content = content; + if(content != null){ + putQueryParameter("Content", content); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putQueryParameter("ResourceGroupId", resourceGroupId); + } + } + + public String getFileOwner() { + return this.fileOwner; + } + + public void setFileOwner(String fileOwner) { + this.fileOwner = fileOwner; + if(fileOwner != null){ + putQueryParameter("FileOwner", fileOwner); + } + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public Boolean getOverwrite() { + return this.overwrite; + } + + public void setOverwrite(Boolean overwrite) { + this.overwrite = overwrite; + if(overwrite != null){ + putQueryParameter("Overwrite", overwrite.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public String getFileMode() { + return this.fileMode; + } + + public void setFileMode(String fileMode) { + this.fileMode = fileMode; + if(fileMode != null){ + putQueryParameter("FileMode", fileMode); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getContentType() { + return this.contentType; + } + + public void setContentType(String contentType) { + this.contentType = contentType; + if(contentType != null){ + putQueryParameter("ContentType", contentType); + } + } + + public List getInstanceIds() { + return this.instanceIds; + } + + public void setInstanceIds(List instanceIds) { + this.instanceIds = instanceIds; + if (instanceIds != null) { + for (int i = 0; i < instanceIds.size(); i++) { + putQueryParameter("InstanceId." + (i + 1) , instanceIds.get(i)); + } + } + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + if(name != null){ + putQueryParameter("Name", name); + } + } + + public String getFileGroup() { + return this.fileGroup; + } + + public void setFileGroup(String fileGroup) { + this.fileGroup = fileGroup; + if(fileGroup != null){ + putQueryParameter("FileGroup", fileGroup); + } + } + + public String getTargetDir() { + return this.targetDir; + } + + public void setTargetDir(String targetDir) { + this.targetDir = targetDir; + if(targetDir != null){ + putQueryParameter("TargetDir", targetDir); + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return SendFileResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/SendFileResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/SendFileResponse.java new file mode 100644 index 0000000000..13073c5127 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/SendFileResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.SendFileResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class SendFileResponse extends AcsResponse { + + private String invokeId; + + private String requestId; + + public String getInvokeId() { + return this.invokeId; + } + + public void setInvokeId(String invokeId) { + this.invokeId = invokeId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public SendFileResponse getInstance(UnmarshallerContext context) { + return SendFileResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StartElasticityAssuranceRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StartElasticityAssuranceRequest.java new file mode 100644 index 0000000000..3650b39260 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StartElasticityAssuranceRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class StartElasticityAssuranceRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String privatePoolOptionsId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public StartElasticityAssuranceRequest() { + super("Ecs", "2014-05-26", "StartElasticityAssurance", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getPrivatePoolOptionsId() { + return this.privatePoolOptionsId; + } + + public void setPrivatePoolOptionsId(String privatePoolOptionsId) { + this.privatePoolOptionsId = privatePoolOptionsId; + if(privatePoolOptionsId != null){ + putQueryParameter("PrivatePoolOptions.Id", privatePoolOptionsId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return StartElasticityAssuranceResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StartElasticityAssuranceResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StartElasticityAssuranceResponse.java new file mode 100644 index 0000000000..1e50a2c7dc --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StartElasticityAssuranceResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.StartElasticityAssuranceResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class StartElasticityAssuranceResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public StartElasticityAssuranceResponse getInstance(UnmarshallerContext context) { + return StartElasticityAssuranceResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StartImagePipelineExecutionRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StartImagePipelineExecutionRequest.java new file mode 100644 index 0000000000..6a04fc0236 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StartImagePipelineExecutionRequest.java @@ -0,0 +1,159 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class StartImagePipelineExecutionRequest extends RpcAcsRequest { + + + private String imagePipelineId; + + private Long resourceOwnerId; + + private String clientToken; + + private List templateTags; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public StartImagePipelineExecutionRequest() { + super("Ecs", "2014-05-26", "StartImagePipelineExecution", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getImagePipelineId() { + return this.imagePipelineId; + } + + public void setImagePipelineId(String imagePipelineId) { + this.imagePipelineId = imagePipelineId; + if(imagePipelineId != null){ + putQueryParameter("ImagePipelineId", imagePipelineId); + } + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public List getTemplateTags() { + return this.templateTags; + } + + public void setTemplateTags(List templateTags) { + this.templateTags = templateTags; + if (templateTags != null) { + for (int depth1 = 0; depth1 < templateTags.size(); depth1++) { + putQueryParameter("TemplateTag." + (depth1 + 1) + ".Key" , templateTags.get(depth1).getKey()); + putQueryParameter("TemplateTag." + (depth1 + 1) + ".Value" , templateTags.get(depth1).getValue()); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public static class TemplateTag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return StartImagePipelineExecutionResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StartImagePipelineExecutionResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StartImagePipelineExecutionResponse.java new file mode 100644 index 0000000000..7dcefcc366 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StartImagePipelineExecutionResponse.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.StartImagePipelineExecutionResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class StartImagePipelineExecutionResponse extends AcsResponse { + + private String executionId; + + private String requestId; + + public String getExecutionId() { + return this.executionId; + } + + public void setExecutionId(String executionId) { + this.executionId = executionId; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public StartImagePipelineExecutionResponse getInstance(UnmarshallerContext context) { + return StartImagePipelineExecutionResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StartInstanceRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StartInstanceRequest.java new file mode 100644 index 0000000000..dd017bd026 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StartInstanceRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class StartInstanceRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Boolean initLocalDisk; + + private Boolean dryRun; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceId; + public StartInstanceRequest() { + super("Ecs", "2014-05-26", "StartInstance", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Boolean getInitLocalDisk() { + return this.initLocalDisk; + } + + public void setInitLocalDisk(Boolean initLocalDisk) { + this.initLocalDisk = initLocalDisk; + if(initLocalDisk != null){ + putQueryParameter("InitLocalDisk", initLocalDisk.toString()); + } + } + + public Boolean getDryRun() { + return this.dryRun; + } + + public void setDryRun(Boolean dryRun) { + this.dryRun = dryRun; + if(dryRun != null){ + putQueryParameter("DryRun", dryRun.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + @Override + public Class getResponseClass() { + return StartInstanceResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StartInstanceResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StartInstanceResponse.java new file mode 100644 index 0000000000..762c9a8409 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StartInstanceResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.StartInstanceResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class StartInstanceResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public StartInstanceResponse getInstance(UnmarshallerContext context) { + return StartInstanceResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StartInstancesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StartInstancesRequest.java new file mode 100644 index 0000000000..2fc59e1bc6 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StartInstancesRequest.java @@ -0,0 +1,135 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class StartInstancesRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String batchOptimization; + + private Boolean dryRun; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private List instanceIds; + public StartInstancesRequest() { + super("Ecs", "2014-05-26", "StartInstances", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getBatchOptimization() { + return this.batchOptimization; + } + + public void setBatchOptimization(String batchOptimization) { + this.batchOptimization = batchOptimization; + if(batchOptimization != null){ + putQueryParameter("BatchOptimization", batchOptimization); + } + } + + public Boolean getDryRun() { + return this.dryRun; + } + + public void setDryRun(Boolean dryRun) { + this.dryRun = dryRun; + if(dryRun != null){ + putQueryParameter("DryRun", dryRun.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getInstanceIds() { + return this.instanceIds; + } + + public void setInstanceIds(List instanceIds) { + this.instanceIds = instanceIds; + if (instanceIds != null) { + for (int i = 0; i < instanceIds.size(); i++) { + putQueryParameter("InstanceId." + (i + 1) , instanceIds.get(i)); + } + } + } + + @Override + public Class getResponseClass() { + return StartInstancesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StartInstancesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StartInstancesResponse.java new file mode 100644 index 0000000000..dbaa713b87 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StartInstancesResponse.java @@ -0,0 +1,105 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.StartInstancesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class StartInstancesResponse extends AcsResponse { + + private String requestId; + + private List instanceResponses; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getInstanceResponses() { + return this.instanceResponses; + } + + public void setInstanceResponses(List instanceResponses) { + this.instanceResponses = instanceResponses; + } + + public static class InstanceResponse { + + private String code; + + private String message; + + private String instanceId; + + private String currentStatus; + + private String previousStatus; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getMessage() { + return this.message; + } + + public void setMessage(String message) { + this.message = message; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getCurrentStatus() { + return this.currentStatus; + } + + public void setCurrentStatus(String currentStatus) { + this.currentStatus = currentStatus; + } + + public String getPreviousStatus() { + return this.previousStatus; + } + + public void setPreviousStatus(String previousStatus) { + this.previousStatus = previousStatus; + } + } + + @Override + public StartInstancesResponse getInstance(UnmarshallerContext context) { + return StartInstancesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StartTerminalSessionRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StartTerminalSessionRequest.java new file mode 100644 index 0000000000..143dc6e218 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StartTerminalSessionRequest.java @@ -0,0 +1,122 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class StartTerminalSessionRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private List instanceIds; + + private Integer portNumber; + public StartTerminalSessionRequest() { + super("Ecs", "2014-05-26", "StartTerminalSession", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getInstanceIds() { + return this.instanceIds; + } + + public void setInstanceIds(List instanceIds) { + this.instanceIds = instanceIds; + if (instanceIds != null) { + for (int i = 0; i < instanceIds.size(); i++) { + putQueryParameter("InstanceId." + (i + 1) , instanceIds.get(i)); + } + } + } + + public Integer getPortNumber() { + return this.portNumber; + } + + public void setPortNumber(Integer portNumber) { + this.portNumber = portNumber; + if(portNumber != null){ + putQueryParameter("PortNumber", portNumber.toString()); + } + } + + @Override + public Class getResponseClass() { + return StartTerminalSessionResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StartTerminalSessionResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StartTerminalSessionResponse.java new file mode 100644 index 0000000000..1a0dfa1fae --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StartTerminalSessionResponse.java @@ -0,0 +1,71 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.StartTerminalSessionResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class StartTerminalSessionResponse extends AcsResponse { + + private String requestId; + + private String sessionId; + + private String securityToken; + + private String webSocketUrl; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getSessionId() { + return this.sessionId; + } + + public void setSessionId(String sessionId) { + this.sessionId = sessionId; + } + + public String getSecurityToken() { + return this.securityToken; + } + + public void setSecurityToken(String securityToken) { + this.securityToken = securityToken; + } + + public String getWebSocketUrl() { + return this.webSocketUrl; + } + + public void setWebSocketUrl(String webSocketUrl) { + this.webSocketUrl = webSocketUrl; + } + + @Override + public StartTerminalSessionResponse getInstance(UnmarshallerContext context) { + return StartTerminalSessionResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StopInstanceRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StopInstanceRequest.java new file mode 100644 index 0000000000..cefd697ab8 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StopInstanceRequest.java @@ -0,0 +1,171 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class StopInstanceRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String stoppedMode; + + private Boolean hibernate; + + private Boolean forceStop; + + private Boolean confirmStop; + + private Boolean dryRun; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceId; + public StopInstanceRequest() { + super("Ecs", "2014-05-26", "StopInstance", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getStoppedMode() { + return this.stoppedMode; + } + + public void setStoppedMode(String stoppedMode) { + this.stoppedMode = stoppedMode; + if(stoppedMode != null){ + putQueryParameter("StoppedMode", stoppedMode); + } + } + + public Boolean getHibernate() { + return this.hibernate; + } + + public void setHibernate(Boolean hibernate) { + this.hibernate = hibernate; + if(hibernate != null){ + putQueryParameter("Hibernate", hibernate.toString()); + } + } + + public Boolean getForceStop() { + return this.forceStop; + } + + public void setForceStop(Boolean forceStop) { + this.forceStop = forceStop; + if(forceStop != null){ + putQueryParameter("ForceStop", forceStop.toString()); + } + } + + public Boolean getConfirmStop() { + return this.confirmStop; + } + + public void setConfirmStop(Boolean confirmStop) { + this.confirmStop = confirmStop; + if(confirmStop != null){ + putQueryParameter("ConfirmStop", confirmStop.toString()); + } + } + + public Boolean getDryRun() { + return this.dryRun; + } + + public void setDryRun(Boolean dryRun) { + this.dryRun = dryRun; + if(dryRun != null){ + putQueryParameter("DryRun", dryRun.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + @Override + public Class getResponseClass() { + return StopInstanceResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StopInstanceResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StopInstanceResponse.java new file mode 100644 index 0000000000..cb3f43fbc8 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StopInstanceResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.StopInstanceResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class StopInstanceResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public StopInstanceResponse getInstance(UnmarshallerContext context) { + return StopInstanceResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StopInstancesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StopInstancesRequest.java new file mode 100644 index 0000000000..71fcdc57fe --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StopInstancesRequest.java @@ -0,0 +1,161 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class StopInstancesRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String stoppedMode; + + private Boolean forceStop; + + private String batchOptimization; + + private Boolean dryRun; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private List instanceIds; + public StopInstancesRequest() { + super("Ecs", "2014-05-26", "StopInstances", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getStoppedMode() { + return this.stoppedMode; + } + + public void setStoppedMode(String stoppedMode) { + this.stoppedMode = stoppedMode; + if(stoppedMode != null){ + putQueryParameter("StoppedMode", stoppedMode); + } + } + + public Boolean getForceStop() { + return this.forceStop; + } + + public void setForceStop(Boolean forceStop) { + this.forceStop = forceStop; + if(forceStop != null){ + putQueryParameter("ForceStop", forceStop.toString()); + } + } + + public String getBatchOptimization() { + return this.batchOptimization; + } + + public void setBatchOptimization(String batchOptimization) { + this.batchOptimization = batchOptimization; + if(batchOptimization != null){ + putQueryParameter("BatchOptimization", batchOptimization); + } + } + + public Boolean getDryRun() { + return this.dryRun; + } + + public void setDryRun(Boolean dryRun) { + this.dryRun = dryRun; + if(dryRun != null){ + putQueryParameter("DryRun", dryRun.toString()); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getInstanceIds() { + return this.instanceIds; + } + + public void setInstanceIds(List instanceIds) { + this.instanceIds = instanceIds; + if (instanceIds != null) { + for (int i = 0; i < instanceIds.size(); i++) { + putQueryParameter("InstanceId." + (i + 1) , instanceIds.get(i)); + } + } + } + + @Override + public Class getResponseClass() { + return StopInstancesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StopInstancesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StopInstancesResponse.java new file mode 100644 index 0000000000..76eea118c7 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StopInstancesResponse.java @@ -0,0 +1,105 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.StopInstancesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class StopInstancesResponse extends AcsResponse { + + private String requestId; + + private List instanceResponses; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getInstanceResponses() { + return this.instanceResponses; + } + + public void setInstanceResponses(List instanceResponses) { + this.instanceResponses = instanceResponses; + } + + public static class InstanceResponse { + + private String code; + + private String message; + + private String instanceId; + + private String currentStatus; + + private String previousStatus; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getMessage() { + return this.message; + } + + public void setMessage(String message) { + this.message = message; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getCurrentStatus() { + return this.currentStatus; + } + + public void setCurrentStatus(String currentStatus) { + this.currentStatus = currentStatus; + } + + public String getPreviousStatus() { + return this.previousStatus; + } + + public void setPreviousStatus(String previousStatus) { + this.previousStatus = previousStatus; + } + } + + @Override + public StopInstancesResponse getInstance(UnmarshallerContext context) { + return StopInstancesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StopInvocationRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StopInvocationRequest.java new file mode 100644 index 0000000000..a96864fc1b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StopInvocationRequest.java @@ -0,0 +1,122 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class StopInvocationRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String invokeId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private List instanceIds; + public StopInvocationRequest() { + super("Ecs", "2014-05-26", "StopInvocation", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getInvokeId() { + return this.invokeId; + } + + public void setInvokeId(String invokeId) { + this.invokeId = invokeId; + if(invokeId != null){ + putQueryParameter("InvokeId", invokeId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getInstanceIds() { + return this.instanceIds; + } + + public void setInstanceIds(List instanceIds) { + this.instanceIds = instanceIds; + if (instanceIds != null) { + for (int i = 0; i < instanceIds.size(); i++) { + putQueryParameter("InstanceId." + (i + 1) , instanceIds.get(i)); + } + } + } + + @Override + public Class getResponseClass() { + return StopInvocationResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StopInvocationResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StopInvocationResponse.java new file mode 100644 index 0000000000..a14536c546 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/StopInvocationResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.StopInvocationResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class StopInvocationResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public StopInvocationResponse getInstance(UnmarshallerContext context) { + return StopInvocationResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/TagResourcesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/TagResourcesRequest.java new file mode 100644 index 0000000000..2dd909c9da --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/TagResourcesRequest.java @@ -0,0 +1,148 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class TagResourcesRequest extends RpcAcsRequest { + + + private List tags; + + private List resourceIds; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String resourceType; + public TagResourcesRequest() { + super("Ecs", "2014-05-26", "TagResources", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public List getTags() { + return this.tags; + } + + public void setTags(List tags) { + this.tags = tags; + if (tags != null) { + for (int depth1 = 0; depth1 < tags.size(); depth1++) { + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); + } + } + } + + public List getResourceIds() { + return this.resourceIds; + } + + public void setResourceIds(List resourceIds) { + this.resourceIds = resourceIds; + if (resourceIds != null) { + for (int i = 0; i < resourceIds.size(); i++) { + putQueryParameter("ResourceId." + (i + 1) , resourceIds.get(i)); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getResourceType() { + return this.resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + if(resourceType != null){ + putQueryParameter("ResourceType", resourceType); + } + } + + public static class Tag { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + + @Override + public Class getResponseClass() { + return TagResourcesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/TagResourcesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/TagResourcesResponse.java new file mode 100644 index 0000000000..22192833fc --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/TagResourcesResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.TagResourcesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class TagResourcesResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public TagResourcesResponse getInstance(UnmarshallerContext context) { + return TagResourcesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/TerminatePhysicalConnectionRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/TerminatePhysicalConnectionRequest.java new file mode 100644 index 0000000000..01244d0ea7 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/TerminatePhysicalConnectionRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class TerminatePhysicalConnectionRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private String userCidr; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String physicalConnectionId; + public TerminatePhysicalConnectionRequest() { + super("Ecs", "2014-05-26", "TerminatePhysicalConnection", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getUserCidr() { + return this.userCidr; + } + + public void setUserCidr(String userCidr) { + this.userCidr = userCidr; + if(userCidr != null){ + putQueryParameter("UserCidr", userCidr); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getPhysicalConnectionId() { + return this.physicalConnectionId; + } + + public void setPhysicalConnectionId(String physicalConnectionId) { + this.physicalConnectionId = physicalConnectionId; + if(physicalConnectionId != null){ + putQueryParameter("PhysicalConnectionId", physicalConnectionId); + } + } + + @Override + public Class getResponseClass() { + return TerminatePhysicalConnectionResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/TerminatePhysicalConnectionResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/TerminatePhysicalConnectionResponse.java new file mode 100644 index 0000000000..a462742466 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/TerminatePhysicalConnectionResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.TerminatePhysicalConnectionResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class TerminatePhysicalConnectionResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public TerminatePhysicalConnectionResponse getInstance(UnmarshallerContext context) { + return TerminatePhysicalConnectionResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/TerminateVirtualBorderRouterRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/TerminateVirtualBorderRouterRequest.java new file mode 100644 index 0000000000..baa4208d72 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/TerminateVirtualBorderRouterRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class TerminateVirtualBorderRouterRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private String vbrId; + + private String userCidr; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + public TerminateVirtualBorderRouterRequest() { + super("Ecs", "2014-05-26", "TerminateVirtualBorderRouter", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getVbrId() { + return this.vbrId; + } + + public void setVbrId(String vbrId) { + this.vbrId = vbrId; + if(vbrId != null){ + putQueryParameter("VbrId", vbrId); + } + } + + public String getUserCidr() { + return this.userCidr; + } + + public void setUserCidr(String userCidr) { + this.userCidr = userCidr; + if(userCidr != null){ + putQueryParameter("UserCidr", userCidr); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return TerminateVirtualBorderRouterResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/TerminateVirtualBorderRouterResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/TerminateVirtualBorderRouterResponse.java new file mode 100644 index 0000000000..06781f79ff --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/TerminateVirtualBorderRouterResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.TerminateVirtualBorderRouterResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class TerminateVirtualBorderRouterResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public TerminateVirtualBorderRouterResponse getInstance(UnmarshallerContext context) { + return TerminateVirtualBorderRouterResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/UnassignIpv6AddressesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/UnassignIpv6AddressesRequest.java new file mode 100644 index 0000000000..ebeccdb88d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/UnassignIpv6AddressesRequest.java @@ -0,0 +1,137 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class UnassignIpv6AddressesRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private List ipv6Prefixs; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String networkInterfaceId; + + private List ipv6Addresss; + public UnassignIpv6AddressesRequest() { + super("Ecs", "2014-05-26", "UnassignIpv6Addresses", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public List getIpv6Prefixs() { + return this.ipv6Prefixs; + } + + public void setIpv6Prefixs(List ipv6Prefixs) { + this.ipv6Prefixs = ipv6Prefixs; + if (ipv6Prefixs != null) { + for (int i = 0; i < ipv6Prefixs.size(); i++) { + putQueryParameter("Ipv6Prefix." + (i + 1) , ipv6Prefixs.get(i)); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getNetworkInterfaceId() { + return this.networkInterfaceId; + } + + public void setNetworkInterfaceId(String networkInterfaceId) { + this.networkInterfaceId = networkInterfaceId; + if(networkInterfaceId != null){ + putQueryParameter("NetworkInterfaceId", networkInterfaceId); + } + } + + public List getIpv6Addresss() { + return this.ipv6Addresss; + } + + public void setIpv6Addresss(List ipv6Addresss) { + this.ipv6Addresss = ipv6Addresss; + if (ipv6Addresss != null) { + for (int i = 0; i < ipv6Addresss.size(); i++) { + putQueryParameter("Ipv6Address." + (i + 1) , ipv6Addresss.get(i)); + } + } + } + + @Override + public Class getResponseClass() { + return UnassignIpv6AddressesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/UnassignIpv6AddressesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/UnassignIpv6AddressesResponse.java new file mode 100644 index 0000000000..a592cdc811 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/UnassignIpv6AddressesResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.UnassignIpv6AddressesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class UnassignIpv6AddressesResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public UnassignIpv6AddressesResponse getInstance(UnmarshallerContext context) { + return UnassignIpv6AddressesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/UnassignPrivateIpAddressesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/UnassignPrivateIpAddressesRequest.java new file mode 100644 index 0000000000..51d0e76fac --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/UnassignPrivateIpAddressesRequest.java @@ -0,0 +1,137 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class UnassignPrivateIpAddressesRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private List ipv4Prefixs; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private List privateIpAddresss; + + private String networkInterfaceId; + public UnassignPrivateIpAddressesRequest() { + super("Ecs", "2014-05-26", "UnassignPrivateIpAddresses", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public List getIpv4Prefixs() { + return this.ipv4Prefixs; + } + + public void setIpv4Prefixs(List ipv4Prefixs) { + this.ipv4Prefixs = ipv4Prefixs; + if (ipv4Prefixs != null) { + for (int i = 0; i < ipv4Prefixs.size(); i++) { + putQueryParameter("Ipv4Prefix." + (i + 1) , ipv4Prefixs.get(i)); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public List getPrivateIpAddresss() { + return this.privateIpAddresss; + } + + public void setPrivateIpAddresss(List privateIpAddresss) { + this.privateIpAddresss = privateIpAddresss; + if (privateIpAddresss != null) { + for (int i = 0; i < privateIpAddresss.size(); i++) { + putQueryParameter("PrivateIpAddress." + (i + 1) , privateIpAddresss.get(i)); + } + } + } + + public String getNetworkInterfaceId() { + return this.networkInterfaceId; + } + + public void setNetworkInterfaceId(String networkInterfaceId) { + this.networkInterfaceId = networkInterfaceId; + if(networkInterfaceId != null){ + putQueryParameter("NetworkInterfaceId", networkInterfaceId); + } + } + + @Override + public Class getResponseClass() { + return UnassignPrivateIpAddressesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/UnassignPrivateIpAddressesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/UnassignPrivateIpAddressesResponse.java new file mode 100644 index 0000000000..20930ff554 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/UnassignPrivateIpAddressesResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.UnassignPrivateIpAddressesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class UnassignPrivateIpAddressesResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public UnassignPrivateIpAddressesResponse getInstance(UnmarshallerContext context) { + return UnassignPrivateIpAddressesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/UnassociateEipAddressRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/UnassociateEipAddressRequest.java new file mode 100644 index 0000000000..9b3356c788 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/UnassociateEipAddressRequest.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class UnassociateEipAddressRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String allocationId; + + private String instanceType; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceId; + public UnassociateEipAddressRequest() { + super("Ecs", "2014-05-26", "UnassociateEipAddress", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getAllocationId() { + return this.allocationId; + } + + public void setAllocationId(String allocationId) { + this.allocationId = allocationId; + if(allocationId != null){ + putQueryParameter("AllocationId", allocationId); + } + } + + public String getInstanceType() { + return this.instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + if(instanceType != null){ + putQueryParameter("InstanceType", instanceType); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + @Override + public Class getResponseClass() { + return UnassociateEipAddressResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/UnassociateEipAddressResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/UnassociateEipAddressResponse.java new file mode 100644 index 0000000000..0df631867b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/UnassociateEipAddressResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.UnassociateEipAddressResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class UnassociateEipAddressResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public UnassociateEipAddressResponse getInstance(UnmarshallerContext context) { + return UnassociateEipAddressResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/UnassociateHaVipRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/UnassociateHaVipRequest.java new file mode 100644 index 0000000000..e59075697a --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/UnassociateHaVipRequest.java @@ -0,0 +1,145 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class UnassociateHaVipRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private String clientToken; + + private String haVipId; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String instanceId; + + private String force; + public UnassociateHaVipRequest() { + super("Ecs", "2014-05-26", "UnassociateHaVip", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + + public String getHaVipId() { + return this.haVipId; + } + + public void setHaVipId(String haVipId) { + this.haVipId = haVipId; + if(haVipId != null){ + putQueryParameter("HaVipId", haVipId); + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public String getForce() { + return this.force; + } + + public void setForce(String force) { + this.force = force; + if(force != null){ + putQueryParameter("Force", force); + } + } + + @Override + public Class getResponseClass() { + return UnassociateHaVipResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/UnassociateHaVipResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/UnassociateHaVipResponse.java new file mode 100644 index 0000000000..bd8bc18912 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/UnassociateHaVipResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.UnassociateHaVipResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class UnassociateHaVipResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public UnassociateHaVipResponse getInstance(UnmarshallerContext context) { + return UnassociateHaVipResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/UntagResourcesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/UntagResourcesRequest.java new file mode 100644 index 0000000000..c86b8f8d32 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/UntagResourcesRequest.java @@ -0,0 +1,150 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.ecs.Endpoint; + +/** + * @author auto create + * @version + */ +public class UntagResourcesRequest extends RpcAcsRequest { + + + private Long resourceOwnerId; + + private Boolean all; + + private List resourceIds; + + private String resourceOwnerAccount; + + private String ownerAccount; + + private Long ownerId; + + private String resourceType; + + private List tagKeys; + public UntagResourcesRequest() { + super("Ecs", "2014-05-26", "UntagResources", "ecs"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public Long getResourceOwnerId() { + return this.resourceOwnerId; + } + + public void setResourceOwnerId(Long resourceOwnerId) { + this.resourceOwnerId = resourceOwnerId; + if(resourceOwnerId != null){ + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); + } + } + + public Boolean getAll() { + return this.all; + } + + public void setAll(Boolean all) { + this.all = all; + if(all != null){ + putQueryParameter("All", all.toString()); + } + } + + public List getResourceIds() { + return this.resourceIds; + } + + public void setResourceIds(List resourceIds) { + this.resourceIds = resourceIds; + if (resourceIds != null) { + for (int i = 0; i < resourceIds.size(); i++) { + putQueryParameter("ResourceId." + (i + 1) , resourceIds.get(i)); + } + } + } + + public String getResourceOwnerAccount() { + return this.resourceOwnerAccount; + } + + public void setResourceOwnerAccount(String resourceOwnerAccount) { + this.resourceOwnerAccount = resourceOwnerAccount; + if(resourceOwnerAccount != null){ + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); + } + } + + public String getOwnerAccount() { + return this.ownerAccount; + } + + public void setOwnerAccount(String ownerAccount) { + this.ownerAccount = ownerAccount; + if(ownerAccount != null){ + putQueryParameter("OwnerAccount", ownerAccount); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + public String getResourceType() { + return this.resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + if(resourceType != null){ + putQueryParameter("ResourceType", resourceType); + } + } + + public List getTagKeys() { + return this.tagKeys; + } + + public void setTagKeys(List tagKeys) { + this.tagKeys = tagKeys; + if (tagKeys != null) { + for (int i = 0; i < tagKeys.size(); i++) { + putQueryParameter("TagKey." + (i + 1) , tagKeys.get(i)); + } + } + } + + @Override + public Class getResponseClass() { + return UntagResourcesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/UntagResourcesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/UntagResourcesResponse.java new file mode 100644 index 0000000000..d257562319 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/UntagResourcesResponse.java @@ -0,0 +1,41 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.model.v20140526; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ecs.transform.v20140526.UntagResourcesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class UntagResourcesResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public UntagResourcesResponse getInstance(UnmarshallerContext context) { + return UntagResourcesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/AddMigratableInstancesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/AddMigratableInstancesRequest.java deleted file mode 100644 index 797dd585dd..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/AddMigratableInstancesRequest.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class AddMigratableInstancesRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private Integer businessMigrationType; - - private String resourceOwnerAccount; - - private Long ownerId; - - private List instanceIds; - - private Integer networkMigrationType; - - private String vpcId; - public AddMigratableInstancesRequest() { - super("Ecs", "2016-03-14", "AddMigratableInstances", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Integer getBusinessMigrationType() { - return this.businessMigrationType; - } - - public void setBusinessMigrationType(Integer businessMigrationType) { - this.businessMigrationType = businessMigrationType; - if(businessMigrationType != null){ - putQueryParameter("BusinessMigrationType", businessMigrationType.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public List getInstanceIds() { - return this.instanceIds; - } - - public void setInstanceIds(List instanceIds) { - this.instanceIds = instanceIds; - if (instanceIds != null) { - for (int i = 0; i < instanceIds.size(); i++) { - putQueryParameter("InstanceId." + (i + 1) , instanceIds.get(i)); - } - } - } - - public Integer getNetworkMigrationType() { - return this.networkMigrationType; - } - - public void setNetworkMigrationType(Integer networkMigrationType) { - this.networkMigrationType = networkMigrationType; - if(networkMigrationType != null){ - putQueryParameter("NetworkMigrationType", networkMigrationType.toString()); - } - } - - public String getVpcId() { - return this.vpcId; - } - - public void setVpcId(String vpcId) { - this.vpcId = vpcId; - if(vpcId != null){ - putQueryParameter("VpcId", vpcId); - } - } - - @Override - public Class getResponseClass() { - return AddMigratableInstancesResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/AddMigratableInstancesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/AddMigratableInstancesResponse.java deleted file mode 100644 index 99495d1a16..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/AddMigratableInstancesResponse.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.AddMigratableInstancesResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class AddMigratableInstancesResponse extends AcsResponse { - - private String requestId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public AddMigratableInstancesResponse getInstance(UnmarshallerContext context) { - return AddMigratableInstancesResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CancelMigrationInstancesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CancelMigrationInstancesRequest.java deleted file mode 100644 index 90c537430e..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CancelMigrationInstancesRequest.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class CancelMigrationInstancesRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private Integer pageNumber; - - private Integer pageSize; - - private String resourceOwnerAccount; - - private Long ownerId; - - private List instanceIds; - - private String networkMigrationType; - public CancelMigrationInstancesRequest() { - super("Ecs", "2016-03-14", "CancelMigrationInstances", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - if(pageNumber != null){ - putQueryParameter("PageNumber", pageNumber.toString()); - } - } - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - if(pageSize != null){ - putQueryParameter("PageSize", pageSize.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public List getInstanceIds() { - return this.instanceIds; - } - - public void setInstanceIds(List instanceIds) { - this.instanceIds = instanceIds; - if (instanceIds != null) { - for (int i = 0; i < instanceIds.size(); i++) { - putQueryParameter("InstanceId." + (i + 1) , instanceIds.get(i)); - } - } - } - - public String getNetworkMigrationType() { - return this.networkMigrationType; - } - - public void setNetworkMigrationType(String networkMigrationType) { - this.networkMigrationType = networkMigrationType; - if(networkMigrationType != null){ - putQueryParameter("NetworkMigrationType", networkMigrationType); - } - } - - @Override - public Class getResponseClass() { - return CancelMigrationInstancesResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CancelMigrationInstancesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CancelMigrationInstancesResponse.java deleted file mode 100644 index 0c5c05a6dd..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CancelMigrationInstancesResponse.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.CancelMigrationInstancesResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class CancelMigrationInstancesResponse extends AcsResponse { - - private String requestId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public CancelMigrationInstancesResponse getInstance(UnmarshallerContext context) { - return CancelMigrationInstancesResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CancelMigrationPlanRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CancelMigrationPlanRequest.java deleted file mode 100644 index 2a71c0769b..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CancelMigrationPlanRequest.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class CancelMigrationPlanRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private Integer pageNumber; - - private String migrationPlanId; - - private Integer pageSize; - - private String resourceOwnerAccount; - - private Long ownerId; - - private Boolean onlyCancelPlan; - public CancelMigrationPlanRequest() { - super("Ecs", "2016-03-14", "CancelMigrationPlan", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - if(pageNumber != null){ - putQueryParameter("PageNumber", pageNumber.toString()); - } - } - - public String getMigrationPlanId() { - return this.migrationPlanId; - } - - public void setMigrationPlanId(String migrationPlanId) { - this.migrationPlanId = migrationPlanId; - if(migrationPlanId != null){ - putQueryParameter("MigrationPlanId", migrationPlanId); - } - } - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - if(pageSize != null){ - putQueryParameter("PageSize", pageSize.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public Boolean getOnlyCancelPlan() { - return this.onlyCancelPlan; - } - - public void setOnlyCancelPlan(Boolean onlyCancelPlan) { - this.onlyCancelPlan = onlyCancelPlan; - if(onlyCancelPlan != null){ - putQueryParameter("OnlyCancelPlan", onlyCancelPlan.toString()); - } - } - - @Override - public Class getResponseClass() { - return CancelMigrationPlanResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CancelMigrationPlanResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CancelMigrationPlanResponse.java deleted file mode 100644 index 21cedb6bce..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CancelMigrationPlanResponse.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.CancelMigrationPlanResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class CancelMigrationPlanResponse extends AcsResponse { - - private String requestId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public CancelMigrationPlanResponse getInstance(UnmarshallerContext context) { - return CancelMigrationPlanResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ConfigureSecurityGroupPermissionsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ConfigureSecurityGroupPermissionsRequest.java deleted file mode 100644 index 06917a9433..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ConfigureSecurityGroupPermissionsRequest.java +++ /dev/null @@ -1,572 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class ConfigureSecurityGroupPermissionsRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String clientToken; - - private String securityGroupId; - - private List authorizePermissions; - - private String resourceOwnerAccount; - - private List revokePermissions; - - private String ownerAccount; - - private Long ownerId; - public ConfigureSecurityGroupPermissionsRequest() { - super("Ecs", "2016-03-14", "ConfigureSecurityGroupPermissions", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getClientToken() { - return this.clientToken; - } - - public void setClientToken(String clientToken) { - this.clientToken = clientToken; - if(clientToken != null){ - putQueryParameter("ClientToken", clientToken); - } - } - - public String getSecurityGroupId() { - return this.securityGroupId; - } - - public void setSecurityGroupId(String securityGroupId) { - this.securityGroupId = securityGroupId; - if(securityGroupId != null){ - putQueryParameter("SecurityGroupId", securityGroupId); - } - } - - public List getAuthorizePermissions() { - return this.authorizePermissions; - } - - public void setAuthorizePermissions(List authorizePermissions) { - this.authorizePermissions = authorizePermissions; - if (authorizePermissions != null) { - for (int depth1 = 0; depth1 < authorizePermissions.size(); depth1++) { - putQueryParameter("AuthorizePermission." + (depth1 + 1) + ".SourceGroupId" , authorizePermissions.get(depth1).getSourceGroupId()); - putQueryParameter("AuthorizePermission." + (depth1 + 1) + ".DestPrefixListId" , authorizePermissions.get(depth1).getDestPrefixListId()); - putQueryParameter("AuthorizePermission." + (depth1 + 1) + ".SourceCidrIp" , authorizePermissions.get(depth1).getSourceCidrIp()); - putQueryParameter("AuthorizePermission." + (depth1 + 1) + ".Ipv6DestCidrIp" , authorizePermissions.get(depth1).getIpv6DestCidrIp()); - putQueryParameter("AuthorizePermission." + (depth1 + 1) + ".Ipv6SourceCidrIp" , authorizePermissions.get(depth1).getIpv6SourceCidrIp()); - putQueryParameter("AuthorizePermission." + (depth1 + 1) + ".DestGroupId" , authorizePermissions.get(depth1).getDestGroupId()); - putQueryParameter("AuthorizePermission." + (depth1 + 1) + ".IpProtocol" , authorizePermissions.get(depth1).getIpProtocol()); - putQueryParameter("AuthorizePermission." + (depth1 + 1) + ".DestCidrIp" , authorizePermissions.get(depth1).getDestCidrIp()); - putQueryParameter("AuthorizePermission." + (depth1 + 1) + ".Priority" , authorizePermissions.get(depth1).getPriority()); - putQueryParameter("AuthorizePermission." + (depth1 + 1) + ".GressFlow" , authorizePermissions.get(depth1).getGressFlow()); - putQueryParameter("AuthorizePermission." + (depth1 + 1) + ".Direction" , authorizePermissions.get(depth1).getDirection()); - putQueryParameter("AuthorizePermission." + (depth1 + 1) + ".GroupOwnerAccount" , authorizePermissions.get(depth1).getGroupOwnerAccount()); - putQueryParameter("AuthorizePermission." + (depth1 + 1) + ".GroupOwnerId" , authorizePermissions.get(depth1).getGroupOwnerId()); - putQueryParameter("AuthorizePermission." + (depth1 + 1) + ".NicType" , authorizePermissions.get(depth1).getNicType()); - putQueryParameter("AuthorizePermission." + (depth1 + 1) + ".Policy" , authorizePermissions.get(depth1).getPolicy()); - putQueryParameter("AuthorizePermission." + (depth1 + 1) + ".PortRange" , authorizePermissions.get(depth1).getPortRange()); - putQueryParameter("AuthorizePermission." + (depth1 + 1) + ".Description" , authorizePermissions.get(depth1).getDescription()); - putQueryParameter("AuthorizePermission." + (depth1 + 1) + ".SourcePrefixListId" , authorizePermissions.get(depth1).getSourcePrefixListId()); - putQueryParameter("AuthorizePermission." + (depth1 + 1) + ".SourcePortRange" , authorizePermissions.get(depth1).getSourcePortRange()); - } - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public List getRevokePermissions() { - return this.revokePermissions; - } - - public void setRevokePermissions(List revokePermissions) { - this.revokePermissions = revokePermissions; - if (revokePermissions != null) { - for (int depth1 = 0; depth1 < revokePermissions.size(); depth1++) { - putQueryParameter("RevokePermission." + (depth1 + 1) + ".SourceGroupId" , revokePermissions.get(depth1).getSourceGroupId()); - putQueryParameter("RevokePermission." + (depth1 + 1) + ".DestPrefixListId" , revokePermissions.get(depth1).getDestPrefixListId()); - putQueryParameter("RevokePermission." + (depth1 + 1) + ".SourceCidrIp" , revokePermissions.get(depth1).getSourceCidrIp()); - putQueryParameter("RevokePermission." + (depth1 + 1) + ".Ipv6DestCidrIp" , revokePermissions.get(depth1).getIpv6DestCidrIp()); - putQueryParameter("RevokePermission." + (depth1 + 1) + ".Ipv6SourceCidrIp" , revokePermissions.get(depth1).getIpv6SourceCidrIp()); - putQueryParameter("RevokePermission." + (depth1 + 1) + ".DestGroupId" , revokePermissions.get(depth1).getDestGroupId()); - putQueryParameter("RevokePermission." + (depth1 + 1) + ".IpProtocol" , revokePermissions.get(depth1).getIpProtocol()); - putQueryParameter("RevokePermission." + (depth1 + 1) + ".DestCidrIp" , revokePermissions.get(depth1).getDestCidrIp()); - putQueryParameter("RevokePermission." + (depth1 + 1) + ".Priority" , revokePermissions.get(depth1).getPriority()); - putQueryParameter("RevokePermission." + (depth1 + 1) + ".GressFlow" , revokePermissions.get(depth1).getGressFlow()); - putQueryParameter("RevokePermission." + (depth1 + 1) + ".Direction" , revokePermissions.get(depth1).getDirection()); - putQueryParameter("RevokePermission." + (depth1 + 1) + ".GroupOwnerAccount" , revokePermissions.get(depth1).getGroupOwnerAccount()); - putQueryParameter("RevokePermission." + (depth1 + 1) + ".GroupOwnerId" , revokePermissions.get(depth1).getGroupOwnerId()); - putQueryParameter("RevokePermission." + (depth1 + 1) + ".NicType" , revokePermissions.get(depth1).getNicType()); - putQueryParameter("RevokePermission." + (depth1 + 1) + ".Policy" , revokePermissions.get(depth1).getPolicy()); - putQueryParameter("RevokePermission." + (depth1 + 1) + ".PortRange" , revokePermissions.get(depth1).getPortRange()); - putQueryParameter("RevokePermission." + (depth1 + 1) + ".Description" , revokePermissions.get(depth1).getDescription()); - putQueryParameter("RevokePermission." + (depth1 + 1) + ".SourcePrefixListId" , revokePermissions.get(depth1).getSourcePrefixListId()); - putQueryParameter("RevokePermission." + (depth1 + 1) + ".SourcePortRange" , revokePermissions.get(depth1).getSourcePortRange()); - } - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public static class AuthorizePermission { - - private String sourceGroupId; - - private String destPrefixListId; - - private String sourceCidrIp; - - private String ipv6DestCidrIp; - - private String ipv6SourceCidrIp; - - private String destGroupId; - - private String ipProtocol; - - private String destCidrIp; - - private String priority; - - private String gressFlow; - - private String direction; - - private String groupOwnerAccount; - - private Long groupOwnerId; - - private String nicType; - - private String policy; - - private String portRange; - - private String description; - - private String sourcePrefixListId; - - private String sourcePortRange; - - public String getSourceGroupId() { - return this.sourceGroupId; - } - - public void setSourceGroupId(String sourceGroupId) { - this.sourceGroupId = sourceGroupId; - } - - public String getDestPrefixListId() { - return this.destPrefixListId; - } - - public void setDestPrefixListId(String destPrefixListId) { - this.destPrefixListId = destPrefixListId; - } - - public String getSourceCidrIp() { - return this.sourceCidrIp; - } - - public void setSourceCidrIp(String sourceCidrIp) { - this.sourceCidrIp = sourceCidrIp; - } - - public String getIpv6DestCidrIp() { - return this.ipv6DestCidrIp; - } - - public void setIpv6DestCidrIp(String ipv6DestCidrIp) { - this.ipv6DestCidrIp = ipv6DestCidrIp; - } - - public String getIpv6SourceCidrIp() { - return this.ipv6SourceCidrIp; - } - - public void setIpv6SourceCidrIp(String ipv6SourceCidrIp) { - this.ipv6SourceCidrIp = ipv6SourceCidrIp; - } - - public String getDestGroupId() { - return this.destGroupId; - } - - public void setDestGroupId(String destGroupId) { - this.destGroupId = destGroupId; - } - - public String getIpProtocol() { - return this.ipProtocol; - } - - public void setIpProtocol(String ipProtocol) { - this.ipProtocol = ipProtocol; - } - - public String getDestCidrIp() { - return this.destCidrIp; - } - - public void setDestCidrIp(String destCidrIp) { - this.destCidrIp = destCidrIp; - } - - public String getPriority() { - return this.priority; - } - - public void setPriority(String priority) { - this.priority = priority; - } - - public String getGressFlow() { - return this.gressFlow; - } - - public void setGressFlow(String gressFlow) { - this.gressFlow = gressFlow; - } - - public String getDirection() { - return this.direction; - } - - public void setDirection(String direction) { - this.direction = direction; - } - - public String getGroupOwnerAccount() { - return this.groupOwnerAccount; - } - - public void setGroupOwnerAccount(String groupOwnerAccount) { - this.groupOwnerAccount = groupOwnerAccount; - } - - public Long getGroupOwnerId() { - return this.groupOwnerId; - } - - public void setGroupOwnerId(Long groupOwnerId) { - this.groupOwnerId = groupOwnerId; - } - - public String getNicType() { - return this.nicType; - } - - public void setNicType(String nicType) { - this.nicType = nicType; - } - - public String getPolicy() { - return this.policy; - } - - public void setPolicy(String policy) { - this.policy = policy; - } - - public String getPortRange() { - return this.portRange; - } - - public void setPortRange(String portRange) { - this.portRange = portRange; - } - - public String getDescription() { - return this.description; - } - - public void setDescription(String description) { - this.description = description; - } - - public String getSourcePrefixListId() { - return this.sourcePrefixListId; - } - - public void setSourcePrefixListId(String sourcePrefixListId) { - this.sourcePrefixListId = sourcePrefixListId; - } - - public String getSourcePortRange() { - return this.sourcePortRange; - } - - public void setSourcePortRange(String sourcePortRange) { - this.sourcePortRange = sourcePortRange; - } - } - - public static class RevokePermission { - - private String sourceGroupId; - - private String destPrefixListId; - - private String sourceCidrIp; - - private String ipv6DestCidrIp; - - private String ipv6SourceCidrIp; - - private String destGroupId; - - private String ipProtocol; - - private String destCidrIp; - - private String priority; - - private String gressFlow; - - private String direction; - - private String groupOwnerAccount; - - private Long groupOwnerId; - - private String nicType; - - private String policy; - - private String portRange; - - private String description; - - private String sourcePrefixListId; - - private String sourcePortRange; - - public String getSourceGroupId() { - return this.sourceGroupId; - } - - public void setSourceGroupId(String sourceGroupId) { - this.sourceGroupId = sourceGroupId; - } - - public String getDestPrefixListId() { - return this.destPrefixListId; - } - - public void setDestPrefixListId(String destPrefixListId) { - this.destPrefixListId = destPrefixListId; - } - - public String getSourceCidrIp() { - return this.sourceCidrIp; - } - - public void setSourceCidrIp(String sourceCidrIp) { - this.sourceCidrIp = sourceCidrIp; - } - - public String getIpv6DestCidrIp() { - return this.ipv6DestCidrIp; - } - - public void setIpv6DestCidrIp(String ipv6DestCidrIp) { - this.ipv6DestCidrIp = ipv6DestCidrIp; - } - - public String getIpv6SourceCidrIp() { - return this.ipv6SourceCidrIp; - } - - public void setIpv6SourceCidrIp(String ipv6SourceCidrIp) { - this.ipv6SourceCidrIp = ipv6SourceCidrIp; - } - - public String getDestGroupId() { - return this.destGroupId; - } - - public void setDestGroupId(String destGroupId) { - this.destGroupId = destGroupId; - } - - public String getIpProtocol() { - return this.ipProtocol; - } - - public void setIpProtocol(String ipProtocol) { - this.ipProtocol = ipProtocol; - } - - public String getDestCidrIp() { - return this.destCidrIp; - } - - public void setDestCidrIp(String destCidrIp) { - this.destCidrIp = destCidrIp; - } - - public String getPriority() { - return this.priority; - } - - public void setPriority(String priority) { - this.priority = priority; - } - - public String getGressFlow() { - return this.gressFlow; - } - - public void setGressFlow(String gressFlow) { - this.gressFlow = gressFlow; - } - - public String getDirection() { - return this.direction; - } - - public void setDirection(String direction) { - this.direction = direction; - } - - public String getGroupOwnerAccount() { - return this.groupOwnerAccount; - } - - public void setGroupOwnerAccount(String groupOwnerAccount) { - this.groupOwnerAccount = groupOwnerAccount; - } - - public Long getGroupOwnerId() { - return this.groupOwnerId; - } - - public void setGroupOwnerId(Long groupOwnerId) { - this.groupOwnerId = groupOwnerId; - } - - public String getNicType() { - return this.nicType; - } - - public void setNicType(String nicType) { - this.nicType = nicType; - } - - public String getPolicy() { - return this.policy; - } - - public void setPolicy(String policy) { - this.policy = policy; - } - - public String getPortRange() { - return this.portRange; - } - - public void setPortRange(String portRange) { - this.portRange = portRange; - } - - public String getDescription() { - return this.description; - } - - public void setDescription(String description) { - this.description = description; - } - - public String getSourcePrefixListId() { - return this.sourcePrefixListId; - } - - public void setSourcePrefixListId(String sourcePrefixListId) { - this.sourcePrefixListId = sourcePrefixListId; - } - - public String getSourcePortRange() { - return this.sourcePortRange; - } - - public void setSourcePortRange(String sourcePortRange) { - this.sourcePortRange = sourcePortRange; - } - } - - @Override - public Class getResponseClass() { - return ConfigureSecurityGroupPermissionsResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ConfigureSecurityGroupPermissionsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ConfigureSecurityGroupPermissionsResponse.java deleted file mode 100644 index 503e3f5f81..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ConfigureSecurityGroupPermissionsResponse.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.ConfigureSecurityGroupPermissionsResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class ConfigureSecurityGroupPermissionsResponse extends AcsResponse { - - private String requestId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public ConfigureSecurityGroupPermissionsResponse getInstance(UnmarshallerContext context) { - return ConfigureSecurityGroupPermissionsResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ConfirmReservationDemandRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ConfirmReservationDemandRequest.java deleted file mode 100644 index 9101706594..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ConfirmReservationDemandRequest.java +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class ConfirmReservationDemandRequest extends RpcAcsRequest { - - - private String resourceGroupId; - - private String demandId; - - private List tags; - public ConfirmReservationDemandRequest() { - super("Ecs", "2016-03-14", "ConfirmReservationDemand", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public String getResourceGroupId() { - return this.resourceGroupId; - } - - public void setResourceGroupId(String resourceGroupId) { - this.resourceGroupId = resourceGroupId; - if(resourceGroupId != null){ - putQueryParameter("ResourceGroupId", resourceGroupId); - } - } - - public String getDemandId() { - return this.demandId; - } - - public void setDemandId(String demandId) { - this.demandId = demandId; - if(demandId != null){ - putQueryParameter("DemandId", demandId); - } - } - - public List getTags() { - return this.tags; - } - - public void setTags(List tags) { - this.tags = tags; - if (tags != null) { - for (int depth1 = 0; depth1 < tags.size(); depth1++) { - putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); - putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); - } - } - } - - public static class Tag { - - private String key; - - private String value; - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } - } - - @Override - public Class getResponseClass() { - return ConfirmReservationDemandResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ConfirmReservationDemandResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ConfirmReservationDemandResponse.java deleted file mode 100644 index 68a2c41cc6..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ConfirmReservationDemandResponse.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.ConfirmReservationDemandResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class ConfirmReservationDemandResponse extends AcsResponse { - - private String requestId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public ConfirmReservationDemandResponse getInstance(UnmarshallerContext context) { - return ConfirmReservationDemandResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateCapacityReservationRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateCapacityReservationRequest.java deleted file mode 100644 index d2cc7bce28..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateCapacityReservationRequest.java +++ /dev/null @@ -1,276 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class CreateCapacityReservationRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String description; - - private String networkType; - - private String resourceGroupId; - - private String instanceCount; - - private String instanceType; - - private List tags; - - private String instancePlatform; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String endDateType; - - private String instanceMatchCriteria; - - private String timeSlot; - - private String capacityReservationName; - - private String zoneId; - public CreateCapacityReservationRequest() { - super("Ecs", "2016-03-14", "CreateCapacityReservation", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getDescription() { - return this.description; - } - - public void setDescription(String description) { - this.description = description; - if(description != null){ - putQueryParameter("Description", description); - } - } - - public String getNetworkType() { - return this.networkType; - } - - public void setNetworkType(String networkType) { - this.networkType = networkType; - if(networkType != null){ - putQueryParameter("NetworkType", networkType); - } - } - - public String getResourceGroupId() { - return this.resourceGroupId; - } - - public void setResourceGroupId(String resourceGroupId) { - this.resourceGroupId = resourceGroupId; - if(resourceGroupId != null){ - putQueryParameter("ResourceGroupId", resourceGroupId); - } - } - - public String getInstanceCount() { - return this.instanceCount; - } - - public void setInstanceCount(String instanceCount) { - this.instanceCount = instanceCount; - if(instanceCount != null){ - putQueryParameter("InstanceCount", instanceCount); - } - } - - public String getInstanceType() { - return this.instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - if(instanceType != null){ - putQueryParameter("InstanceType", instanceType); - } - } - - public List getTags() { - return this.tags; - } - - public void setTags(List tags) { - this.tags = tags; - if (tags != null) { - for (int depth1 = 0; depth1 < tags.size(); depth1++) { - putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); - putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); - } - } - } - - public String getInstancePlatform() { - return this.instancePlatform; - } - - public void setInstancePlatform(String instancePlatform) { - this.instancePlatform = instancePlatform; - if(instancePlatform != null){ - putQueryParameter("InstancePlatform", instancePlatform); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getEndDateType() { - return this.endDateType; - } - - public void setEndDateType(String endDateType) { - this.endDateType = endDateType; - if(endDateType != null){ - putQueryParameter("EndDateType", endDateType); - } - } - - public String getInstanceMatchCriteria() { - return this.instanceMatchCriteria; - } - - public void setInstanceMatchCriteria(String instanceMatchCriteria) { - this.instanceMatchCriteria = instanceMatchCriteria; - if(instanceMatchCriteria != null){ - putQueryParameter("InstanceMatchCriteria", instanceMatchCriteria); - } - } - - public String getTimeSlot() { - return this.timeSlot; - } - - public void setTimeSlot(String timeSlot) { - this.timeSlot = timeSlot; - if(timeSlot != null){ - putQueryParameter("TimeSlot", timeSlot); - } - } - - public String getCapacityReservationName() { - return this.capacityReservationName; - } - - public void setCapacityReservationName(String capacityReservationName) { - this.capacityReservationName = capacityReservationName; - if(capacityReservationName != null){ - putQueryParameter("CapacityReservationName", capacityReservationName); - } - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - if(zoneId != null){ - putQueryParameter("ZoneId", zoneId); - } - } - - public static class Tag { - - private String key; - - private String value; - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } - } - - @Override - public Class getResponseClass() { - return CreateCapacityReservationResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDefaultAutoSnapshotPolicyRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDefaultAutoSnapshotPolicyRequest.java deleted file mode 100644 index d0a705ffbd..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDefaultAutoSnapshotPolicyRequest.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class CreateDefaultAutoSnapshotPolicyRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String clientToken; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - public CreateDefaultAutoSnapshotPolicyRequest() { - super("Ecs", "2016-03-14", "CreateDefaultAutoSnapshotPolicy", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getClientToken() { - return this.clientToken; - } - - public void setClientToken(String clientToken) { - this.clientToken = clientToken; - if(clientToken != null){ - putQueryParameter("ClientToken", clientToken); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - @Override - public Class getResponseClass() { - return CreateDefaultAutoSnapshotPolicyResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDefaultAutoSnapshotPolicyResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDefaultAutoSnapshotPolicyResponse.java deleted file mode 100644 index c9210a0bde..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDefaultAutoSnapshotPolicyResponse.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.CreateDefaultAutoSnapshotPolicyResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class CreateDefaultAutoSnapshotPolicyResponse extends AcsResponse { - - private String timePoints; - - private String requestId; - - private String autoSnapshotPolicyName; - - private String repeatWeekdays; - - private String autoSnapshotPolicyId; - - private Integer retentionDays; - - public String getTimePoints() { - return this.timePoints; - } - - public void setTimePoints(String timePoints) { - this.timePoints = timePoints; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public String getAutoSnapshotPolicyName() { - return this.autoSnapshotPolicyName; - } - - public void setAutoSnapshotPolicyName(String autoSnapshotPolicyName) { - this.autoSnapshotPolicyName = autoSnapshotPolicyName; - } - - public String getRepeatWeekdays() { - return this.repeatWeekdays; - } - - public void setRepeatWeekdays(String repeatWeekdays) { - this.repeatWeekdays = repeatWeekdays; - } - - public String getAutoSnapshotPolicyId() { - return this.autoSnapshotPolicyId; - } - - public void setAutoSnapshotPolicyId(String autoSnapshotPolicyId) { - this.autoSnapshotPolicyId = autoSnapshotPolicyId; - } - - public Integer getRetentionDays() { - return this.retentionDays; - } - - public void setRetentionDays(Integer retentionDays) { - this.retentionDays = retentionDays; - } - - @Override - public CreateDefaultAutoSnapshotPolicyResponse getInstance(UnmarshallerContext context) { - return CreateDefaultAutoSnapshotPolicyResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDiagnoseRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDiagnoseRequest.java deleted file mode 100644 index 1a1625fbd7..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDiagnoseRequest.java +++ /dev/null @@ -1,354 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class CreateDiagnoseRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String izNo; - - private String instanceTypeName; - - private String networkType; - - private Integer type; - - private String diagnoseRequestParams; - - private String diagnoseResponse; - - private String diskCategory; - - private String diagnoseRequestId; - - private List tags; - - private String instanceChargeType; - - private String expireTime; - - private Integer amount; - - private Integer period; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String diagnoseAction; - - private String periodUnit; - - private String diagnoseErrorCode; - - private String diagnoseProduct; - - private String mark; - public CreateDiagnoseRequest() { - super("Ecs", "2016-03-14", "CreateDiagnose", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getIzNo() { - return this.izNo; - } - - public void setIzNo(String izNo) { - this.izNo = izNo; - if(izNo != null){ - putQueryParameter("IzNo", izNo); - } - } - - public String getInstanceTypeName() { - return this.instanceTypeName; - } - - public void setInstanceTypeName(String instanceTypeName) { - this.instanceTypeName = instanceTypeName; - if(instanceTypeName != null){ - putQueryParameter("InstanceTypeName", instanceTypeName); - } - } - - public String getNetworkType() { - return this.networkType; - } - - public void setNetworkType(String networkType) { - this.networkType = networkType; - if(networkType != null){ - putQueryParameter("NetworkType", networkType); - } - } - - public Integer getType() { - return this.type; - } - - public void setType(Integer type) { - this.type = type; - if(type != null){ - putQueryParameter("Type", type.toString()); - } - } - - public String getDiagnoseRequestParams() { - return this.diagnoseRequestParams; - } - - public void setDiagnoseRequestParams(String diagnoseRequestParams) { - this.diagnoseRequestParams = diagnoseRequestParams; - if(diagnoseRequestParams != null){ - putQueryParameter("DiagnoseRequestParams", diagnoseRequestParams); - } - } - - public String getDiagnoseResponse() { - return this.diagnoseResponse; - } - - public void setDiagnoseResponse(String diagnoseResponse) { - this.diagnoseResponse = diagnoseResponse; - if(diagnoseResponse != null){ - putQueryParameter("DiagnoseResponse", diagnoseResponse); - } - } - - public String getDiskCategory() { - return this.diskCategory; - } - - public void setDiskCategory(String diskCategory) { - this.diskCategory = diskCategory; - if(diskCategory != null){ - putQueryParameter("DiskCategory", diskCategory); - } - } - - public String getDiagnoseRequestId() { - return this.diagnoseRequestId; - } - - public void setDiagnoseRequestId(String diagnoseRequestId) { - this.diagnoseRequestId = diagnoseRequestId; - if(diagnoseRequestId != null){ - putQueryParameter("DiagnoseRequestId", diagnoseRequestId); - } - } - - public List getTags() { - return this.tags; - } - - public void setTags(List tags) { - this.tags = tags; - if (tags != null) { - for (int depth1 = 0; depth1 < tags.size(); depth1++) { - putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); - putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); - } - } - } - - public String getInstanceChargeType() { - return this.instanceChargeType; - } - - public void setInstanceChargeType(String instanceChargeType) { - this.instanceChargeType = instanceChargeType; - if(instanceChargeType != null){ - putQueryParameter("InstanceChargeType", instanceChargeType); - } - } - - public String getExpireTime() { - return this.expireTime; - } - - public void setExpireTime(String expireTime) { - this.expireTime = expireTime; - if(expireTime != null){ - putQueryParameter("ExpireTime", expireTime); - } - } - - public Integer getAmount() { - return this.amount; - } - - public void setAmount(Integer amount) { - this.amount = amount; - if(amount != null){ - putQueryParameter("Amount", amount.toString()); - } - } - - public Integer getPeriod() { - return this.period; - } - - public void setPeriod(Integer period) { - this.period = period; - if(period != null){ - putQueryParameter("Period", period.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getDiagnoseAction() { - return this.diagnoseAction; - } - - public void setDiagnoseAction(String diagnoseAction) { - this.diagnoseAction = diagnoseAction; - if(diagnoseAction != null){ - putQueryParameter("DiagnoseAction", diagnoseAction); - } - } - - public String getPeriodUnit() { - return this.periodUnit; - } - - public void setPeriodUnit(String periodUnit) { - this.periodUnit = periodUnit; - if(periodUnit != null){ - putQueryParameter("PeriodUnit", periodUnit); - } - } - - public String getDiagnoseErrorCode() { - return this.diagnoseErrorCode; - } - - public void setDiagnoseErrorCode(String diagnoseErrorCode) { - this.diagnoseErrorCode = diagnoseErrorCode; - if(diagnoseErrorCode != null){ - putQueryParameter("DiagnoseErrorCode", diagnoseErrorCode); - } - } - - public String getDiagnoseProduct() { - return this.diagnoseProduct; - } - - public void setDiagnoseProduct(String diagnoseProduct) { - this.diagnoseProduct = diagnoseProduct; - if(diagnoseProduct != null){ - putQueryParameter("DiagnoseProduct", diagnoseProduct); - } - } - - public String getMark() { - return this.mark; - } - - public void setMark(String mark) { - this.mark = mark; - if(mark != null){ - putQueryParameter("Mark", mark); - } - } - - public static class Tag { - - private String key; - - private String value; - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } - } - - @Override - public Class getResponseClass() { - return CreateDiagnoseResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDiagnoseResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDiagnoseResponse.java deleted file mode 100644 index dcb7afeb29..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDiagnoseResponse.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.CreateDiagnoseResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class CreateDiagnoseResponse extends AcsResponse { - - private String status; - - private String requestId; - - private String diagnoseId; - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public String getDiagnoseId() { - return this.diagnoseId; - } - - public void setDiagnoseId(String diagnoseId) { - this.diagnoseId = diagnoseId; - } - - @Override - public CreateDiagnoseResponse getInstance(UnmarshallerContext context) { - return CreateDiagnoseResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDiagnosisOperateRecordsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDiagnosisOperateRecordsRequest.java deleted file mode 100644 index cdc39deb1a..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDiagnosisOperateRecordsRequest.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class CreateDiagnosisOperateRecordsRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String operateRecordType; - - private String instanceType; - - private String errorCode; - - private String resourceOwnerAccount; - - private String newZoneId; - - private String newInstanceType; - - private Long ownerId; - - private String zoneId; - - private String payType; - public CreateDiagnosisOperateRecordsRequest() { - super("Ecs", "2016-03-14", "CreateDiagnosisOperateRecords", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getOperateRecordType() { - return this.operateRecordType; - } - - public void setOperateRecordType(String operateRecordType) { - this.operateRecordType = operateRecordType; - if(operateRecordType != null){ - putQueryParameter("OperateRecordType", operateRecordType); - } - } - - public String getInstanceType() { - return this.instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - if(instanceType != null){ - putQueryParameter("InstanceType", instanceType); - } - } - - public String getErrorCode() { - return this.errorCode; - } - - public void setErrorCode(String errorCode) { - this.errorCode = errorCode; - if(errorCode != null){ - putQueryParameter("ErrorCode", errorCode); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getNewZoneId() { - return this.newZoneId; - } - - public void setNewZoneId(String newZoneId) { - this.newZoneId = newZoneId; - if(newZoneId != null){ - putQueryParameter("NewZoneId", newZoneId); - } - } - - public String getNewInstanceType() { - return this.newInstanceType; - } - - public void setNewInstanceType(String newInstanceType) { - this.newInstanceType = newInstanceType; - if(newInstanceType != null){ - putQueryParameter("NewInstanceType", newInstanceType); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - if(zoneId != null){ - putQueryParameter("ZoneId", zoneId); - } - } - - public String getPayType() { - return this.payType; - } - - public void setPayType(String payType) { - this.payType = payType; - if(payType != null){ - putQueryParameter("PayType", payType); - } - } - - @Override - public Class getResponseClass() { - return CreateDiagnosisOperateRecordsResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDiagnosisOperateRecordsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDiagnosisOperateRecordsResponse.java deleted file mode 100644 index 791cad4d22..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDiagnosisOperateRecordsResponse.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.CreateDiagnosisOperateRecordsResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class CreateDiagnosisOperateRecordsResponse extends AcsResponse { - - private String requestId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public CreateDiagnosisOperateRecordsResponse getInstance(UnmarshallerContext context) { - return CreateDiagnosisOperateRecordsResponseUnmarshaller.unmarshall(this, context); - } - - @Override - public boolean checkShowJsonItemName() { - return false; - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDiagnosticReportRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDiagnosticReportRequest.java deleted file mode 100644 index a65d9ca20a..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDiagnosticReportRequest.java +++ /dev/null @@ -1,226 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class CreateDiagnosticReportRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String clientToken; - - private String startTime; - - private String sourceSystem; - - private String pluginVersion; - - private String resourceId; - - private List commandNames; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private String endTime; - - private Long ownerId; - - private String resourceType; - - private String commandType; - - private String diagnosticCategory; - public CreateDiagnosticReportRequest() { - super("Ecs", "2016-03-14", "CreateDiagnosticReport", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getClientToken() { - return this.clientToken; - } - - public void setClientToken(String clientToken) { - this.clientToken = clientToken; - if(clientToken != null){ - putQueryParameter("ClientToken", clientToken); - } - } - - public String getStartTime() { - return this.startTime; - } - - public void setStartTime(String startTime) { - this.startTime = startTime; - if(startTime != null){ - putQueryParameter("StartTime", startTime); - } - } - - public String getSourceSystem() { - return this.sourceSystem; - } - - public void setSourceSystem(String sourceSystem) { - this.sourceSystem = sourceSystem; - if(sourceSystem != null){ - putQueryParameter("SourceSystem", sourceSystem); - } - } - - public String getPluginVersion() { - return this.pluginVersion; - } - - public void setPluginVersion(String pluginVersion) { - this.pluginVersion = pluginVersion; - if(pluginVersion != null){ - putQueryParameter("PluginVersion", pluginVersion); - } - } - - public String getResourceId() { - return this.resourceId; - } - - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - if(resourceId != null){ - putQueryParameter("ResourceId", resourceId); - } - } - - public List getCommandNames() { - return this.commandNames; - } - - public void setCommandNames(List commandNames) { - this.commandNames = commandNames; - if (commandNames != null) { - for (int i = 0; i < commandNames.size(); i++) { - putQueryParameter("CommandName." + (i + 1) , commandNames.get(i)); - } - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public String getEndTime() { - return this.endTime; - } - - public void setEndTime(String endTime) { - this.endTime = endTime; - if(endTime != null){ - putQueryParameter("EndTime", endTime); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getResourceType() { - return this.resourceType; - } - - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - if(resourceType != null){ - putQueryParameter("ResourceType", resourceType); - } - } - - public String getCommandType() { - return this.commandType; - } - - public void setCommandType(String commandType) { - this.commandType = commandType; - if(commandType != null){ - putQueryParameter("CommandType", commandType); - } - } - - public String getDiagnosticCategory() { - return this.diagnosticCategory; - } - - public void setDiagnosticCategory(String diagnosticCategory) { - this.diagnosticCategory = diagnosticCategory; - if(diagnosticCategory != null){ - putQueryParameter("DiagnosticCategory", diagnosticCategory); - } - } - - @Override - public Class getResponseClass() { - return CreateDiagnosticReportResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDiagnosticReportResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDiagnosticReportResponse.java deleted file mode 100644 index 4cfa8a972a..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDiagnosticReportResponse.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.CreateDiagnosticReportResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class CreateDiagnosticReportResponse extends AcsResponse { - - private String status; - - private String reportId; - - private String requestId; - - private String createTime; - - private List commandInvokeResults; - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - } - - public String getReportId() { - return this.reportId; - } - - public void setReportId(String reportId) { - this.reportId = reportId; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public String getCreateTime() { - return this.createTime; - } - - public void setCreateTime(String createTime) { - this.createTime = createTime; - } - - public List getCommandInvokeResults() { - return this.commandInvokeResults; - } - - public void setCommandInvokeResults(List commandInvokeResults) { - this.commandInvokeResults = commandInvokeResults; - } - - public static class InvokeResult { - - private String dataFileDir; - - private String invokeResult; - - private String commandName; - - public String getDataFileDir() { - return this.dataFileDir; - } - - public void setDataFileDir(String dataFileDir) { - this.dataFileDir = dataFileDir; - } - - public String getInvokeResult() { - return this.invokeResult; - } - - public void setInvokeResult(String invokeResult) { - this.invokeResult = invokeResult; - } - - public String getCommandName() { - return this.commandName; - } - - public void setCommandName(String commandName) { - this.commandName = commandName; - } - } - - @Override - public CreateDiagnosticReportResponse getInstance(UnmarshallerContext context) { - return CreateDiagnosticReportResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDisksRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDisksRequest.java deleted file mode 100644 index c48b64250e..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDisksRequest.java +++ /dev/null @@ -1,393 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class CreateDisksRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String snapshotId; - - private String clientToken; - - private String encryptAlgorithm; - - private String autoSnapshotPolicyId; - - private String description; - - private String diskName; - - private String resourceGroupId; - - private Integer storageSetPartitionNumber; - - private String multiAttach; - - private List tags; - - private Integer amount; - - private String resourceOwnerAccount; - - private String performanceLevel; - - private String ownerAccount; - - private Long ownerId; - - private Boolean burstingEnabled; - - private Long provisionedIops; - - private String storageSetId; - - private Integer size; - - private Boolean encrypted; - - private String zoneId; - - private String storageClusterId; - - private String category; - - private String kMSKeyId; - public CreateDisksRequest() { - super("Ecs", "2016-03-14", "CreateDisks", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getSnapshotId() { - return this.snapshotId; - } - - public void setSnapshotId(String snapshotId) { - this.snapshotId = snapshotId; - if(snapshotId != null){ - putQueryParameter("SnapshotId", snapshotId); - } - } - - public String getClientToken() { - return this.clientToken; - } - - public void setClientToken(String clientToken) { - this.clientToken = clientToken; - if(clientToken != null){ - putQueryParameter("ClientToken", clientToken); - } - } - - public String getEncryptAlgorithm() { - return this.encryptAlgorithm; - } - - public void setEncryptAlgorithm(String encryptAlgorithm) { - this.encryptAlgorithm = encryptAlgorithm; - if(encryptAlgorithm != null){ - putQueryParameter("EncryptAlgorithm", encryptAlgorithm); - } - } - - public String getAutoSnapshotPolicyId() { - return this.autoSnapshotPolicyId; - } - - public void setAutoSnapshotPolicyId(String autoSnapshotPolicyId) { - this.autoSnapshotPolicyId = autoSnapshotPolicyId; - if(autoSnapshotPolicyId != null){ - putQueryParameter("AutoSnapshotPolicyId", autoSnapshotPolicyId); - } - } - - public String getDescription() { - return this.description; - } - - public void setDescription(String description) { - this.description = description; - if(description != null){ - putQueryParameter("Description", description); - } - } - - public String getDiskName() { - return this.diskName; - } - - public void setDiskName(String diskName) { - this.diskName = diskName; - if(diskName != null){ - putQueryParameter("DiskName", diskName); - } - } - - public String getResourceGroupId() { - return this.resourceGroupId; - } - - public void setResourceGroupId(String resourceGroupId) { - this.resourceGroupId = resourceGroupId; - if(resourceGroupId != null){ - putQueryParameter("ResourceGroupId", resourceGroupId); - } - } - - public Integer getStorageSetPartitionNumber() { - return this.storageSetPartitionNumber; - } - - public void setStorageSetPartitionNumber(Integer storageSetPartitionNumber) { - this.storageSetPartitionNumber = storageSetPartitionNumber; - if(storageSetPartitionNumber != null){ - putQueryParameter("StorageSetPartitionNumber", storageSetPartitionNumber.toString()); - } - } - - public String getMultiAttach() { - return this.multiAttach; - } - - public void setMultiAttach(String multiAttach) { - this.multiAttach = multiAttach; - if(multiAttach != null){ - putQueryParameter("MultiAttach", multiAttach); - } - } - - public List getTags() { - return this.tags; - } - - public void setTags(List tags) { - this.tags = tags; - if (tags != null) { - for (int depth1 = 0; depth1 < tags.size(); depth1++) { - putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); - putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); - } - } - } - - public Integer getAmount() { - return this.amount; - } - - public void setAmount(Integer amount) { - this.amount = amount; - if(amount != null){ - putQueryParameter("Amount", amount.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getPerformanceLevel() { - return this.performanceLevel; - } - - public void setPerformanceLevel(String performanceLevel) { - this.performanceLevel = performanceLevel; - if(performanceLevel != null){ - putQueryParameter("PerformanceLevel", performanceLevel); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public Boolean getBurstingEnabled() { - return this.burstingEnabled; - } - - public void setBurstingEnabled(Boolean burstingEnabled) { - this.burstingEnabled = burstingEnabled; - if(burstingEnabled != null){ - putQueryParameter("BurstingEnabled", burstingEnabled.toString()); - } - } - - public Long getProvisionedIops() { - return this.provisionedIops; - } - - public void setProvisionedIops(Long provisionedIops) { - this.provisionedIops = provisionedIops; - if(provisionedIops != null){ - putQueryParameter("ProvisionedIops", provisionedIops.toString()); - } - } - - public String getStorageSetId() { - return this.storageSetId; - } - - public void setStorageSetId(String storageSetId) { - this.storageSetId = storageSetId; - if(storageSetId != null){ - putQueryParameter("StorageSetId", storageSetId); - } - } - - public Integer getSize() { - return this.size; - } - - public void setSize(Integer size) { - this.size = size; - if(size != null){ - putQueryParameter("Size", size.toString()); - } - } - - public Boolean getEncrypted() { - return this.encrypted; - } - - public void setEncrypted(Boolean encrypted) { - this.encrypted = encrypted; - if(encrypted != null){ - putQueryParameter("Encrypted", encrypted.toString()); - } - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - if(zoneId != null){ - putQueryParameter("ZoneId", zoneId); - } - } - - public String getStorageClusterId() { - return this.storageClusterId; - } - - public void setStorageClusterId(String storageClusterId) { - this.storageClusterId = storageClusterId; - if(storageClusterId != null){ - putQueryParameter("StorageClusterId", storageClusterId); - } - } - - public String getCategory() { - return this.category; - } - - public void setCategory(String category) { - this.category = category; - if(category != null){ - putQueryParameter("Category", category); - } - } - - public String getKMSKeyId() { - return this.kMSKeyId; - } - - public void setKMSKeyId(String kMSKeyId) { - this.kMSKeyId = kMSKeyId; - if(kMSKeyId != null){ - putQueryParameter("KMSKeyId", kMSKeyId); - } - } - - public static class Tag { - - private String value; - - private String key; - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - } - - @Override - public Class getResponseClass() { - return CreateDisksResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDisksResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDisksResponse.java deleted file mode 100644 index fcd76ae474..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateDisksResponse.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.CreateDisksResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class CreateDisksResponse extends AcsResponse { - - private String requestId; - - private List diskId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public List getDiskId() { - return this.diskId; - } - - public void setDiskId(List diskId) { - this.diskId = diskId; - } - - @Override - public CreateDisksResponse getInstance(UnmarshallerContext context) { - return CreateDisksResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateEniQosGroupRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateEniQosGroupRequest.java deleted file mode 100644 index 292c1fffbd..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateEniQosGroupRequest.java +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class CreateEniQosGroupRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private Integer tx; - - private Integer rx; - - private Integer rxPps; - - private String resourceOwnerAccount; - - private Long ownerId; - - private String qosGroupName; - - private String instanceId; - - private Integer txPps; - public CreateEniQosGroupRequest() { - super("Ecs", "2016-03-14", "CreateEniQosGroup", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Integer getTx() { - return this.tx; - } - - public void setTx(Integer tx) { - this.tx = tx; - if(tx != null){ - putQueryParameter("Tx", tx.toString()); - } - } - - public Integer getRx() { - return this.rx; - } - - public void setRx(Integer rx) { - this.rx = rx; - if(rx != null){ - putQueryParameter("Rx", rx.toString()); - } - } - - public Integer getRxPps() { - return this.rxPps; - } - - public void setRxPps(Integer rxPps) { - this.rxPps = rxPps; - if(rxPps != null){ - putQueryParameter("RxPps", rxPps.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getQosGroupName() { - return this.qosGroupName; - } - - public void setQosGroupName(String qosGroupName) { - this.qosGroupName = qosGroupName; - if(qosGroupName != null){ - putQueryParameter("QosGroupName", qosGroupName); - } - } - - public String getInstanceId() { - return this.instanceId; - } - - public void setInstanceId(String instanceId) { - this.instanceId = instanceId; - if(instanceId != null){ - putQueryParameter("InstanceId", instanceId); - } - } - - public Integer getTxPps() { - return this.txPps; - } - - public void setTxPps(Integer txPps) { - this.txPps = txPps; - if(txPps != null){ - putQueryParameter("TxPps", txPps.toString()); - } - } - - @Override - public Class getResponseClass() { - return CreateEniQosGroupResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateEniQosGroupResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateEniQosGroupResponse.java deleted file mode 100644 index 9d4faaa0a7..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateEniQosGroupResponse.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.CreateEniQosGroupResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class CreateEniQosGroupResponse extends AcsResponse { - - private String qosGroupName; - - private String requestId; - - public String getQosGroupName() { - return this.qosGroupName; - } - - public void setQosGroupName(String qosGroupName) { - this.qosGroupName = qosGroupName; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public CreateEniQosGroupResponse getInstance(UnmarshallerContext context) { - return CreateEniQosGroupResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateFunctionFeedbackRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateFunctionFeedbackRequest.java deleted file mode 100644 index 2b7bbffa1b..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateFunctionFeedbackRequest.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class CreateFunctionFeedbackRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String feedback; - - private String functionName; - - private String resourceOwnerAccount; - - private String suggestion; - - private Long ownerId; - - private String category; - public CreateFunctionFeedbackRequest() { - super("Ecs", "2016-03-14", "CreateFunctionFeedback", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getFeedback() { - return this.feedback; - } - - public void setFeedback(String feedback) { - this.feedback = feedback; - if(feedback != null){ - putQueryParameter("Feedback", feedback); - } - } - - public String getFunctionName() { - return this.functionName; - } - - public void setFunctionName(String functionName) { - this.functionName = functionName; - if(functionName != null){ - putQueryParameter("FunctionName", functionName); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getSuggestion() { - return this.suggestion; - } - - public void setSuggestion(String suggestion) { - this.suggestion = suggestion; - if(suggestion != null){ - putQueryParameter("Suggestion", suggestion); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getCategory() { - return this.category; - } - - public void setCategory(String category) { - this.category = category; - if(category != null){ - putQueryParameter("Category", category); - } - } - - @Override - public Class getResponseClass() { - return CreateFunctionFeedbackResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateFunctionFeedbackResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateFunctionFeedbackResponse.java deleted file mode 100644 index 3cbe46bc7b..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateFunctionFeedbackResponse.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.CreateFunctionFeedbackResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class CreateFunctionFeedbackResponse extends AcsResponse { - - private String requestId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public CreateFunctionFeedbackResponse getInstance(UnmarshallerContext context) { - return CreateFunctionFeedbackResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateImageCacheRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateImageCacheRequest.java deleted file mode 100644 index c2442d9dc4..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateImageCacheRequest.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class CreateImageCacheRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String imageId; - - private String clientToken; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String zoneId; - public CreateImageCacheRequest() { - super("Ecs", "2016-03-14", "CreateImageCache", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getImageId() { - return this.imageId; - } - - public void setImageId(String imageId) { - this.imageId = imageId; - if(imageId != null){ - putQueryParameter("ImageId", imageId); - } - } - - public String getClientToken() { - return this.clientToken; - } - - public void setClientToken(String clientToken) { - this.clientToken = clientToken; - if(clientToken != null){ - putQueryParameter("ClientToken", clientToken); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - if(zoneId != null){ - putQueryParameter("ZoneId", zoneId); - } - } - - @Override - public Class getResponseClass() { - return CreateImageCacheResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateImageCacheResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateImageCacheResponse.java deleted file mode 100644 index 6beb4a5b09..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateImageCacheResponse.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.CreateImageCacheResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class CreateImageCacheResponse extends AcsResponse { - - private String requestId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public CreateImageCacheResponse getInstance(UnmarshallerContext context) { - return CreateImageCacheResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateIssueCategoryReportRelationRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateIssueCategoryReportRelationRequest.java deleted file mode 100644 index e8bbff3715..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateIssueCategoryReportRelationRequest.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class CreateIssueCategoryReportRelationRequest extends RpcAcsRequest { - - - private List relationModelLists; - public CreateIssueCategoryReportRelationRequest() { - super("Ecs", "2016-03-14", "CreateIssueCategoryReportRelation", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public List getRelationModelLists() { - return this.relationModelLists; - } - - public void setRelationModelLists(List relationModelLists) { - this.relationModelLists = relationModelLists; - if (relationModelLists != null) { - for (int depth1 = 0; depth1 < relationModelLists.size(); depth1++) { - putQueryParameter("RelationModelList." + (depth1 + 1) + ".IssueCategoryId" , relationModelLists.get(depth1).getIssueCategoryId()); - putQueryParameter("RelationModelList." + (depth1 + 1) + ".IssueCategoryName" , relationModelLists.get(depth1).getIssueCategoryName()); - putQueryParameter("RelationModelList." + (depth1 + 1) + ".ReportId" , relationModelLists.get(depth1).getReportId()); - putQueryParameter("RelationModelList." + (depth1 + 1) + ".CustomerInputContent" , relationModelLists.get(depth1).getCustomerInputContent()); - putQueryParameter("RelationModelList." + (depth1 + 1) + ".MappingTools" , relationModelLists.get(depth1).getMappingTools()); - } - } - } - - public static class RelationModelList { - - private Long issueCategoryId; - - private String issueCategoryName; - - private String reportId; - - private String customerInputContent; - - private String mappingTools; - - public Long getIssueCategoryId() { - return this.issueCategoryId; - } - - public void setIssueCategoryId(Long issueCategoryId) { - this.issueCategoryId = issueCategoryId; - } - - public String getIssueCategoryName() { - return this.issueCategoryName; - } - - public void setIssueCategoryName(String issueCategoryName) { - this.issueCategoryName = issueCategoryName; - } - - public String getReportId() { - return this.reportId; - } - - public void setReportId(String reportId) { - this.reportId = reportId; - } - - public String getCustomerInputContent() { - return this.customerInputContent; - } - - public void setCustomerInputContent(String customerInputContent) { - this.customerInputContent = customerInputContent; - } - - public String getMappingTools() { - return this.mappingTools; - } - - public void setMappingTools(String mappingTools) { - this.mappingTools = mappingTools; - } - } - - @Override - public Class getResponseClass() { - return CreateIssueCategoryReportRelationResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateIssueCategoryReportRelationResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateIssueCategoryReportRelationResponse.java deleted file mode 100644 index fdfc4925c2..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateIssueCategoryReportRelationResponse.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.CreateIssueCategoryReportRelationResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class CreateIssueCategoryReportRelationResponse extends AcsResponse { - - private String requestId; - - private String status; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - } - - @Override - public CreateIssueCategoryReportRelationResponse getInstance(UnmarshallerContext context) { - return CreateIssueCategoryReportRelationResponseUnmarshaller.unmarshall(this, context); - } - - @Override - public boolean checkShowJsonItemName() { - return false; - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateMigrationPlanRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateMigrationPlanRequest.java deleted file mode 100644 index 6eba6fb32e..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateMigrationPlanRequest.java +++ /dev/null @@ -1,293 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class CreateMigrationPlanRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private List targetSecurityGroupIdss; - - private List customMigrationTimess; - - private Boolean remainPrivateIp; - - private Boolean ensureNetworkConnectivity; - - private String type; - - private Boolean remainPublicMacAsPriority; - - private String targetVpcId; - - private String targetZoneId; - - private Boolean dryRun; - - private String resourceOwnerAccount; - - private String globalMigrationTime; - - private String targetVSwitchId; - - private Long ownerId; - - private List instanceIdss; - - private String name; - - private Boolean enableAutoCreateVSwitch; - public CreateMigrationPlanRequest() { - super("Ecs", "2016-03-14", "CreateMigrationPlan", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public List getTargetSecurityGroupIdss() { - return this.targetSecurityGroupIdss; - } - - public void setTargetSecurityGroupIdss(List targetSecurityGroupIdss) { - this.targetSecurityGroupIdss = targetSecurityGroupIdss; - if (targetSecurityGroupIdss != null) { - for (int i = 0; i < targetSecurityGroupIdss.size(); i++) { - putQueryParameter("TargetSecurityGroupIds." + (i + 1) , targetSecurityGroupIdss.get(i)); - } - } - } - - public List getCustomMigrationTimess() { - return this.customMigrationTimess; - } - - public void setCustomMigrationTimess(List customMigrationTimess) { - this.customMigrationTimess = customMigrationTimess; - if (customMigrationTimess != null) { - for (int depth1 = 0; depth1 < customMigrationTimess.size(); depth1++) { - putQueryParameter("CustomMigrationTimes." + (depth1 + 1) + ".MigrationTime" , customMigrationTimess.get(depth1).getMigrationTime()); - putQueryParameter("CustomMigrationTimes." + (depth1 + 1) + ".InstanceId" , customMigrationTimess.get(depth1).getInstanceId()); - } - } - } - - public Boolean getRemainPrivateIp() { - return this.remainPrivateIp; - } - - public void setRemainPrivateIp(Boolean remainPrivateIp) { - this.remainPrivateIp = remainPrivateIp; - if(remainPrivateIp != null){ - putQueryParameter("RemainPrivateIp", remainPrivateIp.toString()); - } - } - - public Boolean getEnsureNetworkConnectivity() { - return this.ensureNetworkConnectivity; - } - - public void setEnsureNetworkConnectivity(Boolean ensureNetworkConnectivity) { - this.ensureNetworkConnectivity = ensureNetworkConnectivity; - if(ensureNetworkConnectivity != null){ - putQueryParameter("EnsureNetworkConnectivity", ensureNetworkConnectivity.toString()); - } - } - - public String getType() { - return this.type; - } - - public void setType(String type) { - this.type = type; - if(type != null){ - putQueryParameter("Type", type); - } - } - - public Boolean getRemainPublicMacAsPriority() { - return this.remainPublicMacAsPriority; - } - - public void setRemainPublicMacAsPriority(Boolean remainPublicMacAsPriority) { - this.remainPublicMacAsPriority = remainPublicMacAsPriority; - if(remainPublicMacAsPriority != null){ - putQueryParameter("RemainPublicMacAsPriority", remainPublicMacAsPriority.toString()); - } - } - - public String getTargetVpcId() { - return this.targetVpcId; - } - - public void setTargetVpcId(String targetVpcId) { - this.targetVpcId = targetVpcId; - if(targetVpcId != null){ - putQueryParameter("TargetVpcId", targetVpcId); - } - } - - public String getTargetZoneId() { - return this.targetZoneId; - } - - public void setTargetZoneId(String targetZoneId) { - this.targetZoneId = targetZoneId; - if(targetZoneId != null){ - putQueryParameter("TargetZoneId", targetZoneId); - } - } - - public Boolean getDryRun() { - return this.dryRun; - } - - public void setDryRun(Boolean dryRun) { - this.dryRun = dryRun; - if(dryRun != null){ - putQueryParameter("DryRun", dryRun.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getGlobalMigrationTime() { - return this.globalMigrationTime; - } - - public void setGlobalMigrationTime(String globalMigrationTime) { - this.globalMigrationTime = globalMigrationTime; - if(globalMigrationTime != null){ - putQueryParameter("GlobalMigrationTime", globalMigrationTime); - } - } - - public String getTargetVSwitchId() { - return this.targetVSwitchId; - } - - public void setTargetVSwitchId(String targetVSwitchId) { - this.targetVSwitchId = targetVSwitchId; - if(targetVSwitchId != null){ - putQueryParameter("TargetVSwitchId", targetVSwitchId); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public List getInstanceIdss() { - return this.instanceIdss; - } - - public void setInstanceIdss(List instanceIdss) { - this.instanceIdss = instanceIdss; - if (instanceIdss != null) { - for (int i = 0; i < instanceIdss.size(); i++) { - putQueryParameter("InstanceIds." + (i + 1) , instanceIdss.get(i)); - } - } - } - - public String getName() { - return this.name; - } - - public void setName(String name) { - this.name = name; - if(name != null){ - putQueryParameter("Name", name); - } - } - - public Boolean getEnableAutoCreateVSwitch() { - return this.enableAutoCreateVSwitch; - } - - public void setEnableAutoCreateVSwitch(Boolean enableAutoCreateVSwitch) { - this.enableAutoCreateVSwitch = enableAutoCreateVSwitch; - if(enableAutoCreateVSwitch != null){ - putQueryParameter("EnableAutoCreateVSwitch", enableAutoCreateVSwitch.toString()); - } - } - - public static class CustomMigrationTimes { - - private String migrationTime; - - private String instanceId; - - public String getMigrationTime() { - return this.migrationTime; - } - - public void setMigrationTime(String migrationTime) { - this.migrationTime = migrationTime; - } - - public String getInstanceId() { - return this.instanceId; - } - - public void setInstanceId(String instanceId) { - this.instanceId = instanceId; - } - } - - @Override - public Class getResponseClass() { - return CreateMigrationPlanResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateMigrationPlanResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateMigrationPlanResponse.java deleted file mode 100644 index 28bb6a341d..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateMigrationPlanResponse.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.CreateMigrationPlanResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class CreateMigrationPlanResponse extends AcsResponse { - - private String migrationPlanId; - - private String requestId; - - private List planFailModels; - - private List instancesFailModels; - - private List sgFailModels; - - public String getMigrationPlanId() { - return this.migrationPlanId; - } - - public void setMigrationPlanId(String migrationPlanId) { - this.migrationPlanId = migrationPlanId; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public List getPlanFailModels() { - return this.planFailModels; - } - - public void setPlanFailModels(List planFailModels) { - this.planFailModels = planFailModels; - } - - public List getInstancesFailModels() { - return this.instancesFailModels; - } - - public void setInstancesFailModels(List instancesFailModels) { - this.instancesFailModels = instancesFailModels; - } - - public List getSgFailModels() { - return this.sgFailModels; - } - - public void setSgFailModels(List sgFailModels) { - this.sgFailModels = sgFailModels; - } - - public static class PlanFailModel { - - private String errorCode; - - private String errorMessage; - - public String getErrorCode() { - return this.errorCode; - } - - public void setErrorCode(String errorCode) { - this.errorCode = errorCode; - } - - public String getErrorMessage() { - return this.errorMessage; - } - - public void setErrorMessage(String errorMessage) { - this.errorMessage = errorMessage; - } - } - - public static class InstancesFailModel { - - private String instanceId; - - private List failModels; - - public String getInstanceId() { - return this.instanceId; - } - - public void setInstanceId(String instanceId) { - this.instanceId = instanceId; - } - - public List getFailModels() { - return this.failModels; - } - - public void setFailModels(List failModels) { - this.failModels = failModels; - } - - public static class FailModel { - - private String errorCode; - - private String errorMessage; - - public String getErrorCode() { - return this.errorCode; - } - - public void setErrorCode(String errorCode) { - this.errorCode = errorCode; - } - - public String getErrorMessage() { - return this.errorMessage; - } - - public void setErrorMessage(String errorMessage) { - this.errorMessage = errorMessage; - } - } - } - - public static class SgFailModel { - - private String groupNo; - - private List failModels1; - - public String getGroupNo() { - return this.groupNo; - } - - public void setGroupNo(String groupNo) { - this.groupNo = groupNo; - } - - public List getFailModels1() { - return this.failModels1; - } - - public void setFailModels1(List failModels1) { - this.failModels1 = failModels1; - } - - public static class FailModel2 { - - private String errorCode; - - private String errorMessage; - - public String getErrorCode() { - return this.errorCode; - } - - public void setErrorCode(String errorCode) { - this.errorCode = errorCode; - } - - public String getErrorMessage() { - return this.errorMessage; - } - - public void setErrorMessage(String errorMessage) { - this.errorMessage = errorMessage; - } - } - } - - @Override - public CreateMigrationPlanResponse getInstance(UnmarshallerContext context) { - return CreateMigrationPlanResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateNetworkInsightsPathRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateNetworkInsightsPathRequest.java deleted file mode 100644 index 9b630cd43b..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateNetworkInsightsPathRequest.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class CreateNetworkInsightsPathRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String clientToken; - - private String destination; - - private String destinationType; - - private String source; - - private String networkInsightsPathName; - - private String protocol; - - private String sourceType; - - private Boolean dryRun; - - private Integer aPIVersion; - - private Boolean needDiagnoseGuest; - - private String destinationPort; - public CreateNetworkInsightsPathRequest() { - super("Ecs", "2016-03-14", "CreateNetworkInsightsPath", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getClientToken() { - return this.clientToken; - } - - public void setClientToken(String clientToken) { - this.clientToken = clientToken; - if(clientToken != null){ - putQueryParameter("ClientToken", clientToken); - } - } - - public String getDestination() { - return this.destination; - } - - public void setDestination(String destination) { - this.destination = destination; - if(destination != null){ - putQueryParameter("Destination", destination); - } - } - - public String getDestinationType() { - return this.destinationType; - } - - public void setDestinationType(String destinationType) { - this.destinationType = destinationType; - if(destinationType != null){ - putQueryParameter("DestinationType", destinationType); - } - } - - public String getSource() { - return this.source; - } - - public void setSource(String source) { - this.source = source; - if(source != null){ - putQueryParameter("Source", source); - } - } - - public String getNetworkInsightsPathName() { - return this.networkInsightsPathName; - } - - public void setNetworkInsightsPathName(String networkInsightsPathName) { - this.networkInsightsPathName = networkInsightsPathName; - if(networkInsightsPathName != null){ - putQueryParameter("NetworkInsightsPathName", networkInsightsPathName); - } - } - - public String getBizProtocol() { - return this.protocol; - } - - public void setBizProtocol(String protocol) { - this.protocol = protocol; - if(protocol != null){ - putQueryParameter("Protocol", protocol); - } - } - - public String getSourceType() { - return this.sourceType; - } - - public void setSourceType(String sourceType) { - this.sourceType = sourceType; - if(sourceType != null){ - putQueryParameter("SourceType", sourceType); - } - } - - public Boolean getDryRun() { - return this.dryRun; - } - - public void setDryRun(Boolean dryRun) { - this.dryRun = dryRun; - if(dryRun != null){ - putQueryParameter("DryRun", dryRun.toString()); - } - } - - public Integer getAPIVersion() { - return this.aPIVersion; - } - - public void setAPIVersion(Integer aPIVersion) { - this.aPIVersion = aPIVersion; - if(aPIVersion != null){ - putQueryParameter("APIVersion", aPIVersion.toString()); - } - } - - public Boolean getNeedDiagnoseGuest() { - return this.needDiagnoseGuest; - } - - public void setNeedDiagnoseGuest(Boolean needDiagnoseGuest) { - this.needDiagnoseGuest = needDiagnoseGuest; - if(needDiagnoseGuest != null){ - putQueryParameter("NeedDiagnoseGuest", needDiagnoseGuest.toString()); - } - } - - public String getDestinationPort() { - return this.destinationPort; - } - - public void setDestinationPort(String destinationPort) { - this.destinationPort = destinationPort; - if(destinationPort != null){ - putQueryParameter("DestinationPort", destinationPort); - } - } - - @Override - public Class getResponseClass() { - return CreateNetworkInsightsPathResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateNetworkInsightsPathResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateNetworkInsightsPathResponse.java deleted file mode 100644 index 71f8df153c..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateNetworkInsightsPathResponse.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.CreateNetworkInsightsPathResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class CreateNetworkInsightsPathResponse extends AcsResponse { - - private String requestId; - - private String networkInsightsPathId; - - private String networkInsightsAnalysisId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public String getNetworkInsightsPathId() { - return this.networkInsightsPathId; - } - - public void setNetworkInsightsPathId(String networkInsightsPathId) { - this.networkInsightsPathId = networkInsightsPathId; - } - - public String getNetworkInsightsAnalysisId() { - return this.networkInsightsAnalysisId; - } - - public void setNetworkInsightsAnalysisId(String networkInsightsAnalysisId) { - this.networkInsightsAnalysisId = networkInsightsAnalysisId; - } - - @Override - public CreateNetworkInsightsPathResponse getInstance(UnmarshallerContext context) { - return CreateNetworkInsightsPathResponseUnmarshaller.unmarshall(this, context); - } - - @Override - public boolean checkShowJsonItemName() { - return false; - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateOrderRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateOrderRequest.java deleted file mode 100644 index 36a8b6631b..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateOrderRequest.java +++ /dev/null @@ -1,236 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class CreateOrderRequest extends RpcAcsRequest { - - - private String commodity; - - private Long resourceOwnerId; - - private Boolean asyncPattern; - - private String clientToken; - - private String dedicatedHostClusterId; - - private String businessInfo; - - private String fromApp; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private String tenancy; - - private String dedicatedHostId; - - private Long ownerId; - - private String chargeType; - - private String orderType; - - private String affinity; - public CreateOrderRequest() { - super("Ecs", "2016-03-14", "CreateOrder", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public String getCommodity() { - return this.commodity; - } - - public void setCommodity(String commodity) { - this.commodity = commodity; - if(commodity != null){ - putQueryParameter("Commodity", commodity); - } - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Boolean getAsyncPattern() { - return this.asyncPattern; - } - - public void setAsyncPattern(Boolean asyncPattern) { - this.asyncPattern = asyncPattern; - if(asyncPattern != null){ - putQueryParameter("AsyncPattern", asyncPattern.toString()); - } - } - - public String getClientToken() { - return this.clientToken; - } - - public void setClientToken(String clientToken) { - this.clientToken = clientToken; - if(clientToken != null){ - putQueryParameter("ClientToken", clientToken); - } - } - - public String getDedicatedHostClusterId() { - return this.dedicatedHostClusterId; - } - - public void setDedicatedHostClusterId(String dedicatedHostClusterId) { - this.dedicatedHostClusterId = dedicatedHostClusterId; - if(dedicatedHostClusterId != null){ - putQueryParameter("DedicatedHostClusterId", dedicatedHostClusterId); - } - } - - public String getBusinessInfo() { - return this.businessInfo; - } - - public void setBusinessInfo(String businessInfo) { - this.businessInfo = businessInfo; - if(businessInfo != null){ - putQueryParameter("BusinessInfo", businessInfo); - } - } - - public String getFromApp() { - return this.fromApp; - } - - public void setFromApp(String fromApp) { - this.fromApp = fromApp; - if(fromApp != null){ - putQueryParameter("FromApp", fromApp); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public String getTenancy() { - return this.tenancy; - } - - public void setTenancy(String tenancy) { - this.tenancy = tenancy; - if(tenancy != null){ - putQueryParameter("Tenancy", tenancy); - } - } - - public String getDedicatedHostId() { - return this.dedicatedHostId; - } - - public void setDedicatedHostId(String dedicatedHostId) { - this.dedicatedHostId = dedicatedHostId; - if(dedicatedHostId != null){ - putQueryParameter("DedicatedHostId", dedicatedHostId); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getChargeType() { - return this.chargeType; - } - - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - if(chargeType != null){ - putQueryParameter("ChargeType", chargeType); - } - } - - public String getOrderType() { - return this.orderType; - } - - public void setOrderType(String orderType) { - this.orderType = orderType; - if(orderType != null){ - putQueryParameter("OrderType", orderType); - } - } - - public String getAffinity() { - return this.affinity; - } - - public void setAffinity(String affinity) { - this.affinity = affinity; - if(affinity != null){ - putQueryParameter("Affinity", affinity); - } - } - - @Override - public Class getResponseClass() { - return CreateOrderResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateOrderResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateOrderResponse.java deleted file mode 100644 index 881d7607ff..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateOrderResponse.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.CreateOrderResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class CreateOrderResponse extends AcsResponse { - - private String requestId; - - private String taskId; - - private String orderId; - - private Float tradePrice; - - private List relatedOrderItemSets; - - private List orderParams; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public String getTaskId() { - return this.taskId; - } - - public void setTaskId(String taskId) { - this.taskId = taskId; - } - - public String getOrderId() { - return this.orderId; - } - - public void setOrderId(String orderId) { - this.orderId = orderId; - } - - public Float getTradePrice() { - return this.tradePrice; - } - - public void setTradePrice(Float tradePrice) { - this.tradePrice = tradePrice; - } - - public List getRelatedOrderItemSets() { - return this.relatedOrderItemSets; - } - - public void setRelatedOrderItemSets(List relatedOrderItemSets) { - this.relatedOrderItemSets = relatedOrderItemSets; - } - - public List getOrderParams() { - return this.orderParams; - } - - public void setOrderParams(List orderParams) { - this.orderParams = orderParams; - } - - public static class RelatedOrderItemSet { - - private List relatedOrderIds; - - private List instanceIdSet; - - private List diskIdSet; - - public List getRelatedOrderIds() { - return this.relatedOrderIds; - } - - public void setRelatedOrderIds(List relatedOrderIds) { - this.relatedOrderIds = relatedOrderIds; - } - - public List getInstanceIdSet() { - return this.instanceIdSet; - } - - public void setInstanceIdSet(List instanceIdSet) { - this.instanceIdSet = instanceIdSet; - } - - public List getDiskIdSet() { - return this.diskIdSet; - } - - public void setDiskIdSet(List diskIdSet) { - this.diskIdSet = diskIdSet; - } - } - - @Override - public CreateOrderResponse getInstance(UnmarshallerContext context) { - return CreateOrderResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateReservationDemandRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateReservationDemandRequest.java deleted file mode 100644 index ec3d1b7241..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateReservationDemandRequest.java +++ /dev/null @@ -1,584 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class CreateReservationDemandRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String savingPlanPayMode; - - private String couponType; - - private Boolean couponAuto; - - private String startTime; - - private String productType; - - private String resourceGroupId; - - private List privatePoolOptionss; - - private List tags; - - private Integer period; - - private String savingPlanInstanceTypeFamilyGroup; - - private String savingPlanDescription; - - private Integer instanceCpuCoreCount; - - private String periodUnit; - - private String name; - - private Integer instanceAmount; - - private String resourceSupplyType; - - private String clientToken; - - private String instanceTypes; - - private String phoneNumber; - - private String description; - - private String platform; - - private String reservedInstanceDescription; - - private String zoneIds; - - private String savingPlanName; - - private String savingPlanSavingType; - - private Float savingPlanHourFee; - - private String instanceChargeType; - - private String reservedInstanceOfferingType; - - private String instanceTypeFamily; - - private String endTime; - - private String matchCriteria; - - private String confirmType; - - private String reservedInstanceScope; - - private String reservedInstanceName; - - private String savingPlanId; - public CreateReservationDemandRequest() { - super("Ecs", "2016-03-14", "CreateReservationDemand", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getSavingPlanPayMode() { - return this.savingPlanPayMode; - } - - public void setSavingPlanPayMode(String savingPlanPayMode) { - this.savingPlanPayMode = savingPlanPayMode; - if(savingPlanPayMode != null){ - putQueryParameter("SavingPlanPayMode", savingPlanPayMode); - } - } - - public String getCouponType() { - return this.couponType; - } - - public void setCouponType(String couponType) { - this.couponType = couponType; - if(couponType != null){ - putQueryParameter("CouponType", couponType); - } - } - - public Boolean getCouponAuto() { - return this.couponAuto; - } - - public void setCouponAuto(Boolean couponAuto) { - this.couponAuto = couponAuto; - if(couponAuto != null){ - putQueryParameter("CouponAuto", couponAuto.toString()); - } - } - - public String getStartTime() { - return this.startTime; - } - - public void setStartTime(String startTime) { - this.startTime = startTime; - if(startTime != null){ - putQueryParameter("StartTime", startTime); - } - } - - public String getProductType() { - return this.productType; - } - - public void setProductType(String productType) { - this.productType = productType; - if(productType != null){ - putQueryParameter("ProductType", productType); - } - } - - public String getResourceGroupId() { - return this.resourceGroupId; - } - - public void setResourceGroupId(String resourceGroupId) { - this.resourceGroupId = resourceGroupId; - if(resourceGroupId != null){ - putQueryParameter("ResourceGroupId", resourceGroupId); - } - } - - public List getPrivatePoolOptionss() { - return this.privatePoolOptionss; - } - - public void setPrivatePoolOptionss(List privatePoolOptionss) { - this.privatePoolOptionss = privatePoolOptionss; - if (privatePoolOptionss != null) { - for (int depth1 = 0; depth1 < privatePoolOptionss.size(); depth1++) { - putQueryParameter("PrivatePoolOptions." + (depth1 + 1) + ".MatchCriteria" , privatePoolOptionss.get(depth1).getMatchCriteria()); - putQueryParameter("PrivatePoolOptions." + (depth1 + 1) + ".ZoneId" , privatePoolOptionss.get(depth1).getZoneId()); - putQueryParameter("PrivatePoolOptions." + (depth1 + 1) + ".InstanceType" , privatePoolOptionss.get(depth1).getInstanceType()); - putQueryParameter("PrivatePoolOptions." + (depth1 + 1) + ".InstanceAmount" , privatePoolOptionss.get(depth1).getInstanceAmount()); - } - } - } - - public List getTags() { - return this.tags; - } - - public void setTags(List tags) { - this.tags = tags; - if (tags != null) { - for (int depth1 = 0; depth1 < tags.size(); depth1++) { - putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); - putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); - } - } - } - - public Integer getPeriod() { - return this.period; - } - - public void setPeriod(Integer period) { - this.period = period; - if(period != null){ - putQueryParameter("Period", period.toString()); - } - } - - public String getSavingPlanInstanceTypeFamilyGroup() { - return this.savingPlanInstanceTypeFamilyGroup; - } - - public void setSavingPlanInstanceTypeFamilyGroup(String savingPlanInstanceTypeFamilyGroup) { - this.savingPlanInstanceTypeFamilyGroup = savingPlanInstanceTypeFamilyGroup; - if(savingPlanInstanceTypeFamilyGroup != null){ - putQueryParameter("SavingPlanInstanceTypeFamilyGroup", savingPlanInstanceTypeFamilyGroup); - } - } - - public String getSavingPlanDescription() { - return this.savingPlanDescription; - } - - public void setSavingPlanDescription(String savingPlanDescription) { - this.savingPlanDescription = savingPlanDescription; - if(savingPlanDescription != null){ - putQueryParameter("SavingPlanDescription", savingPlanDescription); - } - } - - public Integer getInstanceCpuCoreCount() { - return this.instanceCpuCoreCount; - } - - public void setInstanceCpuCoreCount(Integer instanceCpuCoreCount) { - this.instanceCpuCoreCount = instanceCpuCoreCount; - if(instanceCpuCoreCount != null){ - putQueryParameter("InstanceCpuCoreCount", instanceCpuCoreCount.toString()); - } - } - - public String getPeriodUnit() { - return this.periodUnit; - } - - public void setPeriodUnit(String periodUnit) { - this.periodUnit = periodUnit; - if(periodUnit != null){ - putQueryParameter("PeriodUnit", periodUnit); - } - } - - public String getName() { - return this.name; - } - - public void setName(String name) { - this.name = name; - if(name != null){ - putQueryParameter("Name", name); - } - } - - public Integer getInstanceAmount() { - return this.instanceAmount; - } - - public void setInstanceAmount(Integer instanceAmount) { - this.instanceAmount = instanceAmount; - if(instanceAmount != null){ - putQueryParameter("InstanceAmount", instanceAmount.toString()); - } - } - - public String getResourceSupplyType() { - return this.resourceSupplyType; - } - - public void setResourceSupplyType(String resourceSupplyType) { - this.resourceSupplyType = resourceSupplyType; - if(resourceSupplyType != null){ - putQueryParameter("ResourceSupplyType", resourceSupplyType); - } - } - - public String getClientToken() { - return this.clientToken; - } - - public void setClientToken(String clientToken) { - this.clientToken = clientToken; - if(clientToken != null){ - putQueryParameter("ClientToken", clientToken); - } - } - - public String getInstanceTypes() { - return this.instanceTypes; - } - - public void setInstanceTypes(String instanceTypes) { - this.instanceTypes = instanceTypes; - if(instanceTypes != null){ - putQueryParameter("InstanceTypes", instanceTypes); - } - } - - public String getPhoneNumber() { - return this.phoneNumber; - } - - public void setPhoneNumber(String phoneNumber) { - this.phoneNumber = phoneNumber; - if(phoneNumber != null){ - putQueryParameter("PhoneNumber", phoneNumber); - } - } - - public String getDescription() { - return this.description; - } - - public void setDescription(String description) { - this.description = description; - if(description != null){ - putQueryParameter("Description", description); - } - } - - public String getPlatform() { - return this.platform; - } - - public void setPlatform(String platform) { - this.platform = platform; - if(platform != null){ - putQueryParameter("Platform", platform); - } - } - - public String getReservedInstanceDescription() { - return this.reservedInstanceDescription; - } - - public void setReservedInstanceDescription(String reservedInstanceDescription) { - this.reservedInstanceDescription = reservedInstanceDescription; - if(reservedInstanceDescription != null){ - putQueryParameter("ReservedInstanceDescription", reservedInstanceDescription); - } - } - - public String getZoneIds() { - return this.zoneIds; - } - - public void setZoneIds(String zoneIds) { - this.zoneIds = zoneIds; - if(zoneIds != null){ - putQueryParameter("ZoneIds", zoneIds); - } - } - - public String getSavingPlanName() { - return this.savingPlanName; - } - - public void setSavingPlanName(String savingPlanName) { - this.savingPlanName = savingPlanName; - if(savingPlanName != null){ - putQueryParameter("SavingPlanName", savingPlanName); - } - } - - public String getSavingPlanSavingType() { - return this.savingPlanSavingType; - } - - public void setSavingPlanSavingType(String savingPlanSavingType) { - this.savingPlanSavingType = savingPlanSavingType; - if(savingPlanSavingType != null){ - putQueryParameter("SavingPlanSavingType", savingPlanSavingType); - } - } - - public Float getSavingPlanHourFee() { - return this.savingPlanHourFee; - } - - public void setSavingPlanHourFee(Float savingPlanHourFee) { - this.savingPlanHourFee = savingPlanHourFee; - if(savingPlanHourFee != null){ - putQueryParameter("SavingPlanHourFee", savingPlanHourFee.toString()); - } - } - - public String getInstanceChargeType() { - return this.instanceChargeType; - } - - public void setInstanceChargeType(String instanceChargeType) { - this.instanceChargeType = instanceChargeType; - if(instanceChargeType != null){ - putQueryParameter("InstanceChargeType", instanceChargeType); - } - } - - public String getReservedInstanceOfferingType() { - return this.reservedInstanceOfferingType; - } - - public void setReservedInstanceOfferingType(String reservedInstanceOfferingType) { - this.reservedInstanceOfferingType = reservedInstanceOfferingType; - if(reservedInstanceOfferingType != null){ - putQueryParameter("ReservedInstanceOfferingType", reservedInstanceOfferingType); - } - } - - public String getInstanceTypeFamily() { - return this.instanceTypeFamily; - } - - public void setInstanceTypeFamily(String instanceTypeFamily) { - this.instanceTypeFamily = instanceTypeFamily; - if(instanceTypeFamily != null){ - putQueryParameter("InstanceTypeFamily", instanceTypeFamily); - } - } - - public String getEndTime() { - return this.endTime; - } - - public void setEndTime(String endTime) { - this.endTime = endTime; - if(endTime != null){ - putQueryParameter("EndTime", endTime); - } - } - - public String getMatchCriteria() { - return this.matchCriteria; - } - - public void setMatchCriteria(String matchCriteria) { - this.matchCriteria = matchCriteria; - if(matchCriteria != null){ - putQueryParameter("MatchCriteria", matchCriteria); - } - } - - public String getConfirmType() { - return this.confirmType; - } - - public void setConfirmType(String confirmType) { - this.confirmType = confirmType; - if(confirmType != null){ - putQueryParameter("ConfirmType", confirmType); - } - } - - public String getReservedInstanceScope() { - return this.reservedInstanceScope; - } - - public void setReservedInstanceScope(String reservedInstanceScope) { - this.reservedInstanceScope = reservedInstanceScope; - if(reservedInstanceScope != null){ - putQueryParameter("ReservedInstanceScope", reservedInstanceScope); - } - } - - public String getReservedInstanceName() { - return this.reservedInstanceName; - } - - public void setReservedInstanceName(String reservedInstanceName) { - this.reservedInstanceName = reservedInstanceName; - if(reservedInstanceName != null){ - putQueryParameter("ReservedInstanceName", reservedInstanceName); - } - } - - public String getSavingPlanId() { - return this.savingPlanId; - } - - public void setSavingPlanId(String savingPlanId) { - this.savingPlanId = savingPlanId; - if(savingPlanId != null){ - putQueryParameter("SavingPlanId", savingPlanId); - } - } - - public static class PrivatePoolOptions { - - private String matchCriteria; - - private String zoneId; - - private String instanceType; - - private Integer instanceAmount; - - public String getMatchCriteria() { - return this.matchCriteria; - } - - public void setMatchCriteria(String matchCriteria) { - this.matchCriteria = matchCriteria; - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - } - - public String getInstanceType() { - return this.instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - } - - public Integer getInstanceAmount() { - return this.instanceAmount; - } - - public void setInstanceAmount(Integer instanceAmount) { - this.instanceAmount = instanceAmount; - } - } - - public static class Tag { - - private String key; - - private String value; - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } - } - - @Override - public Class getResponseClass() { - return CreateReservationDemandResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateReservationDemandResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateReservationDemandResponse.java deleted file mode 100644 index cfa4b1bbb0..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateReservationDemandResponse.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.CreateReservationDemandResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class CreateReservationDemandResponse extends AcsResponse { - - private String requestId; - - private String demandId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public String getDemandId() { - return this.demandId; - } - - public void setDemandId(String demandId) { - this.demandId = demandId; - } - - @Override - public CreateReservationDemandResponse getInstance(UnmarshallerContext context) { - return CreateReservationDemandResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateUserQuotaApplicationRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateUserQuotaApplicationRequest.java deleted file mode 100644 index 4b3ebdb179..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateUserQuotaApplicationRequest.java +++ /dev/null @@ -1,184 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class CreateUserQuotaApplicationRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String quotaType; - - private String clientToken; - - private String description; - - private String instanceType; - - private Integer quotaValue; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String zoneId; - - private String chargeType; - public CreateUserQuotaApplicationRequest() { - super("Ecs", "2016-03-14", "CreateUserQuotaApplication", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getQuotaType() { - return this.quotaType; - } - - public void setQuotaType(String quotaType) { - this.quotaType = quotaType; - if(quotaType != null){ - putQueryParameter("QuotaType", quotaType); - } - } - - public String getClientToken() { - return this.clientToken; - } - - public void setClientToken(String clientToken) { - this.clientToken = clientToken; - if(clientToken != null){ - putQueryParameter("ClientToken", clientToken); - } - } - - public String getDescription() { - return this.description; - } - - public void setDescription(String description) { - this.description = description; - if(description != null){ - putQueryParameter("Description", description); - } - } - - public String getInstanceType() { - return this.instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - if(instanceType != null){ - putQueryParameter("InstanceType", instanceType); - } - } - - public Integer getQuotaValue() { - return this.quotaValue; - } - - public void setQuotaValue(Integer quotaValue) { - this.quotaValue = quotaValue; - if(quotaValue != null){ - putQueryParameter("QuotaValue", quotaValue.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - if(zoneId != null){ - putQueryParameter("ZoneId", zoneId); - } - } - - public String getChargeType() { - return this.chargeType; - } - - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - if(chargeType != null){ - putQueryParameter("ChargeType", chargeType); - } - } - - @Override - public Class getResponseClass() { - return CreateUserQuotaApplicationResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateUserQuotaApplicationResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateUserQuotaApplicationResponse.java deleted file mode 100644 index 3dea15e0a6..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateUserQuotaApplicationResponse.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.CreateUserQuotaApplicationResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class CreateUserQuotaApplicationResponse extends AcsResponse { - - private String applicationId; - - private String requestId; - - public String getApplicationId() { - return this.applicationId; - } - - public void setApplicationId(String applicationId) { - this.applicationId = applicationId; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public CreateUserQuotaApplicationResponse getInstance(UnmarshallerContext context) { - return CreateUserQuotaApplicationResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateVolumesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateVolumesRequest.java deleted file mode 100644 index fba3e4b449..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateVolumesRequest.java +++ /dev/null @@ -1,289 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class CreateVolumesRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String snapshotId; - - private String clientToken; - - private String description; - - private String volumeCategory; - - private Integer storageSetPartitionNumber; - - private List tags; - - private Integer amount; - - private String volumeName; - - private Boolean volumeEncrypted; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String storageSetId; - - private Integer size; - - private String zoneId; - - private String kMSKeyId; - public CreateVolumesRequest() { - super("Ecs", "2016-03-14", "CreateVolumes", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getSnapshotId() { - return this.snapshotId; - } - - public void setSnapshotId(String snapshotId) { - this.snapshotId = snapshotId; - if(snapshotId != null){ - putQueryParameter("SnapshotId", snapshotId); - } - } - - public String getClientToken() { - return this.clientToken; - } - - public void setClientToken(String clientToken) { - this.clientToken = clientToken; - if(clientToken != null){ - putQueryParameter("ClientToken", clientToken); - } - } - - public String getDescription() { - return this.description; - } - - public void setDescription(String description) { - this.description = description; - if(description != null){ - putQueryParameter("Description", description); - } - } - - public String getVolumeCategory() { - return this.volumeCategory; - } - - public void setVolumeCategory(String volumeCategory) { - this.volumeCategory = volumeCategory; - if(volumeCategory != null){ - putQueryParameter("VolumeCategory", volumeCategory); - } - } - - public Integer getStorageSetPartitionNumber() { - return this.storageSetPartitionNumber; - } - - public void setStorageSetPartitionNumber(Integer storageSetPartitionNumber) { - this.storageSetPartitionNumber = storageSetPartitionNumber; - if(storageSetPartitionNumber != null){ - putQueryParameter("StorageSetPartitionNumber", storageSetPartitionNumber.toString()); - } - } - - public List getTags() { - return this.tags; - } - - public void setTags(List tags) { - this.tags = tags; - if (tags != null) { - for (int depth1 = 0; depth1 < tags.size(); depth1++) { - putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); - putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); - } - } - } - - public Integer getAmount() { - return this.amount; - } - - public void setAmount(Integer amount) { - this.amount = amount; - if(amount != null){ - putQueryParameter("Amount", amount.toString()); - } - } - - public String getVolumeName() { - return this.volumeName; - } - - public void setVolumeName(String volumeName) { - this.volumeName = volumeName; - if(volumeName != null){ - putQueryParameter("VolumeName", volumeName); - } - } - - public Boolean getVolumeEncrypted() { - return this.volumeEncrypted; - } - - public void setVolumeEncrypted(Boolean volumeEncrypted) { - this.volumeEncrypted = volumeEncrypted; - if(volumeEncrypted != null){ - putQueryParameter("VolumeEncrypted", volumeEncrypted.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getStorageSetId() { - return this.storageSetId; - } - - public void setStorageSetId(String storageSetId) { - this.storageSetId = storageSetId; - if(storageSetId != null){ - putQueryParameter("StorageSetId", storageSetId); - } - } - - public Integer getSize() { - return this.size; - } - - public void setSize(Integer size) { - this.size = size; - if(size != null){ - putQueryParameter("Size", size.toString()); - } - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - if(zoneId != null){ - putQueryParameter("ZoneId", zoneId); - } - } - - public String getKMSKeyId() { - return this.kMSKeyId; - } - - public void setKMSKeyId(String kMSKeyId) { - this.kMSKeyId = kMSKeyId; - if(kMSKeyId != null){ - putQueryParameter("KMSKeyId", kMSKeyId); - } - } - - public static class Tag { - - private String value; - - private String key; - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - } - - @Override - public Class getResponseClass() { - return CreateVolumesResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateVolumesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateVolumesResponse.java deleted file mode 100644 index 4f0635b6cf..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateVolumesResponse.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.CreateVolumesResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class CreateVolumesResponse extends AcsResponse { - - private String requestId; - - private List volumeIds; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public List getVolumeIds() { - return this.volumeIds; - } - - public void setVolumeIds(List volumeIds) { - this.volumeIds = volumeIds; - } - - @Override - public CreateVolumesResponse getInstance(UnmarshallerContext context) { - return CreateVolumesResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateWaitingOrderRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateWaitingOrderRequest.java deleted file mode 100644 index 4545e9dc46..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateWaitingOrderRequest.java +++ /dev/null @@ -1,1737 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class CreateWaitingOrderRequest extends RpcAcsRequest { - - - private Boolean uniqueSuffix; - - private String securityEnhancementStrategy; - - private Integer minAmount; - - private Boolean deletionProtection; - - private String resourceGroupId; - - private String privatePoolOptionsMatchCriteria; - - private String hostName; - - private String password; - - private SystemDisk systemDisk; - - private ImageOptions imageOptions; - - private Integer deploymentSetGroupNo; - - private String systemDiskAutoSnapshotPolicyId; - - private Integer cpuOptionsCore; - - private Integer period; - - private Boolean dryRun; - - private String cpuOptionsNuma; - - private Long ownerId; - - private String spotStrategy; - - private String privateIpAddress; - - private String periodUnit; - - private Boolean autoRenew; - - private String internetChargeType; - - private Integer internetMaxBandwidthIn; - - private String affinity; - - private String imageId; - - private String spotInterruptionBehavior; - - private Integer networkInterfaceQueueNumber; - - private String ioOptimized; - - private String securityGroupId; - - private Boolean hibernationOptionsConfigured; - - private String systemDiskPerformanceLevel; - - private Boolean passwordInherit; - - private String instanceType; - - private List arns; - - private String resourceOwnerAccount; - - private String schedulerOptionsDedicatedHostClusterId; - - private String systemDiskDiskName; - - private String dedicatedHostId; - - private Integer spotDuration; - - private List securityGroupIdss; - - private NetworkOptions networkOptions; - - private String systemDiskSize; - - private String imageFamily; - - private String launchTemplateName; - - private Long resourceOwnerId; - - private List instances; - - private String hpcClusterId; - - private Integer httpPutResponseHopLimit; - - private String isp; - - private String keyPairName; - - private Float spotPriceLimit; - - private Integer storageSetPartitionNumber; - - private List tags; - - private String privatePoolOptionsId; - - private Integer autoRenewPeriod; - - private String launchTemplateId; - - private Integer ipv6AddressCount; - - private Integer maxAmount; - - private List hostNamess; - - private String vSwitchId; - - private String instanceName; - - private String zoneId; - - private List ipv6Addresss; - - private String securityOptionsConfidentialComputingMode; - - private String clientToken; - - private Integer internetMaxBandwidthOut; - - private String description; - - private Integer cpuOptionsThreadsPerCore; - - private String systemDiskCategory; - - private String securityOptionsTrustedSystemMode; - - private String userData; - - private String httpEndpoint; - - private String instanceChargeType; - - private String deploymentSetId; - - private List networkInterfaces; - - private String ownerAccount; - - private String tenancy; - - private String ramRoleName; - - private String autoReleaseTime; - - private String creditSpecification; - - private Long launchTemplateVersion; - - private List dataDisks; - - private String storageSetId; - - private List securityGroupRules; - - private String expiredTime; - - private String httpTokens; - - private String systemDiskDescription; - public CreateWaitingOrderRequest() { - super("Ecs", "2016-03-14", "CreateWaitingOrder", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Boolean getUniqueSuffix() { - return this.uniqueSuffix; - } - - public void setUniqueSuffix(Boolean uniqueSuffix) { - this.uniqueSuffix = uniqueSuffix; - if(uniqueSuffix != null){ - putQueryParameter("UniqueSuffix", uniqueSuffix.toString()); - } - } - - public String getSecurityEnhancementStrategy() { - return this.securityEnhancementStrategy; - } - - public void setSecurityEnhancementStrategy(String securityEnhancementStrategy) { - this.securityEnhancementStrategy = securityEnhancementStrategy; - if(securityEnhancementStrategy != null){ - putQueryParameter("SecurityEnhancementStrategy", securityEnhancementStrategy); - } - } - - public Integer getMinAmount() { - return this.minAmount; - } - - public void setMinAmount(Integer minAmount) { - this.minAmount = minAmount; - if(minAmount != null){ - putQueryParameter("MinAmount", minAmount.toString()); - } - } - - public Boolean getDeletionProtection() { - return this.deletionProtection; - } - - public void setDeletionProtection(Boolean deletionProtection) { - this.deletionProtection = deletionProtection; - if(deletionProtection != null){ - putQueryParameter("DeletionProtection", deletionProtection.toString()); - } - } - - public String getResourceGroupId() { - return this.resourceGroupId; - } - - public void setResourceGroupId(String resourceGroupId) { - this.resourceGroupId = resourceGroupId; - if(resourceGroupId != null){ - putQueryParameter("ResourceGroupId", resourceGroupId); - } - } - - public String getPrivatePoolOptionsMatchCriteria() { - return this.privatePoolOptionsMatchCriteria; - } - - public void setPrivatePoolOptionsMatchCriteria(String privatePoolOptionsMatchCriteria) { - this.privatePoolOptionsMatchCriteria = privatePoolOptionsMatchCriteria; - if(privatePoolOptionsMatchCriteria != null){ - putQueryParameter("PrivatePoolOptions.MatchCriteria", privatePoolOptionsMatchCriteria); - } - } - - public String getHostName() { - return this.hostName; - } - - public void setHostName(String hostName) { - this.hostName = hostName; - if(hostName != null){ - putQueryParameter("HostName", hostName); - } - } - - public String getPassword() { - return this.password; - } - - public void setPassword(String password) { - this.password = password; - if(password != null){ - putQueryParameter("Password", password); - } - } - - public SystemDisk getSystemDisk() { - return this.systemDisk; - } - - public void setSystemDisk(SystemDisk systemDisk) { - this.systemDisk = systemDisk; - if (systemDisk != null) { - - putQueryParameter("SystemDisk.StorageClusterId" , systemDisk.getStorageClusterId()); - putQueryParameter("SystemDisk.ProvisionedIops" , systemDisk.getProvisionedIops()); - putQueryParameter("SystemDisk.BurstingEnabled" , systemDisk.getBurstingEnabled()); - putQueryParameter("SystemDisk.Encrypted" , systemDisk.getEncrypted()); - putQueryParameter("SystemDisk.KMSKeyId" , systemDisk.getKMSKeyId()); - putQueryParameter("SystemDisk.EncryptAlgorithm" , systemDisk.getEncryptAlgorithm()); - } - } - - public ImageOptions getImageOptions() { - return this.imageOptions; - } - - public void setImageOptions(ImageOptions imageOptions) { - this.imageOptions = imageOptions; - if (imageOptions != null) { - - putQueryParameter("ImageOptions.LoginAsNonRoot" , imageOptions.getLoginAsNonRoot()); - } - } - - public Integer getDeploymentSetGroupNo() { - return this.deploymentSetGroupNo; - } - - public void setDeploymentSetGroupNo(Integer deploymentSetGroupNo) { - this.deploymentSetGroupNo = deploymentSetGroupNo; - if(deploymentSetGroupNo != null){ - putQueryParameter("DeploymentSetGroupNo", deploymentSetGroupNo.toString()); - } - } - - public String getSystemDiskAutoSnapshotPolicyId() { - return this.systemDiskAutoSnapshotPolicyId; - } - - public void setSystemDiskAutoSnapshotPolicyId(String systemDiskAutoSnapshotPolicyId) { - this.systemDiskAutoSnapshotPolicyId = systemDiskAutoSnapshotPolicyId; - if(systemDiskAutoSnapshotPolicyId != null){ - putQueryParameter("SystemDisk.AutoSnapshotPolicyId", systemDiskAutoSnapshotPolicyId); - } - } - - public Integer getCpuOptionsCore() { - return this.cpuOptionsCore; - } - - public void setCpuOptionsCore(Integer cpuOptionsCore) { - this.cpuOptionsCore = cpuOptionsCore; - if(cpuOptionsCore != null){ - putQueryParameter("CpuOptions.Core", cpuOptionsCore.toString()); - } - } - - public Integer getPeriod() { - return this.period; - } - - public void setPeriod(Integer period) { - this.period = period; - if(period != null){ - putQueryParameter("Period", period.toString()); - } - } - - public Boolean getDryRun() { - return this.dryRun; - } - - public void setDryRun(Boolean dryRun) { - this.dryRun = dryRun; - if(dryRun != null){ - putQueryParameter("DryRun", dryRun.toString()); - } - } - - public String getCpuOptionsNuma() { - return this.cpuOptionsNuma; - } - - public void setCpuOptionsNuma(String cpuOptionsNuma) { - this.cpuOptionsNuma = cpuOptionsNuma; - if(cpuOptionsNuma != null){ - putQueryParameter("CpuOptions.Numa", cpuOptionsNuma); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getSpotStrategy() { - return this.spotStrategy; - } - - public void setSpotStrategy(String spotStrategy) { - this.spotStrategy = spotStrategy; - if(spotStrategy != null){ - putQueryParameter("SpotStrategy", spotStrategy); - } - } - - public String getPrivateIpAddress() { - return this.privateIpAddress; - } - - public void setPrivateIpAddress(String privateIpAddress) { - this.privateIpAddress = privateIpAddress; - if(privateIpAddress != null){ - putQueryParameter("PrivateIpAddress", privateIpAddress); - } - } - - public String getPeriodUnit() { - return this.periodUnit; - } - - public void setPeriodUnit(String periodUnit) { - this.periodUnit = periodUnit; - if(periodUnit != null){ - putQueryParameter("PeriodUnit", periodUnit); - } - } - - public Boolean getAutoRenew() { - return this.autoRenew; - } - - public void setAutoRenew(Boolean autoRenew) { - this.autoRenew = autoRenew; - if(autoRenew != null){ - putQueryParameter("AutoRenew", autoRenew.toString()); - } - } - - public String getInternetChargeType() { - return this.internetChargeType; - } - - public void setInternetChargeType(String internetChargeType) { - this.internetChargeType = internetChargeType; - if(internetChargeType != null){ - putQueryParameter("InternetChargeType", internetChargeType); - } - } - - public Integer getInternetMaxBandwidthIn() { - return this.internetMaxBandwidthIn; - } - - public void setInternetMaxBandwidthIn(Integer internetMaxBandwidthIn) { - this.internetMaxBandwidthIn = internetMaxBandwidthIn; - if(internetMaxBandwidthIn != null){ - putQueryParameter("InternetMaxBandwidthIn", internetMaxBandwidthIn.toString()); - } - } - - public String getAffinity() { - return this.affinity; - } - - public void setAffinity(String affinity) { - this.affinity = affinity; - if(affinity != null){ - putQueryParameter("Affinity", affinity); - } - } - - public String getImageId() { - return this.imageId; - } - - public void setImageId(String imageId) { - this.imageId = imageId; - if(imageId != null){ - putQueryParameter("ImageId", imageId); - } - } - - public String getSpotInterruptionBehavior() { - return this.spotInterruptionBehavior; - } - - public void setSpotInterruptionBehavior(String spotInterruptionBehavior) { - this.spotInterruptionBehavior = spotInterruptionBehavior; - if(spotInterruptionBehavior != null){ - putQueryParameter("SpotInterruptionBehavior", spotInterruptionBehavior); - } - } - - public Integer getNetworkInterfaceQueueNumber() { - return this.networkInterfaceQueueNumber; - } - - public void setNetworkInterfaceQueueNumber(Integer networkInterfaceQueueNumber) { - this.networkInterfaceQueueNumber = networkInterfaceQueueNumber; - if(networkInterfaceQueueNumber != null){ - putQueryParameter("NetworkInterfaceQueueNumber", networkInterfaceQueueNumber.toString()); - } - } - - public String getIoOptimized() { - return this.ioOptimized; - } - - public void setIoOptimized(String ioOptimized) { - this.ioOptimized = ioOptimized; - if(ioOptimized != null){ - putQueryParameter("IoOptimized", ioOptimized); - } - } - - public String getSecurityGroupId() { - return this.securityGroupId; - } - - public void setSecurityGroupId(String securityGroupId) { - this.securityGroupId = securityGroupId; - if(securityGroupId != null){ - putQueryParameter("SecurityGroupId", securityGroupId); - } - } - - public Boolean getHibernationOptionsConfigured() { - return this.hibernationOptionsConfigured; - } - - public void setHibernationOptionsConfigured(Boolean hibernationOptionsConfigured) { - this.hibernationOptionsConfigured = hibernationOptionsConfigured; - if(hibernationOptionsConfigured != null){ - putQueryParameter("HibernationOptions.Configured", hibernationOptionsConfigured.toString()); - } - } - - public String getSystemDiskPerformanceLevel() { - return this.systemDiskPerformanceLevel; - } - - public void setSystemDiskPerformanceLevel(String systemDiskPerformanceLevel) { - this.systemDiskPerformanceLevel = systemDiskPerformanceLevel; - if(systemDiskPerformanceLevel != null){ - putQueryParameter("SystemDisk.PerformanceLevel", systemDiskPerformanceLevel); - } - } - - public Boolean getPasswordInherit() { - return this.passwordInherit; - } - - public void setPasswordInherit(Boolean passwordInherit) { - this.passwordInherit = passwordInherit; - if(passwordInherit != null){ - putQueryParameter("PasswordInherit", passwordInherit.toString()); - } - } - - public String getInstanceType() { - return this.instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - if(instanceType != null){ - putQueryParameter("InstanceType", instanceType); - } - } - - public List getArns() { - return this.arns; - } - - public void setArns(List arns) { - this.arns = arns; - if (arns != null) { - for (int depth1 = 0; depth1 < arns.size(); depth1++) { - putQueryParameter("Arn." + (depth1 + 1) + ".RoleType" , arns.get(depth1).getRoleType()); - putQueryParameter("Arn." + (depth1 + 1) + ".Rolearn" , arns.get(depth1).getRolearn()); - putQueryParameter("Arn." + (depth1 + 1) + ".AssumeRoleFor" , arns.get(depth1).getAssumeRoleFor()); - } - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getSchedulerOptionsDedicatedHostClusterId() { - return this.schedulerOptionsDedicatedHostClusterId; - } - - public void setSchedulerOptionsDedicatedHostClusterId(String schedulerOptionsDedicatedHostClusterId) { - this.schedulerOptionsDedicatedHostClusterId = schedulerOptionsDedicatedHostClusterId; - if(schedulerOptionsDedicatedHostClusterId != null){ - putQueryParameter("SchedulerOptions.DedicatedHostClusterId", schedulerOptionsDedicatedHostClusterId); - } - } - - public String getSystemDiskDiskName() { - return this.systemDiskDiskName; - } - - public void setSystemDiskDiskName(String systemDiskDiskName) { - this.systemDiskDiskName = systemDiskDiskName; - if(systemDiskDiskName != null){ - putQueryParameter("SystemDisk.DiskName", systemDiskDiskName); - } - } - - public String getDedicatedHostId() { - return this.dedicatedHostId; - } - - public void setDedicatedHostId(String dedicatedHostId) { - this.dedicatedHostId = dedicatedHostId; - if(dedicatedHostId != null){ - putQueryParameter("DedicatedHostId", dedicatedHostId); - } - } - - public Integer getSpotDuration() { - return this.spotDuration; - } - - public void setSpotDuration(Integer spotDuration) { - this.spotDuration = spotDuration; - if(spotDuration != null){ - putQueryParameter("SpotDuration", spotDuration.toString()); - } - } - - public List getSecurityGroupIdss() { - return this.securityGroupIdss; - } - - public void setSecurityGroupIdss(List securityGroupIdss) { - this.securityGroupIdss = securityGroupIdss; - if (securityGroupIdss != null) { - for (int i = 0; i < securityGroupIdss.size(); i++) { - putQueryParameter("SecurityGroupIds." + (i + 1) , securityGroupIdss.get(i)); - } - } - } - - public NetworkOptions getNetworkOptions() { - return this.networkOptions; - } - - public void setNetworkOptions(NetworkOptions networkOptions) { - this.networkOptions = networkOptions; - if (networkOptions != null) { - - putQueryParameter("NetworkOptions.EnableJumboFrame" , networkOptions.getEnableJumboFrame()); - } - } - - public String getSystemDiskSize() { - return this.systemDiskSize; - } - - public void setSystemDiskSize(String systemDiskSize) { - this.systemDiskSize = systemDiskSize; - if(systemDiskSize != null){ - putQueryParameter("SystemDisk.Size", systemDiskSize); - } - } - - public String getImageFamily() { - return this.imageFamily; - } - - public void setImageFamily(String imageFamily) { - this.imageFamily = imageFamily; - if(imageFamily != null){ - putQueryParameter("ImageFamily", imageFamily); - } - } - - public String getLaunchTemplateName() { - return this.launchTemplateName; - } - - public void setLaunchTemplateName(String launchTemplateName) { - this.launchTemplateName = launchTemplateName; - if(launchTemplateName != null){ - putQueryParameter("LaunchTemplateName", launchTemplateName); - } - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public List getInstances() { - return this.instances; - } - - public void setInstances(List instances) { - this.instances = instances; - if (instances != null) { - for (int depth1 = 0; depth1 < instances.size(); depth1++) { - putQueryParameter("Instance." + (depth1 + 1) + ".PrivateIpAddress" , instances.get(depth1).getPrivateIpAddress()); - } - } - } - - public String getHpcClusterId() { - return this.hpcClusterId; - } - - public void setHpcClusterId(String hpcClusterId) { - this.hpcClusterId = hpcClusterId; - if(hpcClusterId != null){ - putQueryParameter("HpcClusterId", hpcClusterId); - } - } - - public Integer getHttpPutResponseHopLimit() { - return this.httpPutResponseHopLimit; - } - - public void setHttpPutResponseHopLimit(Integer httpPutResponseHopLimit) { - this.httpPutResponseHopLimit = httpPutResponseHopLimit; - if(httpPutResponseHopLimit != null){ - putQueryParameter("HttpPutResponseHopLimit", httpPutResponseHopLimit.toString()); - } - } - - public String getIsp() { - return this.isp; - } - - public void setIsp(String isp) { - this.isp = isp; - if(isp != null){ - putQueryParameter("Isp", isp); - } - } - - public String getKeyPairName() { - return this.keyPairName; - } - - public void setKeyPairName(String keyPairName) { - this.keyPairName = keyPairName; - if(keyPairName != null){ - putQueryParameter("KeyPairName", keyPairName); - } - } - - public Float getSpotPriceLimit() { - return this.spotPriceLimit; - } - - public void setSpotPriceLimit(Float spotPriceLimit) { - this.spotPriceLimit = spotPriceLimit; - if(spotPriceLimit != null){ - putQueryParameter("SpotPriceLimit", spotPriceLimit.toString()); - } - } - - public Integer getStorageSetPartitionNumber() { - return this.storageSetPartitionNumber; - } - - public void setStorageSetPartitionNumber(Integer storageSetPartitionNumber) { - this.storageSetPartitionNumber = storageSetPartitionNumber; - if(storageSetPartitionNumber != null){ - putQueryParameter("StorageSetPartitionNumber", storageSetPartitionNumber.toString()); - } - } - - public List getTags() { - return this.tags; - } - - public void setTags(List tags) { - this.tags = tags; - if (tags != null) { - for (int depth1 = 0; depth1 < tags.size(); depth1++) { - putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); - putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); - } - } - } - - public String getPrivatePoolOptionsId() { - return this.privatePoolOptionsId; - } - - public void setPrivatePoolOptionsId(String privatePoolOptionsId) { - this.privatePoolOptionsId = privatePoolOptionsId; - if(privatePoolOptionsId != null){ - putQueryParameter("PrivatePoolOptions.Id", privatePoolOptionsId); - } - } - - public Integer getAutoRenewPeriod() { - return this.autoRenewPeriod; - } - - public void setAutoRenewPeriod(Integer autoRenewPeriod) { - this.autoRenewPeriod = autoRenewPeriod; - if(autoRenewPeriod != null){ - putQueryParameter("AutoRenewPeriod", autoRenewPeriod.toString()); - } - } - - public String getLaunchTemplateId() { - return this.launchTemplateId; - } - - public void setLaunchTemplateId(String launchTemplateId) { - this.launchTemplateId = launchTemplateId; - if(launchTemplateId != null){ - putQueryParameter("LaunchTemplateId", launchTemplateId); - } - } - - public Integer getIpv6AddressCount() { - return this.ipv6AddressCount; - } - - public void setIpv6AddressCount(Integer ipv6AddressCount) { - this.ipv6AddressCount = ipv6AddressCount; - if(ipv6AddressCount != null){ - putQueryParameter("Ipv6AddressCount", ipv6AddressCount.toString()); - } - } - - public Integer getMaxAmount() { - return this.maxAmount; - } - - public void setMaxAmount(Integer maxAmount) { - this.maxAmount = maxAmount; - if(maxAmount != null){ - putQueryParameter("MaxAmount", maxAmount.toString()); - } - } - - public List getHostNamess() { - return this.hostNamess; - } - - public void setHostNamess(List hostNamess) { - this.hostNamess = hostNamess; - if (hostNamess != null) { - for (int i = 0; i < hostNamess.size(); i++) { - putQueryParameter("HostNames." + (i + 1) , hostNamess.get(i)); - } - } - } - - public String getVSwitchId() { - return this.vSwitchId; - } - - public void setVSwitchId(String vSwitchId) { - this.vSwitchId = vSwitchId; - if(vSwitchId != null){ - putQueryParameter("VSwitchId", vSwitchId); - } - } - - public String getInstanceName() { - return this.instanceName; - } - - public void setInstanceName(String instanceName) { - this.instanceName = instanceName; - if(instanceName != null){ - putQueryParameter("InstanceName", instanceName); - } - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - if(zoneId != null){ - putQueryParameter("ZoneId", zoneId); - } - } - - public List getIpv6Addresss() { - return this.ipv6Addresss; - } - - public void setIpv6Addresss(List ipv6Addresss) { - this.ipv6Addresss = ipv6Addresss; - if (ipv6Addresss != null) { - for (int i = 0; i < ipv6Addresss.size(); i++) { - putQueryParameter("Ipv6Address." + (i + 1) , ipv6Addresss.get(i)); - } - } - } - - public String getSecurityOptionsConfidentialComputingMode() { - return this.securityOptionsConfidentialComputingMode; - } - - public void setSecurityOptionsConfidentialComputingMode(String securityOptionsConfidentialComputingMode) { - this.securityOptionsConfidentialComputingMode = securityOptionsConfidentialComputingMode; - if(securityOptionsConfidentialComputingMode != null){ - putQueryParameter("SecurityOptions.ConfidentialComputingMode", securityOptionsConfidentialComputingMode); - } - } - - public String getClientToken() { - return this.clientToken; - } - - public void setClientToken(String clientToken) { - this.clientToken = clientToken; - if(clientToken != null){ - putQueryParameter("ClientToken", clientToken); - } - } - - public Integer getInternetMaxBandwidthOut() { - return this.internetMaxBandwidthOut; - } - - public void setInternetMaxBandwidthOut(Integer internetMaxBandwidthOut) { - this.internetMaxBandwidthOut = internetMaxBandwidthOut; - if(internetMaxBandwidthOut != null){ - putQueryParameter("InternetMaxBandwidthOut", internetMaxBandwidthOut.toString()); - } - } - - public String getDescription() { - return this.description; - } - - public void setDescription(String description) { - this.description = description; - if(description != null){ - putQueryParameter("Description", description); - } - } - - public Integer getCpuOptionsThreadsPerCore() { - return this.cpuOptionsThreadsPerCore; - } - - public void setCpuOptionsThreadsPerCore(Integer cpuOptionsThreadsPerCore) { - this.cpuOptionsThreadsPerCore = cpuOptionsThreadsPerCore; - if(cpuOptionsThreadsPerCore != null){ - putQueryParameter("CpuOptions.ThreadsPerCore", cpuOptionsThreadsPerCore.toString()); - } - } - - public String getSystemDiskCategory() { - return this.systemDiskCategory; - } - - public void setSystemDiskCategory(String systemDiskCategory) { - this.systemDiskCategory = systemDiskCategory; - if(systemDiskCategory != null){ - putQueryParameter("SystemDisk.Category", systemDiskCategory); - } - } - - public String getSecurityOptionsTrustedSystemMode() { - return this.securityOptionsTrustedSystemMode; - } - - public void setSecurityOptionsTrustedSystemMode(String securityOptionsTrustedSystemMode) { - this.securityOptionsTrustedSystemMode = securityOptionsTrustedSystemMode; - if(securityOptionsTrustedSystemMode != null){ - putQueryParameter("SecurityOptions.TrustedSystemMode", securityOptionsTrustedSystemMode); - } - } - - public String getUserData() { - return this.userData; - } - - public void setUserData(String userData) { - this.userData = userData; - if(userData != null){ - putQueryParameter("UserData", userData); - } - } - - public String getHttpEndpoint() { - return this.httpEndpoint; - } - - public void setHttpEndpoint(String httpEndpoint) { - this.httpEndpoint = httpEndpoint; - if(httpEndpoint != null){ - putQueryParameter("HttpEndpoint", httpEndpoint); - } - } - - public String getInstanceChargeType() { - return this.instanceChargeType; - } - - public void setInstanceChargeType(String instanceChargeType) { - this.instanceChargeType = instanceChargeType; - if(instanceChargeType != null){ - putQueryParameter("InstanceChargeType", instanceChargeType); - } - } - - public String getDeploymentSetId() { - return this.deploymentSetId; - } - - public void setDeploymentSetId(String deploymentSetId) { - this.deploymentSetId = deploymentSetId; - if(deploymentSetId != null){ - putQueryParameter("DeploymentSetId", deploymentSetId); - } - } - - public List getNetworkInterfaces() { - return this.networkInterfaces; - } - - public void setNetworkInterfaces(List networkInterfaces) { - this.networkInterfaces = networkInterfaces; - if (networkInterfaces != null) { - for (int depth1 = 0; depth1 < networkInterfaces.size(); depth1++) { - putQueryParameter("NetworkInterface." + (depth1 + 1) + ".VSwitchId" , networkInterfaces.get(depth1).getVSwitchId()); - putQueryParameter("NetworkInterface." + (depth1 + 1) + ".NetworkInterfaceName" , networkInterfaces.get(depth1).getNetworkInterfaceName()); - putQueryParameter("NetworkInterface." + (depth1 + 1) + ".Description" , networkInterfaces.get(depth1).getDescription()); - putQueryParameter("NetworkInterface." + (depth1 + 1) + ".SecurityGroupId" , networkInterfaces.get(depth1).getSecurityGroupId()); - putQueryParameter("NetworkInterface." + (depth1 + 1) + ".PrimaryIpAddress" , networkInterfaces.get(depth1).getPrimaryIpAddress()); - if (networkInterfaces.get(depth1).getSecurityGroupIdss() != null) { - for (int i = 0; i < networkInterfaces.get(depth1).getSecurityGroupIdss().size(); i++) { - putQueryParameter("NetworkInterface." + (depth1 + 1) + ".SecurityGroupIds." + (i + 1) , networkInterfaces.get(depth1).getSecurityGroupIdss().get(i)); - } - } - putQueryParameter("NetworkInterface." + (depth1 + 1) + ".InstanceType" , networkInterfaces.get(depth1).getInstanceType()); - putQueryParameter("NetworkInterface." + (depth1 + 1) + ".NetworkInterfaceTrafficMode" , networkInterfaces.get(depth1).getNetworkInterfaceTrafficMode()); - putQueryParameter("NetworkInterface." + (depth1 + 1) + ".QueuePairNumber" , networkInterfaces.get(depth1).getQueuePairNumber()); - putQueryParameter("NetworkInterface." + (depth1 + 1) + ".Ipv6AddressCount" , networkInterfaces.get(depth1).getIpv6AddressCount()); - if (networkInterfaces.get(depth1).getIpv6Addresss() != null) { - for (int i = 0; i < networkInterfaces.get(depth1).getIpv6Addresss().size(); i++) { - putQueryParameter("NetworkInterface." + (depth1 + 1) + ".Ipv6Address." + (i + 1) , networkInterfaces.get(depth1).getIpv6Addresss().get(i)); - } - } - putQueryParameter("NetworkInterface." + (depth1 + 1) + ".NetworkCardIndex" , networkInterfaces.get(depth1).getNetworkCardIndex()); - putQueryParameter("NetworkInterface." + (depth1 + 1) + ".QueueNumber" , networkInterfaces.get(depth1).getQueueNumber()); - } - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public String getTenancy() { - return this.tenancy; - } - - public void setTenancy(String tenancy) { - this.tenancy = tenancy; - if(tenancy != null){ - putQueryParameter("Tenancy", tenancy); - } - } - - public String getRamRoleName() { - return this.ramRoleName; - } - - public void setRamRoleName(String ramRoleName) { - this.ramRoleName = ramRoleName; - if(ramRoleName != null){ - putQueryParameter("RamRoleName", ramRoleName); - } - } - - public String getAutoReleaseTime() { - return this.autoReleaseTime; - } - - public void setAutoReleaseTime(String autoReleaseTime) { - this.autoReleaseTime = autoReleaseTime; - if(autoReleaseTime != null){ - putQueryParameter("AutoReleaseTime", autoReleaseTime); - } - } - - public String getCreditSpecification() { - return this.creditSpecification; - } - - public void setCreditSpecification(String creditSpecification) { - this.creditSpecification = creditSpecification; - if(creditSpecification != null){ - putQueryParameter("CreditSpecification", creditSpecification); - } - } - - public Long getLaunchTemplateVersion() { - return this.launchTemplateVersion; - } - - public void setLaunchTemplateVersion(Long launchTemplateVersion) { - this.launchTemplateVersion = launchTemplateVersion; - if(launchTemplateVersion != null){ - putQueryParameter("LaunchTemplateVersion", launchTemplateVersion.toString()); - } - } - - public List getDataDisks() { - return this.dataDisks; - } - - public void setDataDisks(List dataDisks) { - this.dataDisks = dataDisks; - if (dataDisks != null) { - for (int depth1 = 0; depth1 < dataDisks.size(); depth1++) { - putQueryParameter("DataDisk." + (depth1 + 1) + ".PerformanceLevel" , dataDisks.get(depth1).getPerformanceLevel()); - putQueryParameter("DataDisk." + (depth1 + 1) + ".AutoSnapshotPolicyId" , dataDisks.get(depth1).getAutoSnapshotPolicyId()); - putQueryParameter("DataDisk." + (depth1 + 1) + ".Encrypted" , dataDisks.get(depth1).getEncrypted()); - putQueryParameter("DataDisk." + (depth1 + 1) + ".Description" , dataDisks.get(depth1).getDescription()); - putQueryParameter("DataDisk." + (depth1 + 1) + ".SnapshotId" , dataDisks.get(depth1).getSnapshotId()); - putQueryParameter("DataDisk." + (depth1 + 1) + ".Device" , dataDisks.get(depth1).getDevice()); - putQueryParameter("DataDisk." + (depth1 + 1) + ".Size" , dataDisks.get(depth1).getSize()); - putQueryParameter("DataDisk." + (depth1 + 1) + ".DiskName" , dataDisks.get(depth1).getDiskName()); - putQueryParameter("DataDisk." + (depth1 + 1) + ".Category" , dataDisks.get(depth1).getCategory()); - putQueryParameter("DataDisk." + (depth1 + 1) + ".EncryptAlgorithm" , dataDisks.get(depth1).getEncryptAlgorithm()); - putQueryParameter("DataDisk." + (depth1 + 1) + ".DeleteWithInstance" , dataDisks.get(depth1).getDeleteWithInstance()); - putQueryParameter("DataDisk." + (depth1 + 1) + ".KMSKeyId" , dataDisks.get(depth1).getKMSKeyId()); - putQueryParameter("DataDisk." + (depth1 + 1) + ".StorageClusterId" , dataDisks.get(depth1).getStorageClusterId()); - putQueryParameter("DataDisk." + (depth1 + 1) + ".ProvisionedIops" , dataDisks.get(depth1).getProvisionedIops()); - putQueryParameter("DataDisk." + (depth1 + 1) + ".BurstingEnable" , dataDisks.get(depth1).getBurstingEnable()); - } - } - } - - public String getStorageSetId() { - return this.storageSetId; - } - - public void setStorageSetId(String storageSetId) { - this.storageSetId = storageSetId; - if(storageSetId != null){ - putQueryParameter("StorageSetId", storageSetId); - } - } - - public List getSecurityGroupRules() { - return this.securityGroupRules; - } - - public void setSecurityGroupRules(List securityGroupRules) { - this.securityGroupRules = securityGroupRules; - if (securityGroupRules != null) { - for (int depth1 = 0; depth1 < securityGroupRules.size(); depth1++) { - putQueryParameter("SecurityGroupRule." + (depth1 + 1) + ".NicType" , securityGroupRules.get(depth1).getNicType()); - putQueryParameter("SecurityGroupRule." + (depth1 + 1) + ".Policy" , securityGroupRules.get(depth1).getPolicy()); - putQueryParameter("SecurityGroupRule." + (depth1 + 1) + ".PortRange" , securityGroupRules.get(depth1).getPortRange()); - putQueryParameter("SecurityGroupRule." + (depth1 + 1) + ".IpProtocol" , securityGroupRules.get(depth1).getIpProtocol()); - putQueryParameter("SecurityGroupRule." + (depth1 + 1) + ".Priority" , securityGroupRules.get(depth1).getPriority()); - } - } - } - - public String getExpiredTime() { - return this.expiredTime; - } - - public void setExpiredTime(String expiredTime) { - this.expiredTime = expiredTime; - if(expiredTime != null){ - putQueryParameter("ExpiredTime", expiredTime); - } - } - - public String getHttpTokens() { - return this.httpTokens; - } - - public void setHttpTokens(String httpTokens) { - this.httpTokens = httpTokens; - if(httpTokens != null){ - putQueryParameter("HttpTokens", httpTokens); - } - } - - public String getSystemDiskDescription() { - return this.systemDiskDescription; - } - - public void setSystemDiskDescription(String systemDiskDescription) { - this.systemDiskDescription = systemDiskDescription; - if(systemDiskDescription != null){ - putQueryParameter("SystemDisk.Description", systemDiskDescription); - } - } - - public static class SystemDisk { - - private String storageClusterId; - - private Long provisionedIops; - - private Boolean burstingEnabled; - - private Boolean encrypted; - - private String kMSKeyId; - - private String encryptAlgorithm; - - public String getStorageClusterId() { - return this.storageClusterId; - } - - public void setStorageClusterId(String storageClusterId) { - this.storageClusterId = storageClusterId; - } - - public Long getProvisionedIops() { - return this.provisionedIops; - } - - public void setProvisionedIops(Long provisionedIops) { - this.provisionedIops = provisionedIops; - } - - public Boolean getBurstingEnabled() { - return this.burstingEnabled; - } - - public void setBurstingEnabled(Boolean burstingEnabled) { - this.burstingEnabled = burstingEnabled; - } - - public Boolean getEncrypted() { - return this.encrypted; - } - - public void setEncrypted(Boolean encrypted) { - this.encrypted = encrypted; - } - - public String getKMSKeyId() { - return this.kMSKeyId; - } - - public void setKMSKeyId(String kMSKeyId) { - this.kMSKeyId = kMSKeyId; - } - - public String getEncryptAlgorithm() { - return this.encryptAlgorithm; - } - - public void setEncryptAlgorithm(String encryptAlgorithm) { - this.encryptAlgorithm = encryptAlgorithm; - } - } - - public static class ImageOptions { - - private String loginAsNonRoot; - - public String getLoginAsNonRoot() { - return this.loginAsNonRoot; - } - - public void setLoginAsNonRoot(String loginAsNonRoot) { - this.loginAsNonRoot = loginAsNonRoot; - } - } - - public static class Arn { - - private String roleType; - - private String rolearn; - - private Long assumeRoleFor; - - public String getRoleType() { - return this.roleType; - } - - public void setRoleType(String roleType) { - this.roleType = roleType; - } - - public String getRolearn() { - return this.rolearn; - } - - public void setRolearn(String rolearn) { - this.rolearn = rolearn; - } - - public Long getAssumeRoleFor() { - return this.assumeRoleFor; - } - - public void setAssumeRoleFor(Long assumeRoleFor) { - this.assumeRoleFor = assumeRoleFor; - } - } - - public static class NetworkOptions { - - private Boolean enableJumboFrame; - - public Boolean getEnableJumboFrame() { - return this.enableJumboFrame; - } - - public void setEnableJumboFrame(Boolean enableJumboFrame) { - this.enableJumboFrame = enableJumboFrame; - } - } - - public static class Instance { - - private String privateIpAddress; - - public String getPrivateIpAddress() { - return this.privateIpAddress; - } - - public void setPrivateIpAddress(String privateIpAddress) { - this.privateIpAddress = privateIpAddress; - } - } - - public static class Tag { - - private String key; - - private String value; - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } - } - - public static class NetworkInterface { - - private String vSwitchId; - - private String networkInterfaceName; - - private String description; - - private String securityGroupId; - - private String primaryIpAddress; - - private List securityGroupIdss; - - private String instanceType; - - private String networkInterfaceTrafficMode; - - private Long queuePairNumber; - - private Integer ipv6AddressCount; - - private List ipv6Addresss; - - private Integer networkCardIndex; - - private Integer queueNumber; - - public String getVSwitchId() { - return this.vSwitchId; - } - - public void setVSwitchId(String vSwitchId) { - this.vSwitchId = vSwitchId; - } - - public String getNetworkInterfaceName() { - return this.networkInterfaceName; - } - - public void setNetworkInterfaceName(String networkInterfaceName) { - this.networkInterfaceName = networkInterfaceName; - } - - public String getDescription() { - return this.description; - } - - public void setDescription(String description) { - this.description = description; - } - - public String getSecurityGroupId() { - return this.securityGroupId; - } - - public void setSecurityGroupId(String securityGroupId) { - this.securityGroupId = securityGroupId; - } - - public String getPrimaryIpAddress() { - return this.primaryIpAddress; - } - - public void setPrimaryIpAddress(String primaryIpAddress) { - this.primaryIpAddress = primaryIpAddress; - } - - public List getSecurityGroupIdss() { - return this.securityGroupIdss; - } - - public void setSecurityGroupIdss(List securityGroupIdss) { - this.securityGroupIdss = securityGroupIdss; - } - - public String getInstanceType() { - return this.instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - } - - public String getNetworkInterfaceTrafficMode() { - return this.networkInterfaceTrafficMode; - } - - public void setNetworkInterfaceTrafficMode(String networkInterfaceTrafficMode) { - this.networkInterfaceTrafficMode = networkInterfaceTrafficMode; - } - - public Long getQueuePairNumber() { - return this.queuePairNumber; - } - - public void setQueuePairNumber(Long queuePairNumber) { - this.queuePairNumber = queuePairNumber; - } - - public Integer getIpv6AddressCount() { - return this.ipv6AddressCount; - } - - public void setIpv6AddressCount(Integer ipv6AddressCount) { - this.ipv6AddressCount = ipv6AddressCount; - } - - public List getIpv6Addresss() { - return this.ipv6Addresss; - } - - public void setIpv6Addresss(List ipv6Addresss) { - this.ipv6Addresss = ipv6Addresss; - } - - public Integer getNetworkCardIndex() { - return this.networkCardIndex; - } - - public void setNetworkCardIndex(Integer networkCardIndex) { - this.networkCardIndex = networkCardIndex; - } - - public Integer getQueueNumber() { - return this.queueNumber; - } - - public void setQueueNumber(Integer queueNumber) { - this.queueNumber = queueNumber; - } - } - - public static class DataDisk { - - private String performanceLevel; - - private String autoSnapshotPolicyId; - - private String encrypted; - - private String description; - - private String snapshotId; - - private String device; - - private Integer size; - - private String diskName; - - private String category; - - private String encryptAlgorithm; - - private Boolean deleteWithInstance; - - private String kMSKeyId; - - private String storageClusterId; - - private Long provisionedIops; - - private Boolean burstingEnable; - - public String getPerformanceLevel() { - return this.performanceLevel; - } - - public void setPerformanceLevel(String performanceLevel) { - this.performanceLevel = performanceLevel; - } - - public String getAutoSnapshotPolicyId() { - return this.autoSnapshotPolicyId; - } - - public void setAutoSnapshotPolicyId(String autoSnapshotPolicyId) { - this.autoSnapshotPolicyId = autoSnapshotPolicyId; - } - - public String getEncrypted() { - return this.encrypted; - } - - public void setEncrypted(String encrypted) { - this.encrypted = encrypted; - } - - public String getDescription() { - return this.description; - } - - public void setDescription(String description) { - this.description = description; - } - - public String getSnapshotId() { - return this.snapshotId; - } - - public void setSnapshotId(String snapshotId) { - this.snapshotId = snapshotId; - } - - public String getDevice() { - return this.device; - } - - public void setDevice(String device) { - this.device = device; - } - - public Integer getSize() { - return this.size; - } - - public void setSize(Integer size) { - this.size = size; - } - - public String getDiskName() { - return this.diskName; - } - - public void setDiskName(String diskName) { - this.diskName = diskName; - } - - public String getCategory() { - return this.category; - } - - public void setCategory(String category) { - this.category = category; - } - - public String getEncryptAlgorithm() { - return this.encryptAlgorithm; - } - - public void setEncryptAlgorithm(String encryptAlgorithm) { - this.encryptAlgorithm = encryptAlgorithm; - } - - public Boolean getDeleteWithInstance() { - return this.deleteWithInstance; - } - - public void setDeleteWithInstance(Boolean deleteWithInstance) { - this.deleteWithInstance = deleteWithInstance; - } - - public String getKMSKeyId() { - return this.kMSKeyId; - } - - public void setKMSKeyId(String kMSKeyId) { - this.kMSKeyId = kMSKeyId; - } - - public String getStorageClusterId() { - return this.storageClusterId; - } - - public void setStorageClusterId(String storageClusterId) { - this.storageClusterId = storageClusterId; - } - - public Long getProvisionedIops() { - return this.provisionedIops; - } - - public void setProvisionedIops(Long provisionedIops) { - this.provisionedIops = provisionedIops; - } - - public Boolean getBurstingEnable() { - return this.burstingEnable; - } - - public void setBurstingEnable(Boolean burstingEnable) { - this.burstingEnable = burstingEnable; - } - } - - public static class SecurityGroupRule { - - private String nicType; - - private String policy; - - private String portRange; - - private String ipProtocol; - - private String priority; - - public String getNicType() { - return this.nicType; - } - - public void setNicType(String nicType) { - this.nicType = nicType; - } - - public String getPolicy() { - return this.policy; - } - - public void setPolicy(String policy) { - this.policy = policy; - } - - public String getPortRange() { - return this.portRange; - } - - public void setPortRange(String portRange) { - this.portRange = portRange; - } - - public String getIpProtocol() { - return this.ipProtocol; - } - - public void setIpProtocol(String ipProtocol) { - this.ipProtocol = ipProtocol; - } - - public String getPriority() { - return this.priority; - } - - public void setPriority(String priority) { - this.priority = priority; - } - } - - @Override - public Class getResponseClass() { - return CreateWaitingOrderResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateWaitingOrderResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateWaitingOrderResponse.java deleted file mode 100644 index 52ee22e5c8..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/CreateWaitingOrderResponse.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.CreateWaitingOrderResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class CreateWaitingOrderResponse extends AcsResponse { - - private String requestId; - - private String dryRunResult; - - private Integer waitTimeValue; - - private String waitTimeCycle; - - private String waitingOrderId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public String getDryRunResult() { - return this.dryRunResult; - } - - public void setDryRunResult(String dryRunResult) { - this.dryRunResult = dryRunResult; - } - - public Integer getWaitTimeValue() { - return this.waitTimeValue; - } - - public void setWaitTimeValue(Integer waitTimeValue) { - this.waitTimeValue = waitTimeValue; - } - - public String getWaitTimeCycle() { - return this.waitTimeCycle; - } - - public void setWaitTimeCycle(String waitTimeCycle) { - this.waitTimeCycle = waitTimeCycle; - } - - public String getWaitingOrderId() { - return this.waitingOrderId; - } - - public void setWaitingOrderId(String waitingOrderId) { - this.waitingOrderId = waitingOrderId; - } - - @Override - public CreateWaitingOrderResponse getInstance(UnmarshallerContext context) { - return CreateWaitingOrderResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteEniQosGroupRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteEniQosGroupRequest.java deleted file mode 100644 index 41c310ee12..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteEniQosGroupRequest.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DeleteEniQosGroupRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String resourceOwnerAccount; - - private Long ownerId; - - private String qosGroupName; - public DeleteEniQosGroupRequest() { - super("Ecs", "2016-03-14", "DeleteEniQosGroup", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getQosGroupName() { - return this.qosGroupName; - } - - public void setQosGroupName(String qosGroupName) { - this.qosGroupName = qosGroupName; - if(qosGroupName != null){ - putQueryParameter("QosGroupName", qosGroupName); - } - } - - @Override - public Class getResponseClass() { - return DeleteEniQosGroupResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteEniQosGroupResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteEniQosGroupResponse.java deleted file mode 100644 index 1924e61d3f..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteEniQosGroupResponse.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DeleteEniQosGroupResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DeleteEniQosGroupResponse extends AcsResponse { - - private String requestId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public DeleteEniQosGroupResponse getInstance(UnmarshallerContext context) { - return DeleteEniQosGroupResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteImageCacheRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteImageCacheRequest.java deleted file mode 100644 index 210e1868f7..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteImageCacheRequest.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DeleteImageCacheRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String imageId; - - private String clientToken; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String zoneId; - public DeleteImageCacheRequest() { - super("Ecs", "2016-03-14", "DeleteImageCache", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getImageId() { - return this.imageId; - } - - public void setImageId(String imageId) { - this.imageId = imageId; - if(imageId != null){ - putQueryParameter("ImageId", imageId); - } - } - - public String getClientToken() { - return this.clientToken; - } - - public void setClientToken(String clientToken) { - this.clientToken = clientToken; - if(clientToken != null){ - putQueryParameter("ClientToken", clientToken); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - if(zoneId != null){ - putQueryParameter("ZoneId", zoneId); - } - } - - @Override - public Class getResponseClass() { - return DeleteImageCacheResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteImageCacheResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteImageCacheResponse.java deleted file mode 100644 index 0363439670..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteImageCacheResponse.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DeleteImageCacheResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DeleteImageCacheResponse extends AcsResponse { - - private String requestId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public DeleteImageCacheResponse getInstance(UnmarshallerContext context) { - return DeleteImageCacheResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteMigratableInstancesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteMigratableInstancesRequest.java deleted file mode 100644 index 3374ab695c..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteMigratableInstancesRequest.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DeleteMigratableInstancesRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String resourceOwnerAccount; - - private Long ownerId; - - private List instanceIds; - public DeleteMigratableInstancesRequest() { - super("Ecs", "2016-03-14", "DeleteMigratableInstances", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public List getInstanceIds() { - return this.instanceIds; - } - - public void setInstanceIds(List instanceIds) { - this.instanceIds = instanceIds; - if (instanceIds != null) { - for (int i = 0; i < instanceIds.size(); i++) { - putQueryParameter("InstanceId." + (i + 1) , instanceIds.get(i)); - } - } - } - - @Override - public Class getResponseClass() { - return DeleteMigratableInstancesResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteMigratableInstancesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteMigratableInstancesResponse.java deleted file mode 100644 index 2069cfd296..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteMigratableInstancesResponse.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DeleteMigratableInstancesResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DeleteMigratableInstancesResponse extends AcsResponse { - - private String requestId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public DeleteMigratableInstancesResponse getInstance(UnmarshallerContext context) { - return DeleteMigratableInstancesResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteNetworkInsightsAnalysisRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteNetworkInsightsAnalysisRequest.java deleted file mode 100644 index 178cf9225c..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteNetworkInsightsAnalysisRequest.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DeleteNetworkInsightsAnalysisRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private Boolean dryRun; - - private List networkInsightsAnalysisIds; - public DeleteNetworkInsightsAnalysisRequest() { - super("Ecs", "2016-03-14", "DeleteNetworkInsightsAnalysis", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Boolean getDryRun() { - return this.dryRun; - } - - public void setDryRun(Boolean dryRun) { - this.dryRun = dryRun; - if(dryRun != null){ - putQueryParameter("DryRun", dryRun.toString()); - } - } - - public List getNetworkInsightsAnalysisIds() { - return this.networkInsightsAnalysisIds; - } - - public void setNetworkInsightsAnalysisIds(List networkInsightsAnalysisIds) { - this.networkInsightsAnalysisIds = networkInsightsAnalysisIds; - if (networkInsightsAnalysisIds != null) { - for (int i = 0; i < networkInsightsAnalysisIds.size(); i++) { - putQueryParameter("NetworkInsightsAnalysisId." + (i + 1) , networkInsightsAnalysisIds.get(i)); - } - } - } - - @Override - public Class getResponseClass() { - return DeleteNetworkInsightsAnalysisResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteNetworkInsightsAnalysisResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteNetworkInsightsAnalysisResponse.java deleted file mode 100644 index d6c5afe2a6..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteNetworkInsightsAnalysisResponse.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DeleteNetworkInsightsAnalysisResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DeleteNetworkInsightsAnalysisResponse extends AcsResponse { - - private String requestId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public DeleteNetworkInsightsAnalysisResponse getInstance(UnmarshallerContext context) { - return DeleteNetworkInsightsAnalysisResponseUnmarshaller.unmarshall(this, context); - } - - @Override - public boolean checkShowJsonItemName() { - return false; - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteNetworkInsightsPathRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteNetworkInsightsPathRequest.java deleted file mode 100644 index 37cbd8c044..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteNetworkInsightsPathRequest.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DeleteNetworkInsightsPathRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private Boolean dryRun; - - private List networkInsightsPathIds; - public DeleteNetworkInsightsPathRequest() { - super("Ecs", "2016-03-14", "DeleteNetworkInsightsPath", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Boolean getDryRun() { - return this.dryRun; - } - - public void setDryRun(Boolean dryRun) { - this.dryRun = dryRun; - if(dryRun != null){ - putQueryParameter("DryRun", dryRun.toString()); - } - } - - public List getNetworkInsightsPathIds() { - return this.networkInsightsPathIds; - } - - public void setNetworkInsightsPathIds(List networkInsightsPathIds) { - this.networkInsightsPathIds = networkInsightsPathIds; - if (networkInsightsPathIds != null) { - for (int i = 0; i < networkInsightsPathIds.size(); i++) { - putQueryParameter("NetworkInsightsPathId." + (i + 1) , networkInsightsPathIds.get(i)); - } - } - } - - @Override - public Class getResponseClass() { - return DeleteNetworkInsightsPathResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteNetworkInsightsPathResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteNetworkInsightsPathResponse.java deleted file mode 100644 index f85dc58970..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteNetworkInsightsPathResponse.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DeleteNetworkInsightsPathResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DeleteNetworkInsightsPathResponse extends AcsResponse { - - private String requestId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public DeleteNetworkInsightsPathResponse getInstance(UnmarshallerContext context) { - return DeleteNetworkInsightsPathResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteReservationDemandRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteReservationDemandRequest.java deleted file mode 100644 index 8fd7e2cff2..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteReservationDemandRequest.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DeleteReservationDemandRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String resourceGroupId; - - private String demandId; - - private List tags; - public DeleteReservationDemandRequest() { - super("Ecs", "2016-03-14", "DeleteReservationDemand", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getResourceGroupId() { - return this.resourceGroupId; - } - - public void setResourceGroupId(String resourceGroupId) { - this.resourceGroupId = resourceGroupId; - if(resourceGroupId != null){ - putQueryParameter("ResourceGroupId", resourceGroupId); - } - } - - public String getDemandId() { - return this.demandId; - } - - public void setDemandId(String demandId) { - this.demandId = demandId; - if(demandId != null){ - putQueryParameter("DemandId", demandId); - } - } - - public List getTags() { - return this.tags; - } - - public void setTags(List tags) { - this.tags = tags; - if (tags != null) { - for (int depth1 = 0; depth1 < tags.size(); depth1++) { - putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); - putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); - } - } - } - - public static class Tag { - - private String key; - - private String value; - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } - } - - @Override - public Class getResponseClass() { - return DeleteReservationDemandResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteReservationDemandResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteReservationDemandResponse.java deleted file mode 100644 index 78ca5cc228..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteReservationDemandResponse.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DeleteReservationDemandResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DeleteReservationDemandResponse extends AcsResponse { - - private String requestId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public DeleteReservationDemandResponse getInstance(UnmarshallerContext context) { - return DeleteReservationDemandResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteUserQuotaApplicationRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteUserQuotaApplicationRequest.java deleted file mode 100644 index d6db885a5b..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteUserQuotaApplicationRequest.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DeleteUserQuotaApplicationRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String clientToken; - - private String applicationId; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - public DeleteUserQuotaApplicationRequest() { - super("Ecs", "2016-03-14", "DeleteUserQuotaApplication", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getClientToken() { - return this.clientToken; - } - - public void setClientToken(String clientToken) { - this.clientToken = clientToken; - if(clientToken != null){ - putQueryParameter("ClientToken", clientToken); - } - } - - public String getApplicationId() { - return this.applicationId; - } - - public void setApplicationId(String applicationId) { - this.applicationId = applicationId; - if(applicationId != null){ - putQueryParameter("ApplicationId", applicationId); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - @Override - public Class getResponseClass() { - return DeleteUserQuotaApplicationResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteUserQuotaApplicationResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteUserQuotaApplicationResponse.java deleted file mode 100644 index f558f66f7b..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteUserQuotaApplicationResponse.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DeleteUserQuotaApplicationResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DeleteUserQuotaApplicationResponse extends AcsResponse { - - private String requestId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public DeleteUserQuotaApplicationResponse getInstance(UnmarshallerContext context) { - return DeleteUserQuotaApplicationResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteWaitingOrdersRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteWaitingOrdersRequest.java deleted file mode 100644 index 72a2a0a754..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteWaitingOrdersRequest.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DeleteWaitingOrdersRequest extends RpcAcsRequest { - - - private String clientToken; - - private String ownerAccount; - - private Long resourceGroupId; - - private List waitingOrderIds; - public DeleteWaitingOrdersRequest() { - super("Ecs", "2016-03-14", "DeleteWaitingOrders", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public String getClientToken() { - return this.clientToken; - } - - public void setClientToken(String clientToken) { - this.clientToken = clientToken; - if(clientToken != null){ - putQueryParameter("ClientToken", clientToken); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getResourceGroupId() { - return this.resourceGroupId; - } - - public void setResourceGroupId(Long resourceGroupId) { - this.resourceGroupId = resourceGroupId; - if(resourceGroupId != null){ - putQueryParameter("ResourceGroupId", resourceGroupId.toString()); - } - } - - public List getWaitingOrderIds() { - return this.waitingOrderIds; - } - - public void setWaitingOrderIds(List waitingOrderIds) { - this.waitingOrderIds = waitingOrderIds; - if (waitingOrderIds != null) { - for (int i = 0; i < waitingOrderIds.size(); i++) { - putQueryParameter("WaitingOrderId." + (i + 1) , waitingOrderIds.get(i)); - } - } - } - - @Override - public Class getResponseClass() { - return DeleteWaitingOrdersResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteWaitingOrdersResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteWaitingOrdersResponse.java deleted file mode 100644 index a838cf29ff..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DeleteWaitingOrdersResponse.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DeleteWaitingOrdersResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DeleteWaitingOrdersResponse extends AcsResponse { - - private String requestId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public DeleteWaitingOrdersResponse getInstance(UnmarshallerContext context) { - return DeleteWaitingOrdersResponseUnmarshaller.unmarshall(this, context); - } - - @Override - public boolean checkShowJsonItemName() { - return false; - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeAccountLimitsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeAccountLimitsRequest.java deleted file mode 100644 index aa350931ec..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeAccountLimitsRequest.java +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeAccountLimitsRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private List filters; - public DescribeAccountLimitsRequest() { - super("Ecs", "2016-03-14", "DescribeAccountLimits", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public List getFilters() { - return this.filters; - } - - public void setFilters(List filters) { - this.filters = filters; - if (filters != null) { - for (int depth1 = 0; depth1 < filters.size(); depth1++) { - if (filters.get(depth1).getValues() != null) { - for (int i = 0; i < filters.get(depth1).getValues().size(); i++) { - putQueryParameter("Filter." + (depth1 + 1) + ".Value." + (i + 1) , filters.get(depth1).getValues().get(i)); - } - } - putQueryParameter("Filter." + (depth1 + 1) + ".Key" , filters.get(depth1).getKey()); - } - } - } - - public static class Filter { - - private List values; - - private String key; - - public List getValues() { - return this.values; - } - - public void setValues(List values) { - this.values = values; - } - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - } - - @Override - public Class getResponseClass() { - return DescribeAccountLimitsResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeAccountLimitsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeAccountLimitsResponse.java deleted file mode 100644 index 40a3600072..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeAccountLimitsResponse.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeAccountLimitsResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeAccountLimitsResponse extends AcsResponse { - - private String requestId; - - private List accountLimitTypeSet; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public List getAccountLimitTypeSet() { - return this.accountLimitTypeSet; - } - - public void setAccountLimitTypeSet(List accountLimitTypeSet) { - this.accountLimitTypeSet = accountLimitTypeSet; - } - - public static class AccountLimit { - - private String limitName; - - private List limitValueSet; - - public String getLimitName() { - return this.limitName; - } - - public void setLimitName(String limitName) { - this.limitName = limitName; - } - - public List getLimitValueSet() { - return this.limitValueSet; - } - - public void setLimitValueSet(List limitValueSet) { - this.limitValueSet = limitValueSet; - } - } - - @Override - public DescribeAccountLimitsResponse getInstance(UnmarshallerContext context) { - return DescribeAccountLimitsResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeAccountQuotaAttributesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeAccountQuotaAttributesRequest.java deleted file mode 100644 index 3ba1aeb2f4..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeAccountQuotaAttributesRequest.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeAccountQuotaAttributesRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - public DescribeAccountQuotaAttributesRequest() { - super("Ecs", "2016-03-14", "DescribeAccountQuotaAttributes", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - @Override - public Class getResponseClass() { - return DescribeAccountQuotaAttributesResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeAccountQuotaAttributesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeAccountQuotaAttributesResponse.java deleted file mode 100644 index 6c0738c0f2..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeAccountQuotaAttributesResponse.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeAccountQuotaAttributesResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeAccountQuotaAttributesResponse extends AcsResponse { - - private String requestId; - - private QuotaAttributes quotaAttributes; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public QuotaAttributes getQuotaAttributes() { - return this.quotaAttributes; - } - - public void setQuotaAttributes(QuotaAttributes quotaAttributes) { - this.quotaAttributes = quotaAttributes; - } - - public static class QuotaAttributes { - - private Boolean ecsElasticQuotaEnable; - - public Boolean getEcsElasticQuotaEnable() { - return this.ecsElasticQuotaEnable; - } - - public void setEcsElasticQuotaEnable(Boolean ecsElasticQuotaEnable) { - this.ecsElasticQuotaEnable = ecsElasticQuotaEnable; - } - } - - @Override - public DescribeAccountQuotaAttributesResponse getInstance(UnmarshallerContext context) { - return DescribeAccountQuotaAttributesResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeAutoProvisioningGroupCapacitiesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeAutoProvisioningGroupCapacitiesRequest.java deleted file mode 100644 index 196feccc02..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeAutoProvisioningGroupCapacitiesRequest.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeAutoProvisioningGroupCapacitiesRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private List autoProvisioningGroupIds; - public DescribeAutoProvisioningGroupCapacitiesRequest() { - super("Ecs", "2016-03-14", "DescribeAutoProvisioningGroupCapacities", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public List getAutoProvisioningGroupIds() { - return this.autoProvisioningGroupIds; - } - - public void setAutoProvisioningGroupIds(List autoProvisioningGroupIds) { - this.autoProvisioningGroupIds = autoProvisioningGroupIds; - if (autoProvisioningGroupIds != null) { - for (int i = 0; i < autoProvisioningGroupIds.size(); i++) { - putQueryParameter("AutoProvisioningGroupId." + (i + 1) , autoProvisioningGroupIds.get(i)); - } - } - } - - @Override - public Class getResponseClass() { - return DescribeAutoProvisioningGroupCapacitiesResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeAutoProvisioningGroupCapacitiesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeAutoProvisioningGroupCapacitiesResponse.java deleted file mode 100644 index 677895c56d..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeAutoProvisioningGroupCapacitiesResponse.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeAutoProvisioningGroupCapacitiesResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeAutoProvisioningGroupCapacitiesResponse extends AcsResponse { - - private String code; - - private String message; - - private String requestId; - - private Boolean success; - - private List capacities; - - public String getCode() { - return this.code; - } - - public void setCode(String code) { - this.code = code; - } - - public String getMessage() { - return this.message; - } - - public void setMessage(String message) { - this.message = message; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public Boolean getSuccess() { - return this.success; - } - - public void setSuccess(Boolean success) { - this.success = success; - } - - public List getCapacities() { - return this.capacities; - } - - public void setCapacities(List capacities) { - this.capacities = capacities; - } - - public static class Capacity { - - private String spotCapacity; - - private String totalCapacity; - - private String autoProvisioningGroupId; - - private String payAsYouGoCapacity; - - public String getSpotCapacity() { - return this.spotCapacity; - } - - public void setSpotCapacity(String spotCapacity) { - this.spotCapacity = spotCapacity; - } - - public String getTotalCapacity() { - return this.totalCapacity; - } - - public void setTotalCapacity(String totalCapacity) { - this.totalCapacity = totalCapacity; - } - - public String getAutoProvisioningGroupId() { - return this.autoProvisioningGroupId; - } - - public void setAutoProvisioningGroupId(String autoProvisioningGroupId) { - this.autoProvisioningGroupId = autoProvisioningGroupId; - } - - public String getPayAsYouGoCapacity() { - return this.payAsYouGoCapacity; - } - - public void setPayAsYouGoCapacity(String payAsYouGoCapacity) { - this.payAsYouGoCapacity = payAsYouGoCapacity; - } - } - - @Override - public DescribeAutoProvisioningGroupCapacitiesResponse getInstance(UnmarshallerContext context) { - return DescribeAutoProvisioningGroupCapacitiesResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeBandwidthPriceRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeBandwidthPriceRequest.java deleted file mode 100644 index 50a9947423..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeBandwidthPriceRequest.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeBandwidthPriceRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String resourceGroupId; - - private String priceUnit; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private Boolean verbose; - public DescribeBandwidthPriceRequest() { - super("Ecs", "2016-03-14", "DescribeBandwidthPrice", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getResourceGroupId() { - return this.resourceGroupId; - } - - public void setResourceGroupId(String resourceGroupId) { - this.resourceGroupId = resourceGroupId; - if(resourceGroupId != null){ - putQueryParameter("ResourceGroupId", resourceGroupId); - } - } - - public String getPriceUnit() { - return this.priceUnit; - } - - public void setPriceUnit(String priceUnit) { - this.priceUnit = priceUnit; - if(priceUnit != null){ - putQueryParameter("PriceUnit", priceUnit); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public Boolean getVerbose() { - return this.verbose; - } - - public void setVerbose(Boolean verbose) { - this.verbose = verbose; - if(verbose != null){ - putQueryParameter("Verbose", verbose.toString()); - } - } - - @Override - public Class getResponseClass() { - return DescribeBandwidthPriceResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeBandwidthPriceResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeBandwidthPriceResponse.java deleted file mode 100644 index bc8c9ca145..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeBandwidthPriceResponse.java +++ /dev/null @@ -1,161 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeBandwidthPriceResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeBandwidthPriceResponse extends AcsResponse { - - private String requestId; - - private PriceInfo priceInfo; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public PriceInfo getPriceInfo() { - return this.priceInfo; - } - - public void setPriceInfo(PriceInfo priceInfo) { - this.priceInfo = priceInfo; - } - - public static class PriceInfo { - - private List rules; - - private Order order; - - public List getRules() { - return this.rules; - } - - public void setRules(List rules) { - this.rules = rules; - } - - public Order getOrder() { - return this.order; - } - - public void setOrder(Order order) { - this.order = order; - } - - public static class Rule { - - private String title; - - private String name; - - private Long ruleId; - - public String getTitle() { - return this.title; - } - - public void setTitle(String title) { - this.title = title; - } - - public String getName() { - return this.name; - } - - public void setName(String name) { - this.name = name; - } - - public Long getRuleId() { - return this.ruleId; - } - - public void setRuleId(Long ruleId) { - this.ruleId = ruleId; - } - } - - public static class Order { - - private Float originalPrice; - - private Float discountPrice; - - private String currency; - - private Float tradePrice; - - private List ruleIdSet; - - public Float getOriginalPrice() { - return this.originalPrice; - } - - public void setOriginalPrice(Float originalPrice) { - this.originalPrice = originalPrice; - } - - public Float getDiscountPrice() { - return this.discountPrice; - } - - public void setDiscountPrice(Float discountPrice) { - this.discountPrice = discountPrice; - } - - public String getCurrency() { - return this.currency; - } - - public void setCurrency(String currency) { - this.currency = currency; - } - - public Float getTradePrice() { - return this.tradePrice; - } - - public void setTradePrice(Float tradePrice) { - this.tradePrice = tradePrice; - } - - public List getRuleIdSet() { - return this.ruleIdSet; - } - - public void setRuleIdSet(List ruleIdSet) { - this.ruleIdSet = ruleIdSet; - } - } - } - - @Override - public DescribeBandwidthPriceResponse getInstance(UnmarshallerContext context) { - return DescribeBandwidthPriceResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeCapacityReservationsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeCapacityReservationsRequest.java deleted file mode 100644 index 310846fed1..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeCapacityReservationsRequest.java +++ /dev/null @@ -1,211 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeCapacityReservationsRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private Integer pageNumber; - - private Integer pageSize; - - private List tags; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String capacityReservationIds; - - private String capacityReservationName; - - private String zoneId; - - private String status; - public DescribeCapacityReservationsRequest() { - super("Ecs", "2016-03-14", "DescribeCapacityReservations", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - if(pageNumber != null){ - putQueryParameter("PageNumber", pageNumber.toString()); - } - } - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - if(pageSize != null){ - putQueryParameter("PageSize", pageSize.toString()); - } - } - - public List getTags() { - return this.tags; - } - - public void setTags(List tags) { - this.tags = tags; - if (tags != null) { - for (int depth1 = 0; depth1 < tags.size(); depth1++) { - putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); - putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); - } - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getCapacityReservationIds() { - return this.capacityReservationIds; - } - - public void setCapacityReservationIds(String capacityReservationIds) { - this.capacityReservationIds = capacityReservationIds; - if(capacityReservationIds != null){ - putQueryParameter("CapacityReservationIds", capacityReservationIds); - } - } - - public String getCapacityReservationName() { - return this.capacityReservationName; - } - - public void setCapacityReservationName(String capacityReservationName) { - this.capacityReservationName = capacityReservationName; - if(capacityReservationName != null){ - putQueryParameter("CapacityReservationName", capacityReservationName); - } - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - if(zoneId != null){ - putQueryParameter("ZoneId", zoneId); - } - } - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - if(status != null){ - putQueryParameter("Status", status); - } - } - - public static class Tag { - - private String key; - - private String value; - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } - } - - @Override - public Class getResponseClass() { - return DescribeCapacityReservationsResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeCapacityReservationsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeCapacityReservationsResponse.java deleted file mode 100644 index a797c96174..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeCapacityReservationsResponse.java +++ /dev/null @@ -1,225 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeCapacityReservationsResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeCapacityReservationsResponse extends AcsResponse { - - private Integer pageSize; - - private String requestId; - - private Integer pageNumber; - - private Integer totalCount; - - private List capacityReservations; - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - } - - public Integer getTotalCount() { - return this.totalCount; - } - - public void setTotalCount(Integer totalCount) { - this.totalCount = totalCount; - } - - public List getCapacityReservations() { - return this.capacityReservations; - } - - public void setCapacityReservations(List capacityReservations) { - this.capacityReservations = capacityReservations; - } - - public static class CapacityReservation { - - private String status; - - private Integer totalInstanceCount; - - private String timeSlot; - - private String capacityReservationName; - - private String endDateType; - - private String capacityReservationId; - - private String networkType; - - private String instanceType; - - private Integer availableInstanceCount; - - private String instancePlatform; - - private String regionId; - - private String description; - - private String instanceMatchCriteria; - - private String zoneId; - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - } - - public Integer getTotalInstanceCount() { - return this.totalInstanceCount; - } - - public void setTotalInstanceCount(Integer totalInstanceCount) { - this.totalInstanceCount = totalInstanceCount; - } - - public String getTimeSlot() { - return this.timeSlot; - } - - public void setTimeSlot(String timeSlot) { - this.timeSlot = timeSlot; - } - - public String getCapacityReservationName() { - return this.capacityReservationName; - } - - public void setCapacityReservationName(String capacityReservationName) { - this.capacityReservationName = capacityReservationName; - } - - public String getEndDateType() { - return this.endDateType; - } - - public void setEndDateType(String endDateType) { - this.endDateType = endDateType; - } - - public String getCapacityReservationId() { - return this.capacityReservationId; - } - - public void setCapacityReservationId(String capacityReservationId) { - this.capacityReservationId = capacityReservationId; - } - - public String getNetworkType() { - return this.networkType; - } - - public void setNetworkType(String networkType) { - this.networkType = networkType; - } - - public String getInstanceType() { - return this.instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - } - - public Integer getAvailableInstanceCount() { - return this.availableInstanceCount; - } - - public void setAvailableInstanceCount(Integer availableInstanceCount) { - this.availableInstanceCount = availableInstanceCount; - } - - public String getInstancePlatform() { - return this.instancePlatform; - } - - public void setInstancePlatform(String instancePlatform) { - this.instancePlatform = instancePlatform; - } - - public String getRegionId() { - return this.regionId; - } - - public void setRegionId(String regionId) { - this.regionId = regionId; - } - - public String getDescription() { - return this.description; - } - - public void setDescription(String description) { - this.description = description; - } - - public String getInstanceMatchCriteria() { - return this.instanceMatchCriteria; - } - - public void setInstanceMatchCriteria(String instanceMatchCriteria) { - this.instanceMatchCriteria = instanceMatchCriteria; - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - } - } - - @Override - public DescribeCapacityReservationsResponse getInstance(UnmarshallerContext context) { - return DescribeCapacityReservationsResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeCustomerIssueCategoryRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeCustomerIssueCategoryRequest.java deleted file mode 100644 index 8930b82383..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeCustomerIssueCategoryRequest.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeCustomerIssueCategoryRequest extends RpcAcsRequest { - - - private Long layer; - public DescribeCustomerIssueCategoryRequest() { - super("Ecs", "2016-03-14", "DescribeCustomerIssueCategory", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getLayer() { - return this.layer; - } - - public void setLayer(Long layer) { - this.layer = layer; - if(layer != null){ - putQueryParameter("Layer", layer.toString()); - } - } - - @Override - public Class getResponseClass() { - return DescribeCustomerIssueCategoryResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeCustomerIssueCategoryResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeCustomerIssueCategoryResponse.java deleted file mode 100644 index a2db61c615..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeCustomerIssueCategoryResponse.java +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeCustomerIssueCategoryResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeCustomerIssueCategoryResponse extends AcsResponse { - - private String requestId; - - private List issueCategoryModelList; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public List getIssueCategoryModelList() { - return this.issueCategoryModelList; - } - - public void setIssueCategoryModelList(List issueCategoryModelList) { - this.issueCategoryModelList = issueCategoryModelList; - } - - public static class IssueCategoryModelListItem { - - private Long issueCategoryId; - - private Long issueCategoryParentId; - - private String issueCategoryName; - - private String mappingTools; - - private Long layer; - - private String resourceType; - - private String metricSetId; - - public Long getIssueCategoryId() { - return this.issueCategoryId; - } - - public void setIssueCategoryId(Long issueCategoryId) { - this.issueCategoryId = issueCategoryId; - } - - public Long getIssueCategoryParentId() { - return this.issueCategoryParentId; - } - - public void setIssueCategoryParentId(Long issueCategoryParentId) { - this.issueCategoryParentId = issueCategoryParentId; - } - - public String getIssueCategoryName() { - return this.issueCategoryName; - } - - public void setIssueCategoryName(String issueCategoryName) { - this.issueCategoryName = issueCategoryName; - } - - public String getMappingTools() { - return this.mappingTools; - } - - public void setMappingTools(String mappingTools) { - this.mappingTools = mappingTools; - } - - public Long getLayer() { - return this.layer; - } - - public void setLayer(Long layer) { - this.layer = layer; - } - - public String getResourceType() { - return this.resourceType; - } - - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - } - - public String getMetricSetId() { - return this.metricSetId; - } - - public void setMetricSetId(String metricSetId) { - this.metricSetId = metricSetId; - } - } - - @Override - public DescribeCustomerIssueCategoryResponse getInstance(UnmarshallerContext context) { - return DescribeCustomerIssueCategoryResponseUnmarshaller.unmarshall(this, context); - } - - @Override - public boolean checkShowJsonItemName() { - return false; - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDedicatedHostAutoRenewResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDedicatedHostAutoRenewResponse.java deleted file mode 100644 index e8e28ab3ae..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDedicatedHostAutoRenewResponse.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeDedicatedHostAutoRenewResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeDedicatedHostAutoRenewResponse extends AcsResponse { - - private String requestId; - - private List instanceRenewAttributes; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public List getInstanceRenewAttributes() { - return this.instanceRenewAttributes; - } - - public void setInstanceRenewAttributes(List instanceRenewAttributes) { - this.instanceRenewAttributes = instanceRenewAttributes; - } - - public static class InstanceRenewAttribute { - - private String periodUnit; - - private Integer duration; - - private String renewalStatus; - - private String instanceId; - - private Boolean autoRenewEnabled; - - public String getPeriodUnit() { - return this.periodUnit; - } - - public void setPeriodUnit(String periodUnit) { - this.periodUnit = periodUnit; - } - - public Integer getDuration() { - return this.duration; - } - - public void setDuration(Integer duration) { - this.duration = duration; - } - - public String getRenewalStatus() { - return this.renewalStatus; - } - - public void setRenewalStatus(String renewalStatus) { - this.renewalStatus = renewalStatus; - } - - public String getInstanceId() { - return this.instanceId; - } - - public void setInstanceId(String instanceId) { - this.instanceId = instanceId; - } - - public Boolean getAutoRenewEnabled() { - return this.autoRenewEnabled; - } - - public void setAutoRenewEnabled(Boolean autoRenewEnabled) { - this.autoRenewEnabled = autoRenewEnabled; - } - } - - @Override - public DescribeDedicatedHostAutoRenewResponse getInstance(UnmarshallerContext context) { - return DescribeDedicatedHostAutoRenewResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDedicatedHostTypesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDedicatedHostTypesResponse.java deleted file mode 100644 index 047b8cb396..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDedicatedHostTypesResponse.java +++ /dev/null @@ -1,215 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeDedicatedHostTypesResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeDedicatedHostTypesResponse extends AcsResponse { - - private String requestId; - - private List dedicatedHostTypes; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public List getDedicatedHostTypes() { - return this.dedicatedHostTypes; - } - - public void setDedicatedHostTypes(List dedicatedHostTypes) { - this.dedicatedHostTypes = dedicatedHostTypes; - } - - public static class DedicatedHostType { - - private String localStorageCategory; - - private String gPUSpec; - - private Integer totalVcpus; - - private String cpuOverCommitRatioRange; - - private Integer physicalGpus; - - private Float memorySize; - - private Integer totalPhysicalCores; - - private Boolean supportCpuOverCommitRatio; - - private Long localStorageCapacity; - - private String dedicatedHostType; - - private Integer localStorageAmount; - - private Integer totalVgpus; - - private Integer totalSockets; - - private String generation; - - private List supportInstanceTypesList; - - private List supportInstanceTypeFamilies; - - public String getLocalStorageCategory() { - return this.localStorageCategory; - } - - public void setLocalStorageCategory(String localStorageCategory) { - this.localStorageCategory = localStorageCategory; - } - - public String getGPUSpec() { - return this.gPUSpec; - } - - public void setGPUSpec(String gPUSpec) { - this.gPUSpec = gPUSpec; - } - - public Integer getTotalVcpus() { - return this.totalVcpus; - } - - public void setTotalVcpus(Integer totalVcpus) { - this.totalVcpus = totalVcpus; - } - - public String getCpuOverCommitRatioRange() { - return this.cpuOverCommitRatioRange; - } - - public void setCpuOverCommitRatioRange(String cpuOverCommitRatioRange) { - this.cpuOverCommitRatioRange = cpuOverCommitRatioRange; - } - - public Integer getPhysicalGpus() { - return this.physicalGpus; - } - - public void setPhysicalGpus(Integer physicalGpus) { - this.physicalGpus = physicalGpus; - } - - public Float getMemorySize() { - return this.memorySize; - } - - public void setMemorySize(Float memorySize) { - this.memorySize = memorySize; - } - - public Integer getTotalPhysicalCores() { - return this.totalPhysicalCores; - } - - public void setTotalPhysicalCores(Integer totalPhysicalCores) { - this.totalPhysicalCores = totalPhysicalCores; - } - - public Boolean getSupportCpuOverCommitRatio() { - return this.supportCpuOverCommitRatio; - } - - public void setSupportCpuOverCommitRatio(Boolean supportCpuOverCommitRatio) { - this.supportCpuOverCommitRatio = supportCpuOverCommitRatio; - } - - public Long getLocalStorageCapacity() { - return this.localStorageCapacity; - } - - public void setLocalStorageCapacity(Long localStorageCapacity) { - this.localStorageCapacity = localStorageCapacity; - } - - public String getDedicatedHostType() { - return this.dedicatedHostType; - } - - public void setDedicatedHostType(String dedicatedHostType) { - this.dedicatedHostType = dedicatedHostType; - } - - public Integer getLocalStorageAmount() { - return this.localStorageAmount; - } - - public void setLocalStorageAmount(Integer localStorageAmount) { - this.localStorageAmount = localStorageAmount; - } - - public Integer getTotalVgpus() { - return this.totalVgpus; - } - - public void setTotalVgpus(Integer totalVgpus) { - this.totalVgpus = totalVgpus; - } - - public Integer getTotalSockets() { - return this.totalSockets; - } - - public void setTotalSockets(Integer totalSockets) { - this.totalSockets = totalSockets; - } - - public String getGeneration() { - return this.generation; - } - - public void setGeneration(String generation) { - this.generation = generation; - } - - public List getSupportInstanceTypesList() { - return this.supportInstanceTypesList; - } - - public void setSupportInstanceTypesList(List supportInstanceTypesList) { - this.supportInstanceTypesList = supportInstanceTypesList; - } - - public List getSupportInstanceTypeFamilies() { - return this.supportInstanceTypeFamilies; - } - - public void setSupportInstanceTypeFamilies(List supportInstanceTypeFamilies) { - this.supportInstanceTypeFamilies = supportInstanceTypeFamilies; - } - } - - @Override - public DescribeDedicatedHostTypesResponse getInstance(UnmarshallerContext context) { - return DescribeDedicatedHostTypesResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDiagnoseRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDiagnoseRequest.java deleted file mode 100644 index 9b39c5b174..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDiagnoseRequest.java +++ /dev/null @@ -1,211 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeDiagnoseRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private Integer type; - - private Integer pageNumber; - - private Integer pageSize; - - private List tags; - - private String resourceOwnerAccount; - - private String diagnoseId; - - private String ownerAccount; - - private Long ownerId; - - private String diagnoseAction; - - private Integer status; - public DescribeDiagnoseRequest() { - super("Ecs", "2016-03-14", "DescribeDiagnose", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Integer getType() { - return this.type; - } - - public void setType(Integer type) { - this.type = type; - if(type != null){ - putQueryParameter("Type", type.toString()); - } - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - if(pageNumber != null){ - putQueryParameter("PageNumber", pageNumber.toString()); - } - } - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - if(pageSize != null){ - putQueryParameter("PageSize", pageSize.toString()); - } - } - - public List getTags() { - return this.tags; - } - - public void setTags(List tags) { - this.tags = tags; - if (tags != null) { - for (int depth1 = 0; depth1 < tags.size(); depth1++) { - putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); - putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); - } - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getDiagnoseId() { - return this.diagnoseId; - } - - public void setDiagnoseId(String diagnoseId) { - this.diagnoseId = diagnoseId; - if(diagnoseId != null){ - putQueryParameter("DiagnoseId", diagnoseId); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getDiagnoseAction() { - return this.diagnoseAction; - } - - public void setDiagnoseAction(String diagnoseAction) { - this.diagnoseAction = diagnoseAction; - if(diagnoseAction != null){ - putQueryParameter("DiagnoseAction", diagnoseAction); - } - } - - public Integer getStatus() { - return this.status; - } - - public void setStatus(Integer status) { - this.status = status; - if(status != null){ - putQueryParameter("Status", status.toString()); - } - } - - public static class Tag { - - private String key; - - private String value; - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } - } - - @Override - public Class getResponseClass() { - return DescribeDiagnoseResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDiagnoseResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDiagnoseResponse.java deleted file mode 100644 index 65c86b7c40..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDiagnoseResponse.java +++ /dev/null @@ -1,295 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeDiagnoseResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeDiagnoseResponse extends AcsResponse { - - private Integer pageSize; - - private String requestId; - - private Integer pageNumber; - - private Integer totalCount; - - private List diagnoseInstances; - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - } - - public Integer getTotalCount() { - return this.totalCount; - } - - public void setTotalCount(Integer totalCount) { - this.totalCount = totalCount; - } - - public List getDiagnoseInstances() { - return this.diagnoseInstances; - } - - public void setDiagnoseInstances(List diagnoseInstances) { - this.diagnoseInstances = diagnoseInstances; - } - - public static class DiagnoseInstance { - - private String status; - - private String creationTime; - - private String expireTime; - - private String diagnoseId; - - private String product; - - private Integer star; - - private String instanceTypeName; - - private String networkType; - - private String modificationTime; - - private Integer period; - - private String instanceChargeType; - - private String regionId; - - private Integer amount; - - private String diskCategory; - - private String errorCode; - - private String periodUnit; - - private String mark; - - private String diagnoseRequestId; - - private String izNo; - - private String solutions; - - private String diagnoseAction; - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - } - - public String getCreationTime() { - return this.creationTime; - } - - public void setCreationTime(String creationTime) { - this.creationTime = creationTime; - } - - public String getExpireTime() { - return this.expireTime; - } - - public void setExpireTime(String expireTime) { - this.expireTime = expireTime; - } - - public String getDiagnoseId() { - return this.diagnoseId; - } - - public void setDiagnoseId(String diagnoseId) { - this.diagnoseId = diagnoseId; - } - - public String getProduct() { - return this.product; - } - - public void setProduct(String product) { - this.product = product; - } - - public Integer getStar() { - return this.star; - } - - public void setStar(Integer star) { - this.star = star; - } - - public String getInstanceTypeName() { - return this.instanceTypeName; - } - - public void setInstanceTypeName(String instanceTypeName) { - this.instanceTypeName = instanceTypeName; - } - - public String getNetworkType() { - return this.networkType; - } - - public void setNetworkType(String networkType) { - this.networkType = networkType; - } - - public String getModificationTime() { - return this.modificationTime; - } - - public void setModificationTime(String modificationTime) { - this.modificationTime = modificationTime; - } - - public Integer getPeriod() { - return this.period; - } - - public void setPeriod(Integer period) { - this.period = period; - } - - public String getInstanceChargeType() { - return this.instanceChargeType; - } - - public void setInstanceChargeType(String instanceChargeType) { - this.instanceChargeType = instanceChargeType; - } - - public String getRegionId() { - return this.regionId; - } - - public void setRegionId(String regionId) { - this.regionId = regionId; - } - - public Integer getAmount() { - return this.amount; - } - - public void setAmount(Integer amount) { - this.amount = amount; - } - - public String getDiskCategory() { - return this.diskCategory; - } - - public void setDiskCategory(String diskCategory) { - this.diskCategory = diskCategory; - } - - public String getErrorCode() { - return this.errorCode; - } - - public void setErrorCode(String errorCode) { - this.errorCode = errorCode; - } - - public String getPeriodUnit() { - return this.periodUnit; - } - - public void setPeriodUnit(String periodUnit) { - this.periodUnit = periodUnit; - } - - public String getMark() { - return this.mark; - } - - public void setMark(String mark) { - this.mark = mark; - } - - public String getDiagnoseRequestId() { - return this.diagnoseRequestId; - } - - public void setDiagnoseRequestId(String diagnoseRequestId) { - this.diagnoseRequestId = diagnoseRequestId; - } - - public String getIzNo() { - return this.izNo; - } - - public void setIzNo(String izNo) { - this.izNo = izNo; - } - - public String getSolutions() { - return this.solutions; - } - - public void setSolutions(String solutions) { - this.solutions = solutions; - } - - public String getDiagnoseAction() { - return this.diagnoseAction; - } - - public void setDiagnoseAction(String diagnoseAction) { - this.diagnoseAction = diagnoseAction; - } - } - - @Override - public DescribeDiagnoseResponse getInstance(UnmarshallerContext context) { - return DescribeDiagnoseResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDiagnosisOperateRecordsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDiagnosisOperateRecordsRequest.java deleted file mode 100644 index af9d1408af..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDiagnosisOperateRecordsRequest.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeDiagnosisOperateRecordsRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String operateRecordType; - - private Integer pageNumber; - - private Integer pageSize; - - private String instanceType; - - private String errorCode; - - private String resourceOwnerAccount; - - private Long ownerId; - - private String zoneId; - - private String payType; - public DescribeDiagnosisOperateRecordsRequest() { - super("Ecs", "2016-03-14", "DescribeDiagnosisOperateRecords", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getOperateRecordType() { - return this.operateRecordType; - } - - public void setOperateRecordType(String operateRecordType) { - this.operateRecordType = operateRecordType; - if(operateRecordType != null){ - putQueryParameter("OperateRecordType", operateRecordType); - } - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - if(pageNumber != null){ - putQueryParameter("PageNumber", pageNumber.toString()); - } - } - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - if(pageSize != null){ - putQueryParameter("PageSize", pageSize.toString()); - } - } - - public String getInstanceType() { - return this.instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - if(instanceType != null){ - putQueryParameter("InstanceType", instanceType); - } - } - - public String getErrorCode() { - return this.errorCode; - } - - public void setErrorCode(String errorCode) { - this.errorCode = errorCode; - if(errorCode != null){ - putQueryParameter("ErrorCode", errorCode); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - if(zoneId != null){ - putQueryParameter("ZoneId", zoneId); - } - } - - public String getPayType() { - return this.payType; - } - - public void setPayType(String payType) { - this.payType = payType; - if(payType != null){ - putQueryParameter("PayType", payType); - } - } - - @Override - public Class getResponseClass() { - return DescribeDiagnosisOperateRecordsResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDiagnosisOperateRecordsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDiagnosisOperateRecordsResponse.java deleted file mode 100644 index 6ce853925f..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDiagnosisOperateRecordsResponse.java +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeDiagnosisOperateRecordsResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeDiagnosisOperateRecordsResponse extends AcsResponse { - - private String requestId; - - private Integer pageSize; - - private Integer pageNumber; - - private Integer totalCount; - - private List diagnosisOperateRecordModels; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - } - - public Integer getTotalCount() { - return this.totalCount; - } - - public void setTotalCount(Integer totalCount) { - this.totalCount = totalCount; - } - - public List getDiagnosisOperateRecordModels() { - return this.diagnosisOperateRecordModels; - } - - public void setDiagnosisOperateRecordModels(List diagnosisOperateRecordModels) { - this.diagnosisOperateRecordModels = diagnosisOperateRecordModels; - } - - public static class DiagnosisOperateRecordModel { - - private String zoneId; - - private String instanceType; - - private String operateRecordType; - - private String newZoneId; - - private String newInstanceType; - - private String operateDate; - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - } - - public String getInstanceType() { - return this.instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - } - - public String getOperateRecordType() { - return this.operateRecordType; - } - - public void setOperateRecordType(String operateRecordType) { - this.operateRecordType = operateRecordType; - } - - public String getNewZoneId() { - return this.newZoneId; - } - - public void setNewZoneId(String newZoneId) { - this.newZoneId = newZoneId; - } - - public String getNewInstanceType() { - return this.newInstanceType; - } - - public void setNewInstanceType(String newInstanceType) { - this.newInstanceType = newInstanceType; - } - - public String getOperateDate() { - return this.operateDate; - } - - public void setOperateDate(String operateDate) { - this.operateDate = operateDate; - } - } - - @Override - public DescribeDiagnosisOperateRecordsResponse getInstance(UnmarshallerContext context) { - return DescribeDiagnosisOperateRecordsResponseUnmarshaller.unmarshall(this, context); - } - - @Override - public boolean checkShowJsonItemName() { - return false; - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDiagnosticReportsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDiagnosticReportsRequest.java deleted file mode 100644 index dee8f2201c..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDiagnosticReportsRequest.java +++ /dev/null @@ -1,189 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeDiagnosticReportsRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private List reportIds; - - private String sourceSystem; - - private String nextToken; - - private String severity; - - private List resourceIds; - - private String resourceOwnerAccount; - - private Long ownerId; - - private String resourceType; - - private Integer maxResults; - - private String status; - public DescribeDiagnosticReportsRequest() { - super("Ecs", "2016-03-14", "DescribeDiagnosticReports", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public List getReportIds() { - return this.reportIds; - } - - public void setReportIds(List reportIds) { - this.reportIds = reportIds; - if (reportIds != null) { - for (int i = 0; i < reportIds.size(); i++) { - putQueryParameter("ReportId." + (i + 1) , reportIds.get(i)); - } - } - } - - public String getSourceSystem() { - return this.sourceSystem; - } - - public void setSourceSystem(String sourceSystem) { - this.sourceSystem = sourceSystem; - if(sourceSystem != null){ - putQueryParameter("SourceSystem", sourceSystem); - } - } - - public String getNextToken() { - return this.nextToken; - } - - public void setNextToken(String nextToken) { - this.nextToken = nextToken; - if(nextToken != null){ - putQueryParameter("NextToken", nextToken); - } - } - - public String getSeverity() { - return this.severity; - } - - public void setSeverity(String severity) { - this.severity = severity; - if(severity != null){ - putQueryParameter("Severity", severity); - } - } - - public List getResourceIds() { - return this.resourceIds; - } - - public void setResourceIds(List resourceIds) { - this.resourceIds = resourceIds; - if (resourceIds != null) { - for (int i = 0; i < resourceIds.size(); i++) { - putQueryParameter("ResourceId." + (i + 1) , resourceIds.get(i)); - } - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getResourceType() { - return this.resourceType; - } - - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - if(resourceType != null){ - putQueryParameter("ResourceType", resourceType); - } - } - - public Integer getMaxResults() { - return this.maxResults; - } - - public void setMaxResults(Integer maxResults) { - this.maxResults = maxResults; - if(maxResults != null){ - putQueryParameter("MaxResults", maxResults.toString()); - } - } - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - if(status != null){ - putQueryParameter("Status", status); - } - } - - @Override - public Class getResponseClass() { - return DescribeDiagnosticReportsResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDiagnosticReportsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDiagnosticReportsResponse.java deleted file mode 100644 index f229e6291e..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDiagnosticReportsResponse.java +++ /dev/null @@ -1,483 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeDiagnosticReportsResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeDiagnosticReportsResponse extends AcsResponse { - - private String nextToken; - - private String requestId; - - private Integer maxResults; - - private List reports; - - public String getNextToken() { - return this.nextToken; - } - - public void setNextToken(String nextToken) { - this.nextToken = nextToken; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public Integer getMaxResults() { - return this.maxResults; - } - - public void setMaxResults(Integer maxResults) { - this.maxResults = maxResults; - } - - public List getReports() { - return this.reports; - } - - public void setReports(List reports) { - this.reports = reports; - } - - public static class Report { - - private String status; - - private String severity; - - private String endTime; - - private String creationTime; - - private String startTime; - - private String resourceType; - - private String finishedTime; - - private String reportId; - - private String pePassword; - - private String resourceId; - - private String invokeSystem; - - private String offlineDiagReportStatus; - - private String diagnosticCategory; - - private String issueCategoryId; - - private List issues; - - private List items; - - private List recentEvents; - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - } - - public String getSeverity() { - return this.severity; - } - - public void setSeverity(String severity) { - this.severity = severity; - } - - public String getEndTime() { - return this.endTime; - } - - public void setEndTime(String endTime) { - this.endTime = endTime; - } - - public String getCreationTime() { - return this.creationTime; - } - - public void setCreationTime(String creationTime) { - this.creationTime = creationTime; - } - - public String getStartTime() { - return this.startTime; - } - - public void setStartTime(String startTime) { - this.startTime = startTime; - } - - public String getResourceType() { - return this.resourceType; - } - - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - } - - public String getFinishedTime() { - return this.finishedTime; - } - - public void setFinishedTime(String finishedTime) { - this.finishedTime = finishedTime; - } - - public String getReportId() { - return this.reportId; - } - - public void setReportId(String reportId) { - this.reportId = reportId; - } - - public String getPePassword() { - return this.pePassword; - } - - public void setPePassword(String pePassword) { - this.pePassword = pePassword; - } - - public String getResourceId() { - return this.resourceId; - } - - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } - - public String getInvokeSystem() { - return this.invokeSystem; - } - - public void setInvokeSystem(String invokeSystem) { - this.invokeSystem = invokeSystem; - } - - public String getOfflineDiagReportStatus() { - return this.offlineDiagReportStatus; - } - - public void setOfflineDiagReportStatus(String offlineDiagReportStatus) { - this.offlineDiagReportStatus = offlineDiagReportStatus; - } - - public String getDiagnosticCategory() { - return this.diagnosticCategory; - } - - public void setDiagnosticCategory(String diagnosticCategory) { - this.diagnosticCategory = diagnosticCategory; - } - - public String getIssueCategoryId() { - return this.issueCategoryId; - } - - public void setIssueCategoryId(String issueCategoryId) { - this.issueCategoryId = issueCategoryId; - } - - public List getIssues() { - return this.issues; - } - - public void setIssues(List issues) { - this.issues = issues; - } - - public List getItems() { - return this.items; - } - - public void setItems(List items) { - this.items = items; - } - - public List getRecentEvents() { - return this.recentEvents; - } - - public void setRecentEvents(List recentEvents) { - this.recentEvents = recentEvents; - } - - public static class Issue { - - private String severity; - - private String message; - - private String occurrenceTime; - - private String issueCode; - - private String issueCategory; - - private List recommendedActions; - - public String getSeverity() { - return this.severity; - } - - public void setSeverity(String severity) { - this.severity = severity; - } - - public String getMessage() { - return this.message; - } - - public void setMessage(String message) { - this.message = message; - } - - public String getOccurrenceTime() { - return this.occurrenceTime; - } - - public void setOccurrenceTime(String occurrenceTime) { - this.occurrenceTime = occurrenceTime; - } - - public String getIssueCode() { - return this.issueCode; - } - - public void setIssueCode(String issueCode) { - this.issueCode = issueCode; - } - - public String getIssueCategory() { - return this.issueCategory; - } - - public void setIssueCategory(String issueCategory) { - this.issueCategory = issueCategory; - } - - public List getRecommendedActions() { - return this.recommendedActions; - } - - public void setRecommendedActions(List recommendedActions) { - this.recommendedActions = recommendedActions; - } - - public static class RecommendedAction { - - private String url; - - private String actionCode; - - private List parameters; - - public String getUrl() { - return this.url; - } - - public void setUrl(String url) { - this.url = url; - } - - public String getActionCode() { - return this.actionCode; - } - - public void setActionCode(String actionCode) { - this.actionCode = actionCode; - } - - public List getParameters() { - return this.parameters; - } - - public void setParameters(List parameters) { - this.parameters = parameters; - } - - public static class Parameter { - - private String key; - - private String value; - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } - } - } - } - - public static class Item { - - private String status; - - private String severity; - - private String itemCategory; - - private String itemCode; - - private String occurrenceTime; - - private List itemDatas; - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - } - - public String getSeverity() { - return this.severity; - } - - public void setSeverity(String severity) { - this.severity = severity; - } - - public String getItemCategory() { - return this.itemCategory; - } - - public void setItemCategory(String itemCategory) { - this.itemCategory = itemCategory; - } - - public String getItemCode() { - return this.itemCode; - } - - public void setItemCode(String itemCode) { - this.itemCode = itemCode; - } - - public String getOccurrenceTime() { - return this.occurrenceTime; - } - - public void setOccurrenceTime(String occurrenceTime) { - this.occurrenceTime = occurrenceTime; - } - - public List getItemDatas() { - return this.itemDatas; - } - - public void setItemDatas(List itemDatas) { - this.itemDatas = itemDatas; - } - - public static class ItemData { - - private String name; - - private String value; - - public String getName() { - return this.name; - } - - public void setName(String name) { - this.name = name; - } - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } - } - } - - public static class RecentEvent { - - private String eventID; - - private String eventName; - - private String publishTime; - - public String getEventID() { - return this.eventID; - } - - public void setEventID(String eventID) { - this.eventID = eventID; - } - - public String getEventName() { - return this.eventName; - } - - public void setEventName(String eventName) { - this.eventName = eventName; - } - - public String getPublishTime() { - return this.publishTime; - } - - public void setPublishTime(String publishTime) { - this.publishTime = publishTime; - } - } - } - - @Override - public DescribeDiagnosticReportsResponse getInstance(UnmarshallerContext context) { - return DescribeDiagnosticReportsResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDiskReplicaPairsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDiskReplicaPairsRequest.java deleted file mode 100644 index 8e372d18d2..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDiskReplicaPairsRequest.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeDiskReplicaPairsRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String nextToken; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private Integer maxResults; - public DescribeDiskReplicaPairsRequest() { - super("Ecs", "2016-03-14", "DescribeDiskReplicaPairs", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getNextToken() { - return this.nextToken; - } - - public void setNextToken(String nextToken) { - this.nextToken = nextToken; - if(nextToken != null){ - putQueryParameter("NextToken", nextToken); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public Integer getMaxResults() { - return this.maxResults; - } - - public void setMaxResults(Integer maxResults) { - this.maxResults = maxResults; - if(maxResults != null){ - putQueryParameter("MaxResults", maxResults.toString()); - } - } - - @Override - public Class getResponseClass() { - return DescribeDiskReplicaPairsResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDiskReplicaPairsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDiskReplicaPairsResponse.java deleted file mode 100644 index ddbd853d4a..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeDiskReplicaPairsResponse.java +++ /dev/null @@ -1,195 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeDiskReplicaPairsResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeDiskReplicaPairsResponse extends AcsResponse { - - private String nextToken; - - private String requestId; - - private List diskReplicaPairs; - - public String getNextToken() { - return this.nextToken; - } - - public void setNextToken(String nextToken) { - this.nextToken = nextToken; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public List getDiskReplicaPairs() { - return this.diskReplicaPairs; - } - - public void setDiskReplicaPairs(List diskReplicaPairs) { - this.diskReplicaPairs = diskReplicaPairs; - } - - public static class DiskReplicaPair { - - private String status; - - private String replicaPairId; - - private Integer asyncCycle; - - private Long totalCopiedSize; - - private String healthStatus; - - private String destinationDiskId; - - private String sourceDiskId; - - private Integer bandwidth; - - private String description; - - private String destinationRegion; - - private String pairName; - - private String sourceRegion; - - private String rpoTime; - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - } - - public String getReplicaPairId() { - return this.replicaPairId; - } - - public void setReplicaPairId(String replicaPairId) { - this.replicaPairId = replicaPairId; - } - - public Integer getAsyncCycle() { - return this.asyncCycle; - } - - public void setAsyncCycle(Integer asyncCycle) { - this.asyncCycle = asyncCycle; - } - - public Long getTotalCopiedSize() { - return this.totalCopiedSize; - } - - public void setTotalCopiedSize(Long totalCopiedSize) { - this.totalCopiedSize = totalCopiedSize; - } - - public String getHealthStatus() { - return this.healthStatus; - } - - public void setHealthStatus(String healthStatus) { - this.healthStatus = healthStatus; - } - - public String getDestinationDiskId() { - return this.destinationDiskId; - } - - public void setDestinationDiskId(String destinationDiskId) { - this.destinationDiskId = destinationDiskId; - } - - public String getSourceDiskId() { - return this.sourceDiskId; - } - - public void setSourceDiskId(String sourceDiskId) { - this.sourceDiskId = sourceDiskId; - } - - public Integer getBandwidth() { - return this.bandwidth; - } - - public void setBandwidth(Integer bandwidth) { - this.bandwidth = bandwidth; - } - - public String getDescription() { - return this.description; - } - - public void setDescription(String description) { - this.description = description; - } - - public String getDestinationRegion() { - return this.destinationRegion; - } - - public void setDestinationRegion(String destinationRegion) { - this.destinationRegion = destinationRegion; - } - - public String getPairName() { - return this.pairName; - } - - public void setPairName(String pairName) { - this.pairName = pairName; - } - - public String getSourceRegion() { - return this.sourceRegion; - } - - public void setSourceRegion(String sourceRegion) { - this.sourceRegion = sourceRegion; - } - - public String getRpoTime() { - return this.rpoTime; - } - - public void setRpoTime(String rpoTime) { - this.rpoTime = rpoTime; - } - } - - @Override - public DescribeDiskReplicaPairsResponse getInstance(UnmarshallerContext context) { - return DescribeDiskReplicaPairsResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeEcsScenarioFacadeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeEcsScenarioFacadeRequest.java deleted file mode 100644 index 494d64224a..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeEcsScenarioFacadeRequest.java +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import java.util.Map; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeEcsScenarioFacadeRequest extends RpcAcsRequest { - - - private String extParam; - - private Long resourceOwnerId; - - private Long ownerId; - - private Map extMap; - - private List scenarioList; - public DescribeEcsScenarioFacadeRequest() { - super("Ecs", "2016-03-14", "DescribeEcsScenarioFacade", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public String getExtParam() { - return this.extParam; - } - - public void setExtParam(String extParam) { - this.extParam = extParam; - if(extParam != null){ - putQueryParameter("ExtParam", extParam); - } - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public Map getExtMap() { - return this.extMap; - } - - public void setExtMap(Map extMap) { - this.extMap = extMap; - if (extMap != null) { - for (String key1: extMap.keySet() ) { - putQueryParameter("ExtMap.#" + key1.length() + "#" + key1 , extMap.get(key1)); - } - } - } - - public List getScenarioList() { - return this.scenarioList; - } - - public void setScenarioList(List scenarioList) { - this.scenarioList = scenarioList; - if (scenarioList != null) { - for (int depth1 = 0; depth1 < scenarioList.size(); depth1++) { - if (scenarioList.get(depth1) != null) { - - if (scenarioList.get(depth1).getScenarioResources() != null) { - for (int depth2 = 0; depth2 < scenarioList.get(depth1).getScenarioResources().size(); depth2++) { - if (scenarioList.get(depth1).getScenarioResources().get(depth2) != null) { - - putQueryParameter("ScenarioList." + (depth1 + 1) + ".ScenarioResources." + (depth2 + 1) + ".Type" , scenarioList.get(depth1).getScenarioResources().get(depth2).getType()); - if (scenarioList.get(depth1).getScenarioResources().get(depth2).getValues() != null) { - for (int depth3 = 0; depth3 < scenarioList.get(depth1).getScenarioResources().get(depth2).getValues().size(); depth3++) { - putQueryParameter("ScenarioList." + (depth1 + 1) + ".ScenarioResources." + (depth2 + 1) + ".Values." + (depth3 + 1) , scenarioList.get(depth1).getScenarioResources().get(depth2).getValues().get(depth3)); - } - } - } - } - } - putQueryParameter("ScenarioList." + (depth1 + 1) + ".Scenario" , scenarioList.get(depth1).getScenario()); - } - } - } - } - - public static class ScenarioList { - - private List scenarioResources; - - private String scenario; - - public List getScenarioResources() { - return this.scenarioResources; - } - - public void setScenarioResources(List scenarioResources) { - this.scenarioResources = scenarioResources; - } - - public String getScenario() { - return this.scenario; - } - - public void setScenario(String scenario) { - this.scenario = scenario; - } - - public static class ScenarioResourcesItem { - - private String type; - - private List values; - - public String getType() { - return this.type; - } - - public void setType(String type) { - this.type = type; - } - - public List getValues() { - return this.values; - } - - public void setValues(List values) { - this.values = values; - } - } - } - - @Override - public Class getResponseClass() { - return DescribeEcsScenarioFacadeResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeEcsScenarioFacadeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeEcsScenarioFacadeResponse.java deleted file mode 100644 index e6db66e0b8..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeEcsScenarioFacadeResponse.java +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import java.util.Map; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeEcsScenarioFacadeResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeEcsScenarioFacadeResponse extends AcsResponse { - - private String requestId; - - private List scenarios; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public List getScenarios() { - return this.scenarios; - } - - public void setScenarios(List scenarios) { - this.scenarios = scenarios; - } - - public static class Scenario { - - private String scenario; - - private List contents; - - public String getScenario() { - return this.scenario; - } - - public void setScenario(String scenario) { - this.scenario = scenario; - } - - public List getContents() { - return this.contents; - } - - public void setContents(List contents) { - this.contents = contents; - } - - public static class Content { - - private Map action; - - private Map track; - - private Map attributes; - - private String title; - - private String description; - - private String icon; - - private String tips; - - private String colorLevel; - - private String supportCancel; - - private List ecsScenarioContentData; - - public Map getAction() { - return this.action; - } - - public void setAction(Map action) { - this.action = action; - } - - public Map getTrack() { - return this.track; - } - - public void setTrack(Map track) { - this.track = track; - } - - public Map getAttributes() { - return this.attributes; - } - - public void setAttributes(Map attributes) { - this.attributes = attributes; - } - - public String getTitle() { - return this.title; - } - - public void setTitle(String title) { - this.title = title; - } - - public String getDescription() { - return this.description; - } - - public void setDescription(String description) { - this.description = description; - } - - public String getIcon() { - return this.icon; - } - - public void setIcon(String icon) { - this.icon = icon; - } - - public String getTips() { - return this.tips; - } - - public void setTips(String tips) { - this.tips = tips; - } - - public String getColorLevel() { - return this.colorLevel; - } - - public void setColorLevel(String colorLevel) { - this.colorLevel = colorLevel; - } - - public String getSupportCancel() { - return this.supportCancel; - } - - public void setSupportCancel(String supportCancel) { - this.supportCancel = supportCancel; - } - - public List getEcsScenarioContentData() { - return this.ecsScenarioContentData; - } - - public void setEcsScenarioContentData(List ecsScenarioContentData) { - this.ecsScenarioContentData = ecsScenarioContentData; - } - - public static class EcsScenarioContent { - - private String type; - - private List values; - - public String getType() { - return this.type; - } - - public void setType(String type) { - this.type = type; - } - - public List getValues() { - return this.values; - } - - public void setValues(List values) { - this.values = values; - } - } - } - } - - @Override - public DescribeEcsScenarioFacadeResponse getInstance(UnmarshallerContext context) { - return DescribeEcsScenarioFacadeResponseUnmarshaller.unmarshall(this, context); - } - - @Override - public boolean checkShowJsonItemName() { - return false; - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeEniQosGroupInfoRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeEniQosGroupInfoRequest.java deleted file mode 100644 index c67139e978..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeEniQosGroupInfoRequest.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeEniQosGroupInfoRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String resourceOwnerAccount; - - private Long ownerId; - - private String qosGroupName; - public DescribeEniQosGroupInfoRequest() { - super("Ecs", "2016-03-14", "DescribeEniQosGroupInfo", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getQosGroupName() { - return this.qosGroupName; - } - - public void setQosGroupName(String qosGroupName) { - this.qosGroupName = qosGroupName; - if(qosGroupName != null){ - putQueryParameter("QosGroupName", qosGroupName); - } - } - - @Override - public Class getResponseClass() { - return DescribeEniQosGroupInfoResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeEniQosGroupInfoResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeEniQosGroupInfoResponse.java deleted file mode 100644 index 6a92b8c398..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeEniQosGroupInfoResponse.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeEniQosGroupInfoResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeEniQosGroupInfoResponse extends AcsResponse { - - private String requestId; - - private QosGroupInfo qosGroupInfo; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public QosGroupInfo getQosGroupInfo() { - return this.qosGroupInfo; - } - - public void setQosGroupInfo(QosGroupInfo qosGroupInfo) { - this.qosGroupInfo = qosGroupInfo; - } - - public static class QosGroupInfo { - - private String instanceId; - - private List networkInterfaceIds; - - private QosGroup qosGroup; - - public String getInstanceId() { - return this.instanceId; - } - - public void setInstanceId(String instanceId) { - this.instanceId = instanceId; - } - - public List getNetworkInterfaceIds() { - return this.networkInterfaceIds; - } - - public void setNetworkInterfaceIds(List networkInterfaceIds) { - this.networkInterfaceIds = networkInterfaceIds; - } - - public QosGroup getQosGroup() { - return this.qosGroup; - } - - public void setQosGroup(QosGroup qosGroup) { - this.qosGroup = qosGroup; - } - - public static class QosGroup { - - private String type; - - private String rx; - - private String gmtModify; - - private String qosGroupName; - - private String tx; - - private String txPps; - - private String gmtCreate; - - private String rxPps; - - public String getType() { - return this.type; - } - - public void setType(String type) { - this.type = type; - } - - public String getRx() { - return this.rx; - } - - public void setRx(String rx) { - this.rx = rx; - } - - public String getGmtModify() { - return this.gmtModify; - } - - public void setGmtModify(String gmtModify) { - this.gmtModify = gmtModify; - } - - public String getQosGroupName() { - return this.qosGroupName; - } - - public void setQosGroupName(String qosGroupName) { - this.qosGroupName = qosGroupName; - } - - public String getTx() { - return this.tx; - } - - public void setTx(String tx) { - this.tx = tx; - } - - public String getTxPps() { - return this.txPps; - } - - public void setTxPps(String txPps) { - this.txPps = txPps; - } - - public String getGmtCreate() { - return this.gmtCreate; - } - - public void setGmtCreate(String gmtCreate) { - this.gmtCreate = gmtCreate; - } - - public String getRxPps() { - return this.rxPps; - } - - public void setRxPps(String rxPps) { - this.rxPps = rxPps; - } - } - } - - @Override - public DescribeEniQosGroupInfoResponse getInstance(UnmarshallerContext context) { - return DescribeEniQosGroupInfoResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeFunctionFeedbackRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeFunctionFeedbackRequest.java deleted file mode 100644 index 070a5966ba..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeFunctionFeedbackRequest.java +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeFunctionFeedbackRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String feedback; - - private List functionNames; - - private String resourceOwnerAccount; - - private Long ownerId; - - private String category; - public DescribeFunctionFeedbackRequest() { - super("Ecs", "2016-03-14", "DescribeFunctionFeedback", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getFeedback() { - return this.feedback; - } - - public void setFeedback(String feedback) { - this.feedback = feedback; - if(feedback != null){ - putQueryParameter("Feedback", feedback); - } - } - - public List getFunctionNames() { - return this.functionNames; - } - - public void setFunctionNames(List functionNames) { - this.functionNames = functionNames; - if (functionNames != null) { - for (int i = 0; i < functionNames.size(); i++) { - putQueryParameter("FunctionName." + (i + 1) , functionNames.get(i)); - } - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getCategory() { - return this.category; - } - - public void setCategory(String category) { - this.category = category; - if(category != null){ - putQueryParameter("Category", category); - } - } - - @Override - public Class getResponseClass() { - return DescribeFunctionFeedbackResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeFunctionFeedbackResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeFunctionFeedbackResponse.java deleted file mode 100644 index 4f30e58672..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeFunctionFeedbackResponse.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeFunctionFeedbackResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeFunctionFeedbackResponse extends AcsResponse { - - private String requestId; - - private List data; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public List getData() { - return this.data; - } - - public void setData(List data) { - this.data = data; - } - - public static class Feedback { - - private String creationTime; - - private String suggestion; - - private String functionName; - - private String finishedTime; - - private String category; - - private String feedback; - - public String getCreationTime() { - return this.creationTime; - } - - public void setCreationTime(String creationTime) { - this.creationTime = creationTime; - } - - public String getSuggestion() { - return this.suggestion; - } - - public void setSuggestion(String suggestion) { - this.suggestion = suggestion; - } - - public String getFunctionName() { - return this.functionName; - } - - public void setFunctionName(String functionName) { - this.functionName = functionName; - } - - public String getFinishedTime() { - return this.finishedTime; - } - - public void setFinishedTime(String finishedTime) { - this.finishedTime = finishedTime; - } - - public String getCategory() { - return this.category; - } - - public void setCategory(String category) { - this.category = category; - } - - public String getFeedback() { - return this.feedback; - } - - public void setFeedback(String feedback) { - this.feedback = feedback; - } - } - - @Override - public DescribeFunctionFeedbackResponse getInstance(UnmarshallerContext context) { - return DescribeFunctionFeedbackResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeHavsInstanceTypesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeHavsInstanceTypesRequest.java deleted file mode 100644 index 65ef911a6f..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeHavsInstanceTypesRequest.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeHavsInstanceTypesRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - public DescribeHavsInstanceTypesRequest() { - super("Ecs", "2016-03-14", "DescribeHavsInstanceTypes", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - @Override - public Class getResponseClass() { - return DescribeHavsInstanceTypesResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeHavsInstanceTypesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeHavsInstanceTypesResponse.java deleted file mode 100644 index b91ceadfdb..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeHavsInstanceTypesResponse.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeHavsInstanceTypesResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeHavsInstanceTypesResponse extends AcsResponse { - - private String requestId; - - private DescribeHavsInstanceTypesResponse1 describeHavsInstanceTypesResponse1; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public DescribeHavsInstanceTypesResponse1 getDescribeHavsInstanceTypesResponse1() { - return this.describeHavsInstanceTypesResponse1; - } - - public void setDescribeHavsInstanceTypesResponse1(DescribeHavsInstanceTypesResponse1 describeHavsInstanceTypesResponse1) { - this.describeHavsInstanceTypesResponse1 = describeHavsInstanceTypesResponse1; - } - - public static class DescribeHavsInstanceTypesResponse1 { - - private List havsInstanceTypes; - - public List getHavsInstanceTypes() { - return this.havsInstanceTypes; - } - - public void setHavsInstanceTypes(List havsInstanceTypes) { - this.havsInstanceTypes = havsInstanceTypes; - } - } - - @Override - public DescribeHavsInstanceTypesResponse getInstance(UnmarshallerContext context) { - return DescribeHavsInstanceTypesResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeImageAgreementRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeImageAgreementRequest.java deleted file mode 100644 index 2b7d776245..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeImageAgreementRequest.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeImageAgreementRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String resourceOwnerAccount; - - private Long ownerId; - - private String agreementType; - public DescribeImageAgreementRequest() { - super("Ecs", "2016-03-14", "DescribeImageAgreement", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getAgreementType() { - return this.agreementType; - } - - public void setAgreementType(String agreementType) { - this.agreementType = agreementType; - if(agreementType != null){ - putQueryParameter("AgreementType", agreementType); - } - } - - @Override - public Class getResponseClass() { - return DescribeImageAgreementResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeImageAgreementResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeImageAgreementResponse.java deleted file mode 100644 index ca25b6c0c1..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeImageAgreementResponse.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeImageAgreementResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeImageAgreementResponse extends AcsResponse { - - private String requestId; - - private String status; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - } - - @Override - public DescribeImageAgreementResponse getInstance(UnmarshallerContext context) { - return DescribeImageAgreementResponseUnmarshaller.unmarshall(this, context); - } - - @Override - public boolean checkShowJsonItemName() { - return false; - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeImageCachesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeImageCachesRequest.java deleted file mode 100644 index 0babb4e86c..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeImageCachesRequest.java +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeImageCachesRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String imageId; - - private String clientToken; - - private String nextToken; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String zoneId; - - private Long maxResults; - public DescribeImageCachesRequest() { - super("Ecs", "2016-03-14", "DescribeImageCaches", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getImageId() { - return this.imageId; - } - - public void setImageId(String imageId) { - this.imageId = imageId; - if(imageId != null){ - putQueryParameter("ImageId", imageId); - } - } - - public String getClientToken() { - return this.clientToken; - } - - public void setClientToken(String clientToken) { - this.clientToken = clientToken; - if(clientToken != null){ - putQueryParameter("ClientToken", clientToken); - } - } - - public String getNextToken() { - return this.nextToken; - } - - public void setNextToken(String nextToken) { - this.nextToken = nextToken; - if(nextToken != null){ - putQueryParameter("NextToken", nextToken); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - if(zoneId != null){ - putQueryParameter("ZoneId", zoneId); - } - } - - public Long getMaxResults() { - return this.maxResults; - } - - public void setMaxResults(Long maxResults) { - this.maxResults = maxResults; - if(maxResults != null){ - putQueryParameter("MaxResults", maxResults.toString()); - } - } - - @Override - public Class getResponseClass() { - return DescribeImageCachesResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeImageCachesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeImageCachesResponse.java deleted file mode 100644 index 827d7a125b..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeImageCachesResponse.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeImageCachesResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeImageCachesResponse extends AcsResponse { - - private String requestId; - - private String nextToken; - - private Integer totalCount; - - private List imageCaches; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public String getNextToken() { - return this.nextToken; - } - - public void setNextToken(String nextToken) { - this.nextToken = nextToken; - } - - public Integer getTotalCount() { - return this.totalCount; - } - - public void setTotalCount(Integer totalCount) { - this.totalCount = totalCount; - } - - public List getImageCaches() { - return this.imageCaches; - } - - public void setImageCaches(List imageCaches) { - this.imageCaches = imageCaches; - } - - public static class ImageCache { - - private String imageId; - - private String creationTime; - - private String progress; - - private String status; - - public String getImageId() { - return this.imageId; - } - - public void setImageId(String imageId) { - this.imageId = imageId; - } - - public String getCreationTime() { - return this.creationTime; - } - - public void setCreationTime(String creationTime) { - this.creationTime = creationTime; - } - - public String getProgress() { - return this.progress; - } - - public void setProgress(String progress) { - this.progress = progress; - } - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - } - } - - @Override - public DescribeImageCachesResponse getInstance(UnmarshallerContext context) { - return DescribeImageCachesResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeImageFamiliesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeImageFamiliesRequest.java deleted file mode 100644 index 5aa8e50b5d..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeImageFamiliesRequest.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeImageFamiliesRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private Integer pageNumber; - - private Integer pageSize; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String status; - public DescribeImageFamiliesRequest() { - super("Ecs", "2016-03-14", "DescribeImageFamilies", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - if(pageNumber != null){ - putQueryParameter("PageNumber", pageNumber.toString()); - } - } - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - if(pageSize != null){ - putQueryParameter("PageSize", pageSize.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - if(status != null){ - putQueryParameter("Status", status); - } - } - - @Override - public Class getResponseClass() { - return DescribeImageFamiliesResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeImageFamiliesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeImageFamiliesResponse.java deleted file mode 100644 index e5c77c9314..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeImageFamiliesResponse.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeImageFamiliesResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeImageFamiliesResponse extends AcsResponse { - - private Integer pageSize; - - private Integer pageNumber; - - private String requestId; - - private Integer totalCount; - - private String regionId; - - private List imageFamilies; - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public Integer getTotalCount() { - return this.totalCount; - } - - public void setTotalCount(Integer totalCount) { - this.totalCount = totalCount; - } - - public String getRegionId() { - return this.regionId; - } - - public void setRegionId(String regionId) { - this.regionId = regionId; - } - - public List getImageFamilies() { - return this.imageFamilies; - } - - public void setImageFamilies(List imageFamilies) { - this.imageFamilies = imageFamilies; - } - - @Override - public DescribeImageFamiliesResponse getInstance(UnmarshallerContext context) { - return DescribeImageFamiliesResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceAutoRebootTimeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceAutoRebootTimeRequest.java deleted file mode 100644 index aa15261735..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceAutoRebootTimeRequest.java +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeInstanceAutoRebootTimeRequest extends RpcAcsRequest { - - - private String autoRebootTimeTo; - - private Long resourceOwnerId; - - private String autoRebootTimeFrom; - - private String resourceOwnerAccount; - - private Long ownerId; - - private List instanceIdss; - public DescribeInstanceAutoRebootTimeRequest() { - super("Ecs", "2016-03-14", "DescribeInstanceAutoRebootTime", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public String getAutoRebootTimeTo() { - return this.autoRebootTimeTo; - } - - public void setAutoRebootTimeTo(String autoRebootTimeTo) { - this.autoRebootTimeTo = autoRebootTimeTo; - if(autoRebootTimeTo != null){ - putQueryParameter("AutoRebootTimeTo", autoRebootTimeTo); - } - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getAutoRebootTimeFrom() { - return this.autoRebootTimeFrom; - } - - public void setAutoRebootTimeFrom(String autoRebootTimeFrom) { - this.autoRebootTimeFrom = autoRebootTimeFrom; - if(autoRebootTimeFrom != null){ - putQueryParameter("AutoRebootTimeFrom", autoRebootTimeFrom); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public List getInstanceIdss() { - return this.instanceIdss; - } - - public void setInstanceIdss(List instanceIdss) { - this.instanceIdss = instanceIdss; - if (instanceIdss != null) { - for (int i = 0; i < instanceIdss.size(); i++) { - putQueryParameter("InstanceIds." + (i + 1) , instanceIdss.get(i)); - } - } - } - - @Override - public Class getResponseClass() { - return DescribeInstanceAutoRebootTimeResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceAutoRebootTimeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceAutoRebootTimeResponse.java deleted file mode 100644 index b2ef5cb7bd..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceAutoRebootTimeResponse.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeInstanceAutoRebootTimeResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeInstanceAutoRebootTimeResponse extends AcsResponse { - - private String requestId; - - private List autoRebootInfos; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public List getAutoRebootInfos() { - return this.autoRebootInfos; - } - - public void setAutoRebootInfos(List autoRebootInfos) { - this.autoRebootInfos = autoRebootInfos; - } - - public static class AutoRebootInfo { - - private String limitRebootTime; - - private String instanceId; - - private String orderType; - - private String rebootTime; - - public String getLimitRebootTime() { - return this.limitRebootTime; - } - - public void setLimitRebootTime(String limitRebootTime) { - this.limitRebootTime = limitRebootTime; - } - - public String getInstanceId() { - return this.instanceId; - } - - public void setInstanceId(String instanceId) { - this.instanceId = instanceId; - } - - public String getOrderType() { - return this.orderType; - } - - public void setOrderType(String orderType) { - this.orderType = orderType; - } - - public String getRebootTime() { - return this.rebootTime; - } - - public void setRebootTime(String rebootTime) { - this.rebootTime = rebootTime; - } - } - - @Override - public DescribeInstanceAutoRebootTimeResponse getInstance(UnmarshallerContext context) { - return DescribeInstanceAutoRebootTimeResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceHealthStatusRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceHealthStatusRequest.java deleted file mode 100644 index c31246610d..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceHealthStatusRequest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeInstanceHealthStatusRequest extends RpcAcsRequest { - - - private List instanceIds; - public DescribeInstanceHealthStatusRequest() { - super("Ecs", "2016-03-14", "DescribeInstanceHealthStatus", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public List getInstanceIds() { - return this.instanceIds; - } - - public void setInstanceIds(List instanceIds) { - this.instanceIds = instanceIds; - if (instanceIds != null) { - for (int i = 0; i < instanceIds.size(); i++) { - putQueryParameter("InstanceId." + (i + 1) , instanceIds.get(i)); - } - } - } - - @Override - public Class getResponseClass() { - return DescribeInstanceHealthStatusResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceHealthStatusResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceHealthStatusResponse.java deleted file mode 100644 index 3ba7fa4ba1..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceHealthStatusResponse.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeInstanceHealthStatusResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeInstanceHealthStatusResponse extends AcsResponse { - - private String requestId; - - private List healthStatusModel; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public List getHealthStatusModel() { - return this.healthStatusModel; - } - - public void setHealthStatusModel(List healthStatusModel) { - this.healthStatusModel = healthStatusModel; - } - - public static class HealthStatusModelItem { - - private String instanceId; - - private HealthStatus healthStatus; - - public String getInstanceId() { - return this.instanceId; - } - - public void setInstanceId(String instanceId) { - this.instanceId = instanceId; - } - - public HealthStatus getHealthStatus() { - return this.healthStatus; - } - - public void setHealthStatus(HealthStatus healthStatus) { - this.healthStatus = healthStatus; - } - - public static class HealthStatus { - - private String code; - - private String name; - - public String getCode() { - return this.code; - } - - public void setCode(String code) { - this.code = code; - } - - public String getName() { - return this.name; - } - - public void setName(String name) { - this.name = name; - } - } - } - - @Override - public DescribeInstanceHealthStatusResponse getInstance(UnmarshallerContext context) { - return DescribeInstanceHealthStatusResponseUnmarshaller.unmarshall(this, context); - } - - @Override - public boolean checkShowJsonItemName() { - return false; - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceNeedRebootRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceNeedRebootRequest.java deleted file mode 100644 index 47aa155ceb..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceNeedRebootRequest.java +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeInstanceNeedRebootRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private Integer pageNumber; - - private Integer pageSize; - - private String resourceOwnerAccount; - - private Long ownerId; - - private List instanceIdss; - public DescribeInstanceNeedRebootRequest() { - super("Ecs", "2016-03-14", "DescribeInstanceNeedReboot", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - if(pageNumber != null){ - putQueryParameter("PageNumber", pageNumber.toString()); - } - } - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - if(pageSize != null){ - putQueryParameter("PageSize", pageSize.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public List getInstanceIdss() { - return this.instanceIdss; - } - - public void setInstanceIdss(List instanceIdss) { - this.instanceIdss = instanceIdss; - if (instanceIdss != null) { - for (int i = 0; i < instanceIdss.size(); i++) { - putQueryParameter("InstanceIds." + (i + 1) , instanceIdss.get(i)); - } - } - } - - @Override - public Class getResponseClass() { - return DescribeInstanceNeedRebootResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceNeedRebootResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceNeedRebootResponse.java deleted file mode 100644 index c4dbdbfa31..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceNeedRebootResponse.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeInstanceNeedRebootResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeInstanceNeedRebootResponse extends AcsResponse { - - private Integer pageSize; - - private String requestId; - - private Integer pageNumber; - - private Integer totalCount; - - private List instanceInfo; - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - } - - public Integer getTotalCount() { - return this.totalCount; - } - - public void setTotalCount(Integer totalCount) { - this.totalCount = totalCount; - } - - public List getInstanceInfo() { - return this.instanceInfo; - } - - public void setInstanceInfo(List instanceInfo) { - this.instanceInfo = instanceInfo; - } - - @Override - public DescribeInstanceNeedRebootResponse getInstance(UnmarshallerContext context) { - return DescribeInstanceNeedRebootResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstancePerformanceRestrictHistoryRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstancePerformanceRestrictHistoryRequest.java deleted file mode 100644 index dff0eb0cf3..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstancePerformanceRestrictHistoryRequest.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeInstancePerformanceRestrictHistoryRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private Integer pageNumber; - - private Integer pageSize; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private List instanceIds; - public DescribeInstancePerformanceRestrictHistoryRequest() { - super("Ecs", "2016-03-14", "DescribeInstancePerformanceRestrictHistory", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - if(pageNumber != null){ - putQueryParameter("PageNumber", pageNumber.toString()); - } - } - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - if(pageSize != null){ - putQueryParameter("PageSize", pageSize.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public List getInstanceIds() { - return this.instanceIds; - } - - public void setInstanceIds(List instanceIds) { - this.instanceIds = instanceIds; - if (instanceIds != null) { - for (int i = 0; i < instanceIds.size(); i++) { - putQueryParameter("InstanceId." + (i + 1) , instanceIds.get(i)); - } - } - } - - @Override - public Class getResponseClass() { - return DescribeInstancePerformanceRestrictHistoryResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstancePerformanceRestrictHistoryResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstancePerformanceRestrictHistoryResponse.java deleted file mode 100644 index 051d45bb21..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstancePerformanceRestrictHistoryResponse.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeInstancePerformanceRestrictHistoryResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeInstancePerformanceRestrictHistoryResponse extends AcsResponse { - - private Integer pageSize; - - private String requestId; - - private Integer pageNumber; - - private Integer totalCount; - - private List performanceRestrictHistories; - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - } - - public Integer getTotalCount() { - return this.totalCount; - } - - public void setTotalCount(Integer totalCount) { - this.totalCount = totalCount; - } - - public List getPerformanceRestrictHistories() { - return this.performanceRestrictHistories; - } - - public void setPerformanceRestrictHistories(List performanceRestrictHistories) { - this.performanceRestrictHistories = performanceRestrictHistories; - } - - public static class PerformanceRestrictHistory { - - private String instanceId; - - private List intervals; - - public String getInstanceId() { - return this.instanceId; - } - - public void setInstanceId(String instanceId) { - this.instanceId = instanceId; - } - - public List getIntervals() { - return this.intervals; - } - - public void setIntervals(List intervals) { - this.intervals = intervals; - } - } - - @Override - public DescribeInstancePerformanceRestrictHistoryResponse getInstance(UnmarshallerContext context) { - return DescribeInstancePerformanceRestrictHistoryResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceTypeResourceRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceTypeResourceRequest.java deleted file mode 100644 index 9b596d916b..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceTypeResourceRequest.java +++ /dev/null @@ -1,221 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeInstanceTypeResourceRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private List instanceTypess; - - private Integer pageNumber; - - private Integer cores; - - private List zoneIdss; - - private List instanceTypeFamiliess; - - private List searchTypess; - - private Integer pageSize; - - private List memoriess; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private String instanceTypeMatchMode; - - private Long ownerId; - public DescribeInstanceTypeResourceRequest() { - super("Ecs", "2016-03-14", "DescribeInstanceTypeResource", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public List getInstanceTypess() { - return this.instanceTypess; - } - - public void setInstanceTypess(List instanceTypess) { - this.instanceTypess = instanceTypess; - if (instanceTypess != null) { - for (int i = 0; i < instanceTypess.size(); i++) { - putQueryParameter("InstanceTypes." + (i + 1) , instanceTypess.get(i)); - } - } - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - if(pageNumber != null){ - putQueryParameter("PageNumber", pageNumber.toString()); - } - } - - public Integer getCores() { - return this.cores; - } - - public void setCores(Integer cores) { - this.cores = cores; - if(cores != null){ - putQueryParameter("Cores", cores.toString()); - } - } - - public List getZoneIdss() { - return this.zoneIdss; - } - - public void setZoneIdss(List zoneIdss) { - this.zoneIdss = zoneIdss; - if (zoneIdss != null) { - for (int i = 0; i < zoneIdss.size(); i++) { - putQueryParameter("ZoneIds." + (i + 1) , zoneIdss.get(i)); - } - } - } - - public List getInstanceTypeFamiliess() { - return this.instanceTypeFamiliess; - } - - public void setInstanceTypeFamiliess(List instanceTypeFamiliess) { - this.instanceTypeFamiliess = instanceTypeFamiliess; - if (instanceTypeFamiliess != null) { - for (int i = 0; i < instanceTypeFamiliess.size(); i++) { - putQueryParameter("InstanceTypeFamilies." + (i + 1) , instanceTypeFamiliess.get(i)); - } - } - } - - public List getSearchTypess() { - return this.searchTypess; - } - - public void setSearchTypess(List searchTypess) { - this.searchTypess = searchTypess; - if (searchTypess != null) { - for (int i = 0; i < searchTypess.size(); i++) { - putQueryParameter("SearchTypes." + (i + 1) , searchTypess.get(i)); - } - } - } - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - if(pageSize != null){ - putQueryParameter("PageSize", pageSize.toString()); - } - } - - public List getMemoriess() { - return this.memoriess; - } - - public void setMemoriess(List memoriess) { - this.memoriess = memoriess; - if (memoriess != null) { - for (int i = 0; i < memoriess.size(); i++) { - putQueryParameter("Memories." + (i + 1) , memoriess.get(i)); - } - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public String getInstanceTypeMatchMode() { - return this.instanceTypeMatchMode; - } - - public void setInstanceTypeMatchMode(String instanceTypeMatchMode) { - this.instanceTypeMatchMode = instanceTypeMatchMode; - if(instanceTypeMatchMode != null){ - putQueryParameter("InstanceTypeMatchMode", instanceTypeMatchMode); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - @Override - public Class getResponseClass() { - return DescribeInstanceTypeResourceResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceTypeResourceResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceTypeResourceResponse.java deleted file mode 100644 index 7d24480869..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeInstanceTypeResourceResponse.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeInstanceTypeResourceResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeInstanceTypeResourceResponse extends AcsResponse { - - private String requestId; - - private Integer totalCount; - - private Integer pageSize; - - private Integer pageNumber; - - private List instanceTypeResources; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public Integer getTotalCount() { - return this.totalCount; - } - - public void setTotalCount(Integer totalCount) { - this.totalCount = totalCount; - } - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - } - - public List getInstanceTypeResources() { - return this.instanceTypeResources; - } - - public void setInstanceTypeResources(List instanceTypeResources) { - this.instanceTypeResources = instanceTypeResources; - } - - public static class InstanceTypeResource { - - private String regionId; - - private String zoneId; - - private String instanceType; - - private String instanceTypeFamily; - - private String searchType; - - private Long totalQuota; - - private StockHealth stockHealth; - - public String getRegionId() { - return this.regionId; - } - - public void setRegionId(String regionId) { - this.regionId = regionId; - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - } - - public String getInstanceType() { - return this.instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - } - - public String getInstanceTypeFamily() { - return this.instanceTypeFamily; - } - - public void setInstanceTypeFamily(String instanceTypeFamily) { - this.instanceTypeFamily = instanceTypeFamily; - } - - public String getSearchType() { - return this.searchType; - } - - public void setSearchType(String searchType) { - this.searchType = searchType; - } - - public Long getTotalQuota() { - return this.totalQuota; - } - - public void setTotalQuota(Long totalQuota) { - this.totalQuota = totalQuota; - } - - public StockHealth getStockHealth() { - return this.stockHealth; - } - - public void setStockHealth(StockHealth stockHealth) { - this.stockHealth = stockHealth; - } - - public static class StockHealth { - - private Integer healthScore; - - private Integer adequacyScore; - - private Integer supplyScore; - - private Integer hotScore; - - public Integer getHealthScore() { - return this.healthScore; - } - - public void setHealthScore(Integer healthScore) { - this.healthScore = healthScore; - } - - public Integer getAdequacyScore() { - return this.adequacyScore; - } - - public void setAdequacyScore(Integer adequacyScore) { - this.adequacyScore = adequacyScore; - } - - public Integer getSupplyScore() { - return this.supplyScore; - } - - public void setSupplyScore(Integer supplyScore) { - this.supplyScore = supplyScore; - } - - public Integer getHotScore() { - return this.hotScore; - } - - public void setHotScore(Integer hotScore) { - this.hotScore = hotScore; - } - } - } - - @Override - public DescribeInstanceTypeResourceResponse getInstance(UnmarshallerContext context) { - return DescribeInstanceTypeResourceResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeKMSKeyAttributeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeKMSKeyAttributeRequest.java deleted file mode 100644 index 6b79d8cfce..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeKMSKeyAttributeRequest.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeKMSKeyAttributeRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String channel; - - private String operator; - - private String proxyId; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String token; - - private String appKey; - - private String kMSKeyId; - public DescribeKMSKeyAttributeRequest() { - super("Ecs", "2016-03-14", "DescribeKMSKeyAttribute", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getChannel() { - return this.channel; - } - - public void setChannel(String channel) { - this.channel = channel; - if(channel != null){ - putQueryParameter("channel", channel); - } - } - - public String getOperator() { - return this.operator; - } - - public void setOperator(String operator) { - this.operator = operator; - if(operator != null){ - putQueryParameter("operator", operator); - } - } - - public String getProxyId() { - return this.proxyId; - } - - public void setProxyId(String proxyId) { - this.proxyId = proxyId; - if(proxyId != null){ - putQueryParameter("proxyId", proxyId); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getToken() { - return this.token; - } - - public void setToken(String token) { - this.token = token; - if(token != null){ - putQueryParameter("token", token); - } - } - - public String getAppKey() { - return this.appKey; - } - - public void setAppKey(String appKey) { - this.appKey = appKey; - if(appKey != null){ - putQueryParameter("appKey", appKey); - } - } - - public String getKMSKeyId() { - return this.kMSKeyId; - } - - public void setKMSKeyId(String kMSKeyId) { - this.kMSKeyId = kMSKeyId; - if(kMSKeyId != null){ - putQueryParameter("KMSKeyId", kMSKeyId); - } - } - - @Override - public Class getResponseClass() { - return DescribeKMSKeyAttributeResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeKMSKeyAttributeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeKMSKeyAttributeResponse.java deleted file mode 100644 index 4ffe3f40c3..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeKMSKeyAttributeResponse.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeKMSKeyAttributeResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeKMSKeyAttributeResponse extends AcsResponse { - - private String status; - - private String requestId; - - private Boolean ecsTagged; - - private String kMSKeyId; - - private String alias; - - private String creator; - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public Boolean getEcsTagged() { - return this.ecsTagged; - } - - public void setEcsTagged(Boolean ecsTagged) { - this.ecsTagged = ecsTagged; - } - - public String getKMSKeyId() { - return this.kMSKeyId; - } - - public void setKMSKeyId(String kMSKeyId) { - this.kMSKeyId = kMSKeyId; - } - - public String getAlias() { - return this.alias; - } - - public void setAlias(String alias) { - this.alias = alias; - } - - public String getCreator() { - return this.creator; - } - - public void setCreator(String creator) { - this.creator = creator; - } - - @Override - public DescribeKMSKeyAttributeResponse getInstance(UnmarshallerContext context) { - return DescribeKMSKeyAttributeResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeKMSKeysRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeKMSKeysRequest.java deleted file mode 100644 index 8ff29bd659..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeKMSKeysRequest.java +++ /dev/null @@ -1,184 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeKMSKeysRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String channel; - - private String operator; - - private String pageNumber; - - private String pageSize; - - private String proxyId; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String token; - - private String appKey; - public DescribeKMSKeysRequest() { - super("Ecs", "2016-03-14", "DescribeKMSKeys", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getChannel() { - return this.channel; - } - - public void setChannel(String channel) { - this.channel = channel; - if(channel != null){ - putQueryParameter("channel", channel); - } - } - - public String getOperator() { - return this.operator; - } - - public void setOperator(String operator) { - this.operator = operator; - if(operator != null){ - putQueryParameter("operator", operator); - } - } - - public String getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(String pageNumber) { - this.pageNumber = pageNumber; - if(pageNumber != null){ - putQueryParameter("PageNumber", pageNumber); - } - } - - public String getPageSize() { - return this.pageSize; - } - - public void setPageSize(String pageSize) { - this.pageSize = pageSize; - if(pageSize != null){ - putQueryParameter("PageSize", pageSize); - } - } - - public String getProxyId() { - return this.proxyId; - } - - public void setProxyId(String proxyId) { - this.proxyId = proxyId; - if(proxyId != null){ - putQueryParameter("proxyId", proxyId); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getToken() { - return this.token; - } - - public void setToken(String token) { - this.token = token; - if(token != null){ - putQueryParameter("token", token); - } - } - - public String getAppKey() { - return this.appKey; - } - - public void setAppKey(String appKey) { - this.appKey = appKey; - if(appKey != null){ - putQueryParameter("appKey", appKey); - } - } - - @Override - public Class getResponseClass() { - return DescribeKMSKeysResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeKMSKeysResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeKMSKeysResponse.java deleted file mode 100644 index dd3fb6a2a3..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeKMSKeysResponse.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeKMSKeysResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeKMSKeysResponse extends AcsResponse { - - private String requestId; - - private Integer pageNumber; - - private Integer pageSize; - - private Integer totalCount; - - private List kMSKeyIds; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - } - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - } - - public Integer getTotalCount() { - return this.totalCount; - } - - public void setTotalCount(Integer totalCount) { - this.totalCount = totalCount; - } - - public List getKMSKeyIds() { - return this.kMSKeyIds; - } - - public void setKMSKeyIds(List kMSKeyIds) { - this.kMSKeyIds = kMSKeyIds; - } - - @Override - public DescribeKMSKeysResponse getInstance(UnmarshallerContext context) { - return DescribeKMSKeysResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeLinkedKMSKeysRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeLinkedKMSKeysRequest.java deleted file mode 100644 index c1b3080d7a..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeLinkedKMSKeysRequest.java +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeLinkedKMSKeysRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String channel; - - private String operator; - - private String proxyId; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String token; - - private String appKey; - public DescribeLinkedKMSKeysRequest() { - super("Ecs", "2016-03-14", "DescribeLinkedKMSKeys", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getChannel() { - return this.channel; - } - - public void setChannel(String channel) { - this.channel = channel; - if(channel != null){ - putQueryParameter("channel", channel); - } - } - - public String getOperator() { - return this.operator; - } - - public void setOperator(String operator) { - this.operator = operator; - if(operator != null){ - putQueryParameter("operator", operator); - } - } - - public String getProxyId() { - return this.proxyId; - } - - public void setProxyId(String proxyId) { - this.proxyId = proxyId; - if(proxyId != null){ - putQueryParameter("proxyId", proxyId); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getToken() { - return this.token; - } - - public void setToken(String token) { - this.token = token; - if(token != null){ - putQueryParameter("token", token); - } - } - - public String getAppKey() { - return this.appKey; - } - - public void setAppKey(String appKey) { - this.appKey = appKey; - if(appKey != null){ - putQueryParameter("appKey", appKey); - } - } - - @Override - public Class getResponseClass() { - return DescribeLinkedKMSKeysResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeLinkedKMSKeysResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeLinkedKMSKeysResponse.java deleted file mode 100644 index 1483efcf5c..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeLinkedKMSKeysResponse.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeLinkedKMSKeysResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeLinkedKMSKeysResponse extends AcsResponse { - - private String requestId; - - private List kMSKeys; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public List getKMSKeys() { - return this.kMSKeys; - } - - public void setKMSKeys(List kMSKeys) { - this.kMSKeys = kMSKeys; - } - - public static class KMSKey { - - private String alias; - - private String kMSKeyId; - - public String getAlias() { - return this.alias; - } - - public void setAlias(String alias) { - this.alias = alias; - } - - public String getKMSKeyId() { - return this.kMSKeyId; - } - - public void setKMSKeyId(String kMSKeyId) { - this.kMSKeyId = kMSKeyId; - } - } - - @Override - public DescribeLinkedKMSKeysResponse getInstance(UnmarshallerContext context) { - return DescribeLinkedKMSKeysResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeLocalDiskRepairActivitiesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeLocalDiskRepairActivitiesRequest.java deleted file mode 100644 index 5a5af6eb63..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeLocalDiskRepairActivitiesRequest.java +++ /dev/null @@ -1,163 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeLocalDiskRepairActivitiesRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private Integer pageNumber; - - private Integer pageSize; - - private List diskIds; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private List instanceIds; - - private Boolean includeHistory; - public DescribeLocalDiskRepairActivitiesRequest() { - super("Ecs", "2016-03-14", "DescribeLocalDiskRepairActivities", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - if(pageNumber != null){ - putQueryParameter("PageNumber", pageNumber.toString()); - } - } - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - if(pageSize != null){ - putQueryParameter("PageSize", pageSize.toString()); - } - } - - public List getDiskIds() { - return this.diskIds; - } - - public void setDiskIds(List diskIds) { - this.diskIds = diskIds; - if (diskIds != null) { - for (int i = 0; i < diskIds.size(); i++) { - putQueryParameter("DiskId." + (i + 1) , diskIds.get(i)); - } - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public List getInstanceIds() { - return this.instanceIds; - } - - public void setInstanceIds(List instanceIds) { - this.instanceIds = instanceIds; - if (instanceIds != null) { - for (int i = 0; i < instanceIds.size(); i++) { - putQueryParameter("InstanceId." + (i + 1) , instanceIds.get(i)); - } - } - } - - public Boolean getIncludeHistory() { - return this.includeHistory; - } - - public void setIncludeHistory(Boolean includeHistory) { - this.includeHistory = includeHistory; - if(includeHistory != null){ - putQueryParameter("IncludeHistory", includeHistory.toString()); - } - } - - @Override - public Class getResponseClass() { - return DescribeLocalDiskRepairActivitiesResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeLocalDiskRepairActivitiesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeLocalDiskRepairActivitiesResponse.java deleted file mode 100644 index 687046034f..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeLocalDiskRepairActivitiesResponse.java +++ /dev/null @@ -1,363 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeLocalDiskRepairActivitiesResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeLocalDiskRepairActivitiesResponse extends AcsResponse { - - private Integer pageSize; - - private String requestId; - - private Integer pageNumber; - - private Integer totalCount; - - private List localDiskRepairActivities; - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - } - - public Integer getTotalCount() { - return this.totalCount; - } - - public void setTotalCount(Integer totalCount) { - this.totalCount = totalCount; - } - - public List getLocalDiskRepairActivities() { - return this.localDiskRepairActivities; - } - - public void setLocalDiskRepairActivities(List localDiskRepairActivities) { - this.localDiskRepairActivities = localDiskRepairActivities; - } - - public static class LocalDiskRepairActivity { - - private String diskId; - - private String instanceId; - - private String progress; - - private List instanceEvents; - - private DiskEvent diskEvent; - - public String getDiskId() { - return this.diskId; - } - - public void setDiskId(String diskId) { - this.diskId = diskId; - } - - public String getInstanceId() { - return this.instanceId; - } - - public void setInstanceId(String instanceId) { - this.instanceId = instanceId; - } - - public String getProgress() { - return this.progress; - } - - public void setProgress(String progress) { - this.progress = progress; - } - - public List getInstanceEvents() { - return this.instanceEvents; - } - - public void setInstanceEvents(List instanceEvents) { - this.instanceEvents = instanceEvents; - } - - public DiskEvent getDiskEvent() { - return this.diskEvent; - } - - public void setDiskEvent(DiskEvent diskEvent) { - this.diskEvent = diskEvent; - } - - public static class InstanceEvent { - - private String eventPublishTime; - - private String eventId; - - private String eventFinishTime; - - private String instanceId; - - private String reason; - - private EventType eventType; - - private EventCycleStatus eventCycleStatus; - - private ExtendedAttribute extendedAttribute; - - public String getEventPublishTime() { - return this.eventPublishTime; - } - - public void setEventPublishTime(String eventPublishTime) { - this.eventPublishTime = eventPublishTime; - } - - public String getEventId() { - return this.eventId; - } - - public void setEventId(String eventId) { - this.eventId = eventId; - } - - public String getEventFinishTime() { - return this.eventFinishTime; - } - - public void setEventFinishTime(String eventFinishTime) { - this.eventFinishTime = eventFinishTime; - } - - public String getInstanceId() { - return this.instanceId; - } - - public void setInstanceId(String instanceId) { - this.instanceId = instanceId; - } - - public String getReason() { - return this.reason; - } - - public void setReason(String reason) { - this.reason = reason; - } - - public EventType getEventType() { - return this.eventType; - } - - public void setEventType(EventType eventType) { - this.eventType = eventType; - } - - public EventCycleStatus getEventCycleStatus() { - return this.eventCycleStatus; - } - - public void setEventCycleStatus(EventCycleStatus eventCycleStatus) { - this.eventCycleStatus = eventCycleStatus; - } - - public ExtendedAttribute getExtendedAttribute() { - return this.extendedAttribute; - } - - public void setExtendedAttribute(ExtendedAttribute extendedAttribute) { - this.extendedAttribute = extendedAttribute; - } - - public static class EventType { - - private String name; - - private Integer code; - - public String getName() { - return this.name; - } - - public void setName(String name) { - this.name = name; - } - - public Integer getCode() { - return this.code; - } - - public void setCode(Integer code) { - this.code = code; - } - } - - public static class EventCycleStatus { - - private String name; - - private Integer code; - - public String getName() { - return this.name; - } - - public void setName(String name) { - this.name = name; - } - - public Integer getCode() { - return this.code; - } - - public void setCode(Integer code) { - this.code = code; - } - } - - public static class ExtendedAttribute { - - private String device; - - private String diskId; - - private String onlineRepairPolicy; - - public String getDevice() { - return this.device; - } - - public void setDevice(String device) { - this.device = device; - } - - public String getDiskId() { - return this.diskId; - } - - public void setDiskId(String diskId) { - this.diskId = diskId; - } - - public String getOnlineRepairPolicy() { - return this.onlineRepairPolicy; - } - - public void setOnlineRepairPolicy(String onlineRepairPolicy) { - this.onlineRepairPolicy = onlineRepairPolicy; - } - } - } - - public static class DiskEvent { - - private String eventId; - - private String eventEndTime; - - private String eventTime; - - private EventType1 eventType1; - - public String getEventId() { - return this.eventId; - } - - public void setEventId(String eventId) { - this.eventId = eventId; - } - - public String getEventEndTime() { - return this.eventEndTime; - } - - public void setEventEndTime(String eventEndTime) { - this.eventEndTime = eventEndTime; - } - - public String getEventTime() { - return this.eventTime; - } - - public void setEventTime(String eventTime) { - this.eventTime = eventTime; - } - - public EventType1 getEventType1() { - return this.eventType1; - } - - public void setEventType1(EventType1 eventType1) { - this.eventType1 = eventType1; - } - - public static class EventType1 { - - private String name; - - private Integer code; - - public String getName() { - return this.name; - } - - public void setName(String name) { - this.name = name; - } - - public Integer getCode() { - return this.code; - } - - public void setCode(Integer code) { - this.code = code; - } - } - } - } - - @Override - public DescribeLocalDiskRepairActivitiesResponse getInstance(UnmarshallerContext context) { - return DescribeLocalDiskRepairActivitiesResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeMigrationInstancesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeMigrationInstancesRequest.java deleted file mode 100644 index c01d46fbd2..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeMigrationInstancesRequest.java +++ /dev/null @@ -1,265 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeMigrationInstancesRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private Integer pageNumber; - - private String resourceGroupId; - - private String hostname; - - private String migrationPlanId; - - private String migrationStatus; - - private Integer pageSize; - - private List tags; - - private String businessMigrationType; - - private String taskId; - - private String resourceOwnerAccount; - - private Long ownerId; - - private List instanceIds; - - private String networkMigrationType; - - private String zoneId; - public DescribeMigrationInstancesRequest() { - super("Ecs", "2016-03-14", "DescribeMigrationInstances", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - if(pageNumber != null){ - putQueryParameter("PageNumber", pageNumber.toString()); - } - } - - public String getResourceGroupId() { - return this.resourceGroupId; - } - - public void setResourceGroupId(String resourceGroupId) { - this.resourceGroupId = resourceGroupId; - if(resourceGroupId != null){ - putQueryParameter("ResourceGroupId", resourceGroupId); - } - } - - public String getHostname() { - return this.hostname; - } - - public void setHostname(String hostname) { - this.hostname = hostname; - if(hostname != null){ - putQueryParameter("Hostname", hostname); - } - } - - public String getMigrationPlanId() { - return this.migrationPlanId; - } - - public void setMigrationPlanId(String migrationPlanId) { - this.migrationPlanId = migrationPlanId; - if(migrationPlanId != null){ - putQueryParameter("MigrationPlanId", migrationPlanId); - } - } - - public String getMigrationStatus() { - return this.migrationStatus; - } - - public void setMigrationStatus(String migrationStatus) { - this.migrationStatus = migrationStatus; - if(migrationStatus != null){ - putQueryParameter("MigrationStatus", migrationStatus); - } - } - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - if(pageSize != null){ - putQueryParameter("PageSize", pageSize.toString()); - } - } - - public List getTags() { - return this.tags; - } - - public void setTags(List tags) { - this.tags = tags; - if (tags != null) { - for (int depth1 = 0; depth1 < tags.size(); depth1++) { - putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); - putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); - } - } - } - - public String getBusinessMigrationType() { - return this.businessMigrationType; - } - - public void setBusinessMigrationType(String businessMigrationType) { - this.businessMigrationType = businessMigrationType; - if(businessMigrationType != null){ - putQueryParameter("BusinessMigrationType", businessMigrationType); - } - } - - public String getTaskId() { - return this.taskId; - } - - public void setTaskId(String taskId) { - this.taskId = taskId; - if(taskId != null){ - putQueryParameter("TaskId", taskId); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public List getInstanceIds() { - return this.instanceIds; - } - - public void setInstanceIds(List instanceIds) { - this.instanceIds = instanceIds; - if (instanceIds != null) { - for (int i = 0; i < instanceIds.size(); i++) { - putQueryParameter("InstanceId." + (i + 1) , instanceIds.get(i)); - } - } - } - - public String getNetworkMigrationType() { - return this.networkMigrationType; - } - - public void setNetworkMigrationType(String networkMigrationType) { - this.networkMigrationType = networkMigrationType; - if(networkMigrationType != null){ - putQueryParameter("NetworkMigrationType", networkMigrationType); - } - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - if(zoneId != null){ - putQueryParameter("ZoneId", zoneId); - } - } - - public static class Tag { - - private String key; - - private String value; - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } - } - - @Override - public Class getResponseClass() { - return DescribeMigrationInstancesResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeMigrationInstancesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeMigrationInstancesResponse.java deleted file mode 100644 index 13b3d6da84..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeMigrationInstancesResponse.java +++ /dev/null @@ -1,458 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeMigrationInstancesResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeMigrationInstancesResponse extends AcsResponse { - - private String requestId; - - private Integer pageNumber; - - private Integer pageSize; - - private Integer totalCount; - - private List migrationInstanceSet; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - } - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - } - - public Integer getTotalCount() { - return this.totalCount; - } - - public void setTotalCount(Integer totalCount) { - this.totalCount = totalCount; - } - - public List getMigrationInstanceSet() { - return this.migrationInstanceSet; - } - - public void setMigrationInstanceSet(List migrationInstanceSet) { - this.migrationInstanceSet = migrationInstanceSet; - } - - public static class MigrationInstance { - - private String status; - - private String finishTime; - - private String targetVpcId; - - private String internetIp; - - private String transitionTime; - - private String businessMigrationType; - - private String intranetIpAfterTransition; - - private String privateMacAddress; - - private String migrationPlanId; - - private String mergeProgress; - - private Integer networkMigrationType; - - private String macAddressAfterTransition; - - private String name; - - private String targetVSwitchId; - - private String publicMacAddress; - - private Boolean networkConnectivityStatus; - - private String migrationStatus; - - private String targetZoneId; - - private String instanceId; - - private String instanceType; - - private String intranetIp; - - private String regionId; - - private String instanceChargeType; - - private String resourceGroupId; - - private Boolean changePublicIp; - - private String internetIpAfterTransition; - - private String zoneId; - - private String businessStatus; - - private Boolean hasLocalDisk; - - private String loadProgress; - - private Boolean nonStandardInstanceType; - - private String taskId; - - private List tags; - - private List securityGroupIdSets; - - private List securityGroupIdSetsAfterTransition; - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - } - - public String getFinishTime() { - return this.finishTime; - } - - public void setFinishTime(String finishTime) { - this.finishTime = finishTime; - } - - public String getTargetVpcId() { - return this.targetVpcId; - } - - public void setTargetVpcId(String targetVpcId) { - this.targetVpcId = targetVpcId; - } - - public String getInternetIp() { - return this.internetIp; - } - - public void setInternetIp(String internetIp) { - this.internetIp = internetIp; - } - - public String getTransitionTime() { - return this.transitionTime; - } - - public void setTransitionTime(String transitionTime) { - this.transitionTime = transitionTime; - } - - public String getBusinessMigrationType() { - return this.businessMigrationType; - } - - public void setBusinessMigrationType(String businessMigrationType) { - this.businessMigrationType = businessMigrationType; - } - - public String getIntranetIpAfterTransition() { - return this.intranetIpAfterTransition; - } - - public void setIntranetIpAfterTransition(String intranetIpAfterTransition) { - this.intranetIpAfterTransition = intranetIpAfterTransition; - } - - public String getPrivateMacAddress() { - return this.privateMacAddress; - } - - public void setPrivateMacAddress(String privateMacAddress) { - this.privateMacAddress = privateMacAddress; - } - - public String getMigrationPlanId() { - return this.migrationPlanId; - } - - public void setMigrationPlanId(String migrationPlanId) { - this.migrationPlanId = migrationPlanId; - } - - public String getMergeProgress() { - return this.mergeProgress; - } - - public void setMergeProgress(String mergeProgress) { - this.mergeProgress = mergeProgress; - } - - public Integer getNetworkMigrationType() { - return this.networkMigrationType; - } - - public void setNetworkMigrationType(Integer networkMigrationType) { - this.networkMigrationType = networkMigrationType; - } - - public String getMacAddressAfterTransition() { - return this.macAddressAfterTransition; - } - - public void setMacAddressAfterTransition(String macAddressAfterTransition) { - this.macAddressAfterTransition = macAddressAfterTransition; - } - - public String getName() { - return this.name; - } - - public void setName(String name) { - this.name = name; - } - - public String getTargetVSwitchId() { - return this.targetVSwitchId; - } - - public void setTargetVSwitchId(String targetVSwitchId) { - this.targetVSwitchId = targetVSwitchId; - } - - public String getPublicMacAddress() { - return this.publicMacAddress; - } - - public void setPublicMacAddress(String publicMacAddress) { - this.publicMacAddress = publicMacAddress; - } - - public Boolean getNetworkConnectivityStatus() { - return this.networkConnectivityStatus; - } - - public void setNetworkConnectivityStatus(Boolean networkConnectivityStatus) { - this.networkConnectivityStatus = networkConnectivityStatus; - } - - public String getMigrationStatus() { - return this.migrationStatus; - } - - public void setMigrationStatus(String migrationStatus) { - this.migrationStatus = migrationStatus; - } - - public String getTargetZoneId() { - return this.targetZoneId; - } - - public void setTargetZoneId(String targetZoneId) { - this.targetZoneId = targetZoneId; - } - - public String getInstanceId() { - return this.instanceId; - } - - public void setInstanceId(String instanceId) { - this.instanceId = instanceId; - } - - public String getInstanceType() { - return this.instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - } - - public String getIntranetIp() { - return this.intranetIp; - } - - public void setIntranetIp(String intranetIp) { - this.intranetIp = intranetIp; - } - - public String getRegionId() { - return this.regionId; - } - - public void setRegionId(String regionId) { - this.regionId = regionId; - } - - public String getInstanceChargeType() { - return this.instanceChargeType; - } - - public void setInstanceChargeType(String instanceChargeType) { - this.instanceChargeType = instanceChargeType; - } - - public String getResourceGroupId() { - return this.resourceGroupId; - } - - public void setResourceGroupId(String resourceGroupId) { - this.resourceGroupId = resourceGroupId; - } - - public Boolean getChangePublicIp() { - return this.changePublicIp; - } - - public void setChangePublicIp(Boolean changePublicIp) { - this.changePublicIp = changePublicIp; - } - - public String getInternetIpAfterTransition() { - return this.internetIpAfterTransition; - } - - public void setInternetIpAfterTransition(String internetIpAfterTransition) { - this.internetIpAfterTransition = internetIpAfterTransition; - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - } - - public String getBusinessStatus() { - return this.businessStatus; - } - - public void setBusinessStatus(String businessStatus) { - this.businessStatus = businessStatus; - } - - public Boolean getHasLocalDisk() { - return this.hasLocalDisk; - } - - public void setHasLocalDisk(Boolean hasLocalDisk) { - this.hasLocalDisk = hasLocalDisk; - } - - public String getLoadProgress() { - return this.loadProgress; - } - - public void setLoadProgress(String loadProgress) { - this.loadProgress = loadProgress; - } - - public Boolean getNonStandardInstanceType() { - return this.nonStandardInstanceType; - } - - public void setNonStandardInstanceType(Boolean nonStandardInstanceType) { - this.nonStandardInstanceType = nonStandardInstanceType; - } - - public String getTaskId() { - return this.taskId; - } - - public void setTaskId(String taskId) { - this.taskId = taskId; - } - - public List getTags() { - return this.tags; - } - - public void setTags(List tags) { - this.tags = tags; - } - - public List getSecurityGroupIdSets() { - return this.securityGroupIdSets; - } - - public void setSecurityGroupIdSets(List securityGroupIdSets) { - this.securityGroupIdSets = securityGroupIdSets; - } - - public List getSecurityGroupIdSetsAfterTransition() { - return this.securityGroupIdSetsAfterTransition; - } - - public void setSecurityGroupIdSetsAfterTransition(List securityGroupIdSetsAfterTransition) { - this.securityGroupIdSetsAfterTransition = securityGroupIdSetsAfterTransition; - } - - public static class Tag { - - private String tagValue; - - private String tagKey; - - public String getTagValue() { - return this.tagValue; - } - - public void setTagValue(String tagValue) { - this.tagValue = tagValue; - } - - public String getTagKey() { - return this.tagKey; - } - - public void setTagKey(String tagKey) { - this.tagKey = tagKey; - } - } - } - - @Override - public DescribeMigrationInstancesResponse getInstance(UnmarshallerContext context) { - return DescribeMigrationInstancesResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeMigrationPlansRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeMigrationPlansRequest.java deleted file mode 100644 index 355bd1c44b..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeMigrationPlansRequest.java +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeMigrationPlansRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String type; - - private Integer pageNumber; - - private String migrationPlanId; - - private Integer pageSize; - - private String resourceOwnerAccount; - - private Long ownerId; - - private String name; - - private String status; - public DescribeMigrationPlansRequest() { - super("Ecs", "2016-03-14", "DescribeMigrationPlans", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getType() { - return this.type; - } - - public void setType(String type) { - this.type = type; - if(type != null){ - putQueryParameter("Type", type); - } - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - if(pageNumber != null){ - putQueryParameter("PageNumber", pageNumber.toString()); - } - } - - public String getMigrationPlanId() { - return this.migrationPlanId; - } - - public void setMigrationPlanId(String migrationPlanId) { - this.migrationPlanId = migrationPlanId; - if(migrationPlanId != null){ - putQueryParameter("MigrationPlanId", migrationPlanId); - } - } - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - if(pageSize != null){ - putQueryParameter("PageSize", pageSize.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getName() { - return this.name; - } - - public void setName(String name) { - this.name = name; - if(name != null){ - putQueryParameter("Name", name); - } - } - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - if(status != null){ - putQueryParameter("Status", status); - } - } - - @Override - public Class getResponseClass() { - return DescribeMigrationPlansResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeMigrationPlansResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeMigrationPlansResponse.java deleted file mode 100644 index 684749f815..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeMigrationPlansResponse.java +++ /dev/null @@ -1,235 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeMigrationPlansResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeMigrationPlansResponse extends AcsResponse { - - private String requestId; - - private Integer pageNumber; - - private Integer pageSize; - - private Integer totalCount; - - private List migrationPlanSet; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - } - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - } - - public Integer getTotalCount() { - return this.totalCount; - } - - public void setTotalCount(Integer totalCount) { - this.totalCount = totalCount; - } - - public List getMigrationPlanSet() { - return this.migrationPlanSet; - } - - public void setMigrationPlanSet(List migrationPlanSet) { - this.migrationPlanSet = migrationPlanSet; - } - - public static class MigrationPlan { - - private String status; - - private String type; - - private Integer totalInstanceCount; - - private String targetVpcId; - - private String targetVSwitchId; - - private String createTime; - - private Boolean enableNetworkConnectivity; - - private Boolean enableAutoCreateVSwitch; - - private String targetZoneId; - - private Boolean remainPrivateIp; - - private String migrationPlanId; - - private Integer finishInstanceCount; - - private Boolean remainPublicMacAsPriority; - - private String name; - - private List securityGroupNos; - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - } - - public String getType() { - return this.type; - } - - public void setType(String type) { - this.type = type; - } - - public Integer getTotalInstanceCount() { - return this.totalInstanceCount; - } - - public void setTotalInstanceCount(Integer totalInstanceCount) { - this.totalInstanceCount = totalInstanceCount; - } - - public String getTargetVpcId() { - return this.targetVpcId; - } - - public void setTargetVpcId(String targetVpcId) { - this.targetVpcId = targetVpcId; - } - - public String getTargetVSwitchId() { - return this.targetVSwitchId; - } - - public void setTargetVSwitchId(String targetVSwitchId) { - this.targetVSwitchId = targetVSwitchId; - } - - public String getCreateTime() { - return this.createTime; - } - - public void setCreateTime(String createTime) { - this.createTime = createTime; - } - - public Boolean getEnableNetworkConnectivity() { - return this.enableNetworkConnectivity; - } - - public void setEnableNetworkConnectivity(Boolean enableNetworkConnectivity) { - this.enableNetworkConnectivity = enableNetworkConnectivity; - } - - public Boolean getEnableAutoCreateVSwitch() { - return this.enableAutoCreateVSwitch; - } - - public void setEnableAutoCreateVSwitch(Boolean enableAutoCreateVSwitch) { - this.enableAutoCreateVSwitch = enableAutoCreateVSwitch; - } - - public String getTargetZoneId() { - return this.targetZoneId; - } - - public void setTargetZoneId(String targetZoneId) { - this.targetZoneId = targetZoneId; - } - - public Boolean getRemainPrivateIp() { - return this.remainPrivateIp; - } - - public void setRemainPrivateIp(Boolean remainPrivateIp) { - this.remainPrivateIp = remainPrivateIp; - } - - public String getMigrationPlanId() { - return this.migrationPlanId; - } - - public void setMigrationPlanId(String migrationPlanId) { - this.migrationPlanId = migrationPlanId; - } - - public Integer getFinishInstanceCount() { - return this.finishInstanceCount; - } - - public void setFinishInstanceCount(Integer finishInstanceCount) { - this.finishInstanceCount = finishInstanceCount; - } - - public Boolean getRemainPublicMacAsPriority() { - return this.remainPublicMacAsPriority; - } - - public void setRemainPublicMacAsPriority(Boolean remainPublicMacAsPriority) { - this.remainPublicMacAsPriority = remainPublicMacAsPriority; - } - - public String getName() { - return this.name; - } - - public void setName(String name) { - this.name = name; - } - - public List getSecurityGroupNos() { - return this.securityGroupNos; - } - - public void setSecurityGroupNos(List securityGroupNos) { - this.securityGroupNos = securityGroupNos; - } - } - - @Override - public DescribeMigrationPlansResponse getInstance(UnmarshallerContext context) { - return DescribeMigrationPlansResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeMigrationPreferencesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeMigrationPreferencesRequest.java deleted file mode 100644 index 5e8f5a4401..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeMigrationPreferencesRequest.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeMigrationPreferencesRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String resourceOwnerAccount; - - private String migrationNetworkType; - - private Long ownerId; - public DescribeMigrationPreferencesRequest() { - super("Ecs", "2016-03-14", "DescribeMigrationPreferences", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getMigrationNetworkType() { - return this.migrationNetworkType; - } - - public void setMigrationNetworkType(String migrationNetworkType) { - this.migrationNetworkType = migrationNetworkType; - if(migrationNetworkType != null){ - putQueryParameter("MigrationNetworkType", migrationNetworkType); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - @Override - public Class getResponseClass() { - return DescribeMigrationPreferencesResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeMigrationPreferencesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeMigrationPreferencesResponse.java deleted file mode 100644 index 2983faa8c0..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeMigrationPreferencesResponse.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeMigrationPreferencesResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeMigrationPreferencesResponse extends AcsResponse { - - private String migrationNetworkType; - - private String requestId; - - private String regionId; - - private List targetZoneIdSet; - - public String getMigrationNetworkType() { - return this.migrationNetworkType; - } - - public void setMigrationNetworkType(String migrationNetworkType) { - this.migrationNetworkType = migrationNetworkType; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public String getRegionId() { - return this.regionId; - } - - public void setRegionId(String regionId) { - this.regionId = regionId; - } - - public List getTargetZoneIdSet() { - return this.targetZoneIdSet; - } - - public void setTargetZoneIdSet(List targetZoneIdSet) { - this.targetZoneIdSet = targetZoneIdSet; - } - - @Override - public DescribeMigrationPreferencesResponse getInstance(UnmarshallerContext context) { - return DescribeMigrationPreferencesResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeNetworkInsightsAnalysisResultRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeNetworkInsightsAnalysisResultRequest.java deleted file mode 100644 index 6db8c7500d..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeNetworkInsightsAnalysisResultRequest.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeNetworkInsightsAnalysisResultRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private Boolean dryRun; - - private String networkInsightsAnalysisId; - public DescribeNetworkInsightsAnalysisResultRequest() { - super("Ecs", "2016-03-14", "DescribeNetworkInsightsAnalysisResult", "ecs"); - setMethod(MethodType.GET); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Boolean getDryRun() { - return this.dryRun; - } - - public void setDryRun(Boolean dryRun) { - this.dryRun = dryRun; - if(dryRun != null){ - putQueryParameter("DryRun", dryRun.toString()); - } - } - - public String getNetworkInsightsAnalysisId() { - return this.networkInsightsAnalysisId; - } - - public void setNetworkInsightsAnalysisId(String networkInsightsAnalysisId) { - this.networkInsightsAnalysisId = networkInsightsAnalysisId; - if(networkInsightsAnalysisId != null){ - putQueryParameter("NetworkInsightsAnalysisId", networkInsightsAnalysisId); - } - } - - @Override - public Class getResponseClass() { - return DescribeNetworkInsightsAnalysisResultResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeNetworkInsightsAnalysisResultResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeNetworkInsightsAnalysisResultResponse.java deleted file mode 100644 index 69ef92b568..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeNetworkInsightsAnalysisResultResponse.java +++ /dev/null @@ -1,1212 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeNetworkInsightsAnalysisResultResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeNetworkInsightsAnalysisResultResponse extends AcsResponse { - - private String requestId; - - private String networkInsightsPathId; - - private String networkInsightsAnalysisId; - - private String networkPathFound; - - private String status; - - private String creationTime; - - private String source; - - private String sourceType; - - private String sourceIp; - - private String destination; - - private String destinationType; - - private String destinationIp; - - private String destinationPort; - - private String protocol; - - private String severity; - - private Integer aPIVersion; - - private List networkInsightsAnalysisComponents; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public String getNetworkInsightsPathId() { - return this.networkInsightsPathId; - } - - public void setNetworkInsightsPathId(String networkInsightsPathId) { - this.networkInsightsPathId = networkInsightsPathId; - } - - public String getNetworkInsightsAnalysisId() { - return this.networkInsightsAnalysisId; - } - - public void setNetworkInsightsAnalysisId(String networkInsightsAnalysisId) { - this.networkInsightsAnalysisId = networkInsightsAnalysisId; - } - - public String getNetworkPathFound() { - return this.networkPathFound; - } - - public void setNetworkPathFound(String networkPathFound) { - this.networkPathFound = networkPathFound; - } - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - } - - public String getCreationTime() { - return this.creationTime; - } - - public void setCreationTime(String creationTime) { - this.creationTime = creationTime; - } - - public String getSource() { - return this.source; - } - - public void setSource(String source) { - this.source = source; - } - - public String getSourceType() { - return this.sourceType; - } - - public void setSourceType(String sourceType) { - this.sourceType = sourceType; - } - - public String getSourceIp() { - return this.sourceIp; - } - - public void setSourceIp(String sourceIp) { - this.sourceIp = sourceIp; - } - - public String getDestination() { - return this.destination; - } - - public void setDestination(String destination) { - this.destination = destination; - } - - public String getDestinationType() { - return this.destinationType; - } - - public void setDestinationType(String destinationType) { - this.destinationType = destinationType; - } - - public String getDestinationIp() { - return this.destinationIp; - } - - public void setDestinationIp(String destinationIp) { - this.destinationIp = destinationIp; - } - - public String getDestinationPort() { - return this.destinationPort; - } - - public void setDestinationPort(String destinationPort) { - this.destinationPort = destinationPort; - } - - public String getBizProtocol() { - return this.protocol; - } - - public void setBizProtocol(String protocol) { - this.protocol = protocol; - } - - public String getSeverity() { - return this.severity; - } - - public void setSeverity(String severity) { - this.severity = severity; - } - - public Integer getAPIVersion() { - return this.aPIVersion; - } - - public void setAPIVersion(Integer aPIVersion) { - this.aPIVersion = aPIVersion; - } - - public List getNetworkInsightsAnalysisComponents() { - return this.networkInsightsAnalysisComponents; - } - - public void setNetworkInsightsAnalysisComponents(List networkInsightsAnalysisComponents) { - this.networkInsightsAnalysisComponents = networkInsightsAnalysisComponents; - } - - public static class NetworkInsightsAnalysisComponent { - - private String resourceId; - - private String resourceType; - - private String reachable; - - private String code; - - private String message; - - private Integer sequence; - - private String severity; - - private List diagnoseCategories; - - private List metricResults; - - private List relativeGroupIds; - - private NetworkAclEntry networkAclEntry; - - private SecurityGroupAcl securityGroupAcl; - - public String getResourceId() { - return this.resourceId; - } - - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } - - public String getResourceType() { - return this.resourceType; - } - - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - } - - public String getReachable() { - return this.reachable; - } - - public void setReachable(String reachable) { - this.reachable = reachable; - } - - public String getCode() { - return this.code; - } - - public void setCode(String code) { - this.code = code; - } - - public String getMessage() { - return this.message; - } - - public void setMessage(String message) { - this.message = message; - } - - public Integer getSequence() { - return this.sequence; - } - - public void setSequence(Integer sequence) { - this.sequence = sequence; - } - - public String getSeverity() { - return this.severity; - } - - public void setSeverity(String severity) { - this.severity = severity; - } - - public List getDiagnoseCategories() { - return this.diagnoseCategories; - } - - public void setDiagnoseCategories(List diagnoseCategories) { - this.diagnoseCategories = diagnoseCategories; - } - - public List getMetricResults() { - return this.metricResults; - } - - public void setMetricResults(List metricResults) { - this.metricResults = metricResults; - } - - public List getRelativeGroupIds() { - return this.relativeGroupIds; - } - - public void setRelativeGroupIds(List relativeGroupIds) { - this.relativeGroupIds = relativeGroupIds; - } - - public NetworkAclEntry getNetworkAclEntry() { - return this.networkAclEntry; - } - - public void setNetworkAclEntry(NetworkAclEntry networkAclEntry) { - this.networkAclEntry = networkAclEntry; - } - - public SecurityGroupAcl getSecurityGroupAcl() { - return this.securityGroupAcl; - } - - public void setSecurityGroupAcl(SecurityGroupAcl securityGroupAcl) { - this.securityGroupAcl = securityGroupAcl; - } - - public static class DiagnoseCategory { - - private String categoryName; - - private String reachable; - - private List categoryItems; - - public String getCategoryName() { - return this.categoryName; - } - - public void setCategoryName(String categoryName) { - this.categoryName = categoryName; - } - - public String getReachable() { - return this.reachable; - } - - public void setReachable(String reachable) { - this.reachable = reachable; - } - - public List getCategoryItems() { - return this.categoryItems; - } - - public void setCategoryItems(List categoryItems) { - this.categoryItems = categoryItems; - } - - public static class CategoryItem { - - private String itemName; - - private String reachable; - - private String code; - - private Explanations explanations; - - public String getItemName() { - return this.itemName; - } - - public void setItemName(String itemName) { - this.itemName = itemName; - } - - public String getReachable() { - return this.reachable; - } - - public void setReachable(String reachable) { - this.reachable = reachable; - } - - public String getCode() { - return this.code; - } - - public void setCode(String code) { - this.code = code; - } - - public Explanations getExplanations() { - return this.explanations; - } - - public void setExplanations(Explanations explanations) { - this.explanations = explanations; - } - - public static class Explanations { - - private String missingFiles; - - private Long actualPort; - - private Long expectPort; - - private String networkInterfaceName; - - private String netmask; - - private String expectIP; - - private String actualIP; - - private String ip; - - private String header; - - private String rule; - - private String usePercent; - - private Long port; - - private String expireDate; - - private String processName; - - private String groupId; - - private List topProcesses; - - private List relativeGroupIds1; - - private SecurityGroupAcl2 securityGroupAcl2; - - private NetworkAclEntry3 networkAclEntry3; - - public String getMissingFiles() { - return this.missingFiles; - } - - public void setMissingFiles(String missingFiles) { - this.missingFiles = missingFiles; - } - - public Long getActualPort() { - return this.actualPort; - } - - public void setActualPort(Long actualPort) { - this.actualPort = actualPort; - } - - public Long getExpectPort() { - return this.expectPort; - } - - public void setExpectPort(Long expectPort) { - this.expectPort = expectPort; - } - - public String getNetworkInterfaceName() { - return this.networkInterfaceName; - } - - public void setNetworkInterfaceName(String networkInterfaceName) { - this.networkInterfaceName = networkInterfaceName; - } - - public String getNetmask() { - return this.netmask; - } - - public void setNetmask(String netmask) { - this.netmask = netmask; - } - - public String getExpectIP() { - return this.expectIP; - } - - public void setExpectIP(String expectIP) { - this.expectIP = expectIP; - } - - public String getActualIP() { - return this.actualIP; - } - - public void setActualIP(String actualIP) { - this.actualIP = actualIP; - } - - public String getIp() { - return this.ip; - } - - public void setIp(String ip) { - this.ip = ip; - } - - public String getHeader() { - return this.header; - } - - public void setHeader(String header) { - this.header = header; - } - - public String getRule() { - return this.rule; - } - - public void setRule(String rule) { - this.rule = rule; - } - - public String getUsePercent() { - return this.usePercent; - } - - public void setUsePercent(String usePercent) { - this.usePercent = usePercent; - } - - public Long getPort() { - return this.port; - } - - public void setPort(Long port) { - this.port = port; - } - - public String getExpireDate() { - return this.expireDate; - } - - public void setExpireDate(String expireDate) { - this.expireDate = expireDate; - } - - public String getProcessName() { - return this.processName; - } - - public void setProcessName(String processName) { - this.processName = processName; - } - - public String getGroupId() { - return this.groupId; - } - - public void setGroupId(String groupId) { - this.groupId = groupId; - } - - public List getTopProcesses() { - return this.topProcesses; - } - - public void setTopProcesses(List topProcesses) { - this.topProcesses = topProcesses; - } - - public List getRelativeGroupIds1() { - return this.relativeGroupIds1; - } - - public void setRelativeGroupIds1(List relativeGroupIds1) { - this.relativeGroupIds1 = relativeGroupIds1; - } - - public SecurityGroupAcl2 getSecurityGroupAcl2() { - return this.securityGroupAcl2; - } - - public void setSecurityGroupAcl2(SecurityGroupAcl2 securityGroupAcl2) { - this.securityGroupAcl2 = securityGroupAcl2; - } - - public NetworkAclEntry3 getNetworkAclEntry3() { - return this.networkAclEntry3; - } - - public void setNetworkAclEntry3(NetworkAclEntry3 networkAclEntry3) { - this.networkAclEntry3 = networkAclEntry3; - } - - public static class SecurityGroupAcl2 { - - private String policy; - - private String description; - - private String sourcePortRange; - - private String createTime; - - private String sourceCidrIp; - - private String destCidrIp; - - private String innerAccessPolicy; - - private String nicType; - - private String destPortRange; - - private String destGroupId; - - public String getPolicy() { - return this.policy; - } - - public void setPolicy(String policy) { - this.policy = policy; - } - - public String getDescription() { - return this.description; - } - - public void setDescription(String description) { - this.description = description; - } - - public String getSourcePortRange() { - return this.sourcePortRange; - } - - public void setSourcePortRange(String sourcePortRange) { - this.sourcePortRange = sourcePortRange; - } - - public String getCreateTime() { - return this.createTime; - } - - public void setCreateTime(String createTime) { - this.createTime = createTime; - } - - public String getSourceCidrIp() { - return this.sourceCidrIp; - } - - public void setSourceCidrIp(String sourceCidrIp) { - this.sourceCidrIp = sourceCidrIp; - } - - public String getDestCidrIp() { - return this.destCidrIp; - } - - public void setDestCidrIp(String destCidrIp) { - this.destCidrIp = destCidrIp; - } - - public String getInnerAccessPolicy() { - return this.innerAccessPolicy; - } - - public void setInnerAccessPolicy(String innerAccessPolicy) { - this.innerAccessPolicy = innerAccessPolicy; - } - - public String getNicType() { - return this.nicType; - } - - public void setNicType(String nicType) { - this.nicType = nicType; - } - - public String getDestPortRange() { - return this.destPortRange; - } - - public void setDestPortRange(String destPortRange) { - this.destPortRange = destPortRange; - } - - public String getDestGroupId() { - return this.destGroupId; - } - - public void setDestGroupId(String destGroupId) { - this.destGroupId = destGroupId; - } - } - - public static class NetworkAclEntry3 { - - private String policy; - - private String networkAclId; - - private String vpcId; - - private String port; - - private String sourceCidrIp; - - private String networkAclName; - - private String protocol; - - private String networkAclEntryId; - - private String direction; - - public String getPolicy() { - return this.policy; - } - - public void setPolicy(String policy) { - this.policy = policy; - } - - public String getNetworkAclId() { - return this.networkAclId; - } - - public void setNetworkAclId(String networkAclId) { - this.networkAclId = networkAclId; - } - - public String getVpcId() { - return this.vpcId; - } - - public void setVpcId(String vpcId) { - this.vpcId = vpcId; - } - - public String getPort() { - return this.port; - } - - public void setPort(String port) { - this.port = port; - } - - public String getSourceCidrIp() { - return this.sourceCidrIp; - } - - public void setSourceCidrIp(String sourceCidrIp) { - this.sourceCidrIp = sourceCidrIp; - } - - public String getNetworkAclName() { - return this.networkAclName; - } - - public void setNetworkAclName(String networkAclName) { - this.networkAclName = networkAclName; - } - - public String getBizProtocol() { - return this.protocol; - } - - public void setBizProtocol(String protocol) { - this.protocol = protocol; - } - - public String getNetworkAclEntryId() { - return this.networkAclEntryId; - } - - public void setNetworkAclEntryId(String networkAclEntryId) { - this.networkAclEntryId = networkAclEntryId; - } - - public String getDirection() { - return this.direction; - } - - public void setDirection(String direction) { - this.direction = direction; - } - } - } - } - } - - public static class MetricResult { - - private String metricId; - - private String metricCategory; - - private String severity; - - private String status; - - private List issues; - - public String getMetricId() { - return this.metricId; - } - - public void setMetricId(String metricId) { - this.metricId = metricId; - } - - public String getMetricCategory() { - return this.metricCategory; - } - - public void setMetricCategory(String metricCategory) { - this.metricCategory = metricCategory; - } - - public String getSeverity() { - return this.severity; - } - - public void setSeverity(String severity) { - this.severity = severity; - } - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - } - - public List getIssues() { - return this.issues; - } - - public void setIssues(List issues) { - this.issues = issues; - } - - public static class Issue { - - private String issueId; - - private String severity; - - private String additional; - - private String occurrenceTime; - - public String getIssueId() { - return this.issueId; - } - - public void setIssueId(String issueId) { - this.issueId = issueId; - } - - public String getSeverity() { - return this.severity; - } - - public void setSeverity(String severity) { - this.severity = severity; - } - - public String getAdditional() { - return this.additional; - } - - public void setAdditional(String additional) { - this.additional = additional; - } - - public String getOccurrenceTime() { - return this.occurrenceTime; - } - - public void setOccurrenceTime(String occurrenceTime) { - this.occurrenceTime = occurrenceTime; - } - } - } - - public static class NetworkAclEntry { - - private String creationTime; - - private String networkAclId; - - private String networkAclName; - - private String networkAclEntryId; - - private String networkAclEntryName; - - private String vpcId; - - private String direction; - - private String policy; - - private String port; - - private String protocol; - - private String destinationCidrIp; - - private String sourceCidrIp; - - public String getCreationTime() { - return this.creationTime; - } - - public void setCreationTime(String creationTime) { - this.creationTime = creationTime; - } - - public String getNetworkAclId() { - return this.networkAclId; - } - - public void setNetworkAclId(String networkAclId) { - this.networkAclId = networkAclId; - } - - public String getNetworkAclName() { - return this.networkAclName; - } - - public void setNetworkAclName(String networkAclName) { - this.networkAclName = networkAclName; - } - - public String getNetworkAclEntryId() { - return this.networkAclEntryId; - } - - public void setNetworkAclEntryId(String networkAclEntryId) { - this.networkAclEntryId = networkAclEntryId; - } - - public String getNetworkAclEntryName() { - return this.networkAclEntryName; - } - - public void setNetworkAclEntryName(String networkAclEntryName) { - this.networkAclEntryName = networkAclEntryName; - } - - public String getVpcId() { - return this.vpcId; - } - - public void setVpcId(String vpcId) { - this.vpcId = vpcId; - } - - public String getDirection() { - return this.direction; - } - - public void setDirection(String direction) { - this.direction = direction; - } - - public String getPolicy() { - return this.policy; - } - - public void setPolicy(String policy) { - this.policy = policy; - } - - public String getPort() { - return this.port; - } - - public void setPort(String port) { - this.port = port; - } - - public String getBizProtocol() { - return this.protocol; - } - - public void setBizProtocol(String protocol) { - this.protocol = protocol; - } - - public String getDestinationCidrIp() { - return this.destinationCidrIp; - } - - public void setDestinationCidrIp(String destinationCidrIp) { - this.destinationCidrIp = destinationCidrIp; - } - - public String getSourceCidrIp() { - return this.sourceCidrIp; - } - - public void setSourceCidrIp(String sourceCidrIp) { - this.sourceCidrIp = sourceCidrIp; - } - } - - public static class SecurityGroupAcl { - - private String securityGroupId; - - private String description; - - private String innerAccessPolicy; - - private String createTime; - - private String permissionDescription; - - private String priority; - - private String sourceCidrIp; - - private String sourceGroupId; - - private String sourceGroupName; - - private String sourcePortRange; - - private String policy; - - private String nicType; - - private String direction; - - private String ipProtocol; - - private String destCidrIp; - - private String destGroupId; - - private String destGroupName; - - private String ipv6DestCidrIp; - - private String ipv6SourceCidrIp; - - private String destPortRange; - - public String getSecurityGroupId() { - return this.securityGroupId; - } - - public void setSecurityGroupId(String securityGroupId) { - this.securityGroupId = securityGroupId; - } - - public String getDescription() { - return this.description; - } - - public void setDescription(String description) { - this.description = description; - } - - public String getInnerAccessPolicy() { - return this.innerAccessPolicy; - } - - public void setInnerAccessPolicy(String innerAccessPolicy) { - this.innerAccessPolicy = innerAccessPolicy; - } - - public String getCreateTime() { - return this.createTime; - } - - public void setCreateTime(String createTime) { - this.createTime = createTime; - } - - public String getPermissionDescription() { - return this.permissionDescription; - } - - public void setPermissionDescription(String permissionDescription) { - this.permissionDescription = permissionDescription; - } - - public String getPriority() { - return this.priority; - } - - public void setPriority(String priority) { - this.priority = priority; - } - - public String getSourceCidrIp() { - return this.sourceCidrIp; - } - - public void setSourceCidrIp(String sourceCidrIp) { - this.sourceCidrIp = sourceCidrIp; - } - - public String getSourceGroupId() { - return this.sourceGroupId; - } - - public void setSourceGroupId(String sourceGroupId) { - this.sourceGroupId = sourceGroupId; - } - - public String getSourceGroupName() { - return this.sourceGroupName; - } - - public void setSourceGroupName(String sourceGroupName) { - this.sourceGroupName = sourceGroupName; - } - - public String getSourcePortRange() { - return this.sourcePortRange; - } - - public void setSourcePortRange(String sourcePortRange) { - this.sourcePortRange = sourcePortRange; - } - - public String getPolicy() { - return this.policy; - } - - public void setPolicy(String policy) { - this.policy = policy; - } - - public String getNicType() { - return this.nicType; - } - - public void setNicType(String nicType) { - this.nicType = nicType; - } - - public String getDirection() { - return this.direction; - } - - public void setDirection(String direction) { - this.direction = direction; - } - - public String getIpProtocol() { - return this.ipProtocol; - } - - public void setIpProtocol(String ipProtocol) { - this.ipProtocol = ipProtocol; - } - - public String getDestCidrIp() { - return this.destCidrIp; - } - - public void setDestCidrIp(String destCidrIp) { - this.destCidrIp = destCidrIp; - } - - public String getDestGroupId() { - return this.destGroupId; - } - - public void setDestGroupId(String destGroupId) { - this.destGroupId = destGroupId; - } - - public String getDestGroupName() { - return this.destGroupName; - } - - public void setDestGroupName(String destGroupName) { - this.destGroupName = destGroupName; - } - - public String getIpv6DestCidrIp() { - return this.ipv6DestCidrIp; - } - - public void setIpv6DestCidrIp(String ipv6DestCidrIp) { - this.ipv6DestCidrIp = ipv6DestCidrIp; - } - - public String getIpv6SourceCidrIp() { - return this.ipv6SourceCidrIp; - } - - public void setIpv6SourceCidrIp(String ipv6SourceCidrIp) { - this.ipv6SourceCidrIp = ipv6SourceCidrIp; - } - - public String getDestPortRange() { - return this.destPortRange; - } - - public void setDestPortRange(String destPortRange) { - this.destPortRange = destPortRange; - } - } - } - - @Override - public DescribeNetworkInsightsAnalysisResultResponse getInstance(UnmarshallerContext context) { - return DescribeNetworkInsightsAnalysisResultResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeNetworkInsightsAnalysisesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeNetworkInsightsAnalysisesRequest.java deleted file mode 100644 index ac7214eddc..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeNetworkInsightsAnalysisesRequest.java +++ /dev/null @@ -1,148 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeNetworkInsightsAnalysisesRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String networkInsightsPathId; - - private String nextToken; - - private List networkInsightsAnalysisIds; - - private String networkPathFound; - - private Boolean dryRun; - - private Integer maxResults; - - private String status; - public DescribeNetworkInsightsAnalysisesRequest() { - super("Ecs", "2016-03-14", "DescribeNetworkInsightsAnalysises", "ecs"); - setMethod(MethodType.GET); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getNetworkInsightsPathId() { - return this.networkInsightsPathId; - } - - public void setNetworkInsightsPathId(String networkInsightsPathId) { - this.networkInsightsPathId = networkInsightsPathId; - if(networkInsightsPathId != null){ - putQueryParameter("NetworkInsightsPathId", networkInsightsPathId); - } - } - - public String getNextToken() { - return this.nextToken; - } - - public void setNextToken(String nextToken) { - this.nextToken = nextToken; - if(nextToken != null){ - putQueryParameter("NextToken", nextToken); - } - } - - public List getNetworkInsightsAnalysisIds() { - return this.networkInsightsAnalysisIds; - } - - public void setNetworkInsightsAnalysisIds(List networkInsightsAnalysisIds) { - this.networkInsightsAnalysisIds = networkInsightsAnalysisIds; - if (networkInsightsAnalysisIds != null) { - for (int i = 0; i < networkInsightsAnalysisIds.size(); i++) { - putQueryParameter("NetworkInsightsAnalysisId." + (i + 1) , networkInsightsAnalysisIds.get(i)); - } - } - } - - public String getNetworkPathFound() { - return this.networkPathFound; - } - - public void setNetworkPathFound(String networkPathFound) { - this.networkPathFound = networkPathFound; - if(networkPathFound != null){ - putQueryParameter("NetworkPathFound", networkPathFound); - } - } - - public Boolean getDryRun() { - return this.dryRun; - } - - public void setDryRun(Boolean dryRun) { - this.dryRun = dryRun; - if(dryRun != null){ - putQueryParameter("DryRun", dryRun.toString()); - } - } - - public Integer getMaxResults() { - return this.maxResults; - } - - public void setMaxResults(Integer maxResults) { - this.maxResults = maxResults; - if(maxResults != null){ - putQueryParameter("MaxResults", maxResults.toString()); - } - } - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - if(status != null){ - putQueryParameter("Status", status); - } - } - - @Override - public Class getResponseClass() { - return DescribeNetworkInsightsAnalysisesResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeNetworkInsightsAnalysisesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeNetworkInsightsAnalysisesResponse.java deleted file mode 100644 index 1feee4de5f..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeNetworkInsightsAnalysisesResponse.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeNetworkInsightsAnalysisesResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeNetworkInsightsAnalysisesResponse extends AcsResponse { - - private String requestId; - - private String nextToken; - - private Integer maxResults; - - private List networkInsightsAnalysisSets; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public String getNextToken() { - return this.nextToken; - } - - public void setNextToken(String nextToken) { - this.nextToken = nextToken; - } - - public Integer getMaxResults() { - return this.maxResults; - } - - public void setMaxResults(Integer maxResults) { - this.maxResults = maxResults; - } - - public List getNetworkInsightsAnalysisSets() { - return this.networkInsightsAnalysisSets; - } - - public void setNetworkInsightsAnalysisSets(List networkInsightsAnalysisSets) { - this.networkInsightsAnalysisSets = networkInsightsAnalysisSets; - } - - public static class NetworkInsightsAnalysisSet { - - private String networkInsightsPathId; - - private String networkInsightsAnalysisId; - - private String networkPathFound; - - private String status; - - private String creationTime; - - private String severity; - - public String getNetworkInsightsPathId() { - return this.networkInsightsPathId; - } - - public void setNetworkInsightsPathId(String networkInsightsPathId) { - this.networkInsightsPathId = networkInsightsPathId; - } - - public String getNetworkInsightsAnalysisId() { - return this.networkInsightsAnalysisId; - } - - public void setNetworkInsightsAnalysisId(String networkInsightsAnalysisId) { - this.networkInsightsAnalysisId = networkInsightsAnalysisId; - } - - public String getNetworkPathFound() { - return this.networkPathFound; - } - - public void setNetworkPathFound(String networkPathFound) { - this.networkPathFound = networkPathFound; - } - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - } - - public String getCreationTime() { - return this.creationTime; - } - - public void setCreationTime(String creationTime) { - this.creationTime = creationTime; - } - - public String getSeverity() { - return this.severity; - } - - public void setSeverity(String severity) { - this.severity = severity; - } - } - - @Override - public DescribeNetworkInsightsAnalysisesResponse getInstance(UnmarshallerContext context) { - return DescribeNetworkInsightsAnalysisesResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeNetworkInsightsPathsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeNetworkInsightsPathsRequest.java deleted file mode 100644 index 59853cfd59..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeNetworkInsightsPathsRequest.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeNetworkInsightsPathsRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private List networkInsightsPathIds; - - private String nextToken; - - private String networkPathFound; - - private Boolean dryRun; - - private Integer maxResults; - - private String status; - public DescribeNetworkInsightsPathsRequest() { - super("Ecs", "2016-03-14", "DescribeNetworkInsightsPaths", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public List getNetworkInsightsPathIds() { - return this.networkInsightsPathIds; - } - - public void setNetworkInsightsPathIds(List networkInsightsPathIds) { - this.networkInsightsPathIds = networkInsightsPathIds; - if (networkInsightsPathIds != null) { - for (int i = 0; i < networkInsightsPathIds.size(); i++) { - putQueryParameter("NetworkInsightsPathId." + (i + 1) , networkInsightsPathIds.get(i)); - } - } - } - - public String getNextToken() { - return this.nextToken; - } - - public void setNextToken(String nextToken) { - this.nextToken = nextToken; - if(nextToken != null){ - putQueryParameter("NextToken", nextToken); - } - } - - public String getNetworkPathFound() { - return this.networkPathFound; - } - - public void setNetworkPathFound(String networkPathFound) { - this.networkPathFound = networkPathFound; - if(networkPathFound != null){ - putQueryParameter("NetworkPathFound", networkPathFound); - } - } - - public Boolean getDryRun() { - return this.dryRun; - } - - public void setDryRun(Boolean dryRun) { - this.dryRun = dryRun; - if(dryRun != null){ - putQueryParameter("DryRun", dryRun.toString()); - } - } - - public Integer getMaxResults() { - return this.maxResults; - } - - public void setMaxResults(Integer maxResults) { - this.maxResults = maxResults; - if(maxResults != null){ - putQueryParameter("MaxResults", maxResults.toString()); - } - } - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - if(status != null){ - putQueryParameter("Status", status); - } - } - - @Override - public Class getResponseClass() { - return DescribeNetworkInsightsPathsResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeNetworkInsightsPathsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeNetworkInsightsPathsResponse.java deleted file mode 100644 index 7bb9c7dcb6..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeNetworkInsightsPathsResponse.java +++ /dev/null @@ -1,195 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeNetworkInsightsPathsResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeNetworkInsightsPathsResponse extends AcsResponse { - - private String requestId; - - private String nextToken; - - private Integer maxResults; - - private List networkInsightsPathSets; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public String getNextToken() { - return this.nextToken; - } - - public void setNextToken(String nextToken) { - this.nextToken = nextToken; - } - - public Integer getMaxResults() { - return this.maxResults; - } - - public void setMaxResults(Integer maxResults) { - this.maxResults = maxResults; - } - - public List getNetworkInsightsPathSets() { - return this.networkInsightsPathSets; - } - - public void setNetworkInsightsPathSets(List networkInsightsPathSets) { - this.networkInsightsPathSets = networkInsightsPathSets; - } - - public static class NetworkInsightsPathSet { - - private String networkInsightsPathId; - - private String networkInsightsPathName; - - private String creationTime; - - private String source; - - private String sourceType; - - private String destination; - - private String destinationType; - - private String destinationPort; - - private String protocol; - - private String status; - - private String networkPathFound; - - private String severity; - - public String getNetworkInsightsPathId() { - return this.networkInsightsPathId; - } - - public void setNetworkInsightsPathId(String networkInsightsPathId) { - this.networkInsightsPathId = networkInsightsPathId; - } - - public String getNetworkInsightsPathName() { - return this.networkInsightsPathName; - } - - public void setNetworkInsightsPathName(String networkInsightsPathName) { - this.networkInsightsPathName = networkInsightsPathName; - } - - public String getCreationTime() { - return this.creationTime; - } - - public void setCreationTime(String creationTime) { - this.creationTime = creationTime; - } - - public String getSource() { - return this.source; - } - - public void setSource(String source) { - this.source = source; - } - - public String getSourceType() { - return this.sourceType; - } - - public void setSourceType(String sourceType) { - this.sourceType = sourceType; - } - - public String getDestination() { - return this.destination; - } - - public void setDestination(String destination) { - this.destination = destination; - } - - public String getDestinationType() { - return this.destinationType; - } - - public void setDestinationType(String destinationType) { - this.destinationType = destinationType; - } - - public String getDestinationPort() { - return this.destinationPort; - } - - public void setDestinationPort(String destinationPort) { - this.destinationPort = destinationPort; - } - - public String getBizProtocol() { - return this.protocol; - } - - public void setBizProtocol(String protocol) { - this.protocol = protocol; - } - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - } - - public String getNetworkPathFound() { - return this.networkPathFound; - } - - public void setNetworkPathFound(String networkPathFound) { - this.networkPathFound = networkPathFound; - } - - public String getSeverity() { - return this.severity; - } - - public void setSeverity(String severity) { - this.severity = severity; - } - } - - @Override - public DescribeNetworkInsightsPathsResponse getInstance(UnmarshallerContext context) { - return DescribeNetworkInsightsPathsResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeOrderAutoRebootTimeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeOrderAutoRebootTimeRequest.java deleted file mode 100644 index a28b25435f..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeOrderAutoRebootTimeRequest.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeOrderAutoRebootTimeRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String resourceOwnerAccount; - - private Long orderId; - - private Long ownerId; - public DescribeOrderAutoRebootTimeRequest() { - super("Ecs", "2016-03-14", "DescribeOrderAutoRebootTime", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public Long getOrderId() { - return this.orderId; - } - - public void setOrderId(Long orderId) { - this.orderId = orderId; - if(orderId != null){ - putQueryParameter("OrderId", orderId.toString()); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - @Override - public Class getResponseClass() { - return DescribeOrderAutoRebootTimeResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeOrderAutoRebootTimeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeOrderAutoRebootTimeResponse.java deleted file mode 100644 index c6202a5ebd..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeOrderAutoRebootTimeResponse.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeOrderAutoRebootTimeResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeOrderAutoRebootTimeResponse extends AcsResponse { - - private String requestId; - - private DescribeOrderAutoRebootTimeInfo describeOrderAutoRebootTimeInfo; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public DescribeOrderAutoRebootTimeInfo getDescribeOrderAutoRebootTimeInfo() { - return this.describeOrderAutoRebootTimeInfo; - } - - public void setDescribeOrderAutoRebootTimeInfo(DescribeOrderAutoRebootTimeInfo describeOrderAutoRebootTimeInfo) { - this.describeOrderAutoRebootTimeInfo = describeOrderAutoRebootTimeInfo; - } - - public static class DescribeOrderAutoRebootTimeInfo { - - private String autoRebootTime; - - private String instanceId; - - private Long orderId; - - public String getAutoRebootTime() { - return this.autoRebootTime; - } - - public void setAutoRebootTime(String autoRebootTime) { - this.autoRebootTime = autoRebootTime; - } - - public String getInstanceId() { - return this.instanceId; - } - - public void setInstanceId(String instanceId) { - this.instanceId = instanceId; - } - - public Long getOrderId() { - return this.orderId; - } - - public void setOrderId(Long orderId) { - this.orderId = orderId; - } - } - - @Override - public DescribeOrderAutoRebootTimeResponse getInstance(UnmarshallerContext context) { - return DescribeOrderAutoRebootTimeResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribePrePaidResourceRefundPriceRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribePrePaidResourceRefundPriceRequest.java deleted file mode 100644 index 5e3baf0379..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribePrePaidResourceRefundPriceRequest.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribePrePaidResourceRefundPriceRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String resourceId; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String resourceType; - public DescribePrePaidResourceRefundPriceRequest() { - super("Ecs", "2016-03-14", "DescribePrePaidResourceRefundPrice", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getResourceId() { - return this.resourceId; - } - - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - if(resourceId != null){ - putQueryParameter("ResourceId", resourceId); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getResourceType() { - return this.resourceType; - } - - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - if(resourceType != null){ - putQueryParameter("ResourceType", resourceType); - } - } - - @Override - public Class getResponseClass() { - return DescribePrePaidResourceRefundPriceResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribePrePaidResourceRefundPriceResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribePrePaidResourceRefundPriceResponse.java deleted file mode 100644 index a19ba295ed..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribePrePaidResourceRefundPriceResponse.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribePrePaidResourceRefundPriceResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribePrePaidResourceRefundPriceResponse extends AcsResponse { - - private String requestId; - - private Float refunds; - - private String currency; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public Float getRefunds() { - return this.refunds; - } - - public void setRefunds(Float refunds) { - this.refunds = refunds; - } - - public String getCurrency() { - return this.currency; - } - - public void setCurrency(String currency) { - this.currency = currency; - } - - @Override - public DescribePrePaidResourceRefundPriceResponse getInstance(UnmarshallerContext context) { - return DescribePrePaidResourceRefundPriceResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribePriceRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribePriceRequest.java deleted file mode 100644 index a3ac6ef733..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribePriceRequest.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribePriceRequest extends RpcAcsRequest { - - - private String commodity; - - private Long resourceOwnerId; - - private Boolean needSpotPrice; - - private String networkType; - - private String businessInfo; - - private String fromApp; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private Boolean verbose; - - private String defaultVpc; - - private String orderType; - public DescribePriceRequest() { - super("Ecs", "2016-03-14", "DescribePrice", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public String getCommodity() { - return this.commodity; - } - - public void setCommodity(String commodity) { - this.commodity = commodity; - if(commodity != null){ - putQueryParameter("Commodity", commodity); - } - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Boolean getNeedSpotPrice() { - return this.needSpotPrice; - } - - public void setNeedSpotPrice(Boolean needSpotPrice) { - this.needSpotPrice = needSpotPrice; - if(needSpotPrice != null){ - putQueryParameter("NeedSpotPrice", needSpotPrice.toString()); - } - } - - public String getNetworkType() { - return this.networkType; - } - - public void setNetworkType(String networkType) { - this.networkType = networkType; - if(networkType != null){ - putQueryParameter("NetworkType", networkType); - } - } - - public String getBusinessInfo() { - return this.businessInfo; - } - - public void setBusinessInfo(String businessInfo) { - this.businessInfo = businessInfo; - if(businessInfo != null){ - putQueryParameter("BusinessInfo", businessInfo); - } - } - - public String getFromApp() { - return this.fromApp; - } - - public void setFromApp(String fromApp) { - this.fromApp = fromApp; - if(fromApp != null){ - putQueryParameter("FromApp", fromApp); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public Boolean getVerbose() { - return this.verbose; - } - - public void setVerbose(Boolean verbose) { - this.verbose = verbose; - if(verbose != null){ - putQueryParameter("Verbose", verbose.toString()); - } - } - - public String getDefaultVpc() { - return this.defaultVpc; - } - - public void setDefaultVpc(String defaultVpc) { - this.defaultVpc = defaultVpc; - if(defaultVpc != null){ - putQueryParameter("DefaultVpc", defaultVpc); - } - } - - public String getOrderType() { - return this.orderType; - } - - public void setOrderType(String orderType) { - this.orderType = orderType; - if(orderType != null){ - putQueryParameter("OrderType", orderType); - } - } - - @Override - public Class getResponseClass() { - return DescribePriceResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribePriceResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribePriceResponse.java deleted file mode 100644 index 781a2c370a..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribePriceResponse.java +++ /dev/null @@ -1,466 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribePriceResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribePriceResponse extends AcsResponse { - - private String requestId; - - private PriceInfo priceInfo; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public PriceInfo getPriceInfo() { - return this.priceInfo; - } - - public void setPriceInfo(PriceInfo priceInfo) { - this.priceInfo = priceInfo; - } - - public static class PriceInfo { - - private List rules; - - private List orderParams; - - private Order order; - - private PriceWarning priceWarning; - - public List getRules() { - return this.rules; - } - - public void setRules(List rules) { - this.rules = rules; - } - - public List getOrderParams() { - return this.orderParams; - } - - public void setOrderParams(List orderParams) { - this.orderParams = orderParams; - } - - public Order getOrder() { - return this.order; - } - - public void setOrder(Order order) { - this.order = order; - } - - public PriceWarning getPriceWarning() { - return this.priceWarning; - } - - public void setPriceWarning(PriceWarning priceWarning) { - this.priceWarning = priceWarning; - } - - public static class Rule { - - private String title; - - private String name; - - private Long ruleId; - - public String getTitle() { - return this.title; - } - - public void setTitle(String title) { - this.title = title; - } - - public String getName() { - return this.name; - } - - public void setName(String name) { - this.name = name; - } - - public Long getRuleId() { - return this.ruleId; - } - - public void setRuleId(Long ruleId) { - this.ruleId = ruleId; - } - } - - public static class Order { - - private Float discountPrice; - - private Float tradePrice; - - private Float originalPrice; - - private Float spotInstanceTypePrice; - - private String currency; - - private Float spotInstanceTypeOriginalPrice; - - private List coupons; - - private List detailInfos; - - private List subOrders; - - private List ruleIdSet; - - public Float getDiscountPrice() { - return this.discountPrice; - } - - public void setDiscountPrice(Float discountPrice) { - this.discountPrice = discountPrice; - } - - public Float getTradePrice() { - return this.tradePrice; - } - - public void setTradePrice(Float tradePrice) { - this.tradePrice = tradePrice; - } - - public Float getOriginalPrice() { - return this.originalPrice; - } - - public void setOriginalPrice(Float originalPrice) { - this.originalPrice = originalPrice; - } - - public Float getSpotInstanceTypePrice() { - return this.spotInstanceTypePrice; - } - - public void setSpotInstanceTypePrice(Float spotInstanceTypePrice) { - this.spotInstanceTypePrice = spotInstanceTypePrice; - } - - public String getCurrency() { - return this.currency; - } - - public void setCurrency(String currency) { - this.currency = currency; - } - - public Float getSpotInstanceTypeOriginalPrice() { - return this.spotInstanceTypeOriginalPrice; - } - - public void setSpotInstanceTypeOriginalPrice(Float spotInstanceTypeOriginalPrice) { - this.spotInstanceTypeOriginalPrice = spotInstanceTypeOriginalPrice; - } - - public List getCoupons() { - return this.coupons; - } - - public void setCoupons(List coupons) { - this.coupons = coupons; - } - - public List getDetailInfos() { - return this.detailInfos; - } - - public void setDetailInfos(List detailInfos) { - this.detailInfos = detailInfos; - } - - public List getSubOrders() { - return this.subOrders; - } - - public void setSubOrders(List subOrders) { - this.subOrders = subOrders; - } - - public List getRuleIdSet() { - return this.ruleIdSet; - } - - public void setRuleIdSet(List ruleIdSet) { - this.ruleIdSet = ruleIdSet; - } - - public static class Coupon { - - private Boolean isSelected; - - private String couponNo; - - private String description; - - private String name; - - private Float discountOff; - - private String optionCode; - - private List ruleIds; - - public Boolean getIsSelected() { - return this.isSelected; - } - - public void setIsSelected(Boolean isSelected) { - this.isSelected = isSelected; - } - - public String getCouponNo() { - return this.couponNo; - } - - public void setCouponNo(String couponNo) { - this.couponNo = couponNo; - } - - public String getDescription() { - return this.description; - } - - public void setDescription(String description) { - this.description = description; - } - - public String getName() { - return this.name; - } - - public void setName(String name) { - this.name = name; - } - - public Float getDiscountOff() { - return this.discountOff; - } - - public void setDiscountOff(Float discountOff) { - this.discountOff = discountOff; - } - - public String getOptionCode() { - return this.optionCode; - } - - public void setOptionCode(String optionCode) { - this.optionCode = optionCode; - } - - public List getRuleIds() { - return this.ruleIds; - } - - public void setRuleIds(List ruleIds) { - this.ruleIds = ruleIds; - } - } - - public static class ResourcePriceModel { - - private String resource; - - private Float originalPrice; - - private Float discountPrice; - - private Float tradePrice; - - private List subRules; - - public String getResource() { - return this.resource; - } - - public void setResource(String resource) { - this.resource = resource; - } - - public Float getOriginalPrice() { - return this.originalPrice; - } - - public void setOriginalPrice(Float originalPrice) { - this.originalPrice = originalPrice; - } - - public Float getDiscountPrice() { - return this.discountPrice; - } - - public void setDiscountPrice(Float discountPrice) { - this.discountPrice = discountPrice; - } - - public Float getTradePrice() { - return this.tradePrice; - } - - public void setTradePrice(Float tradePrice) { - this.tradePrice = tradePrice; - } - - public List getSubRules() { - return this.subRules; - } - - public void setSubRules(List subRules) { - this.subRules = subRules; - } - - public static class Rule1 { - - private String title; - - private String name; - - private Long ruleId; - - public String getTitle() { - return this.title; - } - - public void setTitle(String title) { - this.title = title; - } - - public String getName() { - return this.name; - } - - public void setName(String name) { - this.name = name; - } - - public Long getRuleId() { - return this.ruleId; - } - - public void setRuleId(Long ruleId) { - this.ruleId = ruleId; - } - } - } - - public static class SubOrder { - - private Float originalPrice; - - private String instanceId; - - private Float discountPrice; - - private Float tradePrice; - - private List ruleIdSet2; - - public Float getOriginalPrice() { - return this.originalPrice; - } - - public void setOriginalPrice(Float originalPrice) { - this.originalPrice = originalPrice; - } - - public String getInstanceId() { - return this.instanceId; - } - - public void setInstanceId(String instanceId) { - this.instanceId = instanceId; - } - - public Float getDiscountPrice() { - return this.discountPrice; - } - - public void setDiscountPrice(Float discountPrice) { - this.discountPrice = discountPrice; - } - - public Float getTradePrice() { - return this.tradePrice; - } - - public void setTradePrice(Float tradePrice) { - this.tradePrice = tradePrice; - } - - public List getRuleIdSet2() { - return this.ruleIdSet2; - } - - public void setRuleIdSet2(List ruleIdSet2) { - this.ruleIdSet2 = ruleIdSet2; - } - } - } - - public static class PriceWarning { - - private String msg; - - private String code; - - public String getMsg() { - return this.msg; - } - - public void setMsg(String msg) { - this.msg = msg; - } - - public String getCode() { - return this.code; - } - - public void setCode(String code) { - this.code = code; - } - } - } - - @Override - public DescribePriceResponse getInstance(UnmarshallerContext context) { - return DescribePriceResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribePrivatePoolsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribePrivatePoolsRequest.java deleted file mode 100644 index 7911316032..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribePrivatePoolsRequest.java +++ /dev/null @@ -1,276 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribePrivatePoolsRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String privatePoolOptionsType; - - private String platform; - - private String resourceGroupId; - - private String nextToken; - - private String instanceType; - - private List tags; - - private String startTimeType; - - private String instanceChargeType; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String privatePoolOptionsIds; - - private Integer maxResults; - - private String zoneId; - - private String status; - public DescribePrivatePoolsRequest() { - super("Ecs", "2016-03-14", "DescribePrivatePools", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getPrivatePoolOptionsType() { - return this.privatePoolOptionsType; - } - - public void setPrivatePoolOptionsType(String privatePoolOptionsType) { - this.privatePoolOptionsType = privatePoolOptionsType; - if(privatePoolOptionsType != null){ - putQueryParameter("PrivatePoolOptions.Type", privatePoolOptionsType); - } - } - - public String getPlatform() { - return this.platform; - } - - public void setPlatform(String platform) { - this.platform = platform; - if(platform != null){ - putQueryParameter("Platform", platform); - } - } - - public String getResourceGroupId() { - return this.resourceGroupId; - } - - public void setResourceGroupId(String resourceGroupId) { - this.resourceGroupId = resourceGroupId; - if(resourceGroupId != null){ - putQueryParameter("ResourceGroupId", resourceGroupId); - } - } - - public String getNextToken() { - return this.nextToken; - } - - public void setNextToken(String nextToken) { - this.nextToken = nextToken; - if(nextToken != null){ - putQueryParameter("NextToken", nextToken); - } - } - - public String getInstanceType() { - return this.instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - if(instanceType != null){ - putQueryParameter("InstanceType", instanceType); - } - } - - public List getTags() { - return this.tags; - } - - public void setTags(List tags) { - this.tags = tags; - if (tags != null) { - for (int depth1 = 0; depth1 < tags.size(); depth1++) { - putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); - putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); - } - } - } - - public String getStartTimeType() { - return this.startTimeType; - } - - public void setStartTimeType(String startTimeType) { - this.startTimeType = startTimeType; - if(startTimeType != null){ - putQueryParameter("StartTimeType", startTimeType); - } - } - - public String getInstanceChargeType() { - return this.instanceChargeType; - } - - public void setInstanceChargeType(String instanceChargeType) { - this.instanceChargeType = instanceChargeType; - if(instanceChargeType != null){ - putQueryParameter("InstanceChargeType", instanceChargeType); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getPrivatePoolOptionsIds() { - return this.privatePoolOptionsIds; - } - - public void setPrivatePoolOptionsIds(String privatePoolOptionsIds) { - this.privatePoolOptionsIds = privatePoolOptionsIds; - if(privatePoolOptionsIds != null){ - putQueryParameter("PrivatePoolOptions.Ids", privatePoolOptionsIds); - } - } - - public Integer getMaxResults() { - return this.maxResults; - } - - public void setMaxResults(Integer maxResults) { - this.maxResults = maxResults; - if(maxResults != null){ - putQueryParameter("MaxResults", maxResults.toString()); - } - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - if(zoneId != null){ - putQueryParameter("ZoneId", zoneId); - } - } - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - if(status != null){ - putQueryParameter("Status", status); - } - } - - public static class Tag { - - private String key; - - private String value; - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } - } - - @Override - public Class getResponseClass() { - return DescribePrivatePoolsResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribePrivatePoolsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribePrivatePoolsResponse.java deleted file mode 100644 index 9e260a0912..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribePrivatePoolsResponse.java +++ /dev/null @@ -1,341 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribePrivatePoolsResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribePrivatePoolsResponse extends AcsResponse { - - private String nextToken; - - private String requestId; - - private Integer totalCount; - - private Integer maxResults; - - private List privatePoolSet; - - public String getNextToken() { - return this.nextToken; - } - - public void setNextToken(String nextToken) { - this.nextToken = nextToken; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public Integer getTotalCount() { - return this.totalCount; - } - - public void setTotalCount(Integer totalCount) { - this.totalCount = totalCount; - } - - public Integer getMaxResults() { - return this.maxResults; - } - - public void setMaxResults(Integer maxResults) { - this.maxResults = maxResults; - } - - public List getPrivatePoolSet() { - return this.privatePoolSet; - } - - public void setPrivatePoolSet(List privatePoolSet) { - this.privatePoolSet = privatePoolSet; - } - - public static class PrivatePoolItem { - - private String status; - - private String privatePoolOptionsMatchCriteria; - - private String privatePoolOptionsId; - - private Integer usedAssuranceTimes; - - private String latestStartTime; - - private String privatePoolOptionsName; - - private String privatePoolOptionsType; - - private String regionId; - - private String endTime; - - private String startTime; - - private String description; - - private String endTimeType; - - private String resourceGroupId; - - private String platform; - - private String totalAssuranceTimes; - - private String instanceChargeType; - - private String startTimeType; - - private List allocatedResources; - - private List tags; - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - } - - public String getPrivatePoolOptionsMatchCriteria() { - return this.privatePoolOptionsMatchCriteria; - } - - public void setPrivatePoolOptionsMatchCriteria(String privatePoolOptionsMatchCriteria) { - this.privatePoolOptionsMatchCriteria = privatePoolOptionsMatchCriteria; - } - - public String getPrivatePoolOptionsId() { - return this.privatePoolOptionsId; - } - - public void setPrivatePoolOptionsId(String privatePoolOptionsId) { - this.privatePoolOptionsId = privatePoolOptionsId; - } - - public Integer getUsedAssuranceTimes() { - return this.usedAssuranceTimes; - } - - public void setUsedAssuranceTimes(Integer usedAssuranceTimes) { - this.usedAssuranceTimes = usedAssuranceTimes; - } - - public String getLatestStartTime() { - return this.latestStartTime; - } - - public void setLatestStartTime(String latestStartTime) { - this.latestStartTime = latestStartTime; - } - - public String getPrivatePoolOptionsName() { - return this.privatePoolOptionsName; - } - - public void setPrivatePoolOptionsName(String privatePoolOptionsName) { - this.privatePoolOptionsName = privatePoolOptionsName; - } - - public String getPrivatePoolOptionsType() { - return this.privatePoolOptionsType; - } - - public void setPrivatePoolOptionsType(String privatePoolOptionsType) { - this.privatePoolOptionsType = privatePoolOptionsType; - } - - public String getRegionId() { - return this.regionId; - } - - public void setRegionId(String regionId) { - this.regionId = regionId; - } - - public String getEndTime() { - return this.endTime; - } - - public void setEndTime(String endTime) { - this.endTime = endTime; - } - - public String getStartTime() { - return this.startTime; - } - - public void setStartTime(String startTime) { - this.startTime = startTime; - } - - public String getDescription() { - return this.description; - } - - public void setDescription(String description) { - this.description = description; - } - - public String getEndTimeType() { - return this.endTimeType; - } - - public void setEndTimeType(String endTimeType) { - this.endTimeType = endTimeType; - } - - public String getResourceGroupId() { - return this.resourceGroupId; - } - - public void setResourceGroupId(String resourceGroupId) { - this.resourceGroupId = resourceGroupId; - } - - public String getPlatform() { - return this.platform; - } - - public void setPlatform(String platform) { - this.platform = platform; - } - - public String getTotalAssuranceTimes() { - return this.totalAssuranceTimes; - } - - public void setTotalAssuranceTimes(String totalAssuranceTimes) { - this.totalAssuranceTimes = totalAssuranceTimes; - } - - public String getInstanceChargeType() { - return this.instanceChargeType; - } - - public void setInstanceChargeType(String instanceChargeType) { - this.instanceChargeType = instanceChargeType; - } - - public String getStartTimeType() { - return this.startTimeType; - } - - public void setStartTimeType(String startTimeType) { - this.startTimeType = startTimeType; - } - - public List getAllocatedResources() { - return this.allocatedResources; - } - - public void setAllocatedResources(List allocatedResources) { - this.allocatedResources = allocatedResources; - } - - public List getTags() { - return this.tags; - } - - public void setTags(List tags) { - this.tags = tags; - } - - public static class AllocatedResource { - - private Integer usedAmount; - - private Integer totalAmount; - - private String zoneId; - - private String instanceType; - - public Integer getUsedAmount() { - return this.usedAmount; - } - - public void setUsedAmount(Integer usedAmount) { - this.usedAmount = usedAmount; - } - - public Integer getTotalAmount() { - return this.totalAmount; - } - - public void setTotalAmount(Integer totalAmount) { - this.totalAmount = totalAmount; - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - } - - public String getInstanceType() { - return this.instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - } - } - - public static class Tag { - - private String tagValue; - - private String tagKey; - - public String getTagValue() { - return this.tagValue; - } - - public void setTagValue(String tagValue) { - this.tagValue = tagValue; - } - - public String getTagKey() { - return this.tagKey; - } - - public void setTagKey(String tagKey) { - this.tagKey = tagKey; - } - } - } - - @Override - public DescribePrivatePoolsResponse getInstance(UnmarshallerContext context) { - return DescribePrivatePoolsResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeRecommendProductRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeRecommendProductRequest.java deleted file mode 100644 index f8ac2e144d..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeRecommendProductRequest.java +++ /dev/null @@ -1,304 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeRecommendProductRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private Float memory; - - private String ioOptimized; - - private String networkType; - - private Integer cores; - - private String systemDiskCategory; - - private String instanceType; - - private String instanceChargeType; - - private Integer amount; - - private Float maxPrice; - - private String resourceOwnerAccount; - - private String zoneMatchMode; - - private String ownerAccount; - - private List instanceTypeFamilys; - - private Long ownerId; - - private String spotStrategy; - - private String priorityStrategy; - - private String instanceFamilyLevel; - - private Boolean instanceTypeSupportIPv6; - - private String zoneId; - public DescribeRecommendProductRequest() { - super("Ecs", "2016-03-14", "DescribeRecommendProduct", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Float getMemory() { - return this.memory; - } - - public void setMemory(Float memory) { - this.memory = memory; - if(memory != null){ - putQueryParameter("Memory", memory.toString()); - } - } - - public String getIoOptimized() { - return this.ioOptimized; - } - - public void setIoOptimized(String ioOptimized) { - this.ioOptimized = ioOptimized; - if(ioOptimized != null){ - putQueryParameter("IoOptimized", ioOptimized); - } - } - - public String getNetworkType() { - return this.networkType; - } - - public void setNetworkType(String networkType) { - this.networkType = networkType; - if(networkType != null){ - putQueryParameter("NetworkType", networkType); - } - } - - public Integer getCores() { - return this.cores; - } - - public void setCores(Integer cores) { - this.cores = cores; - if(cores != null){ - putQueryParameter("Cores", cores.toString()); - } - } - - public String getSystemDiskCategory() { - return this.systemDiskCategory; - } - - public void setSystemDiskCategory(String systemDiskCategory) { - this.systemDiskCategory = systemDiskCategory; - if(systemDiskCategory != null){ - putQueryParameter("SystemDiskCategory", systemDiskCategory); - } - } - - public String getInstanceType() { - return this.instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - if(instanceType != null){ - putQueryParameter("InstanceType", instanceType); - } - } - - public String getInstanceChargeType() { - return this.instanceChargeType; - } - - public void setInstanceChargeType(String instanceChargeType) { - this.instanceChargeType = instanceChargeType; - if(instanceChargeType != null){ - putQueryParameter("InstanceChargeType", instanceChargeType); - } - } - - public Integer getAmount() { - return this.amount; - } - - public void setAmount(Integer amount) { - this.amount = amount; - if(amount != null){ - putQueryParameter("Amount", amount.toString()); - } - } - - public Float getMaxPrice() { - return this.maxPrice; - } - - public void setMaxPrice(Float maxPrice) { - this.maxPrice = maxPrice; - if(maxPrice != null){ - putQueryParameter("MaxPrice", maxPrice.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getZoneMatchMode() { - return this.zoneMatchMode; - } - - public void setZoneMatchMode(String zoneMatchMode) { - this.zoneMatchMode = zoneMatchMode; - if(zoneMatchMode != null){ - putQueryParameter("ZoneMatchMode", zoneMatchMode); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public List getInstanceTypeFamilys() { - return this.instanceTypeFamilys; - } - - public void setInstanceTypeFamilys(List instanceTypeFamilys) { - this.instanceTypeFamilys = instanceTypeFamilys; - if (instanceTypeFamilys != null) { - for (int i = 0; i < instanceTypeFamilys.size(); i++) { - putQueryParameter("InstanceTypeFamily." + (i + 1) , instanceTypeFamilys.get(i)); - } - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getSpotStrategy() { - return this.spotStrategy; - } - - public void setSpotStrategy(String spotStrategy) { - this.spotStrategy = spotStrategy; - if(spotStrategy != null){ - putQueryParameter("SpotStrategy", spotStrategy); - } - } - - public String getPriorityStrategy() { - return this.priorityStrategy; - } - - public void setPriorityStrategy(String priorityStrategy) { - this.priorityStrategy = priorityStrategy; - if(priorityStrategy != null){ - putQueryParameter("PriorityStrategy", priorityStrategy); - } - } - - public String getInstanceFamilyLevel() { - return this.instanceFamilyLevel; - } - - public void setInstanceFamilyLevel(String instanceFamilyLevel) { - this.instanceFamilyLevel = instanceFamilyLevel; - if(instanceFamilyLevel != null){ - putQueryParameter("InstanceFamilyLevel", instanceFamilyLevel); - } - } - - public Boolean getInstanceTypeSupportIPv6() { - return this.instanceTypeSupportIPv6; - } - - public void setInstanceTypeSupportIPv6(Boolean instanceTypeSupportIPv6) { - this.instanceTypeSupportIPv6 = instanceTypeSupportIPv6; - if(instanceTypeSupportIPv6 != null){ - putQueryParameter("InstanceTypeSupportIPv6", instanceTypeSupportIPv6.toString()); - } - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - if(zoneId != null){ - putQueryParameter("ZoneId", zoneId); - } - } - - @Override - public Class getResponseClass() { - return DescribeRecommendProductResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeRecommendProductResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeRecommendProductResponse.java deleted file mode 100644 index 00eadf8235..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeRecommendProductResponse.java +++ /dev/null @@ -1,221 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeRecommendProductResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeRecommendProductResponse extends AcsResponse { - - private String requestId; - - private List recommendProducts; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public List getRecommendProducts() { - return this.recommendProducts; - } - - public void setRecommendProducts(List recommendProducts) { - this.recommendProducts = recommendProducts; - } - - public static class RecommendProduct { - - private String zoneId; - - private List recommendInstanceTypes; - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - } - - public List getRecommendInstanceTypes() { - return this.recommendInstanceTypes; - } - - public void setRecommendInstanceTypes(List recommendInstanceTypes) { - this.recommendInstanceTypes = recommendInstanceTypes; - } - - public static class RecommendInstanceType { - - private Float price; - - private String capacitySpecification; - - private Integer priority; - - private String networkType; - - private String spotStrategy; - - private String instanceChargeType; - - private InstanceType instanceType; - - public Float getPrice() { - return this.price; - } - - public void setPrice(Float price) { - this.price = price; - } - - public String getCapacitySpecification() { - return this.capacitySpecification; - } - - public void setCapacitySpecification(String capacitySpecification) { - this.capacitySpecification = capacitySpecification; - } - - public Integer getPriority() { - return this.priority; - } - - public void setPriority(Integer priority) { - this.priority = priority; - } - - public String getNetworkType() { - return this.networkType; - } - - public void setNetworkType(String networkType) { - this.networkType = networkType; - } - - public String getSpotStrategy() { - return this.spotStrategy; - } - - public void setSpotStrategy(String spotStrategy) { - this.spotStrategy = spotStrategy; - } - - public String getInstanceChargeType() { - return this.instanceChargeType; - } - - public void setInstanceChargeType(String instanceChargeType) { - this.instanceChargeType = instanceChargeType; - } - - public InstanceType getInstanceType() { - return this.instanceType; - } - - public void setInstanceType(InstanceType instanceType) { - this.instanceType = instanceType; - } - - public static class InstanceType { - - private String supportIoOptimized; - - private Integer cores; - - private String instanceFamilyLevel; - - private Integer memory; - - private String instanceType; - - private String instanceTypeFamily; - - private String generation; - - public String getSupportIoOptimized() { - return this.supportIoOptimized; - } - - public void setSupportIoOptimized(String supportIoOptimized) { - this.supportIoOptimized = supportIoOptimized; - } - - public Integer getCores() { - return this.cores; - } - - public void setCores(Integer cores) { - this.cores = cores; - } - - public String getInstanceFamilyLevel() { - return this.instanceFamilyLevel; - } - - public void setInstanceFamilyLevel(String instanceFamilyLevel) { - this.instanceFamilyLevel = instanceFamilyLevel; - } - - public Integer getMemory() { - return this.memory; - } - - public void setMemory(Integer memory) { - this.memory = memory; - } - - public String getInstanceType() { - return this.instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - } - - public String getInstanceTypeFamily() { - return this.instanceTypeFamily; - } - - public void setInstanceTypeFamily(String instanceTypeFamily) { - this.instanceTypeFamily = instanceTypeFamily; - } - - public String getGeneration() { - return this.generation; - } - - public void setGeneration(String generation) { - this.generation = generation; - } - } - } - } - - @Override - public DescribeRecommendProductResponse getInstance(UnmarshallerContext context) { - return DescribeRecommendProductResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservationDemandCommittedAmountRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservationDemandCommittedAmountRequest.java deleted file mode 100644 index 915c36fa84..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservationDemandCommittedAmountRequest.java +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeReservationDemandCommittedAmountRequest extends RpcAcsRequest { - - - private List demandPlan; - - private String instanceFamily; - - private String instanceFamilySet; - - private String planType; - - private String platform; - - private String instanceChargeType; - - private String purchaseMethod; - - private Integer period; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String periodUnit; - - private String offeringType; - public DescribeReservationDemandCommittedAmountRequest() { - super("Ecs", "2016-03-14", "DescribeReservationDemandCommittedAmount", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public List getDemandPlan() { - return this.demandPlan; - } - - public void setDemandPlan(List demandPlan) { - this.demandPlan = demandPlan; - if (demandPlan != null) { - for (int depth1 = 0; depth1 < demandPlan.size(); depth1++) { - if (demandPlan.get(depth1) != null) { - - putQueryParameter("DemandPlan." + (depth1 + 1) + ".InstanceType" , demandPlan.get(depth1).getInstanceType()); - putQueryParameter("DemandPlan." + (depth1 + 1) + ".Amount" , demandPlan.get(depth1).getAmount()); - } - } - } - } - - public String getInstanceFamily() { - return this.instanceFamily; - } - - public void setInstanceFamily(String instanceFamily) { - this.instanceFamily = instanceFamily; - if(instanceFamily != null){ - putQueryParameter("InstanceFamily", instanceFamily); - } - } - - public String getInstanceFamilySet() { - return this.instanceFamilySet; - } - - public void setInstanceFamilySet(String instanceFamilySet) { - this.instanceFamilySet = instanceFamilySet; - if(instanceFamilySet != null){ - putQueryParameter("InstanceFamilySet", instanceFamilySet); - } - } - - public String getPlanType() { - return this.planType; - } - - public void setPlanType(String planType) { - this.planType = planType; - if(planType != null){ - putQueryParameter("PlanType", planType); - } - } - - public String getPlatform() { - return this.platform; - } - - public void setPlatform(String platform) { - this.platform = platform; - if(platform != null){ - putQueryParameter("Platform", platform); - } - } - - public String getInstanceChargeType() { - return this.instanceChargeType; - } - - public void setInstanceChargeType(String instanceChargeType) { - this.instanceChargeType = instanceChargeType; - if(instanceChargeType != null){ - putQueryParameter("InstanceChargeType", instanceChargeType); - } - } - - public String getPurchaseMethod() { - return this.purchaseMethod; - } - - public void setPurchaseMethod(String purchaseMethod) { - this.purchaseMethod = purchaseMethod; - if(purchaseMethod != null){ - putQueryParameter("PurchaseMethod", purchaseMethod); - } - } - - public Integer getPeriod() { - return this.period; - } - - public void setPeriod(Integer period) { - this.period = period; - if(period != null){ - putQueryParameter("Period", period.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getPeriodUnit() { - return this.periodUnit; - } - - public void setPeriodUnit(String periodUnit) { - this.periodUnit = periodUnit; - if(periodUnit != null){ - putQueryParameter("PeriodUnit", periodUnit); - } - } - - public String getOfferingType() { - return this.offeringType; - } - - public void setOfferingType(String offeringType) { - this.offeringType = offeringType; - if(offeringType != null){ - putQueryParameter("OfferingType", offeringType); - } - } - - public static class DemandPlan { - - private String instanceType; - - private Long amount; - - public String getInstanceType() { - return this.instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - } - - public Long getAmount() { - return this.amount; - } - - public void setAmount(Long amount) { - this.amount = amount; - } - } - - @Override - public Class getResponseClass() { - return DescribeReservationDemandCommittedAmountResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservationDemandCommittedAmountResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservationDemandCommittedAmountResponse.java deleted file mode 100644 index 51f1881adc..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservationDemandCommittedAmountResponse.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeReservationDemandCommittedAmountResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeReservationDemandCommittedAmountResponse extends AcsResponse { - - private String requestId; - - private CommittedAmountInfo committedAmountInfo; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public CommittedAmountInfo getCommittedAmountInfo() { - return this.committedAmountInfo; - } - - public void setCommittedAmountInfo(CommittedAmountInfo committedAmountInfo) { - this.committedAmountInfo = committedAmountInfo; - } - - public static class CommittedAmountInfo { - - private Float committedAmount; - - private String currency; - - public Float getCommittedAmount() { - return this.committedAmount; - } - - public void setCommittedAmount(Float committedAmount) { - this.committedAmount = committedAmount; - } - - public String getCurrency() { - return this.currency; - } - - public void setCurrency(String currency) { - this.currency = currency; - } - } - - @Override - public DescribeReservationDemandCommittedAmountResponse getInstance(UnmarshallerContext context) { - return DescribeReservationDemandCommittedAmountResponseUnmarshaller.unmarshall(this, context); - } - - @Override - public boolean checkShowJsonItemName() { - return false; - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservationDemandsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservationDemandsRequest.java deleted file mode 100644 index 36acdbd04f..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservationDemandsRequest.java +++ /dev/null @@ -1,213 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeReservationDemandsRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private Integer pageNumber; - - private String nextToken; - - private Integer pageSize; - - private List tags; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private List demandIds; - - private Integer maxResults; - - private String status; - public DescribeReservationDemandsRequest() { - super("Ecs", "2016-03-14", "DescribeReservationDemands", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - if(pageNumber != null){ - putQueryParameter("PageNumber", pageNumber.toString()); - } - } - - public String getNextToken() { - return this.nextToken; - } - - public void setNextToken(String nextToken) { - this.nextToken = nextToken; - if(nextToken != null){ - putQueryParameter("NextToken", nextToken); - } - } - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - if(pageSize != null){ - putQueryParameter("PageSize", pageSize.toString()); - } - } - - public List getTags() { - return this.tags; - } - - public void setTags(List tags) { - this.tags = tags; - if (tags != null) { - for (int depth1 = 0; depth1 < tags.size(); depth1++) { - putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); - putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); - } - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public List getDemandIds() { - return this.demandIds; - } - - public void setDemandIds(List demandIds) { - this.demandIds = demandIds; - if (demandIds != null) { - for (int i = 0; i < demandIds.size(); i++) { - putQueryParameter("DemandId." + (i + 1) , demandIds.get(i)); - } - } - } - - public Integer getMaxResults() { - return this.maxResults; - } - - public void setMaxResults(Integer maxResults) { - this.maxResults = maxResults; - if(maxResults != null){ - putQueryParameter("MaxResults", maxResults.toString()); - } - } - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - if(status != null){ - putQueryParameter("Status", status); - } - } - - public static class Tag { - - private String key; - - private String value; - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } - } - - @Override - public Class getResponseClass() { - return DescribeReservationDemandsResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservationDemandsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservationDemandsResponse.java deleted file mode 100644 index f66e03275b..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservationDemandsResponse.java +++ /dev/null @@ -1,601 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeReservationDemandsResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeReservationDemandsResponse extends AcsResponse { - - private Integer totalCount; - - private String nextToken; - - private String requestId; - - private List data; - - public Integer getTotalCount() { - return this.totalCount; - } - - public void setTotalCount(Integer totalCount) { - this.totalCount = totalCount; - } - - public String getNextToken() { - return this.nextToken; - } - - public void setNextToken(String nextToken) { - this.nextToken = nextToken; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public List getData() { - return this.data; - } - - public void setData(List data) { - this.data = data; - } - - public static class DemandOrders { - - private String status; - - private String savingPlanDescription; - - private String demandId; - - private String reservedInstanceDescription; - - private String savingPlanId; - - private String savingPlanSavingType; - - private String savingPlanPayMode; - - private String couponAuto; - - private String zoneIds; - - private String name; - - private String description; - - private String platform; - - private String reservedInstanceOfferingType; - - private String savingPlanName; - - private Integer instanceCpuCoreCount; - - private String matchCriteria; - - private Float savingPlanHourFee; - - private String reservedInstanceName; - - private String savingPlanInstanceTypeFamilyGroup; - - private String savingPlanSpecType; - - private String reservedInstanceId; - - private String confirmType; - - private String couponType; - - private String regionId; - - private Integer period; - - private String instanceChargeType; - - private String startTime; - - private String productType; - - private String resourceSupplyType; - - private String periodUnit; - - private String instanceTypes; - - private String phoneNumber; - - private List reservationResource; - - private List recommendResource; - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - } - - public String getSavingPlanDescription() { - return this.savingPlanDescription; - } - - public void setSavingPlanDescription(String savingPlanDescription) { - this.savingPlanDescription = savingPlanDescription; - } - - public String getDemandId() { - return this.demandId; - } - - public void setDemandId(String demandId) { - this.demandId = demandId; - } - - public String getReservedInstanceDescription() { - return this.reservedInstanceDescription; - } - - public void setReservedInstanceDescription(String reservedInstanceDescription) { - this.reservedInstanceDescription = reservedInstanceDescription; - } - - public String getSavingPlanId() { - return this.savingPlanId; - } - - public void setSavingPlanId(String savingPlanId) { - this.savingPlanId = savingPlanId; - } - - public String getSavingPlanSavingType() { - return this.savingPlanSavingType; - } - - public void setSavingPlanSavingType(String savingPlanSavingType) { - this.savingPlanSavingType = savingPlanSavingType; - } - - public String getSavingPlanPayMode() { - return this.savingPlanPayMode; - } - - public void setSavingPlanPayMode(String savingPlanPayMode) { - this.savingPlanPayMode = savingPlanPayMode; - } - - public String getCouponAuto() { - return this.couponAuto; - } - - public void setCouponAuto(String couponAuto) { - this.couponAuto = couponAuto; - } - - public String getZoneIds() { - return this.zoneIds; - } - - public void setZoneIds(String zoneIds) { - this.zoneIds = zoneIds; - } - - public String getName() { - return this.name; - } - - public void setName(String name) { - this.name = name; - } - - public String getDescription() { - return this.description; - } - - public void setDescription(String description) { - this.description = description; - } - - public String getPlatform() { - return this.platform; - } - - public void setPlatform(String platform) { - this.platform = platform; - } - - public String getReservedInstanceOfferingType() { - return this.reservedInstanceOfferingType; - } - - public void setReservedInstanceOfferingType(String reservedInstanceOfferingType) { - this.reservedInstanceOfferingType = reservedInstanceOfferingType; - } - - public String getSavingPlanName() { - return this.savingPlanName; - } - - public void setSavingPlanName(String savingPlanName) { - this.savingPlanName = savingPlanName; - } - - public Integer getInstanceCpuCoreCount() { - return this.instanceCpuCoreCount; - } - - public void setInstanceCpuCoreCount(Integer instanceCpuCoreCount) { - this.instanceCpuCoreCount = instanceCpuCoreCount; - } - - public String getMatchCriteria() { - return this.matchCriteria; - } - - public void setMatchCriteria(String matchCriteria) { - this.matchCriteria = matchCriteria; - } - - public Float getSavingPlanHourFee() { - return this.savingPlanHourFee; - } - - public void setSavingPlanHourFee(Float savingPlanHourFee) { - this.savingPlanHourFee = savingPlanHourFee; - } - - public String getReservedInstanceName() { - return this.reservedInstanceName; - } - - public void setReservedInstanceName(String reservedInstanceName) { - this.reservedInstanceName = reservedInstanceName; - } - - public String getSavingPlanInstanceTypeFamilyGroup() { - return this.savingPlanInstanceTypeFamilyGroup; - } - - public void setSavingPlanInstanceTypeFamilyGroup(String savingPlanInstanceTypeFamilyGroup) { - this.savingPlanInstanceTypeFamilyGroup = savingPlanInstanceTypeFamilyGroup; - } - - public String getSavingPlanSpecType() { - return this.savingPlanSpecType; - } - - public void setSavingPlanSpecType(String savingPlanSpecType) { - this.savingPlanSpecType = savingPlanSpecType; - } - - public String getReservedInstanceId() { - return this.reservedInstanceId; - } - - public void setReservedInstanceId(String reservedInstanceId) { - this.reservedInstanceId = reservedInstanceId; - } - - public String getConfirmType() { - return this.confirmType; - } - - public void setConfirmType(String confirmType) { - this.confirmType = confirmType; - } - - public String getCouponType() { - return this.couponType; - } - - public void setCouponType(String couponType) { - this.couponType = couponType; - } - - public String getRegionId() { - return this.regionId; - } - - public void setRegionId(String regionId) { - this.regionId = regionId; - } - - public Integer getPeriod() { - return this.period; - } - - public void setPeriod(Integer period) { - this.period = period; - } - - public String getInstanceChargeType() { - return this.instanceChargeType; - } - - public void setInstanceChargeType(String instanceChargeType) { - this.instanceChargeType = instanceChargeType; - } - - public String getStartTime() { - return this.startTime; - } - - public void setStartTime(String startTime) { - this.startTime = startTime; - } - - public String getProductType() { - return this.productType; - } - - public void setProductType(String productType) { - this.productType = productType; - } - - public String getResourceSupplyType() { - return this.resourceSupplyType; - } - - public void setResourceSupplyType(String resourceSupplyType) { - this.resourceSupplyType = resourceSupplyType; - } - - public String getPeriodUnit() { - return this.periodUnit; - } - - public void setPeriodUnit(String periodUnit) { - this.periodUnit = periodUnit; - } - - public String getInstanceTypes() { - return this.instanceTypes; - } - - public void setInstanceTypes(String instanceTypes) { - this.instanceTypes = instanceTypes; - } - - public String getPhoneNumber() { - return this.phoneNumber; - } - - public void setPhoneNumber(String phoneNumber) { - this.phoneNumber = phoneNumber; - } - - public List getReservationResource() { - return this.reservationResource; - } - - public void setReservationResource(List reservationResource) { - this.reservationResource = reservationResource; - } - - public List getRecommendResource() { - return this.recommendResource; - } - - public void setRecommendResource(List recommendResource) { - this.recommendResource = recommendResource; - } - - public static class CapacityReservations { - - private String matchCriteria; - - private String status; - - private String privatePoolOptionsId; - - private String approveCode; - - private String zoneId; - - private String instanceType; - - private String planId; - - private Integer instanceAmount; - - private String approveNotes; - - private String startTime; - - public String getMatchCriteria() { - return this.matchCriteria; - } - - public void setMatchCriteria(String matchCriteria) { - this.matchCriteria = matchCriteria; - } - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - } - - public String getPrivatePoolOptionsId() { - return this.privatePoolOptionsId; - } - - public void setPrivatePoolOptionsId(String privatePoolOptionsId) { - this.privatePoolOptionsId = privatePoolOptionsId; - } - - public String getApproveCode() { - return this.approveCode; - } - - public void setApproveCode(String approveCode) { - this.approveCode = approveCode; - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - } - - public String getInstanceType() { - return this.instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - } - - public String getPlanId() { - return this.planId; - } - - public void setPlanId(String planId) { - this.planId = planId; - } - - public Integer getInstanceAmount() { - return this.instanceAmount; - } - - public void setInstanceAmount(Integer instanceAmount) { - this.instanceAmount = instanceAmount; - } - - public String getApproveNotes() { - return this.approveNotes; - } - - public void setApproveNotes(String approveNotes) { - this.approveNotes = approveNotes; - } - - public String getStartTime() { - return this.startTime; - } - - public void setStartTime(String startTime) { - this.startTime = startTime; - } - } - - public static class CapacityReservations1 { - - private String matchCriteria; - - private String status; - - private String privatePoolOptionsId; - - private String zoneId; - - private String instanceType; - - private String planId; - - private Integer instanceAmount; - - private String startTime; - - public String getMatchCriteria() { - return this.matchCriteria; - } - - public void setMatchCriteria(String matchCriteria) { - this.matchCriteria = matchCriteria; - } - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - } - - public String getPrivatePoolOptionsId() { - return this.privatePoolOptionsId; - } - - public void setPrivatePoolOptionsId(String privatePoolOptionsId) { - this.privatePoolOptionsId = privatePoolOptionsId; - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - } - - public String getInstanceType() { - return this.instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - } - - public String getPlanId() { - return this.planId; - } - - public void setPlanId(String planId) { - this.planId = planId; - } - - public Integer getInstanceAmount() { - return this.instanceAmount; - } - - public void setInstanceAmount(Integer instanceAmount) { - this.instanceAmount = instanceAmount; - } - - public String getStartTime() { - return this.startTime; - } - - public void setStartTime(String startTime) { - this.startTime = startTime; - } - } - } - - @Override - public DescribeReservationDemandsResponse getInstance(UnmarshallerContext context) { - return DescribeReservationDemandsResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservedInstanceAllocationsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservedInstanceAllocationsRequest.java deleted file mode 100644 index ddc209aa05..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservedInstanceAllocationsRequest.java +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeReservedInstanceAllocationsRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private Integer pageNumber; - - private Integer pageSize; - - private List tags; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String reservedInstanceId; - public DescribeReservedInstanceAllocationsRequest() { - super("Ecs", "2016-03-14", "DescribeReservedInstanceAllocations", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - if(pageNumber != null){ - putQueryParameter("PageNumber", pageNumber.toString()); - } - } - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - if(pageSize != null){ - putQueryParameter("PageSize", pageSize.toString()); - } - } - - public List getTags() { - return this.tags; - } - - public void setTags(List tags) { - this.tags = tags; - if (tags != null) { - for (int depth1 = 0; depth1 < tags.size(); depth1++) { - putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); - putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); - } - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getReservedInstanceId() { - return this.reservedInstanceId; - } - - public void setReservedInstanceId(String reservedInstanceId) { - this.reservedInstanceId = reservedInstanceId; - if(reservedInstanceId != null){ - putQueryParameter("ReservedInstanceId", reservedInstanceId); - } - } - - public static class Tag { - - private String value; - - private String key; - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - } - - @Override - public Class getResponseClass() { - return DescribeReservedInstanceAllocationsResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservedInstanceAllocationsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservedInstanceAllocationsResponse.java deleted file mode 100644 index 84bd337881..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservedInstanceAllocationsResponse.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeReservedInstanceAllocationsResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeReservedInstanceAllocationsResponse extends AcsResponse { - - private Integer pageSize; - - private String requestId; - - private Integer pageNumber; - - private Integer totalCount; - - private List allocations; - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - } - - public Integer getTotalCount() { - return this.totalCount; - } - - public void setTotalCount(Integer totalCount) { - this.totalCount = totalCount; - } - - public List getAllocations() { - return this.allocations; - } - - public void setAllocations(List allocations) { - this.allocations = allocations; - } - - public static class Allocation { - - private String reservedInstanceId; - - private String beAllocatedAccountId; - - private String resourceOwnerId; - - public String getReservedInstanceId() { - return this.reservedInstanceId; - } - - public void setReservedInstanceId(String reservedInstanceId) { - this.reservedInstanceId = reservedInstanceId; - } - - public String getBeAllocatedAccountId() { - return this.beAllocatedAccountId; - } - - public void setBeAllocatedAccountId(String beAllocatedAccountId) { - this.beAllocatedAccountId = beAllocatedAccountId; - } - - public String getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(String resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - } - } - - @Override - public DescribeReservedInstanceAllocationsResponse getInstance(UnmarshallerContext context) { - return DescribeReservedInstanceAllocationsResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservedInstanceCategoriesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservedInstanceCategoriesRequest.java deleted file mode 100644 index a2d6740fab..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservedInstanceCategoriesRequest.java +++ /dev/null @@ -1,185 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeReservedInstanceCategoriesRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private Integer pageNumber; - - private String scope; - - private Integer pageSize; - - private List tags; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String zoneId; - public DescribeReservedInstanceCategoriesRequest() { - super("Ecs", "2016-03-14", "DescribeReservedInstanceCategories", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - if(pageNumber != null){ - putQueryParameter("PageNumber", pageNumber.toString()); - } - } - - public String getScope() { - return this.scope; - } - - public void setScope(String scope) { - this.scope = scope; - if(scope != null){ - putQueryParameter("Scope", scope); - } - } - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - if(pageSize != null){ - putQueryParameter("PageSize", pageSize.toString()); - } - } - - public List getTags() { - return this.tags; - } - - public void setTags(List tags) { - this.tags = tags; - if (tags != null) { - for (int depth1 = 0; depth1 < tags.size(); depth1++) { - putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); - putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); - } - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - if(zoneId != null){ - putQueryParameter("ZoneId", zoneId); - } - } - - public static class Tag { - - private String key; - - private String value; - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } - } - - @Override - public Class getResponseClass() { - return DescribeReservedInstanceCategoriesResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservedInstanceCategoriesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservedInstanceCategoriesResponse.java deleted file mode 100644 index 498c95579f..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservedInstanceCategoriesResponse.java +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeReservedInstanceCategoriesResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeReservedInstanceCategoriesResponse extends AcsResponse { - - private Integer pageSize; - - private String requestId; - - private Integer pageNumber; - - private Integer totalCount; - - private List reservedInstanceCategories; - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - } - - public Integer getTotalCount() { - return this.totalCount; - } - - public void setTotalCount(Integer totalCount) { - this.totalCount = totalCount; - } - - public List getReservedInstanceCategories() { - return this.reservedInstanceCategories; - } - - public void setReservedInstanceCategories(List reservedInstanceCategories) { - this.reservedInstanceCategories = reservedInstanceCategories; - } - - public static class ReservedInstanceCategory { - - private Integer amount; - - private String platform; - - private String zoneId; - - private String scope; - - private String instanceType; - - private Integer instanceAmount; - - private String regionId; - - public Integer getAmount() { - return this.amount; - } - - public void setAmount(Integer amount) { - this.amount = amount; - } - - public String getPlatform() { - return this.platform; - } - - public void setPlatform(String platform) { - this.platform = platform; - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - } - - public String getScope() { - return this.scope; - } - - public void setScope(String scope) { - this.scope = scope; - } - - public String getInstanceType() { - return this.instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - } - - public Integer getInstanceAmount() { - return this.instanceAmount; - } - - public void setInstanceAmount(Integer instanceAmount) { - this.instanceAmount = instanceAmount; - } - - public String getRegionId() { - return this.regionId; - } - - public void setRegionId(String regionId) { - this.regionId = regionId; - } - } - - @Override - public DescribeReservedInstanceCategoriesResponse getInstance(UnmarshallerContext context) { - return DescribeReservedInstanceCategoriesResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservedInstancePriceRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservedInstancePriceRequest.java deleted file mode 100644 index 58254159a7..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservedInstancePriceRequest.java +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeReservedInstancePriceRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private Integer pageNumber; - - private Integer pageSize; - - private List tags; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private List reservedInstanceIds; - public DescribeReservedInstancePriceRequest() { - super("Ecs", "2016-03-14", "DescribeReservedInstancePrice", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - if(pageNumber != null){ - putQueryParameter("PageNumber", pageNumber.toString()); - } - } - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - if(pageSize != null){ - putQueryParameter("PageSize", pageSize.toString()); - } - } - - public List getTags() { - return this.tags; - } - - public void setTags(List tags) { - this.tags = tags; - if (tags != null) { - for (int depth1 = 0; depth1 < tags.size(); depth1++) { - putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); - putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); - } - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public List getReservedInstanceIds() { - return this.reservedInstanceIds; - } - - public void setReservedInstanceIds(List reservedInstanceIds) { - this.reservedInstanceIds = reservedInstanceIds; - if (reservedInstanceIds != null) { - for (int i = 0; i < reservedInstanceIds.size(); i++) { - putQueryParameter("ReservedInstanceId." + (i + 1) , reservedInstanceIds.get(i)); - } - } - } - - public static class Tag { - - private String key; - - private String value; - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } - } - - @Override - public Class getResponseClass() { - return DescribeReservedInstancePriceResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservedInstancePriceResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservedInstancePriceResponse.java deleted file mode 100644 index 83d574d871..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeReservedInstancePriceResponse.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeReservedInstancePriceResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeReservedInstancePriceResponse extends AcsResponse { - - private String requestId; - - private PriceInfo priceInfo; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public PriceInfo getPriceInfo() { - return this.priceInfo; - } - - public void setPriceInfo(PriceInfo priceInfo) { - this.priceInfo = priceInfo; - } - - public static class PriceInfo { - - private Order order; - - public Order getOrder() { - return this.order; - } - - public void setOrder(Order order) { - this.order = order; - } - - public static class Order { - - private Float reservedInstanceHourPrice; - - private String currency; - - private Float tradePrice; - - public Float getReservedInstanceHourPrice() { - return this.reservedInstanceHourPrice; - } - - public void setReservedInstanceHourPrice(Float reservedInstanceHourPrice) { - this.reservedInstanceHourPrice = reservedInstanceHourPrice; - } - - public String getCurrency() { - return this.currency; - } - - public void setCurrency(String currency) { - this.currency = currency; - } - - public Float getTradePrice() { - return this.tradePrice; - } - - public void setTradePrice(Float tradePrice) { - this.tradePrice = tradePrice; - } - } - } - - @Override - public DescribeReservedInstancePriceResponse getInstance(UnmarshallerContext context) { - return DescribeReservedInstancePriceResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceAggregationsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceAggregationsRequest.java deleted file mode 100644 index 5abd55d22c..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceAggregationsRequest.java +++ /dev/null @@ -1,317 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeResourceAggregationsRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String global; - - private String resourceGroupId; - - private String keyword; - - private String product; - - private List aggregatorss; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private List tagFilters; - - private String resourceType; - - private String regionNo; - - private List filters; - - private String marker; - - private Integer maxItems; - public DescribeResourceAggregationsRequest() { - super("Ecs", "2016-03-14", "DescribeResourceAggregations", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getGlobal() { - return this.global; - } - - public void setGlobal(String global) { - this.global = global; - if(global != null){ - putQueryParameter("Global", global); - } - } - - public String getResourceGroupId() { - return this.resourceGroupId; - } - - public void setResourceGroupId(String resourceGroupId) { - this.resourceGroupId = resourceGroupId; - if(resourceGroupId != null){ - putQueryParameter("ResourceGroupId", resourceGroupId); - } - } - - public String getKeyword() { - return this.keyword; - } - - public void setKeyword(String keyword) { - this.keyword = keyword; - if(keyword != null){ - putQueryParameter("Keyword", keyword); - } - } - - public String getProduct() { - return this.product; - } - - public void setProduct(String product) { - this.product = product; - if(product != null){ - putQueryParameter("Product", product); - } - } - - public List getAggregatorss() { - return this.aggregatorss; - } - - public void setAggregatorss(List aggregatorss) { - this.aggregatorss = aggregatorss; - if (aggregatorss != null) { - for (int i = 0; i < aggregatorss.size(); i++) { - putQueryParameter("Aggregators." + (i + 1) , aggregatorss.get(i)); - } - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public List getTagFilters() { - return this.tagFilters; - } - - public void setTagFilters(List tagFilters) { - this.tagFilters = tagFilters; - if (tagFilters != null) { - for (int depth1 = 0; depth1 < tagFilters.size(); depth1++) { - putQueryParameter("TagFilter." + (depth1 + 1) + ".Operation" , tagFilters.get(depth1).getOperation()); - if (tagFilters.get(depth1).getTagValuess() != null) { - for (int i = 0; i < tagFilters.get(depth1).getTagValuess().size(); i++) { - putQueryParameter("TagFilter." + (depth1 + 1) + ".TagValues." + (i + 1) , tagFilters.get(depth1).getTagValuess().get(i)); - } - } - putQueryParameter("TagFilter." + (depth1 + 1) + ".TagKey" , tagFilters.get(depth1).getTagKey()); - } - } - } - - public String getResourceType() { - return this.resourceType; - } - - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - if(resourceType != null){ - putQueryParameter("ResourceType", resourceType); - } - } - - public String getRegionNo() { - return this.regionNo; - } - - public void setRegionNo(String regionNo) { - this.regionNo = regionNo; - if(regionNo != null){ - putQueryParameter("RegionNo", regionNo); - } - } - - public List getFilters() { - return this.filters; - } - - public void setFilters(List filters) { - this.filters = filters; - if (filters != null) { - for (int depth1 = 0; depth1 < filters.size(); depth1++) { - putQueryParameter("Filter." + (depth1 + 1) + ".Operation" , filters.get(depth1).getOperation()); - putQueryParameter("Filter." + (depth1 + 1) + ".AttributeName" , filters.get(depth1).getAttributeName()); - putQueryParameter("Filter." + (depth1 + 1) + ".AttributeValue" , filters.get(depth1).getAttributeValue()); - } - } - } - - public String getMarker() { - return this.marker; - } - - public void setMarker(String marker) { - this.marker = marker; - if(marker != null){ - putQueryParameter("Marker", marker); - } - } - - public Integer getMaxItems() { - return this.maxItems; - } - - public void setMaxItems(Integer maxItems) { - this.maxItems = maxItems; - if(maxItems != null){ - putQueryParameter("MaxItems", maxItems.toString()); - } - } - - public static class TagFilter { - - private String operation; - - private List tagValuess; - - private String tagKey; - - public String getOperation() { - return this.operation; - } - - public void setOperation(String operation) { - this.operation = operation; - } - - public List getTagValuess() { - return this.tagValuess; - } - - public void setTagValuess(List tagValuess) { - this.tagValuess = tagValuess; - } - - public String getTagKey() { - return this.tagKey; - } - - public void setTagKey(String tagKey) { - this.tagKey = tagKey; - } - } - - public static class Filter { - - private String operation; - - private String attributeName; - - private String attributeValue; - - public String getOperation() { - return this.operation; - } - - public void setOperation(String operation) { - this.operation = operation; - } - - public String getAttributeName() { - return this.attributeName; - } - - public void setAttributeName(String attributeName) { - this.attributeName = attributeName; - } - - public String getAttributeValue() { - return this.attributeValue; - } - - public void setAttributeValue(String attributeValue) { - this.attributeValue = attributeValue; - } - } - - @Override - public Class getResponseClass() { - return DescribeResourceAggregationsResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceAggregationsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceAggregationsResponse.java deleted file mode 100644 index 06437da43f..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceAggregationsResponse.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeResourceAggregationsResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeResourceAggregationsResponse extends AcsResponse { - - private String requestId; - - private List aggregations; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public List getAggregations() { - return this.aggregations; - } - - public void setAggregations(List aggregations) { - this.aggregations = aggregations; - } - - public static class Aggregation { - - private String keys; - - private String count; - - public String getKeys() { - return this.keys; - } - - public void setKeys(String keys) { - this.keys = keys; - } - - public String getCount() { - return this.count; - } - - public void setCount(String count) { - this.count = count; - } - } - - @Override - public DescribeResourceAggregationsResponse getInstance(UnmarshallerContext context) { - return DescribeResourceAggregationsResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceAllocationRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceAllocationRequest.java deleted file mode 100644 index dc0f9c6a33..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceAllocationRequest.java +++ /dev/null @@ -1,419 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeResourceAllocationRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String networkType; - - private Integer postPaidBaseCapacity; - - private Integer cores; - - private String systemDiskCategory; - - private String defaultTargetCapacityType; - - private Float maxPrice; - - private Integer spotBaseCapacity; - - private Long ownerId; - - private String spotStrategy; - - private String instanceFamilyLevel; - - private Boolean instanceTypeSupportIPv6; - - private List zoneIds; - - private List instanceTypeModels; - - private Boolean strictSatisfiedTargetCapacity; - - private Float memory; - - private String ioOptimized; - - private String resourceAmountType; - - private List dataDiskCategorys; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Integer spotInstancePools; - - private Integer spotDuration; - - private String priorityStrategy; - - private Integer targetCapacity; - public DescribeResourceAllocationRequest() { - super("Ecs", "2016-03-14", "DescribeResourceAllocation", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getNetworkType() { - return this.networkType; - } - - public void setNetworkType(String networkType) { - this.networkType = networkType; - if(networkType != null){ - putQueryParameter("NetworkType", networkType); - } - } - - public Integer getPostPaidBaseCapacity() { - return this.postPaidBaseCapacity; - } - - public void setPostPaidBaseCapacity(Integer postPaidBaseCapacity) { - this.postPaidBaseCapacity = postPaidBaseCapacity; - if(postPaidBaseCapacity != null){ - putQueryParameter("PostPaidBaseCapacity", postPaidBaseCapacity.toString()); - } - } - - public Integer getCores() { - return this.cores; - } - - public void setCores(Integer cores) { - this.cores = cores; - if(cores != null){ - putQueryParameter("Cores", cores.toString()); - } - } - - public String getSystemDiskCategory() { - return this.systemDiskCategory; - } - - public void setSystemDiskCategory(String systemDiskCategory) { - this.systemDiskCategory = systemDiskCategory; - if(systemDiskCategory != null){ - putQueryParameter("SystemDiskCategory", systemDiskCategory); - } - } - - public String getDefaultTargetCapacityType() { - return this.defaultTargetCapacityType; - } - - public void setDefaultTargetCapacityType(String defaultTargetCapacityType) { - this.defaultTargetCapacityType = defaultTargetCapacityType; - if(defaultTargetCapacityType != null){ - putQueryParameter("DefaultTargetCapacityType", defaultTargetCapacityType); - } - } - - public Float getMaxPrice() { - return this.maxPrice; - } - - public void setMaxPrice(Float maxPrice) { - this.maxPrice = maxPrice; - if(maxPrice != null){ - putQueryParameter("MaxPrice", maxPrice.toString()); - } - } - - public Integer getSpotBaseCapacity() { - return this.spotBaseCapacity; - } - - public void setSpotBaseCapacity(Integer spotBaseCapacity) { - this.spotBaseCapacity = spotBaseCapacity; - if(spotBaseCapacity != null){ - putQueryParameter("SpotBaseCapacity", spotBaseCapacity.toString()); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getSpotStrategy() { - return this.spotStrategy; - } - - public void setSpotStrategy(String spotStrategy) { - this.spotStrategy = spotStrategy; - if(spotStrategy != null){ - putQueryParameter("SpotStrategy", spotStrategy); - } - } - - public String getInstanceFamilyLevel() { - return this.instanceFamilyLevel; - } - - public void setInstanceFamilyLevel(String instanceFamilyLevel) { - this.instanceFamilyLevel = instanceFamilyLevel; - if(instanceFamilyLevel != null){ - putQueryParameter("InstanceFamilyLevel", instanceFamilyLevel); - } - } - - public Boolean getInstanceTypeSupportIPv6() { - return this.instanceTypeSupportIPv6; - } - - public void setInstanceTypeSupportIPv6(Boolean instanceTypeSupportIPv6) { - this.instanceTypeSupportIPv6 = instanceTypeSupportIPv6; - if(instanceTypeSupportIPv6 != null){ - putQueryParameter("InstanceTypeSupportIPv6", instanceTypeSupportIPv6.toString()); - } - } - - public List getZoneIds() { - return this.zoneIds; - } - - public void setZoneIds(List zoneIds) { - this.zoneIds = zoneIds; - if (zoneIds != null) { - for (int i = 0; i < zoneIds.size(); i++) { - putQueryParameter("ZoneId." + (i + 1) , zoneIds.get(i)); - } - } - } - - public List getInstanceTypeModels() { - return this.instanceTypeModels; - } - - public void setInstanceTypeModels(List instanceTypeModels) { - this.instanceTypeModels = instanceTypeModels; - if (instanceTypeModels != null) { - for (int depth1 = 0; depth1 < instanceTypeModels.size(); depth1++) { - putQueryParameter("InstanceTypeModel." + (depth1 + 1) + ".SpotStrategy" , instanceTypeModels.get(depth1).getSpotStrategy()); - putQueryParameter("InstanceTypeModel." + (depth1 + 1) + ".MaxPrice" , instanceTypeModels.get(depth1).getMaxPrice()); - putQueryParameter("InstanceTypeModel." + (depth1 + 1) + ".WeightedCapacity" , instanceTypeModels.get(depth1).getWeightedCapacity()); - putQueryParameter("InstanceTypeModel." + (depth1 + 1) + ".InstanceType" , instanceTypeModels.get(depth1).getInstanceType()); - } - } - } - - public Boolean getStrictSatisfiedTargetCapacity() { - return this.strictSatisfiedTargetCapacity; - } - - public void setStrictSatisfiedTargetCapacity(Boolean strictSatisfiedTargetCapacity) { - this.strictSatisfiedTargetCapacity = strictSatisfiedTargetCapacity; - if(strictSatisfiedTargetCapacity != null){ - putQueryParameter("StrictSatisfiedTargetCapacity", strictSatisfiedTargetCapacity.toString()); - } - } - - public Float getMemory() { - return this.memory; - } - - public void setMemory(Float memory) { - this.memory = memory; - if(memory != null){ - putQueryParameter("Memory", memory.toString()); - } - } - - public String getIoOptimized() { - return this.ioOptimized; - } - - public void setIoOptimized(String ioOptimized) { - this.ioOptimized = ioOptimized; - if(ioOptimized != null){ - putQueryParameter("IoOptimized", ioOptimized); - } - } - - public String getResourceAmountType() { - return this.resourceAmountType; - } - - public void setResourceAmountType(String resourceAmountType) { - this.resourceAmountType = resourceAmountType; - if(resourceAmountType != null){ - putQueryParameter("ResourceAmountType", resourceAmountType); - } - } - - public List getDataDiskCategorys() { - return this.dataDiskCategorys; - } - - public void setDataDiskCategorys(List dataDiskCategorys) { - this.dataDiskCategorys = dataDiskCategorys; - if (dataDiskCategorys != null) { - for (int i = 0; i < dataDiskCategorys.size(); i++) { - putQueryParameter("DataDiskCategory." + (i + 1) , dataDiskCategorys.get(i)); - } - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Integer getSpotInstancePools() { - return this.spotInstancePools; - } - - public void setSpotInstancePools(Integer spotInstancePools) { - this.spotInstancePools = spotInstancePools; - if(spotInstancePools != null){ - putQueryParameter("SpotInstancePools", spotInstancePools.toString()); - } - } - - public Integer getSpotDuration() { - return this.spotDuration; - } - - public void setSpotDuration(Integer spotDuration) { - this.spotDuration = spotDuration; - if(spotDuration != null){ - putQueryParameter("SpotDuration", spotDuration.toString()); - } - } - - public String getPriorityStrategy() { - return this.priorityStrategy; - } - - public void setPriorityStrategy(String priorityStrategy) { - this.priorityStrategy = priorityStrategy; - if(priorityStrategy != null){ - putQueryParameter("PriorityStrategy", priorityStrategy); - } - } - - public Integer getTargetCapacity() { - return this.targetCapacity; - } - - public void setTargetCapacity(Integer targetCapacity) { - this.targetCapacity = targetCapacity; - if(targetCapacity != null){ - putQueryParameter("TargetCapacity", targetCapacity.toString()); - } - } - - public static class InstanceTypeModel { - - private String spotStrategy; - - private Float maxPrice; - - private Float weightedCapacity; - - private String instanceType; - - public String getSpotStrategy() { - return this.spotStrategy; - } - - public void setSpotStrategy(String spotStrategy) { - this.spotStrategy = spotStrategy; - } - - public Float getMaxPrice() { - return this.maxPrice; - } - - public void setMaxPrice(Float maxPrice) { - this.maxPrice = maxPrice; - } - - public Float getWeightedCapacity() { - return this.weightedCapacity; - } - - public void setWeightedCapacity(Float weightedCapacity) { - this.weightedCapacity = weightedCapacity; - } - - public String getInstanceType() { - return this.instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - } - } - - @Override - public Class getResponseClass() { - return DescribeResourceAllocationResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceAllocationResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceAllocationResponse.java deleted file mode 100644 index 01ba44c030..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceAllocationResponse.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeResourceAllocationResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeResourceAllocationResponse extends AcsResponse { - - private String requestId; - - private ResourcePlanningResponse resourcePlanningResponse; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public ResourcePlanningResponse getResourcePlanningResponse() { - return this.resourcePlanningResponse; - } - - public void setResourcePlanningResponse(ResourcePlanningResponse resourcePlanningResponse) { - this.resourcePlanningResponse = resourcePlanningResponse; - } - - public static class ResourcePlanningResponse { - - private Integer satisfiedAmount; - - private List resourceModels; - - public Integer getSatisfiedAmount() { - return this.satisfiedAmount; - } - - public void setSatisfiedAmount(Integer satisfiedAmount) { - this.satisfiedAmount = satisfiedAmount; - } - - public List getResourceModels() { - return this.resourceModels; - } - - public void setResourceModels(List resourceModels) { - this.resourceModels = resourceModels; - } - - public static class ResourceModel { - - private Integer amount; - - private String ioOptimized; - - private Float price; - - private String zoneId; - - private String networkType; - - private String instanceType; - - private String spotStrategy; - - private String instanceChargeType; - - private String regionId; - - public Integer getAmount() { - return this.amount; - } - - public void setAmount(Integer amount) { - this.amount = amount; - } - - public String getIoOptimized() { - return this.ioOptimized; - } - - public void setIoOptimized(String ioOptimized) { - this.ioOptimized = ioOptimized; - } - - public Float getPrice() { - return this.price; - } - - public void setPrice(Float price) { - this.price = price; - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - } - - public String getNetworkType() { - return this.networkType; - } - - public void setNetworkType(String networkType) { - this.networkType = networkType; - } - - public String getInstanceType() { - return this.instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - } - - public String getSpotStrategy() { - return this.spotStrategy; - } - - public void setSpotStrategy(String spotStrategy) { - this.spotStrategy = spotStrategy; - } - - public String getInstanceChargeType() { - return this.instanceChargeType; - } - - public void setInstanceChargeType(String instanceChargeType) { - this.instanceChargeType = instanceChargeType; - } - - public String getRegionId() { - return this.regionId; - } - - public void setRegionId(String regionId) { - this.regionId = regionId; - } - } - } - - @Override - public DescribeResourceAllocationResponse getInstance(UnmarshallerContext context) { - return DescribeResourceAllocationResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceDisplayRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceDisplayRequest.java deleted file mode 100644 index 07a4a8c179..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceDisplayRequest.java +++ /dev/null @@ -1,213 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeResourceDisplayRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private List templateTags; - - private String firstBizLevel; - - private List instanceCategoryTypes; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String secondBizLevel; - - private String spotStrategy; - - private String zoneId; - - private String chargeType; - public DescribeResourceDisplayRequest() { - super("Ecs", "2016-03-14", "DescribeResourceDisplay", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public List getTemplateTags() { - return this.templateTags; - } - - public void setTemplateTags(List templateTags) { - this.templateTags = templateTags; - if (templateTags != null) { - for (int depth1 = 0; depth1 < templateTags.size(); depth1++) { - putQueryParameter("TemplateTag." + (depth1 + 1) + ".Key" , templateTags.get(depth1).getKey()); - putQueryParameter("TemplateTag." + (depth1 + 1) + ".Value" , templateTags.get(depth1).getValue()); - } - } - } - - public String getFirstBizLevel() { - return this.firstBizLevel; - } - - public void setFirstBizLevel(String firstBizLevel) { - this.firstBizLevel = firstBizLevel; - if(firstBizLevel != null){ - putQueryParameter("FirstBizLevel", firstBizLevel); - } - } - - public List getInstanceCategoryTypes() { - return this.instanceCategoryTypes; - } - - public void setInstanceCategoryTypes(List instanceCategoryTypes) { - this.instanceCategoryTypes = instanceCategoryTypes; - if (instanceCategoryTypes != null) { - for (int i = 0; i < instanceCategoryTypes.size(); i++) { - putQueryParameter("InstanceCategoryType." + (i + 1) , instanceCategoryTypes.get(i)); - } - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getSecondBizLevel() { - return this.secondBizLevel; - } - - public void setSecondBizLevel(String secondBizLevel) { - this.secondBizLevel = secondBizLevel; - if(secondBizLevel != null){ - putQueryParameter("SecondBizLevel", secondBizLevel); - } - } - - public String getSpotStrategy() { - return this.spotStrategy; - } - - public void setSpotStrategy(String spotStrategy) { - this.spotStrategy = spotStrategy; - if(spotStrategy != null){ - putQueryParameter("SpotStrategy", spotStrategy); - } - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - if(zoneId != null){ - putQueryParameter("ZoneId", zoneId); - } - } - - public String getChargeType() { - return this.chargeType; - } - - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - if(chargeType != null){ - putQueryParameter("ChargeType", chargeType); - } - } - - public static class TemplateTag { - - private String key; - - private String value; - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } - } - - @Override - public Class getResponseClass() { - return DescribeResourceDisplayResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceDisplayResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceDisplayResponse.java deleted file mode 100644 index ac5b9fa3df..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceDisplayResponse.java +++ /dev/null @@ -1,355 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeResourceDisplayResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeResourceDisplayResponse extends AcsResponse { - - private String requestId; - - private ResourceDisplay resourceDisplay; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public ResourceDisplay getResourceDisplay() { - return this.resourceDisplay; - } - - public void setResourceDisplay(ResourceDisplay resourceDisplay) { - this.resourceDisplay = resourceDisplay; - } - - public static class ResourceDisplay { - - private List instanceChargeTypes; - - private List zones; - - private List instanceCategories; - - private List productCategories; - - public List getInstanceChargeTypes() { - return this.instanceChargeTypes; - } - - public void setInstanceChargeTypes(List instanceChargeTypes) { - this.instanceChargeTypes = instanceChargeTypes; - } - - public List getZones() { - return this.zones; - } - - public void setZones(List zones) { - this.zones = zones; - } - - public List getInstanceCategories() { - return this.instanceCategories; - } - - public void setInstanceCategories(List instanceCategories) { - this.instanceCategories = instanceCategories; - } - - public List getProductCategories() { - return this.productCategories; - } - - public void setProductCategories(List productCategories) { - this.productCategories = productCategories; - } - - public static class InstanceChargeType { - - private String spotStrategy; - - private String chargeType; - - private List tags; - - public String getSpotStrategy() { - return this.spotStrategy; - } - - public void setSpotStrategy(String spotStrategy) { - this.spotStrategy = spotStrategy; - } - - public String getChargeType() { - return this.chargeType; - } - - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } - - public List getTags() { - return this.tags; - } - - public void setTags(List tags) { - this.tags = tags; - } - } - - public static class Zone { - - private String zoneId; - - private List tags1; - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - } - - public List getTags1() { - return this.tags1; - } - - public void setTags1(List tags1) { - this.tags1 = tags1; - } - } - - public static class InstanceCategory { - - private String categoryType; - - private List instanceTopCategories; - - private List zoneIds; - - public String getCategoryType() { - return this.categoryType; - } - - public void setCategoryType(String categoryType) { - this.categoryType = categoryType; - } - - public List getInstanceTopCategories() { - return this.instanceTopCategories; - } - - public void setInstanceTopCategories(List instanceTopCategories) { - this.instanceTopCategories = instanceTopCategories; - } - - public List getZoneIds() { - return this.zoneIds; - } - - public void setZoneIds(List zoneIds) { - this.zoneIds = zoneIds; - } - - public static class InstanceTopCategory { - - private String topCategoryLevel; - - private List instanceSecondCategories; - - public String getTopCategoryLevel() { - return this.topCategoryLevel; - } - - public void setTopCategoryLevel(String topCategoryLevel) { - this.topCategoryLevel = topCategoryLevel; - } - - public List getInstanceSecondCategories() { - return this.instanceSecondCategories; - } - - public void setInstanceSecondCategories(List instanceSecondCategories) { - this.instanceSecondCategories = instanceSecondCategories; - } - - public static class InstanceSecondCategory { - - private String secondCategoryLevel; - - private List instanceTypeFamilies; - - private List instanceTypes; - - public String getSecondCategoryLevel() { - return this.secondCategoryLevel; - } - - public void setSecondCategoryLevel(String secondCategoryLevel) { - this.secondCategoryLevel = secondCategoryLevel; - } - - public List getInstanceTypeFamilies() { - return this.instanceTypeFamilies; - } - - public void setInstanceTypeFamilies(List instanceTypeFamilies) { - this.instanceTypeFamilies = instanceTypeFamilies; - } - - public List getInstanceTypes() { - return this.instanceTypes; - } - - public void setInstanceTypes(List instanceTypes) { - this.instanceTypes = instanceTypes; - } - - public static class InstanceTypeFamily { - - private String instanceTypeFamilyId; - - private List tags2; - - public String getInstanceTypeFamilyId() { - return this.instanceTypeFamilyId; - } - - public void setInstanceTypeFamilyId(String instanceTypeFamilyId) { - this.instanceTypeFamilyId = instanceTypeFamilyId; - } - - public List getTags2() { - return this.tags2; - } - - public void setTags2(List tags2) { - this.tags2 = tags2; - } - } - - public static class InstanceType { - - private String instanceTypeId; - - private List tags3; - - public String getInstanceTypeId() { - return this.instanceTypeId; - } - - public void setInstanceTypeId(String instanceTypeId) { - this.instanceTypeId = instanceTypeId; - } - - public List getTags3() { - return this.tags3; - } - - public void setTags3(List tags3) { - this.tags3 = tags3; - } - } - } - } - } - - public static class ProductCategory { - - private String productName; - - private List instanceFamilyGroups; - - public String getProductName() { - return this.productName; - } - - public void setProductName(String productName) { - this.productName = productName; - } - - public List getInstanceFamilyGroups() { - return this.instanceFamilyGroups; - } - - public void setInstanceFamilyGroups(List instanceFamilyGroups) { - this.instanceFamilyGroups = instanceFamilyGroups; - } - - public static class InstanceFamilyGroup { - - private String instanceFamilyGroupName; - - private List instanceTypeFamilies4; - - public String getInstanceFamilyGroupName() { - return this.instanceFamilyGroupName; - } - - public void setInstanceFamilyGroupName(String instanceFamilyGroupName) { - this.instanceFamilyGroupName = instanceFamilyGroupName; - } - - public List getInstanceTypeFamilies4() { - return this.instanceTypeFamilies4; - } - - public void setInstanceTypeFamilies4(List instanceTypeFamilies4) { - this.instanceTypeFamilies4 = instanceTypeFamilies4; - } - - public static class InstanceTypeFamily5 { - - private String instanceTypeFamilyId; - - private List tags6; - - public String getInstanceTypeFamilyId() { - return this.instanceTypeFamilyId; - } - - public void setInstanceTypeFamilyId(String instanceTypeFamilyId) { - this.instanceTypeFamilyId = instanceTypeFamilyId; - } - - public List getTags6() { - return this.tags6; - } - - public void setTags6(List tags6) { - this.tags6 = tags6; - } - } - } - } - } - - @Override - public DescribeResourceDisplayResponse getInstance(UnmarshallerContext context) { - return DescribeResourceDisplayResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceFilterAttributesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceFilterAttributesRequest.java deleted file mode 100644 index 92331fc3e0..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceFilterAttributesRequest.java +++ /dev/null @@ -1,159 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeResourceFilterAttributesRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private List templateTags; - - private String product; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String resourceType; - public DescribeResourceFilterAttributesRequest() { - super("Ecs", "2016-03-14", "DescribeResourceFilterAttributes", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public List getTemplateTags() { - return this.templateTags; - } - - public void setTemplateTags(List templateTags) { - this.templateTags = templateTags; - if (templateTags != null) { - for (int depth1 = 0; depth1 < templateTags.size(); depth1++) { - putQueryParameter("TemplateTag." + (depth1 + 1) + ".Key" , templateTags.get(depth1).getKey()); - putQueryParameter("TemplateTag." + (depth1 + 1) + ".Value" , templateTags.get(depth1).getValue()); - } - } - } - - public String getProduct() { - return this.product; - } - - public void setProduct(String product) { - this.product = product; - if(product != null){ - putQueryParameter("Product", product); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getResourceType() { - return this.resourceType; - } - - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - if(resourceType != null){ - putQueryParameter("ResourceType", resourceType); - } - } - - public static class TemplateTag { - - private String key; - - private String value; - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } - } - - @Override - public Class getResponseClass() { - return DescribeResourceFilterAttributesResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceFilterAttributesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceFilterAttributesResponse.java deleted file mode 100644 index c83151a572..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceFilterAttributesResponse.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeResourceFilterAttributesResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeResourceFilterAttributesResponse extends AcsResponse { - - private String requestId; - - private List filterAttributes; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public List getFilterAttributes() { - return this.filterAttributes; - } - - public void setFilterAttributes(List filterAttributes) { - this.filterAttributes = filterAttributes; - } - - public static class FilterAttribute { - - private String type; - - private String name; - - private List supportOperations; - - private List values; - - public String getType() { - return this.type; - } - - public void setType(String type) { - this.type = type; - } - - public String getName() { - return this.name; - } - - public void setName(String name) { - this.name = name; - } - - public List getSupportOperations() { - return this.supportOperations; - } - - public void setSupportOperations(List supportOperations) { - this.supportOperations = supportOperations; - } - - public List getValues() { - return this.values; - } - - public void setValues(List values) { - this.values = values; - } - } - - @Override - public DescribeResourceFilterAttributesResponse getInstance(UnmarshallerContext context) { - return DescribeResourceFilterAttributesResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceRecommendFiltersRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceRecommendFiltersRequest.java deleted file mode 100644 index 195e005c36..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceRecommendFiltersRequest.java +++ /dev/null @@ -1,224 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeResourceRecommendFiltersRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String attributeValue; - - private String global; - - private String attributeName; - - private List templateTags; - - private String product; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String resourceType; - - private String regionNo; - - private Integer maxItems; - public DescribeResourceRecommendFiltersRequest() { - super("Ecs", "2016-03-14", "DescribeResourceRecommendFilters", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getAttributeValue() { - return this.attributeValue; - } - - public void setAttributeValue(String attributeValue) { - this.attributeValue = attributeValue; - if(attributeValue != null){ - putQueryParameter("AttributeValue", attributeValue); - } - } - - public String getGlobal() { - return this.global; - } - - public void setGlobal(String global) { - this.global = global; - if(global != null){ - putQueryParameter("Global", global); - } - } - - public String getAttributeName() { - return this.attributeName; - } - - public void setAttributeName(String attributeName) { - this.attributeName = attributeName; - if(attributeName != null){ - putQueryParameter("AttributeName", attributeName); - } - } - - public List getTemplateTags() { - return this.templateTags; - } - - public void setTemplateTags(List templateTags) { - this.templateTags = templateTags; - if (templateTags != null) { - for (int depth1 = 0; depth1 < templateTags.size(); depth1++) { - putQueryParameter("TemplateTag." + (depth1 + 1) + ".Key" , templateTags.get(depth1).getKey()); - putQueryParameter("TemplateTag." + (depth1 + 1) + ".Value" , templateTags.get(depth1).getValue()); - } - } - } - - public String getProduct() { - return this.product; - } - - public void setProduct(String product) { - this.product = product; - if(product != null){ - putQueryParameter("Product", product); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getResourceType() { - return this.resourceType; - } - - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - if(resourceType != null){ - putQueryParameter("ResourceType", resourceType); - } - } - - public String getRegionNo() { - return this.regionNo; - } - - public void setRegionNo(String regionNo) { - this.regionNo = regionNo; - if(regionNo != null){ - putQueryParameter("RegionNo", regionNo); - } - } - - public Integer getMaxItems() { - return this.maxItems; - } - - public void setMaxItems(Integer maxItems) { - this.maxItems = maxItems; - if(maxItems != null){ - putQueryParameter("MaxItems", maxItems.toString()); - } - } - - public static class TemplateTag { - - private String key; - - private String value; - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } - } - - @Override - public Class getResponseClass() { - return DescribeResourceRecommendFiltersResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceRecommendFiltersResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceRecommendFiltersResponse.java deleted file mode 100644 index f8ef7e3bea..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceRecommendFiltersResponse.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeResourceRecommendFiltersResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeResourceRecommendFiltersResponse extends AcsResponse { - - private String requestId; - - private List recommendFilters; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public List getRecommendFilters() { - return this.recommendFilters; - } - - public void setRecommendFilters(List recommendFilters) { - this.recommendFilters = recommendFilters; - } - - public static class RecommendFilter { - - private String resourceType; - - private String attributeName; - - private String product; - - private String attributeValue; - - public String getResourceType() { - return this.resourceType; - } - - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - } - - public String getAttributeName() { - return this.attributeName; - } - - public void setAttributeName(String attributeName) { - this.attributeName = attributeName; - } - - public String getProduct() { - return this.product; - } - - public void setProduct(String product) { - this.product = product; - } - - public String getAttributeValue() { - return this.attributeValue; - } - - public void setAttributeValue(String attributeValue) { - this.attributeValue = attributeValue; - } - } - - @Override - public DescribeResourceRecommendFiltersResponse getInstance(UnmarshallerContext context) { - return DescribeResourceRecommendFiltersResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceSolutionsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceSolutionsRequest.java deleted file mode 100644 index 87fdc79522..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceSolutionsRequest.java +++ /dev/null @@ -1,291 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeResourceSolutionsRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private Integer cores; - - private String systemDiskCategory; - - private Float maxPrice; - - private Long ownerId; - - private String spotStrategy; - - private String instanceFamilyLevel; - - private Boolean instanceTypeSupportIPv6; - - private List zoneIds; - - private List instanceTypeModels; - - private Float memory; - - private String resourceAmountType; - - private Boolean matchOpenInstances; - - private String instanceChargeType; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Integer targetCapacity; - public DescribeResourceSolutionsRequest() { - super("Ecs", "2016-03-14", "DescribeResourceSolutions", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Integer getCores() { - return this.cores; - } - - public void setCores(Integer cores) { - this.cores = cores; - if(cores != null){ - putQueryParameter("Cores", cores.toString()); - } - } - - public String getSystemDiskCategory() { - return this.systemDiskCategory; - } - - public void setSystemDiskCategory(String systemDiskCategory) { - this.systemDiskCategory = systemDiskCategory; - if(systemDiskCategory != null){ - putQueryParameter("SystemDiskCategory", systemDiskCategory); - } - } - - public Float getMaxPrice() { - return this.maxPrice; - } - - public void setMaxPrice(Float maxPrice) { - this.maxPrice = maxPrice; - if(maxPrice != null){ - putQueryParameter("MaxPrice", maxPrice.toString()); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getSpotStrategy() { - return this.spotStrategy; - } - - public void setSpotStrategy(String spotStrategy) { - this.spotStrategy = spotStrategy; - if(spotStrategy != null){ - putQueryParameter("SpotStrategy", spotStrategy); - } - } - - public String getInstanceFamilyLevel() { - return this.instanceFamilyLevel; - } - - public void setInstanceFamilyLevel(String instanceFamilyLevel) { - this.instanceFamilyLevel = instanceFamilyLevel; - if(instanceFamilyLevel != null){ - putQueryParameter("InstanceFamilyLevel", instanceFamilyLevel); - } - } - - public Boolean getInstanceTypeSupportIPv6() { - return this.instanceTypeSupportIPv6; - } - - public void setInstanceTypeSupportIPv6(Boolean instanceTypeSupportIPv6) { - this.instanceTypeSupportIPv6 = instanceTypeSupportIPv6; - if(instanceTypeSupportIPv6 != null){ - putQueryParameter("InstanceTypeSupportIPv6", instanceTypeSupportIPv6.toString()); - } - } - - public List getZoneIds() { - return this.zoneIds; - } - - public void setZoneIds(List zoneIds) { - this.zoneIds = zoneIds; - if (zoneIds != null) { - for (int i = 0; i < zoneIds.size(); i++) { - putQueryParameter("ZoneId." + (i + 1) , zoneIds.get(i)); - } - } - } - - public List getInstanceTypeModels() { - return this.instanceTypeModels; - } - - public void setInstanceTypeModels(List instanceTypeModels) { - this.instanceTypeModels = instanceTypeModels; - if (instanceTypeModels != null) { - for (int depth1 = 0; depth1 < instanceTypeModels.size(); depth1++) { - putQueryParameter("InstanceTypeModel." + (depth1 + 1) + ".InstanceType" , instanceTypeModels.get(depth1).getInstanceType()); - putQueryParameter("InstanceTypeModel." + (depth1 + 1) + ".WeightedCapacity" , instanceTypeModels.get(depth1).getWeightedCapacity()); - } - } - } - - public Float getMemory() { - return this.memory; - } - - public void setMemory(Float memory) { - this.memory = memory; - if(memory != null){ - putQueryParameter("Memory", memory.toString()); - } - } - - public String getResourceAmountType() { - return this.resourceAmountType; - } - - public void setResourceAmountType(String resourceAmountType) { - this.resourceAmountType = resourceAmountType; - if(resourceAmountType != null){ - putQueryParameter("ResourceAmountType", resourceAmountType); - } - } - - public Boolean getMatchOpenInstances() { - return this.matchOpenInstances; - } - - public void setMatchOpenInstances(Boolean matchOpenInstances) { - this.matchOpenInstances = matchOpenInstances; - if(matchOpenInstances != null){ - putQueryParameter("MatchOpenInstances", matchOpenInstances.toString()); - } - } - - public String getInstanceChargeType() { - return this.instanceChargeType; - } - - public void setInstanceChargeType(String instanceChargeType) { - this.instanceChargeType = instanceChargeType; - if(instanceChargeType != null){ - putQueryParameter("InstanceChargeType", instanceChargeType); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Integer getTargetCapacity() { - return this.targetCapacity; - } - - public void setTargetCapacity(Integer targetCapacity) { - this.targetCapacity = targetCapacity; - if(targetCapacity != null){ - putQueryParameter("TargetCapacity", targetCapacity.toString()); - } - } - - public static class InstanceTypeModel { - - private String instanceType; - - private Float weightedCapacity; - - public String getInstanceType() { - return this.instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - } - - public Float getWeightedCapacity() { - return this.weightedCapacity; - } - - public void setWeightedCapacity(Float weightedCapacity) { - this.weightedCapacity = weightedCapacity; - } - } - - @Override - public Class getResponseClass() { - return DescribeResourceSolutionsResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceSolutionsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceSolutionsResponse.java deleted file mode 100644 index f108348b38..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourceSolutionsResponse.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeResourceSolutionsResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeResourceSolutionsResponse extends AcsResponse { - - private String requestId; - - private List resourcePlanningResponses; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public List getResourcePlanningResponses() { - return this.resourcePlanningResponses; - } - - public void setResourcePlanningResponses(List resourcePlanningResponses) { - this.resourcePlanningResponses = resourcePlanningResponses; - } - - public static class ResourcePlanningResponse { - - private Integer satisfiedAmount; - - private List resourceModels; - - private List recommendReasons; - - public Integer getSatisfiedAmount() { - return this.satisfiedAmount; - } - - public void setSatisfiedAmount(Integer satisfiedAmount) { - this.satisfiedAmount = satisfiedAmount; - } - - public List getResourceModels() { - return this.resourceModels; - } - - public void setResourceModels(List resourceModels) { - this.resourceModels = resourceModels; - } - - public List getRecommendReasons() { - return this.recommendReasons; - } - - public void setRecommendReasons(List recommendReasons) { - this.recommendReasons = recommendReasons; - } - - public static class ResourceModel { - - private Integer amount; - - private String zoneId; - - private String instanceType; - - private String regionId; - - private String deliveryTime; - - public Integer getAmount() { - return this.amount; - } - - public void setAmount(Integer amount) { - this.amount = amount; - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - } - - public String getInstanceType() { - return this.instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - } - - public String getRegionId() { - return this.regionId; - } - - public void setRegionId(String regionId) { - this.regionId = regionId; - } - - public String getDeliveryTime() { - return this.deliveryTime; - } - - public void setDeliveryTime(String deliveryTime) { - this.deliveryTime = deliveryTime; - } - } - } - - @Override - public DescribeResourceSolutionsResponse getInstance(UnmarshallerContext context) { - return DescribeResourceSolutionsResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourcesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourcesRequest.java deleted file mode 100644 index 8728852d27..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourcesRequest.java +++ /dev/null @@ -1,341 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeResourcesRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String global; - - private String resourceGroupId; - - private List templateTags; - - private String keyword; - - private String product; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private List tagFilters; - - private String resourceType; - - private String regionNo; - - private List filters; - - private String marker; - - private Integer maxItems; - public DescribeResourcesRequest() { - super("Ecs", "2016-03-14", "DescribeResources", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getGlobal() { - return this.global; - } - - public void setGlobal(String global) { - this.global = global; - if(global != null){ - putQueryParameter("Global", global); - } - } - - public String getResourceGroupId() { - return this.resourceGroupId; - } - - public void setResourceGroupId(String resourceGroupId) { - this.resourceGroupId = resourceGroupId; - if(resourceGroupId != null){ - putQueryParameter("ResourceGroupId", resourceGroupId); - } - } - - public List getTemplateTags() { - return this.templateTags; - } - - public void setTemplateTags(List templateTags) { - this.templateTags = templateTags; - if (templateTags != null) { - for (int depth1 = 0; depth1 < templateTags.size(); depth1++) { - putQueryParameter("TemplateTag." + (depth1 + 1) + ".Key" , templateTags.get(depth1).getKey()); - putQueryParameter("TemplateTag." + (depth1 + 1) + ".Value" , templateTags.get(depth1).getValue()); - } - } - } - - public String getKeyword() { - return this.keyword; - } - - public void setKeyword(String keyword) { - this.keyword = keyword; - if(keyword != null){ - putQueryParameter("Keyword", keyword); - } - } - - public String getProduct() { - return this.product; - } - - public void setProduct(String product) { - this.product = product; - if(product != null){ - putQueryParameter("Product", product); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public List getTagFilters() { - return this.tagFilters; - } - - public void setTagFilters(List tagFilters) { - this.tagFilters = tagFilters; - if (tagFilters != null) { - for (int depth1 = 0; depth1 < tagFilters.size(); depth1++) { - putQueryParameter("TagFilter." + (depth1 + 1) + ".Operation" , tagFilters.get(depth1).getOperation()); - if (tagFilters.get(depth1).getTagValuess() != null) { - for (int i = 0; i < tagFilters.get(depth1).getTagValuess().size(); i++) { - putQueryParameter("TagFilter." + (depth1 + 1) + ".TagValues." + (i + 1) , tagFilters.get(depth1).getTagValuess().get(i)); - } - } - putQueryParameter("TagFilter." + (depth1 + 1) + ".TagKey" , tagFilters.get(depth1).getTagKey()); - } - } - } - - public String getResourceType() { - return this.resourceType; - } - - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - if(resourceType != null){ - putQueryParameter("ResourceType", resourceType); - } - } - - public String getRegionNo() { - return this.regionNo; - } - - public void setRegionNo(String regionNo) { - this.regionNo = regionNo; - if(regionNo != null){ - putQueryParameter("RegionNo", regionNo); - } - } - - public List getFilters() { - return this.filters; - } - - public void setFilters(List filters) { - this.filters = filters; - if (filters != null) { - for (int depth1 = 0; depth1 < filters.size(); depth1++) { - putQueryParameter("Filter." + (depth1 + 1) + ".Operation" , filters.get(depth1).getOperation()); - putQueryParameter("Filter." + (depth1 + 1) + ".AttributeName" , filters.get(depth1).getAttributeName()); - putQueryParameter("Filter." + (depth1 + 1) + ".AttributeValue" , filters.get(depth1).getAttributeValue()); - } - } - } - - public String getMarker() { - return this.marker; - } - - public void setMarker(String marker) { - this.marker = marker; - if(marker != null){ - putQueryParameter("Marker", marker); - } - } - - public Integer getMaxItems() { - return this.maxItems; - } - - public void setMaxItems(Integer maxItems) { - this.maxItems = maxItems; - if(maxItems != null){ - putQueryParameter("MaxItems", maxItems.toString()); - } - } - - public static class TemplateTag { - - private String key; - - private String value; - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } - } - - public static class TagFilter { - - private String operation; - - private List tagValuess; - - private String tagKey; - - public String getOperation() { - return this.operation; - } - - public void setOperation(String operation) { - this.operation = operation; - } - - public List getTagValuess() { - return this.tagValuess; - } - - public void setTagValuess(List tagValuess) { - this.tagValuess = tagValuess; - } - - public String getTagKey() { - return this.tagKey; - } - - public void setTagKey(String tagKey) { - this.tagKey = tagKey; - } - } - - public static class Filter { - - private String operation; - - private String attributeName; - - private String attributeValue; - - public String getOperation() { - return this.operation; - } - - public void setOperation(String operation) { - this.operation = operation; - } - - public String getAttributeName() { - return this.attributeName; - } - - public void setAttributeName(String attributeName) { - this.attributeName = attributeName; - } - - public String getAttributeValue() { - return this.attributeValue; - } - - public void setAttributeValue(String attributeValue) { - this.attributeValue = attributeValue; - } - } - - @Override - public Class getResponseClass() { - return DescribeResourcesResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourcesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourcesResponse.java deleted file mode 100644 index f3654e55a2..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeResourcesResponse.java +++ /dev/null @@ -1,175 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeResourcesResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeResourcesResponse extends AcsResponse { - - private String marker; - - private Integer estimatedTotal; - - private String requestId; - - private Boolean truncated; - - private List resources; - - public String getMarker() { - return this.marker; - } - - public void setMarker(String marker) { - this.marker = marker; - } - - public Integer getEstimatedTotal() { - return this.estimatedTotal; - } - - public void setEstimatedTotal(Integer estimatedTotal) { - this.estimatedTotal = estimatedTotal; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public Boolean getTruncated() { - return this.truncated; - } - - public void setTruncated(Boolean truncated) { - this.truncated = truncated; - } - - public List getResources() { - return this.resources; - } - - public void setResources(List resources) { - this.resources = resources; - } - - public static class Resource { - - private String updateTime; - - private String resourceType; - - private String product; - - private String createTime; - - private String matchedAttributes; - - private String resourceId; - - private String arn; - - private String resourceName; - - private String regionId; - - public String getUpdateTime() { - return this.updateTime; - } - - public void setUpdateTime(String updateTime) { - this.updateTime = updateTime; - } - - public String getResourceType() { - return this.resourceType; - } - - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - } - - public String getProduct() { - return this.product; - } - - public void setProduct(String product) { - this.product = product; - } - - public String getCreateTime() { - return this.createTime; - } - - public void setCreateTime(String createTime) { - this.createTime = createTime; - } - - public String getMatchedAttributes() { - return this.matchedAttributes; - } - - public void setMatchedAttributes(String matchedAttributes) { - this.matchedAttributes = matchedAttributes; - } - - public String getResourceId() { - return this.resourceId; - } - - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } - - public String getArn() { - return this.arn; - } - - public void setArn(String arn) { - this.arn = arn; - } - - public String getResourceName() { - return this.resourceName; - } - - public void setResourceName(String resourceName) { - this.resourceName = resourceName; - } - - public String getRegionId() { - return this.regionId; - } - - public void setRegionId(String regionId) { - this.regionId = regionId; - } - } - - @Override - public DescribeResourcesResponse getInstance(UnmarshallerContext context) { - return DescribeResourcesResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeRiUtilizationRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeRiUtilizationRequest.java deleted file mode 100644 index fccae26e5d..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeRiUtilizationRequest.java +++ /dev/null @@ -1,148 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeRiUtilizationRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private List tags; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private List reservedInstanceIds; - public DescribeRiUtilizationRequest() { - super("Ecs", "2016-03-14", "DescribeRiUtilization", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public List getTags() { - return this.tags; - } - - public void setTags(List tags) { - this.tags = tags; - if (tags != null) { - for (int depth1 = 0; depth1 < tags.size(); depth1++) { - putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); - putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); - } - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public List getReservedInstanceIds() { - return this.reservedInstanceIds; - } - - public void setReservedInstanceIds(List reservedInstanceIds) { - this.reservedInstanceIds = reservedInstanceIds; - if (reservedInstanceIds != null) { - for (int i = 0; i < reservedInstanceIds.size(); i++) { - putQueryParameter("ReservedInstanceId." + (i + 1) , reservedInstanceIds.get(i)); - } - } - } - - public static class Tag { - - private String value; - - private String key; - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - } - - @Override - public Class getResponseClass() { - return DescribeRiUtilizationResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeRiUtilizationResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeRiUtilizationResponse.java deleted file mode 100644 index 8e3bbcbcfb..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeRiUtilizationResponse.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeRiUtilizationResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeRiUtilizationResponse extends AcsResponse { - - private String requestId; - - private List utilizations; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public List getUtilizations() { - return this.utilizations; - } - - public void setUtilizations(List utilizations) { - this.utilizations = utilizations; - } - - public static class Utilization { - - private String reservedInstanceId; - - private String utilization; - - public String getReservedInstanceId() { - return this.reservedInstanceId; - } - - public void setReservedInstanceId(String reservedInstanceId) { - this.reservedInstanceId = reservedInstanceId; - } - - public String getUtilization() { - return this.utilization; - } - - public void setUtilization(String utilization) { - this.utilization = utilization; - } - } - - @Override - public DescribeRiUtilizationResponse getInstance(UnmarshallerContext context) { - return DescribeRiUtilizationResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeScenePurchaseRecommendRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeScenePurchaseRecommendRequest.java deleted file mode 100644 index c03df11822..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeScenePurchaseRecommendRequest.java +++ /dev/null @@ -1,431 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeScenePurchaseRecommendRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String imageId; - - private Integer productId; - - private String ioOptimized; - - private Integer internetMaxBandwidthOut; - - private String networkType; - - private String privatePoolOptionsMatchCriteria; - - private SystemDisk systemDisk; - - private String instanceType; - - private String instanceChargeType; - - private String privatePoolOptionsId; - - private Integer amount; - - private Integer period; - - private String resourceOwnerAccount; - - private String schedulerOptionsDedicatedHostClusterId; - - private String ownerAccount; - - private String tenancy; - - private String dedicatedHostId; - - private Long ownerId; - - private List dataDisks; - - private String vSwitchId; - - private String spotStrategy; - - private String periodUnit; - - private String internetChargeType; - - private Integer sceneId; - - private String zoneId; - public DescribeScenePurchaseRecommendRequest() { - super("Ecs", "2016-03-14", "DescribeScenePurchaseRecommend", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getImageId() { - return this.imageId; - } - - public void setImageId(String imageId) { - this.imageId = imageId; - if(imageId != null){ - putQueryParameter("ImageId", imageId); - } - } - - public Integer getProductId() { - return this.productId; - } - - public void setProductId(Integer productId) { - this.productId = productId; - if(productId != null){ - putQueryParameter("ProductId", productId.toString()); - } - } - - public String getIoOptimized() { - return this.ioOptimized; - } - - public void setIoOptimized(String ioOptimized) { - this.ioOptimized = ioOptimized; - if(ioOptimized != null){ - putQueryParameter("IoOptimized", ioOptimized); - } - } - - public Integer getInternetMaxBandwidthOut() { - return this.internetMaxBandwidthOut; - } - - public void setInternetMaxBandwidthOut(Integer internetMaxBandwidthOut) { - this.internetMaxBandwidthOut = internetMaxBandwidthOut; - if(internetMaxBandwidthOut != null){ - putQueryParameter("InternetMaxBandwidthOut", internetMaxBandwidthOut.toString()); - } - } - - public String getNetworkType() { - return this.networkType; - } - - public void setNetworkType(String networkType) { - this.networkType = networkType; - if(networkType != null){ - putQueryParameter("NetworkType", networkType); - } - } - - public String getPrivatePoolOptionsMatchCriteria() { - return this.privatePoolOptionsMatchCriteria; - } - - public void setPrivatePoolOptionsMatchCriteria(String privatePoolOptionsMatchCriteria) { - this.privatePoolOptionsMatchCriteria = privatePoolOptionsMatchCriteria; - if(privatePoolOptionsMatchCriteria != null){ - putQueryParameter("PrivatePoolOptions.MatchCriteria", privatePoolOptionsMatchCriteria); - } - } - - public SystemDisk getSystemDisk() { - return this.systemDisk; - } - - public void setSystemDisk(SystemDisk systemDisk) { - this.systemDisk = systemDisk; - if (systemDisk != null) { - - putQueryParameter("SystemDisk.StorageClusterId" , systemDisk.getStorageClusterId()); - } - } - - public String getInstanceType() { - return this.instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - if(instanceType != null){ - putQueryParameter("InstanceType", instanceType); - } - } - - public String getInstanceChargeType() { - return this.instanceChargeType; - } - - public void setInstanceChargeType(String instanceChargeType) { - this.instanceChargeType = instanceChargeType; - if(instanceChargeType != null){ - putQueryParameter("InstanceChargeType", instanceChargeType); - } - } - - public String getPrivatePoolOptionsId() { - return this.privatePoolOptionsId; - } - - public void setPrivatePoolOptionsId(String privatePoolOptionsId) { - this.privatePoolOptionsId = privatePoolOptionsId; - if(privatePoolOptionsId != null){ - putQueryParameter("PrivatePoolOptions.Id", privatePoolOptionsId); - } - } - - public Integer getAmount() { - return this.amount; - } - - public void setAmount(Integer amount) { - this.amount = amount; - if(amount != null){ - putQueryParameter("Amount", amount.toString()); - } - } - - public Integer getPeriod() { - return this.period; - } - - public void setPeriod(Integer period) { - this.period = period; - if(period != null){ - putQueryParameter("Period", period.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getSchedulerOptionsDedicatedHostClusterId() { - return this.schedulerOptionsDedicatedHostClusterId; - } - - public void setSchedulerOptionsDedicatedHostClusterId(String schedulerOptionsDedicatedHostClusterId) { - this.schedulerOptionsDedicatedHostClusterId = schedulerOptionsDedicatedHostClusterId; - if(schedulerOptionsDedicatedHostClusterId != null){ - putQueryParameter("SchedulerOptions.DedicatedHostClusterId", schedulerOptionsDedicatedHostClusterId); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public String getTenancy() { - return this.tenancy; - } - - public void setTenancy(String tenancy) { - this.tenancy = tenancy; - if(tenancy != null){ - putQueryParameter("Tenancy", tenancy); - } - } - - public String getDedicatedHostId() { - return this.dedicatedHostId; - } - - public void setDedicatedHostId(String dedicatedHostId) { - this.dedicatedHostId = dedicatedHostId; - if(dedicatedHostId != null){ - putQueryParameter("DedicatedHostId", dedicatedHostId); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public List getDataDisks() { - return this.dataDisks; - } - - public void setDataDisks(List dataDisks) { - this.dataDisks = dataDisks; - if (dataDisks != null) { - for (int depth1 = 0; depth1 < dataDisks.size(); depth1++) { - putQueryParameter("DataDisk." + (depth1 + 1) + ".PerformanceLevel" , dataDisks.get(depth1).getPerformanceLevel()); - putQueryParameter("DataDisk." + (depth1 + 1) + ".Size" , dataDisks.get(depth1).getSize()); - putQueryParameter("DataDisk." + (depth1 + 1) + ".Category" , dataDisks.get(depth1).getCategory()); - } - } - } - - public String getVSwitchId() { - return this.vSwitchId; - } - - public void setVSwitchId(String vSwitchId) { - this.vSwitchId = vSwitchId; - if(vSwitchId != null){ - putQueryParameter("VSwitchId", vSwitchId); - } - } - - public String getSpotStrategy() { - return this.spotStrategy; - } - - public void setSpotStrategy(String spotStrategy) { - this.spotStrategy = spotStrategy; - if(spotStrategy != null){ - putQueryParameter("SpotStrategy", spotStrategy); - } - } - - public String getPeriodUnit() { - return this.periodUnit; - } - - public void setPeriodUnit(String periodUnit) { - this.periodUnit = periodUnit; - if(periodUnit != null){ - putQueryParameter("PeriodUnit", periodUnit); - } - } - - public String getInternetChargeType() { - return this.internetChargeType; - } - - public void setInternetChargeType(String internetChargeType) { - this.internetChargeType = internetChargeType; - if(internetChargeType != null){ - putQueryParameter("InternetChargeType", internetChargeType); - } - } - - public Integer getSceneId() { - return this.sceneId; - } - - public void setSceneId(Integer sceneId) { - this.sceneId = sceneId; - if(sceneId != null){ - putQueryParameter("SceneId", sceneId.toString()); - } - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - if(zoneId != null){ - putQueryParameter("ZoneId", zoneId); - } - } - - public static class SystemDisk { - - private String storageClusterId; - - public String getStorageClusterId() { - return this.storageClusterId; - } - - public void setStorageClusterId(String storageClusterId) { - this.storageClusterId = storageClusterId; - } - } - - public static class DataDisk { - - private String performanceLevel; - - private Integer size; - - private String category; - - public String getPerformanceLevel() { - return this.performanceLevel; - } - - public void setPerformanceLevel(String performanceLevel) { - this.performanceLevel = performanceLevel; - } - - public Integer getSize() { - return this.size; - } - - public void setSize(Integer size) { - this.size = size; - } - - public String getCategory() { - return this.category; - } - - public void setCategory(String category) { - this.category = category; - } - } - - @Override - public Class getResponseClass() { - return DescribeScenePurchaseRecommendResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeScenePurchaseRecommendResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeScenePurchaseRecommendResponse.java deleted file mode 100644 index 565d5b1d1c..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeScenePurchaseRecommendResponse.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeScenePurchaseRecommendResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeScenePurchaseRecommendResponse extends AcsResponse { - - private String requestId; - - private List recommendProducts; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public List getRecommendProducts() { - return this.recommendProducts; - } - - public void setRecommendProducts(List recommendProducts) { - this.recommendProducts = recommendProducts; - } - - public static class RecommendProduct { - - private String regionId; - - private List recommendSpSpecs; - - public String getRegionId() { - return this.regionId; - } - - public void setRegionId(String regionId) { - this.regionId = regionId; - } - - public List getRecommendSpSpecs() { - return this.recommendSpSpecs; - } - - public void setRecommendSpSpecs(List recommendSpSpecs) { - this.recommendSpSpecs = recommendSpSpecs; - } - - public static class RecommendSpSpec { - - private Integer duration; - - private String pricingCycle; - - private String type; - - private String payMode; - - private String effectiveDate; - - private String recommendReason; - - public Integer getDuration() { - return this.duration; - } - - public void setDuration(Integer duration) { - this.duration = duration; - } - - public String getPricingCycle() { - return this.pricingCycle; - } - - public void setPricingCycle(String pricingCycle) { - this.pricingCycle = pricingCycle; - } - - public String getType() { - return this.type; - } - - public void setType(String type) { - this.type = type; - } - - public String getPayMode() { - return this.payMode; - } - - public void setPayMode(String payMode) { - this.payMode = payMode; - } - - public String getEffectiveDate() { - return this.effectiveDate; - } - - public void setEffectiveDate(String effectiveDate) { - this.effectiveDate = effectiveDate; - } - - public String getRecommendReason() { - return this.recommendReason; - } - - public void setRecommendReason(String recommendReason) { - this.recommendReason = recommendReason; - } - } - } - - @Override - public DescribeScenePurchaseRecommendResponse getInstance(UnmarshallerContext context) { - return DescribeScenePurchaseRecommendResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeSceneResourceRecommendRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeSceneResourceRecommendRequest.java deleted file mode 100644 index 00732807cf..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeSceneResourceRecommendRequest.java +++ /dev/null @@ -1,184 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeSceneResourceRecommendRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private Integer productId; - - private String instanceType; - - private String instanceChargeType; - - private String resourceId; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String spotStrategy; - - private Integer sceneId; - - private String zoneId; - public DescribeSceneResourceRecommendRequest() { - super("Ecs", "2016-03-14", "DescribeSceneResourceRecommend", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Integer getProductId() { - return this.productId; - } - - public void setProductId(Integer productId) { - this.productId = productId; - if(productId != null){ - putQueryParameter("ProductId", productId.toString()); - } - } - - public String getInstanceType() { - return this.instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - if(instanceType != null){ - putQueryParameter("InstanceType", instanceType); - } - } - - public String getInstanceChargeType() { - return this.instanceChargeType; - } - - public void setInstanceChargeType(String instanceChargeType) { - this.instanceChargeType = instanceChargeType; - if(instanceChargeType != null){ - putQueryParameter("InstanceChargeType", instanceChargeType); - } - } - - public String getResourceId() { - return this.resourceId; - } - - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - if(resourceId != null){ - putQueryParameter("ResourceId", resourceId); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getSpotStrategy() { - return this.spotStrategy; - } - - public void setSpotStrategy(String spotStrategy) { - this.spotStrategy = spotStrategy; - if(spotStrategy != null){ - putQueryParameter("SpotStrategy", spotStrategy); - } - } - - public Integer getSceneId() { - return this.sceneId; - } - - public void setSceneId(Integer sceneId) { - this.sceneId = sceneId; - if(sceneId != null){ - putQueryParameter("SceneId", sceneId.toString()); - } - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - if(zoneId != null){ - putQueryParameter("ZoneId", zoneId); - } - } - - @Override - public Class getResponseClass() { - return DescribeSceneResourceRecommendResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeSceneResourceRecommendResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeSceneResourceRecommendResponse.java deleted file mode 100644 index 1404a448fd..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeSceneResourceRecommendResponse.java +++ /dev/null @@ -1,234 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeSceneResourceRecommendResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeSceneResourceRecommendResponse extends AcsResponse { - - private String requestId; - - private List recommendProducts; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public List getRecommendProducts() { - return this.recommendProducts; - } - - public void setRecommendProducts(List recommendProducts) { - this.recommendProducts = recommendProducts; - } - - public static class RecommendProduct { - - private String regionId; - - private String zoneId; - - private String resourceId; - - private String recommendReason; - - private List recommendInstanceSpecs; - - private List recommendImages; - - public String getRegionId() { - return this.regionId; - } - - public void setRegionId(String regionId) { - this.regionId = regionId; - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - } - - public String getResourceId() { - return this.resourceId; - } - - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } - - public String getRecommendReason() { - return this.recommendReason; - } - - public void setRecommendReason(String recommendReason) { - this.recommendReason = recommendReason; - } - - public List getRecommendInstanceSpecs() { - return this.recommendInstanceSpecs; - } - - public void setRecommendInstanceSpecs(List recommendInstanceSpecs) { - this.recommendInstanceSpecs = recommendInstanceSpecs; - } - - public List getRecommendImages() { - return this.recommendImages; - } - - public void setRecommendImages(List recommendImages) { - this.recommendImages = recommendImages; - } - - public static class RecommendInstanceSpec { - - private Integer cores; - - private Float memory; - - private List instanceTypes; - - public Integer getCores() { - return this.cores; - } - - public void setCores(Integer cores) { - this.cores = cores; - } - - public Float getMemory() { - return this.memory; - } - - public void setMemory(Float memory) { - this.memory = memory; - } - - public List getInstanceTypes() { - return this.instanceTypes; - } - - public void setInstanceTypes(List instanceTypes) { - this.instanceTypes = instanceTypes; - } - - public static class InstanceType { - - private String instanceTypeName; - - private String instanceTypeFamily; - - private Integer priority; - - private String warningRisk; - - public String getInstanceTypeName() { - return this.instanceTypeName; - } - - public void setInstanceTypeName(String instanceTypeName) { - this.instanceTypeName = instanceTypeName; - } - - public String getInstanceTypeFamily() { - return this.instanceTypeFamily; - } - - public void setInstanceTypeFamily(String instanceTypeFamily) { - this.instanceTypeFamily = instanceTypeFamily; - } - - public Integer getPriority() { - return this.priority; - } - - public void setPriority(Integer priority) { - this.priority = priority; - } - - public String getWarningRisk() { - return this.warningRisk; - } - - public void setWarningRisk(String warningRisk) { - this.warningRisk = warningRisk; - } - } - } - - public static class RecommendImage { - - private String imageId; - - private String imageOwnerAlias; - - private Boolean isPublic; - - private Integer priority; - - public String getImageId() { - return this.imageId; - } - - public void setImageId(String imageId) { - this.imageId = imageId; - } - - public String getImageOwnerAlias() { - return this.imageOwnerAlias; - } - - public void setImageOwnerAlias(String imageOwnerAlias) { - this.imageOwnerAlias = imageOwnerAlias; - } - - public Boolean getIsPublic() { - return this.isPublic; - } - - public void setIsPublic(Boolean isPublic) { - this.isPublic = isPublic; - } - - public Integer getPriority() { - return this.priority; - } - - public void setPriority(Integer priority) { - this.priority = priority; - } - } - } - - @Override - public DescribeSceneResourceRecommendResponse getInstance(UnmarshallerContext context) { - return DescribeSceneResourceRecommendResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeSpotInstanceAdviceRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeSpotInstanceAdviceRequest.java deleted file mode 100644 index 8fe9ca318d..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeSpotInstanceAdviceRequest.java +++ /dev/null @@ -1,184 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeSpotInstanceAdviceRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private Float memory; - - private String ioOptimized; - - private Integer minCores; - - private String networkType; - - private Integer cores; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String zoneId; - - private Float minMemory; - public DescribeSpotInstanceAdviceRequest() { - super("Ecs", "2016-03-14", "DescribeSpotInstanceAdvice", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Float getMemory() { - return this.memory; - } - - public void setMemory(Float memory) { - this.memory = memory; - if(memory != null){ - putQueryParameter("Memory", memory.toString()); - } - } - - public String getIoOptimized() { - return this.ioOptimized; - } - - public void setIoOptimized(String ioOptimized) { - this.ioOptimized = ioOptimized; - if(ioOptimized != null){ - putQueryParameter("IoOptimized", ioOptimized); - } - } - - public Integer getMinCores() { - return this.minCores; - } - - public void setMinCores(Integer minCores) { - this.minCores = minCores; - if(minCores != null){ - putQueryParameter("MinCores", minCores.toString()); - } - } - - public String getNetworkType() { - return this.networkType; - } - - public void setNetworkType(String networkType) { - this.networkType = networkType; - if(networkType != null){ - putQueryParameter("NetworkType", networkType); - } - } - - public Integer getCores() { - return this.cores; - } - - public void setCores(Integer cores) { - this.cores = cores; - if(cores != null){ - putQueryParameter("Cores", cores.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - if(zoneId != null){ - putQueryParameter("ZoneId", zoneId); - } - } - - public Float getMinMemory() { - return this.minMemory; - } - - public void setMinMemory(Float minMemory) { - this.minMemory = minMemory; - if(minMemory != null){ - putQueryParameter("MinMemory", minMemory.toString()); - } - } - - @Override - public Class getResponseClass() { - return DescribeSpotInstanceAdviceResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeSpotInstanceAdviceResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeSpotInstanceAdviceResponse.java deleted file mode 100644 index a098a01930..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeSpotInstanceAdviceResponse.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeSpotInstanceAdviceResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeSpotInstanceAdviceResponse extends AcsResponse { - - private String regionId; - - private String requestId; - - private List availableSpotZones; - - public String getRegionId() { - return this.regionId; - } - - public void setRegionId(String regionId) { - this.regionId = regionId; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public List getAvailableSpotZones() { - return this.availableSpotZones; - } - - public void setAvailableSpotZones(List availableSpotZones) { - this.availableSpotZones = availableSpotZones; - } - - @Override - public DescribeSpotInstanceAdviceResponse getInstance(UnmarshallerContext context) { - return DescribeSpotInstanceAdviceResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeStorageCapacityUnitAllocationsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeStorageCapacityUnitAllocationsRequest.java deleted file mode 100644 index 9235b2e0da..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeStorageCapacityUnitAllocationsRequest.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeStorageCapacityUnitAllocationsRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private Integer pageNumber; - - private String storageCapacityUnitId; - - private Integer pageSize; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - public DescribeStorageCapacityUnitAllocationsRequest() { - super("Ecs", "2016-03-14", "DescribeStorageCapacityUnitAllocations", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - if(pageNumber != null){ - putQueryParameter("PageNumber", pageNumber.toString()); - } - } - - public String getStorageCapacityUnitId() { - return this.storageCapacityUnitId; - } - - public void setStorageCapacityUnitId(String storageCapacityUnitId) { - this.storageCapacityUnitId = storageCapacityUnitId; - if(storageCapacityUnitId != null){ - putQueryParameter("StorageCapacityUnitId", storageCapacityUnitId); - } - } - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - if(pageSize != null){ - putQueryParameter("PageSize", pageSize.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - @Override - public Class getResponseClass() { - return DescribeStorageCapacityUnitAllocationsResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeStorageCapacityUnitAllocationsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeStorageCapacityUnitAllocationsResponse.java deleted file mode 100644 index aba73602f3..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeStorageCapacityUnitAllocationsResponse.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeStorageCapacityUnitAllocationsResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeStorageCapacityUnitAllocationsResponse extends AcsResponse { - - private Integer pageSize; - - private String requestId; - - private Integer pageNumber; - - private Integer totalCount; - - private List allocations; - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - } - - public Integer getTotalCount() { - return this.totalCount; - } - - public void setTotalCount(Integer totalCount) { - this.totalCount = totalCount; - } - - public List getAllocations() { - return this.allocations; - } - - public void setAllocations(List allocations) { - this.allocations = allocations; - } - - public static class Allocation { - - private String beAllocatedAccountId; - - private String resourceOwnerId; - - private String storageCapacityUnitId; - - public String getBeAllocatedAccountId() { - return this.beAllocatedAccountId; - } - - public void setBeAllocatedAccountId(String beAllocatedAccountId) { - this.beAllocatedAccountId = beAllocatedAccountId; - } - - public String getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(String resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - } - - public String getStorageCapacityUnitId() { - return this.storageCapacityUnitId; - } - - public void setStorageCapacityUnitId(String storageCapacityUnitId) { - this.storageCapacityUnitId = storageCapacityUnitId; - } - } - - @Override - public DescribeStorageCapacityUnitAllocationsResponse getInstance(UnmarshallerContext context) { - return DescribeStorageCapacityUnitAllocationsResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeStorageCapacityUnitDeductFactorRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeStorageCapacityUnitDeductFactorRequest.java deleted file mode 100644 index a3324faee5..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeStorageCapacityUnitDeductFactorRequest.java +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeStorageCapacityUnitDeductFactorRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String storageType; - - private List tags; - - private String resourceOwnerAccount; - - private String performanceLevel; - - private String ownerAccount; - - private String deductField; - - private Long ownerId; - public DescribeStorageCapacityUnitDeductFactorRequest() { - super("Ecs", "2016-03-14", "DescribeStorageCapacityUnitDeductFactor", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getStorageType() { - return this.storageType; - } - - public void setStorageType(String storageType) { - this.storageType = storageType; - if(storageType != null){ - putQueryParameter("StorageType", storageType); - } - } - - public List getTags() { - return this.tags; - } - - public void setTags(List tags) { - this.tags = tags; - if (tags != null) { - for (int depth1 = 0; depth1 < tags.size(); depth1++) { - putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); - putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); - } - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getPerformanceLevel() { - return this.performanceLevel; - } - - public void setPerformanceLevel(String performanceLevel) { - this.performanceLevel = performanceLevel; - if(performanceLevel != null){ - putQueryParameter("PerformanceLevel", performanceLevel); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public String getDeductField() { - return this.deductField; - } - - public void setDeductField(String deductField) { - this.deductField = deductField; - if(deductField != null){ - putQueryParameter("DeductField", deductField); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public static class Tag { - - private String key; - - private String value; - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } - } - - @Override - public Class getResponseClass() { - return DescribeStorageCapacityUnitDeductFactorResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeStorageCapacityUnitDeductFactorResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeStorageCapacityUnitDeductFactorResponse.java deleted file mode 100644 index 9695726341..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeStorageCapacityUnitDeductFactorResponse.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeStorageCapacityUnitDeductFactorResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeStorageCapacityUnitDeductFactorResponse extends AcsResponse { - - private String deductFactor; - - private String requestId; - - public String getDeductFactor() { - return this.deductFactor; - } - - public void setDeductFactor(String deductFactor) { - this.deductFactor = deductFactor; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public DescribeStorageCapacityUnitDeductFactorResponse getInstance(UnmarshallerContext context) { - return DescribeStorageCapacityUnitDeductFactorResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeTransitionVSwitchesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeTransitionVSwitchesRequest.java deleted file mode 100644 index cfa00b5cc4..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeTransitionVSwitchesRequest.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeTransitionVSwitchesRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String resourceType; - - private String instanceId; - - private String vpcId; - public DescribeTransitionVSwitchesRequest() { - super("Ecs", "2016-03-14", "DescribeTransitionVSwitches", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getResourceType() { - return this.resourceType; - } - - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - if(resourceType != null){ - putQueryParameter("ResourceType", resourceType); - } - } - - public String getInstanceId() { - return this.instanceId; - } - - public void setInstanceId(String instanceId) { - this.instanceId = instanceId; - if(instanceId != null){ - putQueryParameter("InstanceId", instanceId); - } - } - - public String getVpcId() { - return this.vpcId; - } - - public void setVpcId(String vpcId) { - this.vpcId = vpcId; - if(vpcId != null){ - putQueryParameter("VpcId", vpcId); - } - } - - @Override - public Class getResponseClass() { - return DescribeTransitionVSwitchesResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeTransitionVSwitchesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeTransitionVSwitchesResponse.java deleted file mode 100644 index 6906f6694e..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeTransitionVSwitchesResponse.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeTransitionVSwitchesResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeTransitionVSwitchesResponse extends AcsResponse { - - private String code; - - private String requestId; - - private Boolean success; - - private List vSwitchModels; - - public String getCode() { - return this.code; - } - - public void setCode(String code) { - this.code = code; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public Boolean getSuccess() { - return this.success; - } - - public void setSuccess(Boolean success) { - this.success = success; - } - - public List getVSwitchModels() { - return this.vSwitchModels; - } - - public void setVSwitchModels(List vSwitchModels) { - this.vSwitchModels = vSwitchModels; - } - - public static class Model { - - private String vpcId; - - private String vSwitchId; - - private String description; - - private String cIDR; - - private String name; - - private String izNo; - - public String getVpcId() { - return this.vpcId; - } - - public void setVpcId(String vpcId) { - this.vpcId = vpcId; - } - - public String getVSwitchId() { - return this.vSwitchId; - } - - public void setVSwitchId(String vSwitchId) { - this.vSwitchId = vSwitchId; - } - - public String getDescription() { - return this.description; - } - - public void setDescription(String description) { - this.description = description; - } - - public String getCIDR() { - return this.cIDR; - } - - public void setCIDR(String cIDR) { - this.cIDR = cIDR; - } - - public String getName() { - return this.name; - } - - public void setName(String name) { - this.name = name; - } - - public String getIzNo() { - return this.izNo; - } - - public void setIzNo(String izNo) { - this.izNo = izNo; - } - } - - @Override - public DescribeTransitionVSwitchesResponse getInstance(UnmarshallerContext context) { - return DescribeTransitionVSwitchesResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeTransitionVpcAndVSwitchRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeTransitionVpcAndVSwitchRequest.java deleted file mode 100644 index 3dd3e5b73e..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeTransitionVpcAndVSwitchRequest.java +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeTransitionVpcAndVSwitchRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String resourceType; - - private List instanceIdss; - public DescribeTransitionVpcAndVSwitchRequest() { - super("Ecs", "2016-03-14", "DescribeTransitionVpcAndVSwitch", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getResourceType() { - return this.resourceType; - } - - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - if(resourceType != null){ - putQueryParameter("ResourceType", resourceType); - } - } - - public List getInstanceIdss() { - return this.instanceIdss; - } - - public void setInstanceIdss(List instanceIdss) { - this.instanceIdss = instanceIdss; - if (instanceIdss != null) { - for (int i = 0; i < instanceIdss.size(); i++) { - putQueryParameter("InstanceIds." + (i + 1) , instanceIdss.get(i)); - } - } - } - - @Override - public Class getResponseClass() { - return DescribeTransitionVpcAndVSwitchResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeTransitionVpcAndVSwitchResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeTransitionVpcAndVSwitchResponse.java deleted file mode 100644 index d2f053a5b4..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeTransitionVpcAndVSwitchResponse.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeTransitionVpcAndVSwitchResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeTransitionVpcAndVSwitchResponse extends AcsResponse { - - private String requestId; - - private List vmTransitionModels; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public List getVmTransitionModels() { - return this.vmTransitionModels; - } - - public void setVmTransitionModels(List vmTransitionModels) { - this.vmTransitionModels = vmTransitionModels; - } - - public static class Model { - - private String code; - - private String vpcId; - - private String message; - - private String vSwitchId; - - private String instanceId; - - public String getCode() { - return this.code; - } - - public void setCode(String code) { - this.code = code; - } - - public String getVpcId() { - return this.vpcId; - } - - public void setVpcId(String vpcId) { - this.vpcId = vpcId; - } - - public String getMessage() { - return this.message; - } - - public void setMessage(String message) { - this.message = message; - } - - public String getVSwitchId() { - return this.vSwitchId; - } - - public void setVSwitchId(String vSwitchId) { - this.vSwitchId = vSwitchId; - } - - public String getInstanceId() { - return this.instanceId; - } - - public void setInstanceId(String instanceId) { - this.instanceId = instanceId; - } - } - - @Override - public DescribeTransitionVpcAndVSwitchResponse getInstance(UnmarshallerContext context) { - return DescribeTransitionVpcAndVSwitchResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeTransitionVpcsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeTransitionVpcsRequest.java deleted file mode 100644 index e5c4a7dd4a..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeTransitionVpcsRequest.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeTransitionVpcsRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String resourceType; - public DescribeTransitionVpcsRequest() { - super("Ecs", "2016-03-14", "DescribeTransitionVpcs", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getResourceType() { - return this.resourceType; - } - - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - if(resourceType != null){ - putQueryParameter("ResourceType", resourceType); - } - } - - @Override - public Class getResponseClass() { - return DescribeTransitionVpcsResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeTransitionVpcsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeTransitionVpcsResponse.java deleted file mode 100644 index 6530f409f5..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeTransitionVpcsResponse.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeTransitionVpcsResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeTransitionVpcsResponse extends AcsResponse { - - private String code; - - private String requestId; - - private Boolean success; - - private List vpcModels; - - public String getCode() { - return this.code; - } - - public void setCode(String code) { - this.code = code; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public Boolean getSuccess() { - return this.success; - } - - public void setSuccess(Boolean success) { - this.success = success; - } - - public List getVpcModels() { - return this.vpcModels; - } - - public void setVpcModels(List vpcModels) { - this.vpcModels = vpcModels; - } - - public static class Model { - - private String vpcId; - - private String vpcName; - - private Integer status; - - private Integer type; - - private String config; - - private String regionId; - - public String getVpcId() { - return this.vpcId; - } - - public void setVpcId(String vpcId) { - this.vpcId = vpcId; - } - - public String getVpcName() { - return this.vpcName; - } - - public void setVpcName(String vpcName) { - this.vpcName = vpcName; - } - - public Integer getStatus() { - return this.status; - } - - public void setStatus(Integer status) { - this.status = status; - } - - public Integer getType() { - return this.type; - } - - public void setType(Integer type) { - this.type = type; - } - - public String getConfig() { - return this.config; - } - - public void setConfig(String config) { - this.config = config; - } - - public String getRegionId() { - return this.regionId; - } - - public void setRegionId(String regionId) { - this.regionId = regionId; - } - } - - @Override - public DescribeTransitionVpcsResponse getInstance(UnmarshallerContext context) { - return DescribeTransitionVpcsResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeUserAvailableIpServiceProvidersRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeUserAvailableIpServiceProvidersRequest.java deleted file mode 100644 index afb5b1134b..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeUserAvailableIpServiceProvidersRequest.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeUserAvailableIpServiceProvidersRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private Long aliUid; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - public DescribeUserAvailableIpServiceProvidersRequest() { - super("Ecs", "2016-03-14", "DescribeUserAvailableIpServiceProviders", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Long getAliUid() { - return this.aliUid; - } - - public void setAliUid(Long aliUid) { - this.aliUid = aliUid; - if(aliUid != null){ - putQueryParameter("AliUid", aliUid.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - @Override - public Class getResponseClass() { - return DescribeUserAvailableIpServiceProvidersResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeUserAvailableIpServiceProvidersResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeUserAvailableIpServiceProvidersResponse.java deleted file mode 100644 index 445976d13f..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeUserAvailableIpServiceProvidersResponse.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeUserAvailableIpServiceProvidersResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeUserAvailableIpServiceProvidersResponse extends AcsResponse { - - private String requestId; - - private List ipServiceProviders; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public List getIpServiceProviders() { - return this.ipServiceProviders; - } - - public void setIpServiceProviders(List ipServiceProviders) { - this.ipServiceProviders = ipServiceProviders; - } - - public static class IpServiceProvider { - - private String name; - - public String getName() { - return this.name; - } - - public void setName(String name) { - this.name = name; - } - } - - @Override - public DescribeUserAvailableIpServiceProvidersResponse getInstance(UnmarshallerContext context) { - return DescribeUserAvailableIpServiceProvidersResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeUserQuotaApplicationsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeUserQuotaApplicationsRequest.java deleted file mode 100644 index 6948fc2e49..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeUserQuotaApplicationsRequest.java +++ /dev/null @@ -1,223 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeUserQuotaApplicationsRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String quotaType; - - private String clientToken; - - private Integer pageNumber; - - private String nextToken; - - private Integer pageSize; - - private String instanceType; - - private String applicationId; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String zoneId; - - private String chargeType; - - private String status; - public DescribeUserQuotaApplicationsRequest() { - super("Ecs", "2016-03-14", "DescribeUserQuotaApplications", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getQuotaType() { - return this.quotaType; - } - - public void setQuotaType(String quotaType) { - this.quotaType = quotaType; - if(quotaType != null){ - putQueryParameter("QuotaType", quotaType); - } - } - - public String getClientToken() { - return this.clientToken; - } - - public void setClientToken(String clientToken) { - this.clientToken = clientToken; - if(clientToken != null){ - putQueryParameter("ClientToken", clientToken); - } - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - if(pageNumber != null){ - putQueryParameter("PageNumber", pageNumber.toString()); - } - } - - public String getNextToken() { - return this.nextToken; - } - - public void setNextToken(String nextToken) { - this.nextToken = nextToken; - if(nextToken != null){ - putQueryParameter("NextToken", nextToken); - } - } - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - if(pageSize != null){ - putQueryParameter("pageSize", pageSize.toString()); - } - } - - public String getInstanceType() { - return this.instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - if(instanceType != null){ - putQueryParameter("InstanceType", instanceType); - } - } - - public String getApplicationId() { - return this.applicationId; - } - - public void setApplicationId(String applicationId) { - this.applicationId = applicationId; - if(applicationId != null){ - putQueryParameter("ApplicationId", applicationId); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - if(zoneId != null){ - putQueryParameter("ZoneId", zoneId); - } - } - - public String getChargeType() { - return this.chargeType; - } - - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - if(chargeType != null){ - putQueryParameter("ChargeType", chargeType); - } - } - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - if(status != null){ - putQueryParameter("Status", status); - } - } - - @Override - public Class getResponseClass() { - return DescribeUserQuotaApplicationsResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeUserQuotaApplicationsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeUserQuotaApplicationsResponse.java deleted file mode 100644 index 01a13a88f6..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeUserQuotaApplicationsResponse.java +++ /dev/null @@ -1,215 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeUserQuotaApplicationsResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeUserQuotaApplicationsResponse extends AcsResponse { - - private String nextToken; - - private Long pageSize; - - private String requestId; - - private Integer totalCount; - - private List userQuotaApplications; - - public String getNextToken() { - return this.nextToken; - } - - public void setNextToken(String nextToken) { - this.nextToken = nextToken; - } - - public Long getPageSize() { - return this.pageSize; - } - - public void setPageSize(Long pageSize) { - this.pageSize = pageSize; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public Integer getTotalCount() { - return this.totalCount; - } - - public void setTotalCount(Integer totalCount) { - this.totalCount = totalCount; - } - - public List getUserQuotaApplications() { - return this.userQuotaApplications; - } - - public void setUserQuotaApplications(List userQuotaApplications) { - this.userQuotaApplications = userQuotaApplications; - } - - public static class UserQuotaApplication { - - private String status; - - private String creationTime; - - private String comment; - - private String expireTime; - - private String chargeType; - - private String resultCode; - - private String instanceType; - - private String quotaType; - - private String startTime; - - private String description; - - private Long quotaValue; - - private String zoneId; - - private String applicationId; - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - } - - public String getCreationTime() { - return this.creationTime; - } - - public void setCreationTime(String creationTime) { - this.creationTime = creationTime; - } - - public String getComment() { - return this.comment; - } - - public void setComment(String comment) { - this.comment = comment; - } - - public String getExpireTime() { - return this.expireTime; - } - - public void setExpireTime(String expireTime) { - this.expireTime = expireTime; - } - - public String getChargeType() { - return this.chargeType; - } - - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } - - public String getResultCode() { - return this.resultCode; - } - - public void setResultCode(String resultCode) { - this.resultCode = resultCode; - } - - public String getInstanceType() { - return this.instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - } - - public String getQuotaType() { - return this.quotaType; - } - - public void setQuotaType(String quotaType) { - this.quotaType = quotaType; - } - - public String getStartTime() { - return this.startTime; - } - - public void setStartTime(String startTime) { - this.startTime = startTime; - } - - public String getDescription() { - return this.description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Long getQuotaValue() { - return this.quotaValue; - } - - public void setQuotaValue(Long quotaValue) { - this.quotaValue = quotaValue; - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - } - - public String getApplicationId() { - return this.applicationId; - } - - public void setApplicationId(String applicationId) { - this.applicationId = applicationId; - } - } - - @Override - public DescribeUserQuotaApplicationsResponse getInstance(UnmarshallerContext context) { - return DescribeUserQuotaApplicationsResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeVpcHavsInstancesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeVpcHavsInstancesRequest.java deleted file mode 100644 index 2cdfdf47ee..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeVpcHavsInstancesRequest.java +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeVpcHavsInstancesRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private Integer maxResultSize; - - private List vpcIdLists; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - public DescribeVpcHavsInstancesRequest() { - super("Ecs", "2016-03-14", "DescribeVpcHavsInstances", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Integer getMaxResultSize() { - return this.maxResultSize; - } - - public void setMaxResultSize(Integer maxResultSize) { - this.maxResultSize = maxResultSize; - if(maxResultSize != null){ - putQueryParameter("MaxResultSize", maxResultSize.toString()); - } - } - - public List getVpcIdLists() { - return this.vpcIdLists; - } - - public void setVpcIdLists(List vpcIdLists) { - this.vpcIdLists = vpcIdLists; - if (vpcIdLists != null) { - for (int i = 0; i < vpcIdLists.size(); i++) { - putQueryParameter("VpcIdList." + (i + 1) , vpcIdLists.get(i)); - } - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - @Override - public Class getResponseClass() { - return DescribeVpcHavsInstancesResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeVpcHavsInstancesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeVpcHavsInstancesResponse.java deleted file mode 100644 index d419944e72..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeVpcHavsInstancesResponse.java +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeVpcHavsInstancesResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeVpcHavsInstancesResponse extends AcsResponse { - - private String requestId; - - private List vpcHavsInstances; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public List getVpcHavsInstances() { - return this.vpcHavsInstances; - } - - public void setVpcHavsInstances(List vpcHavsInstances) { - this.vpcHavsInstances = vpcHavsInstances; - } - - public static class VpcHavsInstance { - - private String vpcId; - - private List havsInstances; - - public String getVpcId() { - return this.vpcId; - } - - public void setVpcId(String vpcId) { - this.vpcId = vpcId; - } - - public List getHavsInstances() { - return this.havsInstances; - } - - public void setHavsInstances(List havsInstances) { - this.havsInstances = havsInstances; - } - - public static class HavsInstance { - - private String ecsInstanceId; - - private String reason; - - public String getEcsInstanceId() { - return this.ecsInstanceId; - } - - public void setEcsInstanceId(String ecsInstanceId) { - this.ecsInstanceId = ecsInstanceId; - } - - public String getReason() { - return this.reason; - } - - public void setReason(String reason) { - this.reason = reason; - } - } - } - - @Override - public DescribeVpcHavsInstancesResponse getInstance(UnmarshallerContext context) { - return DescribeVpcHavsInstancesResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeWaitingOrdersRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeWaitingOrdersRequest.java deleted file mode 100644 index 44508922f0..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeWaitingOrdersRequest.java +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class DescribeWaitingOrdersRequest extends RpcAcsRequest { - - - private String clientToken; - - private Long pageNumber; - - private String nextToken; - - private List waitingOrderIds; - - private Long pageSize; - - private List tags; - - private String ownerAccount; - - private Long maxResults; - - private String status; - public DescribeWaitingOrdersRequest() { - super("Ecs", "2016-03-14", "DescribeWaitingOrders", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public String getClientToken() { - return this.clientToken; - } - - public void setClientToken(String clientToken) { - this.clientToken = clientToken; - if(clientToken != null){ - putQueryParameter("ClientToken", clientToken); - } - } - - public Long getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Long pageNumber) { - this.pageNumber = pageNumber; - if(pageNumber != null){ - putQueryParameter("PageNumber", pageNumber.toString()); - } - } - - public String getNextToken() { - return this.nextToken; - } - - public void setNextToken(String nextToken) { - this.nextToken = nextToken; - if(nextToken != null){ - putQueryParameter("NextToken", nextToken); - } - } - - public List getWaitingOrderIds() { - return this.waitingOrderIds; - } - - public void setWaitingOrderIds(List waitingOrderIds) { - this.waitingOrderIds = waitingOrderIds; - if (waitingOrderIds != null) { - for (int i = 0; i < waitingOrderIds.size(); i++) { - putQueryParameter("WaitingOrderId." + (i + 1) , waitingOrderIds.get(i)); - } - } - } - - public Long getPageSize() { - return this.pageSize; - } - - public void setPageSize(Long pageSize) { - this.pageSize = pageSize; - if(pageSize != null){ - putQueryParameter("PageSize", pageSize.toString()); - } - } - - public List getTags() { - return this.tags; - } - - public void setTags(List tags) { - this.tags = tags; - if (tags != null) { - for (int depth1 = 0; depth1 < tags.size(); depth1++) { - putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); - putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); - } - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getMaxResults() { - return this.maxResults; - } - - public void setMaxResults(Long maxResults) { - this.maxResults = maxResults; - if(maxResults != null){ - putQueryParameter("MaxResults", maxResults.toString()); - } - } - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - if(status != null){ - putQueryParameter("Status", status); - } - } - - public static class Tag { - - private String key; - - private String value; - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } - } - - @Override - public Class getResponseClass() { - return DescribeWaitingOrdersResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeWaitingOrdersResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeWaitingOrdersResponse.java deleted file mode 100644 index 7b3b79050d..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/DescribeWaitingOrdersResponse.java +++ /dev/null @@ -1,233 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.DescribeWaitingOrdersResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class DescribeWaitingOrdersResponse extends AcsResponse { - - private String requestId; - - private Long totalCount; - - private String nextToken; - - private List data; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public Long getTotalCount() { - return this.totalCount; - } - - public void setTotalCount(Long totalCount) { - this.totalCount = totalCount; - } - - public String getNextToken() { - return this.nextToken; - } - - public void setNextToken(String nextToken) { - this.nextToken = nextToken; - } - - public List getData() { - return this.data; - } - - public void setData(List data) { - this.data = data; - } - - public static class WaitingOrder { - - private String waitingOrderId; - - private String expireTime; - - private String createTime; - - private String status; - - private Long instanceAmount; - - private String regionId; - - private String zoneId; - - private String chargeType; - - private String instanceType; - - private Long successAmount; - - private String failedMessage; - - private String lxCreateParam; - - private List instanceInfos; - - public String getWaitingOrderId() { - return this.waitingOrderId; - } - - public void setWaitingOrderId(String waitingOrderId) { - this.waitingOrderId = waitingOrderId; - } - - public String getExpireTime() { - return this.expireTime; - } - - public void setExpireTime(String expireTime) { - this.expireTime = expireTime; - } - - public String getCreateTime() { - return this.createTime; - } - - public void setCreateTime(String createTime) { - this.createTime = createTime; - } - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - } - - public Long getInstanceAmount() { - return this.instanceAmount; - } - - public void setInstanceAmount(Long instanceAmount) { - this.instanceAmount = instanceAmount; - } - - public String getRegionId() { - return this.regionId; - } - - public void setRegionId(String regionId) { - this.regionId = regionId; - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - } - - public String getChargeType() { - return this.chargeType; - } - - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } - - public String getInstanceType() { - return this.instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - } - - public Long getSuccessAmount() { - return this.successAmount; - } - - public void setSuccessAmount(Long successAmount) { - this.successAmount = successAmount; - } - - public String getFailedMessage() { - return this.failedMessage; - } - - public void setFailedMessage(String failedMessage) { - this.failedMessage = failedMessage; - } - - public String getLxCreateParam() { - return this.lxCreateParam; - } - - public void setLxCreateParam(String lxCreateParam) { - this.lxCreateParam = lxCreateParam; - } - - public List getInstanceInfos() { - return this.instanceInfos; - } - - public void setInstanceInfos(List instanceInfos) { - this.instanceInfos = instanceInfos; - } - - public static class InstanceInfo { - - private String instanceId; - - private String resultCode; - - public String getInstanceId() { - return this.instanceId; - } - - public void setInstanceId(String instanceId) { - this.instanceId = instanceId; - } - - public String getResultCode() { - return this.resultCode; - } - - public void setResultCode(String resultCode) { - this.resultCode = resultCode; - } - } - } - - @Override - public DescribeWaitingOrdersResponse getInstance(UnmarshallerContext context) { - return DescribeWaitingOrdersResponseUnmarshaller.unmarshall(this, context); - } - - @Override - public boolean checkShowJsonItemName() { - return false; - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/FeedbackDiagnoseRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/FeedbackDiagnoseRequest.java deleted file mode 100644 index c255411559..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/FeedbackDiagnoseRequest.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class FeedbackDiagnoseRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private Integer star; - - private String resourceOwnerAccount; - - private String diagnoseId; - - private String ownerAccount; - - private Long ownerId; - - private String mark; - public FeedbackDiagnoseRequest() { - super("Ecs", "2016-03-14", "FeedbackDiagnose", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Integer getStar() { - return this.star; - } - - public void setStar(Integer star) { - this.star = star; - if(star != null){ - putQueryParameter("Star", star.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getDiagnoseId() { - return this.diagnoseId; - } - - public void setDiagnoseId(String diagnoseId) { - this.diagnoseId = diagnoseId; - if(diagnoseId != null){ - putQueryParameter("DiagnoseId", diagnoseId); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getMark() { - return this.mark; - } - - public void setMark(String mark) { - this.mark = mark; - if(mark != null){ - putQueryParameter("Mark", mark); - } - } - - @Override - public Class getResponseClass() { - return FeedbackDiagnoseResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/FeedbackDiagnoseResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/FeedbackDiagnoseResponse.java deleted file mode 100644 index 1d383ae781..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/FeedbackDiagnoseResponse.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.FeedbackDiagnoseResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class FeedbackDiagnoseResponse extends AcsResponse { - - private String requestId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public FeedbackDiagnoseResponse getInstance(UnmarshallerContext context) { - return FeedbackDiagnoseResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/GetLaunchTemplateDataRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/GetLaunchTemplateDataRequest.java deleted file mode 100644 index d5d7d5865a..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/GetLaunchTemplateDataRequest.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class GetLaunchTemplateDataRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String resourceOwnerAccount; - - private Long ownerId; - - private String instanceId; - public GetLaunchTemplateDataRequest() { - super("Ecs", "2016-03-14", "GetLaunchTemplateData", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getInstanceId() { - return this.instanceId; - } - - public void setInstanceId(String instanceId) { - this.instanceId = instanceId; - if(instanceId != null){ - putQueryParameter("InstanceId", instanceId); - } - } - - @Override - public Class getResponseClass() { - return GetLaunchTemplateDataResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/GetLaunchTemplateDataResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/GetLaunchTemplateDataResponse.java deleted file mode 100644 index ea9d83c502..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/GetLaunchTemplateDataResponse.java +++ /dev/null @@ -1,574 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.GetLaunchTemplateDataResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class GetLaunchTemplateDataResponse extends AcsResponse { - - private String requestId; - - private LaunchTemplateData launchTemplateData; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public LaunchTemplateData getLaunchTemplateData() { - return this.launchTemplateData; - } - - public void setLaunchTemplateData(LaunchTemplateData launchTemplateData) { - this.launchTemplateData = launchTemplateData; - } - - public static class LaunchTemplateData { - - private String vpcId; - - private String keyPairName; - - private String securityGroupId; - - private String networkType; - - private String spotStrategy; - - private Boolean enableVmOsConfig; - - private String description; - - private Integer spotDuration; - - private String instanceName; - - private Boolean securityEnhancementStrategy; - - private String userData; - - private String systemDiskDiskName; - - private Integer systemDiskSize; - - private Float spotPriceLimit; - - private Boolean passwordInherit; - - private String imageId; - - private String systemDiskCategory; - - private String autoReleaseTime; - - private String systemDiskDescription; - - private String imageOwnerAlias; - - private String hostName; - - private Integer systemDiskIops; - - private Integer internetMaxBandwidthOut; - - private Integer internetMaxBandwidthIn; - - private String instanceType; - - private Integer period; - - private String instanceChargeType; - - private String ioOptimized; - - private String ramRoleName; - - private String vSwitchId; - - private String resourceGroupId; - - private String internetChargeType; - - private String zoneId; - - private List dataDisks; - - private List networkInterfaces; - - private List tags; - - public String getVpcId() { - return this.vpcId; - } - - public void setVpcId(String vpcId) { - this.vpcId = vpcId; - } - - public String getKeyPairName() { - return this.keyPairName; - } - - public void setKeyPairName(String keyPairName) { - this.keyPairName = keyPairName; - } - - public String getSecurityGroupId() { - return this.securityGroupId; - } - - public void setSecurityGroupId(String securityGroupId) { - this.securityGroupId = securityGroupId; - } - - public String getNetworkType() { - return this.networkType; - } - - public void setNetworkType(String networkType) { - this.networkType = networkType; - } - - public String getSpotStrategy() { - return this.spotStrategy; - } - - public void setSpotStrategy(String spotStrategy) { - this.spotStrategy = spotStrategy; - } - - public Boolean getEnableVmOsConfig() { - return this.enableVmOsConfig; - } - - public void setEnableVmOsConfig(Boolean enableVmOsConfig) { - this.enableVmOsConfig = enableVmOsConfig; - } - - public String getDescription() { - return this.description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Integer getSpotDuration() { - return this.spotDuration; - } - - public void setSpotDuration(Integer spotDuration) { - this.spotDuration = spotDuration; - } - - public String getInstanceName() { - return this.instanceName; - } - - public void setInstanceName(String instanceName) { - this.instanceName = instanceName; - } - - public Boolean getSecurityEnhancementStrategy() { - return this.securityEnhancementStrategy; - } - - public void setSecurityEnhancementStrategy(Boolean securityEnhancementStrategy) { - this.securityEnhancementStrategy = securityEnhancementStrategy; - } - - public String getUserData() { - return this.userData; - } - - public void setUserData(String userData) { - this.userData = userData; - } - - public String getSystemDiskDiskName() { - return this.systemDiskDiskName; - } - - public void setSystemDiskDiskName(String systemDiskDiskName) { - this.systemDiskDiskName = systemDiskDiskName; - } - - public Integer getSystemDiskSize() { - return this.systemDiskSize; - } - - public void setSystemDiskSize(Integer systemDiskSize) { - this.systemDiskSize = systemDiskSize; - } - - public Float getSpotPriceLimit() { - return this.spotPriceLimit; - } - - public void setSpotPriceLimit(Float spotPriceLimit) { - this.spotPriceLimit = spotPriceLimit; - } - - public Boolean getPasswordInherit() { - return this.passwordInherit; - } - - public void setPasswordInherit(Boolean passwordInherit) { - this.passwordInherit = passwordInherit; - } - - public String getImageId() { - return this.imageId; - } - - public void setImageId(String imageId) { - this.imageId = imageId; - } - - public String getSystemDiskCategory() { - return this.systemDiskCategory; - } - - public void setSystemDiskCategory(String systemDiskCategory) { - this.systemDiskCategory = systemDiskCategory; - } - - public String getAutoReleaseTime() { - return this.autoReleaseTime; - } - - public void setAutoReleaseTime(String autoReleaseTime) { - this.autoReleaseTime = autoReleaseTime; - } - - public String getSystemDiskDescription() { - return this.systemDiskDescription; - } - - public void setSystemDiskDescription(String systemDiskDescription) { - this.systemDiskDescription = systemDiskDescription; - } - - public String getImageOwnerAlias() { - return this.imageOwnerAlias; - } - - public void setImageOwnerAlias(String imageOwnerAlias) { - this.imageOwnerAlias = imageOwnerAlias; - } - - public String getHostName() { - return this.hostName; - } - - public void setHostName(String hostName) { - this.hostName = hostName; - } - - public Integer getSystemDiskIops() { - return this.systemDiskIops; - } - - public void setSystemDiskIops(Integer systemDiskIops) { - this.systemDiskIops = systemDiskIops; - } - - public Integer getInternetMaxBandwidthOut() { - return this.internetMaxBandwidthOut; - } - - public void setInternetMaxBandwidthOut(Integer internetMaxBandwidthOut) { - this.internetMaxBandwidthOut = internetMaxBandwidthOut; - } - - public Integer getInternetMaxBandwidthIn() { - return this.internetMaxBandwidthIn; - } - - public void setInternetMaxBandwidthIn(Integer internetMaxBandwidthIn) { - this.internetMaxBandwidthIn = internetMaxBandwidthIn; - } - - public String getInstanceType() { - return this.instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - } - - public Integer getPeriod() { - return this.period; - } - - public void setPeriod(Integer period) { - this.period = period; - } - - public String getInstanceChargeType() { - return this.instanceChargeType; - } - - public void setInstanceChargeType(String instanceChargeType) { - this.instanceChargeType = instanceChargeType; - } - - public String getIoOptimized() { - return this.ioOptimized; - } - - public void setIoOptimized(String ioOptimized) { - this.ioOptimized = ioOptimized; - } - - public String getRamRoleName() { - return this.ramRoleName; - } - - public void setRamRoleName(String ramRoleName) { - this.ramRoleName = ramRoleName; - } - - public String getVSwitchId() { - return this.vSwitchId; - } - - public void setVSwitchId(String vSwitchId) { - this.vSwitchId = vSwitchId; - } - - public String getResourceGroupId() { - return this.resourceGroupId; - } - - public void setResourceGroupId(String resourceGroupId) { - this.resourceGroupId = resourceGroupId; - } - - public String getInternetChargeType() { - return this.internetChargeType; - } - - public void setInternetChargeType(String internetChargeType) { - this.internetChargeType = internetChargeType; - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - } - - public List getDataDisks() { - return this.dataDisks; - } - - public void setDataDisks(List dataDisks) { - this.dataDisks = dataDisks; - } - - public List getNetworkInterfaces() { - return this.networkInterfaces; - } - - public void setNetworkInterfaces(List networkInterfaces) { - this.networkInterfaces = networkInterfaces; - } - - public List getTags() { - return this.tags; - } - - public void setTags(List tags) { - this.tags = tags; - } - - public static class DataDisk { - - private String description; - - private String snapshotId; - - private String device; - - private Integer size; - - private String diskName; - - private String category; - - private Boolean deleteWithInstance; - - private String encrypted; - - public String getDescription() { - return this.description; - } - - public void setDescription(String description) { - this.description = description; - } - - public String getSnapshotId() { - return this.snapshotId; - } - - public void setSnapshotId(String snapshotId) { - this.snapshotId = snapshotId; - } - - public String getDevice() { - return this.device; - } - - public void setDevice(String device) { - this.device = device; - } - - public Integer getSize() { - return this.size; - } - - public void setSize(Integer size) { - this.size = size; - } - - public String getDiskName() { - return this.diskName; - } - - public void setDiskName(String diskName) { - this.diskName = diskName; - } - - public String getCategory() { - return this.category; - } - - public void setCategory(String category) { - this.category = category; - } - - public Boolean getDeleteWithInstance() { - return this.deleteWithInstance; - } - - public void setDeleteWithInstance(Boolean deleteWithInstance) { - this.deleteWithInstance = deleteWithInstance; - } - - public String getEncrypted() { - return this.encrypted; - } - - public void setEncrypted(String encrypted) { - this.encrypted = encrypted; - } - } - - public static class NetworkInterface { - - private String networkInterfaceName; - - private String vSwitchId; - - private String description; - - private String primaryIpAddress; - - private String securityGroupId; - - public String getNetworkInterfaceName() { - return this.networkInterfaceName; - } - - public void setNetworkInterfaceName(String networkInterfaceName) { - this.networkInterfaceName = networkInterfaceName; - } - - public String getVSwitchId() { - return this.vSwitchId; - } - - public void setVSwitchId(String vSwitchId) { - this.vSwitchId = vSwitchId; - } - - public String getDescription() { - return this.description; - } - - public void setDescription(String description) { - this.description = description; - } - - public String getPrimaryIpAddress() { - return this.primaryIpAddress; - } - - public void setPrimaryIpAddress(String primaryIpAddress) { - this.primaryIpAddress = primaryIpAddress; - } - - public String getSecurityGroupId() { - return this.securityGroupId; - } - - public void setSecurityGroupId(String securityGroupId) { - this.securityGroupId = securityGroupId; - } - } - - public static class InstanceTag { - - private String key; - - private String value; - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } - } - } - - @Override - public GetLaunchTemplateDataResponse getInstance(UnmarshallerContext context) { - return GetLaunchTemplateDataResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/InnerDescribeNetworkInterfaceInGroupRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/InnerDescribeNetworkInterfaceInGroupRequest.java deleted file mode 100644 index c4c89991ab..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/InnerDescribeNetworkInterfaceInGroupRequest.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class InnerDescribeNetworkInterfaceInGroupRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String securityGroupId; - - private String type; - - private String nextToken; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private Integer maxResults; - public InnerDescribeNetworkInterfaceInGroupRequest() { - super("Ecs", "2016-03-14", "InnerDescribeNetworkInterfaceInGroup", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getSecurityGroupId() { - return this.securityGroupId; - } - - public void setSecurityGroupId(String securityGroupId) { - this.securityGroupId = securityGroupId; - if(securityGroupId != null){ - putQueryParameter("SecurityGroupId", securityGroupId); - } - } - - public String getType() { - return this.type; - } - - public void setType(String type) { - this.type = type; - if(type != null){ - putQueryParameter("Type", type); - } - } - - public String getNextToken() { - return this.nextToken; - } - - public void setNextToken(String nextToken) { - this.nextToken = nextToken; - if(nextToken != null){ - putQueryParameter("NextToken", nextToken); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public Integer getMaxResults() { - return this.maxResults; - } - - public void setMaxResults(Integer maxResults) { - this.maxResults = maxResults; - if(maxResults != null){ - putQueryParameter("MaxResults", maxResults.toString()); - } - } - - @Override - public Class getResponseClass() { - return InnerDescribeNetworkInterfaceInGroupResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/InnerDescribeNetworkInterfaceInGroupResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/InnerDescribeNetworkInterfaceInGroupResponse.java deleted file mode 100644 index 82fca009ca..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/InnerDescribeNetworkInterfaceInGroupResponse.java +++ /dev/null @@ -1,463 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.InnerDescribeNetworkInterfaceInGroupResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class InnerDescribeNetworkInterfaceInGroupResponse extends AcsResponse { - - private String requestId; - - private String nextToken; - - private List networkInterfaceSets; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public String getNextToken() { - return this.nextToken; - } - - public void setNextToken(String nextToken) { - this.nextToken = nextToken; - } - - public List getNetworkInterfaceSets() { - return this.networkInterfaceSets; - } - - public void setNetworkInterfaceSets(List networkInterfaceSets) { - this.networkInterfaceSets = networkInterfaceSets; - } - - public static class NetworkInterfaceSet { - - private String creationTime; - - private String vpcId; - - private String type; - - private String status; - - private String networkInterfaceTrafficMode; - - private String networkInterfaceName; - - private String macAddress; - - private Integer queuePairNumber; - - private String networkInterfaceId; - - private Long serviceID; - - private String instanceId; - - private String ownerId; - - private Boolean serviceManaged; - - private String vSwitchId; - - private String description; - - private String resourceGroupId; - - private String zoneId; - - private String privateIpAddress; - - private Integer queueNumber; - - private List privateIpSets; - - private List ipv6Sets; - - private List tags; - - private List securityGroupIds; - - private AssociatedPublicIp associatedPublicIp; - - private Attachment attachment; - - public String getCreationTime() { - return this.creationTime; - } - - public void setCreationTime(String creationTime) { - this.creationTime = creationTime; - } - - public String getVpcId() { - return this.vpcId; - } - - public void setVpcId(String vpcId) { - this.vpcId = vpcId; - } - - public String getType() { - return this.type; - } - - public void setType(String type) { - this.type = type; - } - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - } - - public String getNetworkInterfaceTrafficMode() { - return this.networkInterfaceTrafficMode; - } - - public void setNetworkInterfaceTrafficMode(String networkInterfaceTrafficMode) { - this.networkInterfaceTrafficMode = networkInterfaceTrafficMode; - } - - public String getNetworkInterfaceName() { - return this.networkInterfaceName; - } - - public void setNetworkInterfaceName(String networkInterfaceName) { - this.networkInterfaceName = networkInterfaceName; - } - - public String getMacAddress() { - return this.macAddress; - } - - public void setMacAddress(String macAddress) { - this.macAddress = macAddress; - } - - public Integer getQueuePairNumber() { - return this.queuePairNumber; - } - - public void setQueuePairNumber(Integer queuePairNumber) { - this.queuePairNumber = queuePairNumber; - } - - public String getNetworkInterfaceId() { - return this.networkInterfaceId; - } - - public void setNetworkInterfaceId(String networkInterfaceId) { - this.networkInterfaceId = networkInterfaceId; - } - - public Long getServiceID() { - return this.serviceID; - } - - public void setServiceID(Long serviceID) { - this.serviceID = serviceID; - } - - public String getInstanceId() { - return this.instanceId; - } - - public void setInstanceId(String instanceId) { - this.instanceId = instanceId; - } - - public String getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(String ownerId) { - this.ownerId = ownerId; - } - - public Boolean getServiceManaged() { - return this.serviceManaged; - } - - public void setServiceManaged(Boolean serviceManaged) { - this.serviceManaged = serviceManaged; - } - - public String getVSwitchId() { - return this.vSwitchId; - } - - public void setVSwitchId(String vSwitchId) { - this.vSwitchId = vSwitchId; - } - - public String getDescription() { - return this.description; - } - - public void setDescription(String description) { - this.description = description; - } - - public String getResourceGroupId() { - return this.resourceGroupId; - } - - public void setResourceGroupId(String resourceGroupId) { - this.resourceGroupId = resourceGroupId; - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - } - - public String getPrivateIpAddress() { - return this.privateIpAddress; - } - - public void setPrivateIpAddress(String privateIpAddress) { - this.privateIpAddress = privateIpAddress; - } - - public Integer getQueueNumber() { - return this.queueNumber; - } - - public void setQueueNumber(Integer queueNumber) { - this.queueNumber = queueNumber; - } - - public List getPrivateIpSets() { - return this.privateIpSets; - } - - public void setPrivateIpSets(List privateIpSets) { - this.privateIpSets = privateIpSets; - } - - public List getIpv6Sets() { - return this.ipv6Sets; - } - - public void setIpv6Sets(List ipv6Sets) { - this.ipv6Sets = ipv6Sets; - } - - public List getTags() { - return this.tags; - } - - public void setTags(List tags) { - this.tags = tags; - } - - public List getSecurityGroupIds() { - return this.securityGroupIds; - } - - public void setSecurityGroupIds(List securityGroupIds) { - this.securityGroupIds = securityGroupIds; - } - - public AssociatedPublicIp getAssociatedPublicIp() { - return this.associatedPublicIp; - } - - public void setAssociatedPublicIp(AssociatedPublicIp associatedPublicIp) { - this.associatedPublicIp = associatedPublicIp; - } - - public Attachment getAttachment() { - return this.attachment; - } - - public void setAttachment(Attachment attachment) { - this.attachment = attachment; - } - - public static class PrivateIpSet { - - private String privateIpAddress; - - private Boolean primary; - - private AssociatedPublicIp1 associatedPublicIp1; - - public String getPrivateIpAddress() { - return this.privateIpAddress; - } - - public void setPrivateIpAddress(String privateIpAddress) { - this.privateIpAddress = privateIpAddress; - } - - public Boolean getPrimary() { - return this.primary; - } - - public void setPrimary(Boolean primary) { - this.primary = primary; - } - - public AssociatedPublicIp1 getAssociatedPublicIp1() { - return this.associatedPublicIp1; - } - - public void setAssociatedPublicIp1(AssociatedPublicIp1 associatedPublicIp1) { - this.associatedPublicIp1 = associatedPublicIp1; - } - - public static class AssociatedPublicIp1 { - - private String publicIpAddress; - - private String allocationId; - - public String getPublicIpAddress() { - return this.publicIpAddress; - } - - public void setPublicIpAddress(String publicIpAddress) { - this.publicIpAddress = publicIpAddress; - } - - public String getAllocationId() { - return this.allocationId; - } - - public void setAllocationId(String allocationId) { - this.allocationId = allocationId; - } - } - } - - public static class Ipv6Set { - - private String ipv6Address; - - public String getIpv6Address() { - return this.ipv6Address; - } - - public void setIpv6Address(String ipv6Address) { - this.ipv6Address = ipv6Address; - } - } - - public static class Tag { - - private String tagValue; - - private String tagKey; - - public String getTagValue() { - return this.tagValue; - } - - public void setTagValue(String tagValue) { - this.tagValue = tagValue; - } - - public String getTagKey() { - return this.tagKey; - } - - public void setTagKey(String tagKey) { - this.tagKey = tagKey; - } - } - - public static class AssociatedPublicIp { - - private String publicIpAddress; - - private String allocationId; - - public String getPublicIpAddress() { - return this.publicIpAddress; - } - - public void setPublicIpAddress(String publicIpAddress) { - this.publicIpAddress = publicIpAddress; - } - - public String getAllocationId() { - return this.allocationId; - } - - public void setAllocationId(String allocationId) { - this.allocationId = allocationId; - } - } - - public static class Attachment { - - private Integer deviceIndex; - - private String instanceId; - - private String trunkNetworkInterfaceId; - - public Integer getDeviceIndex() { - return this.deviceIndex; - } - - public void setDeviceIndex(Integer deviceIndex) { - this.deviceIndex = deviceIndex; - } - - public String getInstanceId() { - return this.instanceId; - } - - public void setInstanceId(String instanceId) { - this.instanceId = instanceId; - } - - public String getTrunkNetworkInterfaceId() { - return this.trunkNetworkInterfaceId; - } - - public void setTrunkNetworkInterfaceId(String trunkNetworkInterfaceId) { - this.trunkNetworkInterfaceId = trunkNetworkInterfaceId; - } - } - } - - @Override - public InnerDescribeNetworkInterfaceInGroupResponse getInstance(UnmarshallerContext context) { - return InnerDescribeNetworkInterfaceInGroupResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/JoinEniQosGroupRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/JoinEniQosGroupRequest.java deleted file mode 100644 index 4ae77100e2..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/JoinEniQosGroupRequest.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class JoinEniQosGroupRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String resourceOwnerAccount; - - private Long ownerId; - - private String qosGroupName; - - private String networkInterfaceId; - public JoinEniQosGroupRequest() { - super("Ecs", "2016-03-14", "JoinEniQosGroup", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getQosGroupName() { - return this.qosGroupName; - } - - public void setQosGroupName(String qosGroupName) { - this.qosGroupName = qosGroupName; - if(qosGroupName != null){ - putQueryParameter("QosGroupName", qosGroupName); - } - } - - public String getNetworkInterfaceId() { - return this.networkInterfaceId; - } - - public void setNetworkInterfaceId(String networkInterfaceId) { - this.networkInterfaceId = networkInterfaceId; - if(networkInterfaceId != null){ - putQueryParameter("NetworkInterfaceId", networkInterfaceId); - } - } - - @Override - public Class getResponseClass() { - return JoinEniQosGroupResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/JoinEniQosGroupResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/JoinEniQosGroupResponse.java deleted file mode 100644 index 965e3cd0ac..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/JoinEniQosGroupResponse.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.JoinEniQosGroupResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class JoinEniQosGroupResponse extends AcsResponse { - - private String requestId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public JoinEniQosGroupResponse getInstance(UnmarshallerContext context) { - return JoinEniQosGroupResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/LeaveEniQosGroupRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/LeaveEniQosGroupRequest.java deleted file mode 100644 index 46c9ead099..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/LeaveEniQosGroupRequest.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class LeaveEniQosGroupRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String resourceOwnerAccount; - - private Long ownerId; - - private String networkInterfaceId; - public LeaveEniQosGroupRequest() { - super("Ecs", "2016-03-14", "LeaveEniQosGroup", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getNetworkInterfaceId() { - return this.networkInterfaceId; - } - - public void setNetworkInterfaceId(String networkInterfaceId) { - this.networkInterfaceId = networkInterfaceId; - if(networkInterfaceId != null){ - putQueryParameter("NetworkInterfaceId", networkInterfaceId); - } - } - - @Override - public Class getResponseClass() { - return LeaveEniQosGroupResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/LeaveEniQosGroupResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/LeaveEniQosGroupResponse.java deleted file mode 100644 index 22c6c77fdc..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/LeaveEniQosGroupResponse.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.LeaveEniQosGroupResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class LeaveEniQosGroupResponse extends AcsResponse { - - private String requestId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public LeaveEniQosGroupResponse getInstance(UnmarshallerContext context) { - return LeaveEniQosGroupResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ListAccountEcsQuotasRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ListAccountEcsQuotasRequest.java deleted file mode 100644 index f0b12d80c3..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ListAccountEcsQuotasRequest.java +++ /dev/null @@ -1,223 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class ListAccountEcsQuotasRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String networkType; - - private String quotaUnit; - - private String quotaResourceType; - - private String nextToken; - - private Integer pageSize; - - private String sortOrder; - - private String quotaResourceName; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String zoneId; - - private String chargeType; - - private String sortField; - public ListAccountEcsQuotasRequest() { - super("Ecs", "2016-03-14", "ListAccountEcsQuotas", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getNetworkType() { - return this.networkType; - } - - public void setNetworkType(String networkType) { - this.networkType = networkType; - if(networkType != null){ - putQueryParameter("NetworkType", networkType); - } - } - - public String getQuotaUnit() { - return this.quotaUnit; - } - - public void setQuotaUnit(String quotaUnit) { - this.quotaUnit = quotaUnit; - if(quotaUnit != null){ - putQueryParameter("QuotaUnit", quotaUnit); - } - } - - public String getQuotaResourceType() { - return this.quotaResourceType; - } - - public void setQuotaResourceType(String quotaResourceType) { - this.quotaResourceType = quotaResourceType; - if(quotaResourceType != null){ - putQueryParameter("QuotaResourceType", quotaResourceType); - } - } - - public String getNextToken() { - return this.nextToken; - } - - public void setNextToken(String nextToken) { - this.nextToken = nextToken; - if(nextToken != null){ - putQueryParameter("NextToken", nextToken); - } - } - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - if(pageSize != null){ - putQueryParameter("PageSize", pageSize.toString()); - } - } - - public String getSortOrder() { - return this.sortOrder; - } - - public void setSortOrder(String sortOrder) { - this.sortOrder = sortOrder; - if(sortOrder != null){ - putQueryParameter("SortOrder", sortOrder); - } - } - - public String getQuotaResourceName() { - return this.quotaResourceName; - } - - public void setQuotaResourceName(String quotaResourceName) { - this.quotaResourceName = quotaResourceName; - if(quotaResourceName != null){ - putQueryParameter("QuotaResourceName", quotaResourceName); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - if(zoneId != null){ - putQueryParameter("ZoneId", zoneId); - } - } - - public String getChargeType() { - return this.chargeType; - } - - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - if(chargeType != null){ - putQueryParameter("ChargeType", chargeType); - } - } - - public String getSortField() { - return this.sortField; - } - - public void setSortField(String sortField) { - this.sortField = sortField; - if(sortField != null){ - putQueryParameter("SortField", sortField); - } - } - - @Override - public Class getResponseClass() { - return ListAccountEcsQuotasResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ListAccountEcsQuotasResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ListAccountEcsQuotasResponse.java deleted file mode 100644 index cd4fa772d1..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ListAccountEcsQuotasResponse.java +++ /dev/null @@ -1,205 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.ListAccountEcsQuotasResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class ListAccountEcsQuotasResponse extends AcsResponse { - - private String nextToken; - - private String requestId; - - private List ecsQuotas; - - public String getNextToken() { - return this.nextToken; - } - - public void setNextToken(String nextToken) { - this.nextToken = nextToken; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public List getEcsQuotas() { - return this.ecsQuotas; - } - - public void setEcsQuotas(List ecsQuotas) { - this.ecsQuotas = ecsQuotas; - } - - public static class EcsQuota { - - private String quotaResourceName; - - private Long baseQuota; - - private String quotaResourceType; - - private String quotaUnit; - - private String chargeType; - - private String networkType; - - private Long reservedQuota; - - private Long reservedQuotaUsage; - - private String regionId; - - private Long totalQuotaUsage; - - private Long baseQuotaUsage; - - private String applicationStatus; - - private String zoneId; - - private Long totalQuota; - - public String getQuotaResourceName() { - return this.quotaResourceName; - } - - public void setQuotaResourceName(String quotaResourceName) { - this.quotaResourceName = quotaResourceName; - } - - public Long getBaseQuota() { - return this.baseQuota; - } - - public void setBaseQuota(Long baseQuota) { - this.baseQuota = baseQuota; - } - - public String getQuotaResourceType() { - return this.quotaResourceType; - } - - public void setQuotaResourceType(String quotaResourceType) { - this.quotaResourceType = quotaResourceType; - } - - public String getQuotaUnit() { - return this.quotaUnit; - } - - public void setQuotaUnit(String quotaUnit) { - this.quotaUnit = quotaUnit; - } - - public String getChargeType() { - return this.chargeType; - } - - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } - - public String getNetworkType() { - return this.networkType; - } - - public void setNetworkType(String networkType) { - this.networkType = networkType; - } - - public Long getReservedQuota() { - return this.reservedQuota; - } - - public void setReservedQuota(Long reservedQuota) { - this.reservedQuota = reservedQuota; - } - - public Long getReservedQuotaUsage() { - return this.reservedQuotaUsage; - } - - public void setReservedQuotaUsage(Long reservedQuotaUsage) { - this.reservedQuotaUsage = reservedQuotaUsage; - } - - public String getRegionId() { - return this.regionId; - } - - public void setRegionId(String regionId) { - this.regionId = regionId; - } - - public Long getTotalQuotaUsage() { - return this.totalQuotaUsage; - } - - public void setTotalQuotaUsage(Long totalQuotaUsage) { - this.totalQuotaUsage = totalQuotaUsage; - } - - public Long getBaseQuotaUsage() { - return this.baseQuotaUsage; - } - - public void setBaseQuotaUsage(Long baseQuotaUsage) { - this.baseQuotaUsage = baseQuotaUsage; - } - - public String getApplicationStatus() { - return this.applicationStatus; - } - - public void setApplicationStatus(String applicationStatus) { - this.applicationStatus = applicationStatus; - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - } - - public Long getTotalQuota() { - return this.totalQuota; - } - - public void setTotalQuota(Long totalQuota) { - this.totalQuota = totalQuota; - } - } - - @Override - public ListAccountEcsQuotasResponse getInstance(UnmarshallerContext context) { - return ListAccountEcsQuotasResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ListServiceSettingsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ListServiceSettingsRequest.java deleted file mode 100644 index b2d52486fa..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ListServiceSettingsRequest.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class ListServiceSettingsRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private Boolean sessionManagerDeliverySetting; - - private Boolean cloudAssistantDeliverySettings; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - public ListServiceSettingsRequest() { - super("Ecs", "2016-03-14", "ListServiceSettings", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Boolean getSessionManagerDeliverySetting() { - return this.sessionManagerDeliverySetting; - } - - public void setSessionManagerDeliverySetting(Boolean sessionManagerDeliverySetting) { - this.sessionManagerDeliverySetting = sessionManagerDeliverySetting; - if(sessionManagerDeliverySetting != null){ - putQueryParameter("SessionManagerDeliverySetting", sessionManagerDeliverySetting.toString()); - } - } - - public Boolean getCloudAssistantDeliverySettings() { - return this.cloudAssistantDeliverySettings; - } - - public void setCloudAssistantDeliverySettings(Boolean cloudAssistantDeliverySettings) { - this.cloudAssistantDeliverySettings = cloudAssistantDeliverySettings; - if(cloudAssistantDeliverySettings != null){ - putQueryParameter("CloudAssistantDeliverySettings", cloudAssistantDeliverySettings.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - @Override - public Class getResponseClass() { - return ListServiceSettingsResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ListServiceSettingsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ListServiceSettingsResponse.java deleted file mode 100644 index 053ec1010a..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ListServiceSettingsResponse.java +++ /dev/null @@ -1,217 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.ListServiceSettingsResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class ListServiceSettingsResponse extends AcsResponse { - - private String requestId; - - private CloudAssistantDeliverySettings cloudAssistantDeliverySettings; - - private SessionManagerDeliverySetting sessionManagerDeliverySetting; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public CloudAssistantDeliverySettings getCloudAssistantDeliverySettings() { - return this.cloudAssistantDeliverySettings; - } - - public void setCloudAssistantDeliverySettings(CloudAssistantDeliverySettings cloudAssistantDeliverySettings) { - this.cloudAssistantDeliverySettings = cloudAssistantDeliverySettings; - } - - public SessionManagerDeliverySetting getSessionManagerDeliverySetting() { - return this.sessionManagerDeliverySetting; - } - - public void setSessionManagerDeliverySetting(SessionManagerDeliverySetting sessionManagerDeliverySetting) { - this.sessionManagerDeliverySetting = sessionManagerDeliverySetting; - } - - public static class CloudAssistantDeliverySettings { - - private String slsProjectName; - - private String ossKeyPrefix; - - private Boolean slsEnabled; - - private Boolean ossEnabled; - - private String slsLogstoreName; - - private String ossBucketName; - - public String getSlsProjectName() { - return this.slsProjectName; - } - - public void setSlsProjectName(String slsProjectName) { - this.slsProjectName = slsProjectName; - } - - public String getOssKeyPrefix() { - return this.ossKeyPrefix; - } - - public void setOssKeyPrefix(String ossKeyPrefix) { - this.ossKeyPrefix = ossKeyPrefix; - } - - public Boolean getSlsEnabled() { - return this.slsEnabled; - } - - public void setSlsEnabled(Boolean slsEnabled) { - this.slsEnabled = slsEnabled; - } - - public Boolean getOssEnabled() { - return this.ossEnabled; - } - - public void setOssEnabled(Boolean ossEnabled) { - this.ossEnabled = ossEnabled; - } - - public String getSlsLogstoreName() { - return this.slsLogstoreName; - } - - public void setSlsLogstoreName(String slsLogstoreName) { - this.slsLogstoreName = slsLogstoreName; - } - - public String getOssBucketName() { - return this.ossBucketName; - } - - public void setOssBucketName(String ossBucketName) { - this.ossBucketName = ossBucketName; - } - } - - public static class SessionManagerDeliverySetting { - - private Boolean ossEnabled; - - private String ossBucketName; - - private String ossKeyPrefix; - - private String ossEncryptionType; - - private String ossEncryptionAlgorithm; - - private String ossEncryptionKeyId; - - private Boolean slsEnabled; - - private String slsProjectName; - - private String slsLogstoreName; - - public Boolean getOssEnabled() { - return this.ossEnabled; - } - - public void setOssEnabled(Boolean ossEnabled) { - this.ossEnabled = ossEnabled; - } - - public String getOssBucketName() { - return this.ossBucketName; - } - - public void setOssBucketName(String ossBucketName) { - this.ossBucketName = ossBucketName; - } - - public String getOssKeyPrefix() { - return this.ossKeyPrefix; - } - - public void setOssKeyPrefix(String ossKeyPrefix) { - this.ossKeyPrefix = ossKeyPrefix; - } - - public String getOssEncryptionType() { - return this.ossEncryptionType; - } - - public void setOssEncryptionType(String ossEncryptionType) { - this.ossEncryptionType = ossEncryptionType; - } - - public String getOssEncryptionAlgorithm() { - return this.ossEncryptionAlgorithm; - } - - public void setOssEncryptionAlgorithm(String ossEncryptionAlgorithm) { - this.ossEncryptionAlgorithm = ossEncryptionAlgorithm; - } - - public String getOssEncryptionKeyId() { - return this.ossEncryptionKeyId; - } - - public void setOssEncryptionKeyId(String ossEncryptionKeyId) { - this.ossEncryptionKeyId = ossEncryptionKeyId; - } - - public Boolean getSlsEnabled() { - return this.slsEnabled; - } - - public void setSlsEnabled(Boolean slsEnabled) { - this.slsEnabled = slsEnabled; - } - - public String getSlsProjectName() { - return this.slsProjectName; - } - - public void setSlsProjectName(String slsProjectName) { - this.slsProjectName = slsProjectName; - } - - public String getSlsLogstoreName() { - return this.slsLogstoreName; - } - - public void setSlsLogstoreName(String slsLogstoreName) { - this.slsLogstoreName = slsLogstoreName; - } - } - - @Override - public ListServiceSettingsResponse getInstance(UnmarshallerContext context) { - return ListServiceSettingsResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyCapacityReservationRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyCapacityReservationRequest.java deleted file mode 100644 index 1bbde9d451..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyCapacityReservationRequest.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class ModifyCapacityReservationRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String capacityReservationId; - - private Integer instanceCount; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String token; - public ModifyCapacityReservationRequest() { - super("Ecs", "2016-03-14", "ModifyCapacityReservation", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getCapacityReservationId() { - return this.capacityReservationId; - } - - public void setCapacityReservationId(String capacityReservationId) { - this.capacityReservationId = capacityReservationId; - if(capacityReservationId != null){ - putQueryParameter("CapacityReservationId", capacityReservationId); - } - } - - public Integer getInstanceCount() { - return this.instanceCount; - } - - public void setInstanceCount(Integer instanceCount) { - this.instanceCount = instanceCount; - if(instanceCount != null){ - putQueryParameter("InstanceCount", instanceCount.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getToken() { - return this.token; - } - - public void setToken(String token) { - this.token = token; - if(token != null){ - putQueryParameter("Token", token); - } - } - - @Override - public Class getResponseClass() { - return ModifyCapacityReservationResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyDiagnoseRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyDiagnoseRequest.java deleted file mode 100644 index 19b2f5627d..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyDiagnoseRequest.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class ModifyDiagnoseRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String resourceOwnerAccount; - - private String diagnoseId; - - private String ownerAccount; - - private Long ownerId; - - private String status; - public ModifyDiagnoseRequest() { - super("Ecs", "2016-03-14", "ModifyDiagnose", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getDiagnoseId() { - return this.diagnoseId; - } - - public void setDiagnoseId(String diagnoseId) { - this.diagnoseId = diagnoseId; - if(diagnoseId != null){ - putQueryParameter("DiagnoseId", diagnoseId); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - if(status != null){ - putQueryParameter("Status", status); - } - } - - @Override - public Class getResponseClass() { - return ModifyDiagnoseResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyDiagnoseResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyDiagnoseResponse.java deleted file mode 100644 index e3d9996e23..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyDiagnoseResponse.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.ModifyDiagnoseResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class ModifyDiagnoseResponse extends AcsResponse { - - private Integer data; - - private String requestId; - - public Integer getData() { - return this.data; - } - - public void setData(Integer data) { - this.data = data; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public ModifyDiagnoseResponse getInstance(UnmarshallerContext context) { - return ModifyDiagnoseResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyDiskSpecRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyDiskSpecRequest.java deleted file mode 100644 index 3f3344483a..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyDiskSpecRequest.java +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class ModifyDiskSpecRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String diskCategory; - - private String diskId; - - private Boolean autoPay; - - private String resourceOwnerAccount; - - private String performanceLevel; - - private String ownerAccount; - - private Long ownerId; - - private Long provisionedIops; - public ModifyDiskSpecRequest() { - super("Ecs", "2016-03-14", "ModifyDiskSpec", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getDiskCategory() { - return this.diskCategory; - } - - public void setDiskCategory(String diskCategory) { - this.diskCategory = diskCategory; - if(diskCategory != null){ - putQueryParameter("DiskCategory", diskCategory); - } - } - - public String getDiskId() { - return this.diskId; - } - - public void setDiskId(String diskId) { - this.diskId = diskId; - if(diskId != null){ - putQueryParameter("DiskId", diskId); - } - } - - public Boolean getAutoPay() { - return this.autoPay; - } - - public void setAutoPay(Boolean autoPay) { - this.autoPay = autoPay; - if(autoPay != null){ - putQueryParameter("AutoPay", autoPay.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getPerformanceLevel() { - return this.performanceLevel; - } - - public void setPerformanceLevel(String performanceLevel) { - this.performanceLevel = performanceLevel; - if(performanceLevel != null){ - putQueryParameter("PerformanceLevel", performanceLevel); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public Long getProvisionedIops() { - return this.provisionedIops; - } - - public void setProvisionedIops(Long provisionedIops) { - this.provisionedIops = provisionedIops; - if(provisionedIops != null){ - putQueryParameter("ProvisionedIops", provisionedIops.toString()); - } - } - - @Override - public Class getResponseClass() { - return ModifyDiskSpecResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyEniQosGroupRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyEniQosGroupRequest.java deleted file mode 100644 index 0fe20def50..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyEniQosGroupRequest.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class ModifyEniQosGroupRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private Integer tx; - - private Integer rx; - - private Integer rxPps; - - private String resourceOwnerAccount; - - private Long ownerId; - - private String qosGroupName; - - private Integer txPps; - public ModifyEniQosGroupRequest() { - super("Ecs", "2016-03-14", "ModifyEniQosGroup", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Integer getTx() { - return this.tx; - } - - public void setTx(Integer tx) { - this.tx = tx; - if(tx != null){ - putQueryParameter("Tx", tx.toString()); - } - } - - public Integer getRx() { - return this.rx; - } - - public void setRx(Integer rx) { - this.rx = rx; - if(rx != null){ - putQueryParameter("Rx", rx.toString()); - } - } - - public Integer getRxPps() { - return this.rxPps; - } - - public void setRxPps(Integer rxPps) { - this.rxPps = rxPps; - if(rxPps != null){ - putQueryParameter("RxPps", rxPps.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getQosGroupName() { - return this.qosGroupName; - } - - public void setQosGroupName(String qosGroupName) { - this.qosGroupName = qosGroupName; - if(qosGroupName != null){ - putQueryParameter("QosGroupName", qosGroupName); - } - } - - public Integer getTxPps() { - return this.txPps; - } - - public void setTxPps(Integer txPps) { - this.txPps = txPps; - if(txPps != null){ - putQueryParameter("TxPps", txPps.toString()); - } - } - - @Override - public Class getResponseClass() { - return ModifyEniQosGroupResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyEniQosGroupResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyEniQosGroupResponse.java deleted file mode 100644 index d35235c4c7..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyEniQosGroupResponse.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.ModifyEniQosGroupResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class ModifyEniQosGroupResponse extends AcsResponse { - - private String requestId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public ModifyEniQosGroupResponse getInstance(UnmarshallerContext context) { - return ModifyEniQosGroupResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyImageAdvancedAttributeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyImageAdvancedAttributeRequest.java deleted file mode 100644 index 4455e58e44..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyImageAdvancedAttributeRequest.java +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class ModifyImageAdvancedAttributeRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String imageId; - - private List flag; - - private String supportIoOptimized; - - private String resourceOwnerAccount; - - private Long ownerId; - public ModifyImageAdvancedAttributeRequest() { - super("Ecs", "2016-03-14", "ModifyImageAdvancedAttribute", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getImageId() { - return this.imageId; - } - - public void setImageId(String imageId) { - this.imageId = imageId; - if(imageId != null){ - putQueryParameter("ImageId", imageId); - } - } - - public List getFlag() { - return this.flag; - } - - public void setFlag(List flag) { - this.flag = flag; - if (flag != null) { - for (int depth1 = 0; depth1 < flag.size(); depth1++) { - if (flag.get(depth1) != null) { - - putQueryParameter("Flag." + (depth1 + 1) + ".Name" , flag.get(depth1).getName()); - putQueryParameter("Flag." + (depth1 + 1) + ".Value" , flag.get(depth1).getValue()); - } - } - } - } - - public String getSupportIoOptimized() { - return this.supportIoOptimized; - } - - public void setSupportIoOptimized(String supportIoOptimized) { - this.supportIoOptimized = supportIoOptimized; - if(supportIoOptimized != null){ - putQueryParameter("SupportIoOptimized", supportIoOptimized); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public static class Flag { - - private String name; - - private Boolean value; - - public String getName() { - return this.name; - } - - public void setName(String name) { - this.name = name; - } - - public Boolean getValue() { - return this.value; - } - - public void setValue(Boolean value) { - this.value = value; - } - } - - @Override - public Class getResponseClass() { - return ModifyImageAdvancedAttributeResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyImageAdvancedAttributeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyImageAdvancedAttributeResponse.java deleted file mode 100644 index e0c5b361c8..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyImageAdvancedAttributeResponse.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.ModifyImageAdvancedAttributeResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class ModifyImageAdvancedAttributeResponse extends AcsResponse { - - private String requestId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public ModifyImageAdvancedAttributeResponse getInstance(UnmarshallerContext context) { - return ModifyImageAdvancedAttributeResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyInstanceAutoRebootTimeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyInstanceAutoRebootTimeRequest.java deleted file mode 100644 index 67bc5bd372..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyInstanceAutoRebootTimeRequest.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class ModifyInstanceAutoRebootTimeRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String resourceOwnerAccount; - - private Long ownerId; - - private String autoRebootTime; - - private List instanceIdss; - public ModifyInstanceAutoRebootTimeRequest() { - super("Ecs", "2016-03-14", "ModifyInstanceAutoRebootTime", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getAutoRebootTime() { - return this.autoRebootTime; - } - - public void setAutoRebootTime(String autoRebootTime) { - this.autoRebootTime = autoRebootTime; - if(autoRebootTime != null){ - putQueryParameter("AutoRebootTime", autoRebootTime); - } - } - - public List getInstanceIdss() { - return this.instanceIdss; - } - - public void setInstanceIdss(List instanceIdss) { - this.instanceIdss = instanceIdss; - if (instanceIdss != null) { - for (int i = 0; i < instanceIdss.size(); i++) { - putQueryParameter("InstanceIds." + (i + 1) , instanceIdss.get(i)); - } - } - } - - @Override - public Class getResponseClass() { - return ModifyInstanceAutoRebootTimeResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyInstanceAutoRebootTimeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyInstanceAutoRebootTimeResponse.java deleted file mode 100644 index 5b03aa3d91..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyInstanceAutoRebootTimeResponse.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.ModifyInstanceAutoRebootTimeResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class ModifyInstanceAutoRebootTimeResponse extends AcsResponse { - - private String requestId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public ModifyInstanceAutoRebootTimeResponse getInstance(UnmarshallerContext context) { - return ModifyInstanceAutoRebootTimeResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyInstanceCapacityReservationAttributesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyInstanceCapacityReservationAttributesRequest.java deleted file mode 100644 index 5200e4737e..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyInstanceCapacityReservationAttributesRequest.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class ModifyInstanceCapacityReservationAttributesRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String capacityReservationId; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String capacityReservationPreference; - - private String instanceId; - public ModifyInstanceCapacityReservationAttributesRequest() { - super("Ecs", "2016-03-14", "ModifyInstanceCapacityReservationAttributes", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getCapacityReservationId() { - return this.capacityReservationId; - } - - public void setCapacityReservationId(String capacityReservationId) { - this.capacityReservationId = capacityReservationId; - if(capacityReservationId != null){ - putQueryParameter("CapacityReservationId", capacityReservationId); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getCapacityReservationPreference() { - return this.capacityReservationPreference; - } - - public void setCapacityReservationPreference(String capacityReservationPreference) { - this.capacityReservationPreference = capacityReservationPreference; - if(capacityReservationPreference != null){ - putQueryParameter("CapacityReservationPreference", capacityReservationPreference); - } - } - - public String getInstanceId() { - return this.instanceId; - } - - public void setInstanceId(String instanceId) { - this.instanceId = instanceId; - if(instanceId != null){ - putQueryParameter("InstanceId", instanceId); - } - } - - @Override - public Class getResponseClass() { - return ModifyInstanceCapacityReservationAttributesResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyInstanceCapacityReservationAttributesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyInstanceCapacityReservationAttributesResponse.java deleted file mode 100644 index c969bd65bb..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyInstanceCapacityReservationAttributesResponse.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.ModifyInstanceCapacityReservationAttributesResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class ModifyInstanceCapacityReservationAttributesResponse extends AcsResponse { - - private String requestId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public ModifyInstanceCapacityReservationAttributesResponse getInstance(UnmarshallerContext context) { - return ModifyInstanceCapacityReservationAttributesResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyInstanceDeploymentRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyInstanceDeploymentRequest.java deleted file mode 100644 index 0095612669..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyInstanceDeploymentRequest.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class ModifyInstanceDeploymentRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String dedicatedHostClusterId; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private String tenancy; - - private String dedicatedHostId; - - private Long ownerId; - - private String instanceId; - - private String migrationType; - - private String affinity; - public ModifyInstanceDeploymentRequest() { - super("Ecs", "2016-03-14", "ModifyInstanceDeployment", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getDedicatedHostClusterId() { - return this.dedicatedHostClusterId; - } - - public void setDedicatedHostClusterId(String dedicatedHostClusterId) { - this.dedicatedHostClusterId = dedicatedHostClusterId; - if(dedicatedHostClusterId != null){ - putQueryParameter("DedicatedHostClusterId", dedicatedHostClusterId); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public String getTenancy() { - return this.tenancy; - } - - public void setTenancy(String tenancy) { - this.tenancy = tenancy; - if(tenancy != null){ - putQueryParameter("Tenancy", tenancy); - } - } - - public String getDedicatedHostId() { - return this.dedicatedHostId; - } - - public void setDedicatedHostId(String dedicatedHostId) { - this.dedicatedHostId = dedicatedHostId; - if(dedicatedHostId != null){ - putQueryParameter("DedicatedHostId", dedicatedHostId); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getInstanceId() { - return this.instanceId; - } - - public void setInstanceId(String instanceId) { - this.instanceId = instanceId; - if(instanceId != null){ - putQueryParameter("InstanceId", instanceId); - } - } - - public String getMigrationType() { - return this.migrationType; - } - - public void setMigrationType(String migrationType) { - this.migrationType = migrationType; - if(migrationType != null){ - putQueryParameter("MigrationType", migrationType); - } - } - - public String getAffinity() { - return this.affinity; - } - - public void setAffinity(String affinity) { - this.affinity = affinity; - if(affinity != null){ - putQueryParameter("Affinity", affinity); - } - } - - @Override - public Class getResponseClass() { - return ModifyInstanceDeploymentResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyMigratableInstancesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyMigratableInstancesRequest.java deleted file mode 100644 index 0533183896..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyMigratableInstancesRequest.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class ModifyMigratableInstancesRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private Integer businessMigrationType; - - private String resourceOwnerAccount; - - private Long ownerId; - - private List instanceIds; - - private Integer networkMigrationType; - - private String vpcId; - public ModifyMigratableInstancesRequest() { - super("Ecs", "2016-03-14", "ModifyMigratableInstances", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Integer getBusinessMigrationType() { - return this.businessMigrationType; - } - - public void setBusinessMigrationType(Integer businessMigrationType) { - this.businessMigrationType = businessMigrationType; - if(businessMigrationType != null){ - putQueryParameter("BusinessMigrationType", businessMigrationType.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public List getInstanceIds() { - return this.instanceIds; - } - - public void setInstanceIds(List instanceIds) { - this.instanceIds = instanceIds; - if (instanceIds != null) { - for (int i = 0; i < instanceIds.size(); i++) { - putQueryParameter("InstanceId." + (i + 1) , instanceIds.get(i)); - } - } - } - - public Integer getNetworkMigrationType() { - return this.networkMigrationType; - } - - public void setNetworkMigrationType(Integer networkMigrationType) { - this.networkMigrationType = networkMigrationType; - if(networkMigrationType != null){ - putQueryParameter("NetworkMigrationType", networkMigrationType.toString()); - } - } - - public String getVpcId() { - return this.vpcId; - } - - public void setVpcId(String vpcId) { - this.vpcId = vpcId; - if(vpcId != null){ - putQueryParameter("VpcId", vpcId); - } - } - - @Override - public Class getResponseClass() { - return ModifyMigratableInstancesResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyMigratableInstancesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyMigratableInstancesResponse.java deleted file mode 100644 index 1dd5ac5d9a..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyMigratableInstancesResponse.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.ModifyMigratableInstancesResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class ModifyMigratableInstancesResponse extends AcsResponse { - - private String requestId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public ModifyMigratableInstancesResponse getInstance(UnmarshallerContext context) { - return ModifyMigratableInstancesResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyMigrationInstancesRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyMigrationInstancesRequest.java deleted file mode 100644 index b56b6de030..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyMigrationInstancesRequest.java +++ /dev/null @@ -1,148 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class ModifyMigrationInstancesRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private Integer pageNumber; - - private Integer pageSize; - - private String resourceOwnerAccount; - - private String globalMigrationTime; - - private Long ownerId; - - private List instanceIds; - - private String networkMigrationType; - public ModifyMigrationInstancesRequest() { - super("Ecs", "2016-03-14", "ModifyMigrationInstances", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - if(pageNumber != null){ - putQueryParameter("PageNumber", pageNumber.toString()); - } - } - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - if(pageSize != null){ - putQueryParameter("PageSize", pageSize.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getGlobalMigrationTime() { - return this.globalMigrationTime; - } - - public void setGlobalMigrationTime(String globalMigrationTime) { - this.globalMigrationTime = globalMigrationTime; - if(globalMigrationTime != null){ - putQueryParameter("GlobalMigrationTime", globalMigrationTime); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public List getInstanceIds() { - return this.instanceIds; - } - - public void setInstanceIds(List instanceIds) { - this.instanceIds = instanceIds; - if (instanceIds != null) { - for (int i = 0; i < instanceIds.size(); i++) { - putQueryParameter("InstanceId." + (i + 1) , instanceIds.get(i)); - } - } - } - - public String getNetworkMigrationType() { - return this.networkMigrationType; - } - - public void setNetworkMigrationType(String networkMigrationType) { - this.networkMigrationType = networkMigrationType; - if(networkMigrationType != null){ - putQueryParameter("NetworkMigrationType", networkMigrationType); - } - } - - @Override - public Class getResponseClass() { - return ModifyMigrationInstancesResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyMigrationInstancesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyMigrationInstancesResponse.java deleted file mode 100644 index 278af32ef8..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyMigrationInstancesResponse.java +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.ModifyMigrationInstancesResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class ModifyMigrationInstancesResponse extends AcsResponse { - - private String requestId; - - private List instancesFailModels; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public List getInstancesFailModels() { - return this.instancesFailModels; - } - - public void setInstancesFailModels(List instancesFailModels) { - this.instancesFailModels = instancesFailModels; - } - - public static class InstancesFailModel { - - private String instanceId; - - private List failModels; - - public String getInstanceId() { - return this.instanceId; - } - - public void setInstanceId(String instanceId) { - this.instanceId = instanceId; - } - - public List getFailModels() { - return this.failModels; - } - - public void setFailModels(List failModels) { - this.failModels = failModels; - } - - public static class FailModel { - - private String errorCode; - - private String errorMessage; - - public String getErrorCode() { - return this.errorCode; - } - - public void setErrorCode(String errorCode) { - this.errorCode = errorCode; - } - - public String getErrorMessage() { - return this.errorMessage; - } - - public void setErrorMessage(String errorMessage) { - this.errorMessage = errorMessage; - } - } - } - - @Override - public ModifyMigrationInstancesResponse getInstance(UnmarshallerContext context) { - return ModifyMigrationInstancesResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyMigrationPlanRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyMigrationPlanRequest.java deleted file mode 100644 index 1f7770d83e..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyMigrationPlanRequest.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class ModifyMigrationPlanRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private Integer pageNumber; - - private String migrationPlanId; - - private Integer pageSize; - - private String resourceOwnerAccount; - - private Long ownerId; - - private String name; - public ModifyMigrationPlanRequest() { - super("Ecs", "2016-03-14", "ModifyMigrationPlan", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Integer getPageNumber() { - return this.pageNumber; - } - - public void setPageNumber(Integer pageNumber) { - this.pageNumber = pageNumber; - if(pageNumber != null){ - putQueryParameter("PageNumber", pageNumber.toString()); - } - } - - public String getMigrationPlanId() { - return this.migrationPlanId; - } - - public void setMigrationPlanId(String migrationPlanId) { - this.migrationPlanId = migrationPlanId; - if(migrationPlanId != null){ - putQueryParameter("MigrationPlanId", migrationPlanId); - } - } - - public Integer getPageSize() { - return this.pageSize; - } - - public void setPageSize(Integer pageSize) { - this.pageSize = pageSize; - if(pageSize != null){ - putQueryParameter("PageSize", pageSize.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getName() { - return this.name; - } - - public void setName(String name) { - this.name = name; - if(name != null){ - putQueryParameter("Name", name); - } - } - - @Override - public Class getResponseClass() { - return ModifyMigrationPlanResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyMigrationPlanResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyMigrationPlanResponse.java deleted file mode 100644 index 492e5032fe..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyMigrationPlanResponse.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.ModifyMigrationPlanResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class ModifyMigrationPlanResponse extends AcsResponse { - - private String requestId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public ModifyMigrationPlanResponse getInstance(UnmarshallerContext context) { - return ModifyMigrationPlanResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyOrderAutoRebootTimeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyOrderAutoRebootTimeRequest.java deleted file mode 100644 index 951e91aa65..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyOrderAutoRebootTimeRequest.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class ModifyOrderAutoRebootTimeRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String resourceOwnerAccount; - - private Long orderId; - - private Long ownerId; - - private String autoRebootTime; - public ModifyOrderAutoRebootTimeRequest() { - super("Ecs", "2016-03-14", "ModifyOrderAutoRebootTime", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public Long getOrderId() { - return this.orderId; - } - - public void setOrderId(Long orderId) { - this.orderId = orderId; - if(orderId != null){ - putQueryParameter("OrderId", orderId.toString()); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getAutoRebootTime() { - return this.autoRebootTime; - } - - public void setAutoRebootTime(String autoRebootTime) { - this.autoRebootTime = autoRebootTime; - if(autoRebootTime != null){ - putQueryParameter("AutoRebootTime", autoRebootTime); - } - } - - @Override - public Class getResponseClass() { - return ModifyOrderAutoRebootTimeResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyOrderAutoRebootTimeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyOrderAutoRebootTimeResponse.java deleted file mode 100644 index f8ea785664..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyOrderAutoRebootTimeResponse.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.ModifyOrderAutoRebootTimeResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class ModifyOrderAutoRebootTimeResponse extends AcsResponse { - - private String requestId; - - private ModifyOrderAutoRebootTimeInfo modifyOrderAutoRebootTimeInfo; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public ModifyOrderAutoRebootTimeInfo getModifyOrderAutoRebootTimeInfo() { - return this.modifyOrderAutoRebootTimeInfo; - } - - public void setModifyOrderAutoRebootTimeInfo(ModifyOrderAutoRebootTimeInfo modifyOrderAutoRebootTimeInfo) { - this.modifyOrderAutoRebootTimeInfo = modifyOrderAutoRebootTimeInfo; - } - - public static class ModifyOrderAutoRebootTimeInfo { - - private String autoRebootTime; - - private Long orderId; - - public String getAutoRebootTime() { - return this.autoRebootTime; - } - - public void setAutoRebootTime(String autoRebootTime) { - this.autoRebootTime = autoRebootTime; - } - - public Long getOrderId() { - return this.orderId; - } - - public void setOrderId(Long orderId) { - this.orderId = orderId; - } - } - - @Override - public ModifyOrderAutoRebootTimeResponse getInstance(UnmarshallerContext context) { - return ModifyOrderAutoRebootTimeResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyPrivatePoolRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyPrivatePoolRequest.java deleted file mode 100644 index 331dd88784..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyPrivatePoolRequest.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class ModifyPrivatePoolRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String description; - - private String startTime; - - private String platform; - - private String privatePoolOptionsId; - - private String endTimeType; - - private String resourceOwnerAccount; - - private String privatePoolOptionsName; - - private String ownerAccount; - - private String endTime; - - private Long ownerId; - - private Integer instanceAmount; - public ModifyPrivatePoolRequest() { - super("Ecs", "2016-03-14", "ModifyPrivatePool", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getDescription() { - return this.description; - } - - public void setDescription(String description) { - this.description = description; - if(description != null){ - putQueryParameter("Description", description); - } - } - - public String getStartTime() { - return this.startTime; - } - - public void setStartTime(String startTime) { - this.startTime = startTime; - if(startTime != null){ - putQueryParameter("StartTime", startTime); - } - } - - public String getPlatform() { - return this.platform; - } - - public void setPlatform(String platform) { - this.platform = platform; - if(platform != null){ - putQueryParameter("Platform", platform); - } - } - - public String getPrivatePoolOptionsId() { - return this.privatePoolOptionsId; - } - - public void setPrivatePoolOptionsId(String privatePoolOptionsId) { - this.privatePoolOptionsId = privatePoolOptionsId; - if(privatePoolOptionsId != null){ - putQueryParameter("PrivatePoolOptions.Id", privatePoolOptionsId); - } - } - - public String getEndTimeType() { - return this.endTimeType; - } - - public void setEndTimeType(String endTimeType) { - this.endTimeType = endTimeType; - if(endTimeType != null){ - putQueryParameter("EndTimeType", endTimeType); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getPrivatePoolOptionsName() { - return this.privatePoolOptionsName; - } - - public void setPrivatePoolOptionsName(String privatePoolOptionsName) { - this.privatePoolOptionsName = privatePoolOptionsName; - if(privatePoolOptionsName != null){ - putQueryParameter("PrivatePoolOptions.Name", privatePoolOptionsName); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public String getEndTime() { - return this.endTime; - } - - public void setEndTime(String endTime) { - this.endTime = endTime; - if(endTime != null){ - putQueryParameter("EndTime", endTime); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public Integer getInstanceAmount() { - return this.instanceAmount; - } - - public void setInstanceAmount(Integer instanceAmount) { - this.instanceAmount = instanceAmount; - if(instanceAmount != null){ - putQueryParameter("InstanceAmount", instanceAmount.toString()); - } - } - - @Override - public Class getResponseClass() { - return ModifyPrivatePoolResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyPrivatePoolResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyPrivatePoolResponse.java deleted file mode 100644 index d9e93ec558..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyPrivatePoolResponse.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.ModifyPrivatePoolResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class ModifyPrivatePoolResponse extends AcsResponse { - - private String requestId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public ModifyPrivatePoolResponse getInstance(UnmarshallerContext context) { - return ModifyPrivatePoolResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyReservationDemandRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyReservationDemandRequest.java deleted file mode 100644 index 8a1e2105c2..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyReservationDemandRequest.java +++ /dev/null @@ -1,606 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class ModifyReservationDemandRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String savingPlanPayMode; - - private String couponType; - - private Boolean couponAuto; - - private String startTime; - - private String productType; - - private List privatePoolOptionss; - - private List tags; - - private Integer period; - - private String savingPlanInstanceTypeFamilyGroup; - - private String savingPlanDescription; - - private Integer instanceCpuCoreCount; - - private String periodUnit; - - private String name; - - private Integer instanceAmount; - - private String resourceSupplyType; - - private String clientToken; - - private String instanceTypes; - - private String phoneNumber; - - private String description; - - private String platform; - - private String reservedInstanceDescription; - - private String reservedInstanceGroupId; - - private String zoneIds; - - private String savingPlanName; - - private String savingPlanSavingType; - - private Float savingPlanHourFee; - - private String instanceChargeType; - - private String reservedInstanceOfferingType; - - private String instanceTypeFamily; - - private String matchCriteria; - - private String confirmType; - - private String demandId; - - private String reservedInstanceScope; - - private String reservedInstanceName; - - private String savingPlanId; - public ModifyReservationDemandRequest() { - super("Ecs", "2016-03-14", "ModifyReservationDemand", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getSavingPlanPayMode() { - return this.savingPlanPayMode; - } - - public void setSavingPlanPayMode(String savingPlanPayMode) { - this.savingPlanPayMode = savingPlanPayMode; - if(savingPlanPayMode != null){ - putQueryParameter("SavingPlanPayMode", savingPlanPayMode); - } - } - - public String getCouponType() { - return this.couponType; - } - - public void setCouponType(String couponType) { - this.couponType = couponType; - if(couponType != null){ - putQueryParameter("CouponType", couponType); - } - } - - public Boolean getCouponAuto() { - return this.couponAuto; - } - - public void setCouponAuto(Boolean couponAuto) { - this.couponAuto = couponAuto; - if(couponAuto != null){ - putQueryParameter("CouponAuto", couponAuto.toString()); - } - } - - public String getStartTime() { - return this.startTime; - } - - public void setStartTime(String startTime) { - this.startTime = startTime; - if(startTime != null){ - putQueryParameter("StartTime", startTime); - } - } - - public String getProductType() { - return this.productType; - } - - public void setProductType(String productType) { - this.productType = productType; - if(productType != null){ - putQueryParameter("ProductType", productType); - } - } - - public List getPrivatePoolOptionss() { - return this.privatePoolOptionss; - } - - public void setPrivatePoolOptionss(List privatePoolOptionss) { - this.privatePoolOptionss = privatePoolOptionss; - if (privatePoolOptionss != null) { - for (int depth1 = 0; depth1 < privatePoolOptionss.size(); depth1++) { - putQueryParameter("PrivatePoolOptions." + (depth1 + 1) + ".MatchCriteria" , privatePoolOptionss.get(depth1).getMatchCriteria()); - putQueryParameter("PrivatePoolOptions." + (depth1 + 1) + ".ZoneId" , privatePoolOptionss.get(depth1).getZoneId()); - putQueryParameter("PrivatePoolOptions." + (depth1 + 1) + ".InstanceType" , privatePoolOptionss.get(depth1).getInstanceType()); - putQueryParameter("PrivatePoolOptions." + (depth1 + 1) + ".InstanceAmount" , privatePoolOptionss.get(depth1).getInstanceAmount()); - putQueryParameter("PrivatePoolOptions." + (depth1 + 1) + ".PlanId" , privatePoolOptionss.get(depth1).getPlanId()); - putQueryParameter("PrivatePoolOptions." + (depth1 + 1) + ".StartTime" , privatePoolOptionss.get(depth1).getStartTime()); - } - } - } - - public List getTags() { - return this.tags; - } - - public void setTags(List tags) { - this.tags = tags; - if (tags != null) { - for (int depth1 = 0; depth1 < tags.size(); depth1++) { - putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); - putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); - } - } - } - - public Integer getPeriod() { - return this.period; - } - - public void setPeriod(Integer period) { - this.period = period; - if(period != null){ - putQueryParameter("Period", period.toString()); - } - } - - public String getSavingPlanInstanceTypeFamilyGroup() { - return this.savingPlanInstanceTypeFamilyGroup; - } - - public void setSavingPlanInstanceTypeFamilyGroup(String savingPlanInstanceTypeFamilyGroup) { - this.savingPlanInstanceTypeFamilyGroup = savingPlanInstanceTypeFamilyGroup; - if(savingPlanInstanceTypeFamilyGroup != null){ - putQueryParameter("SavingPlanInstanceTypeFamilyGroup", savingPlanInstanceTypeFamilyGroup); - } - } - - public String getSavingPlanDescription() { - return this.savingPlanDescription; - } - - public void setSavingPlanDescription(String savingPlanDescription) { - this.savingPlanDescription = savingPlanDescription; - if(savingPlanDescription != null){ - putQueryParameter("SavingPlanDescription", savingPlanDescription); - } - } - - public Integer getInstanceCpuCoreCount() { - return this.instanceCpuCoreCount; - } - - public void setInstanceCpuCoreCount(Integer instanceCpuCoreCount) { - this.instanceCpuCoreCount = instanceCpuCoreCount; - if(instanceCpuCoreCount != null){ - putQueryParameter("InstanceCpuCoreCount", instanceCpuCoreCount.toString()); - } - } - - public String getPeriodUnit() { - return this.periodUnit; - } - - public void setPeriodUnit(String periodUnit) { - this.periodUnit = periodUnit; - if(periodUnit != null){ - putQueryParameter("PeriodUnit", periodUnit); - } - } - - public String getName() { - return this.name; - } - - public void setName(String name) { - this.name = name; - if(name != null){ - putQueryParameter("Name", name); - } - } - - public Integer getInstanceAmount() { - return this.instanceAmount; - } - - public void setInstanceAmount(Integer instanceAmount) { - this.instanceAmount = instanceAmount; - if(instanceAmount != null){ - putQueryParameter("InstanceAmount", instanceAmount.toString()); - } - } - - public String getResourceSupplyType() { - return this.resourceSupplyType; - } - - public void setResourceSupplyType(String resourceSupplyType) { - this.resourceSupplyType = resourceSupplyType; - if(resourceSupplyType != null){ - putQueryParameter("ResourceSupplyType", resourceSupplyType); - } - } - - public String getClientToken() { - return this.clientToken; - } - - public void setClientToken(String clientToken) { - this.clientToken = clientToken; - if(clientToken != null){ - putQueryParameter("ClientToken", clientToken); - } - } - - public String getInstanceTypes() { - return this.instanceTypes; - } - - public void setInstanceTypes(String instanceTypes) { - this.instanceTypes = instanceTypes; - if(instanceTypes != null){ - putQueryParameter("InstanceTypes", instanceTypes); - } - } - - public String getPhoneNumber() { - return this.phoneNumber; - } - - public void setPhoneNumber(String phoneNumber) { - this.phoneNumber = phoneNumber; - if(phoneNumber != null){ - putQueryParameter("PhoneNumber", phoneNumber); - } - } - - public String getDescription() { - return this.description; - } - - public void setDescription(String description) { - this.description = description; - if(description != null){ - putQueryParameter("Description", description); - } - } - - public String getPlatform() { - return this.platform; - } - - public void setPlatform(String platform) { - this.platform = platform; - if(platform != null){ - putQueryParameter("Platform", platform); - } - } - - public String getReservedInstanceDescription() { - return this.reservedInstanceDescription; - } - - public void setReservedInstanceDescription(String reservedInstanceDescription) { - this.reservedInstanceDescription = reservedInstanceDescription; - if(reservedInstanceDescription != null){ - putQueryParameter("ReservedInstanceDescription", reservedInstanceDescription); - } - } - - public String getReservedInstanceGroupId() { - return this.reservedInstanceGroupId; - } - - public void setReservedInstanceGroupId(String reservedInstanceGroupId) { - this.reservedInstanceGroupId = reservedInstanceGroupId; - if(reservedInstanceGroupId != null){ - putQueryParameter("ReservedInstanceGroupId", reservedInstanceGroupId); - } - } - - public String getZoneIds() { - return this.zoneIds; - } - - public void setZoneIds(String zoneIds) { - this.zoneIds = zoneIds; - if(zoneIds != null){ - putQueryParameter("ZoneIds", zoneIds); - } - } - - public String getSavingPlanName() { - return this.savingPlanName; - } - - public void setSavingPlanName(String savingPlanName) { - this.savingPlanName = savingPlanName; - if(savingPlanName != null){ - putQueryParameter("SavingPlanName", savingPlanName); - } - } - - public String getSavingPlanSavingType() { - return this.savingPlanSavingType; - } - - public void setSavingPlanSavingType(String savingPlanSavingType) { - this.savingPlanSavingType = savingPlanSavingType; - if(savingPlanSavingType != null){ - putQueryParameter("SavingPlanSavingType", savingPlanSavingType); - } - } - - public Float getSavingPlanHourFee() { - return this.savingPlanHourFee; - } - - public void setSavingPlanHourFee(Float savingPlanHourFee) { - this.savingPlanHourFee = savingPlanHourFee; - if(savingPlanHourFee != null){ - putQueryParameter("SavingPlanHourFee", savingPlanHourFee.toString()); - } - } - - public String getInstanceChargeType() { - return this.instanceChargeType; - } - - public void setInstanceChargeType(String instanceChargeType) { - this.instanceChargeType = instanceChargeType; - if(instanceChargeType != null){ - putQueryParameter("InstanceChargeType", instanceChargeType); - } - } - - public String getReservedInstanceOfferingType() { - return this.reservedInstanceOfferingType; - } - - public void setReservedInstanceOfferingType(String reservedInstanceOfferingType) { - this.reservedInstanceOfferingType = reservedInstanceOfferingType; - if(reservedInstanceOfferingType != null){ - putQueryParameter("ReservedInstanceOfferingType", reservedInstanceOfferingType); - } - } - - public String getInstanceTypeFamily() { - return this.instanceTypeFamily; - } - - public void setInstanceTypeFamily(String instanceTypeFamily) { - this.instanceTypeFamily = instanceTypeFamily; - if(instanceTypeFamily != null){ - putQueryParameter("InstanceTypeFamily", instanceTypeFamily); - } - } - - public String getMatchCriteria() { - return this.matchCriteria; - } - - public void setMatchCriteria(String matchCriteria) { - this.matchCriteria = matchCriteria; - if(matchCriteria != null){ - putQueryParameter("MatchCriteria", matchCriteria); - } - } - - public String getConfirmType() { - return this.confirmType; - } - - public void setConfirmType(String confirmType) { - this.confirmType = confirmType; - if(confirmType != null){ - putQueryParameter("ConfirmType", confirmType); - } - } - - public String getDemandId() { - return this.demandId; - } - - public void setDemandId(String demandId) { - this.demandId = demandId; - if(demandId != null){ - putQueryParameter("DemandId", demandId); - } - } - - public String getReservedInstanceScope() { - return this.reservedInstanceScope; - } - - public void setReservedInstanceScope(String reservedInstanceScope) { - this.reservedInstanceScope = reservedInstanceScope; - if(reservedInstanceScope != null){ - putQueryParameter("ReservedInstanceScope", reservedInstanceScope); - } - } - - public String getReservedInstanceName() { - return this.reservedInstanceName; - } - - public void setReservedInstanceName(String reservedInstanceName) { - this.reservedInstanceName = reservedInstanceName; - if(reservedInstanceName != null){ - putQueryParameter("ReservedInstanceName", reservedInstanceName); - } - } - - public String getSavingPlanId() { - return this.savingPlanId; - } - - public void setSavingPlanId(String savingPlanId) { - this.savingPlanId = savingPlanId; - if(savingPlanId != null){ - putQueryParameter("SavingPlanId", savingPlanId); - } - } - - public static class PrivatePoolOptions { - - private String matchCriteria; - - private String zoneId; - - private String instanceType; - - private Integer instanceAmount; - - private String planId; - - private String startTime; - - public String getMatchCriteria() { - return this.matchCriteria; - } - - public void setMatchCriteria(String matchCriteria) { - this.matchCriteria = matchCriteria; - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - } - - public String getInstanceType() { - return this.instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - } - - public Integer getInstanceAmount() { - return this.instanceAmount; - } - - public void setInstanceAmount(Integer instanceAmount) { - this.instanceAmount = instanceAmount; - } - - public String getPlanId() { - return this.planId; - } - - public void setPlanId(String planId) { - this.planId = planId; - } - - public String getStartTime() { - return this.startTime; - } - - public void setStartTime(String startTime) { - this.startTime = startTime; - } - } - - public static class Tag { - - private String key; - - private String value; - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } - } - - @Override - public Class getResponseClass() { - return ModifyReservationDemandResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyReservationDemandResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyReservationDemandResponse.java deleted file mode 100644 index 0824958227..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyReservationDemandResponse.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.ModifyReservationDemandResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class ModifyReservationDemandResponse extends AcsResponse { - - private String requestId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public ModifyReservationDemandResponse getInstance(UnmarshallerContext context) { - return ModifyReservationDemandResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyResourceDiagnosisStatusRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyResourceDiagnosisStatusRequest.java deleted file mode 100644 index 90b8594587..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyResourceDiagnosisStatusRequest.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class ModifyResourceDiagnosisStatusRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String instanceType; - - private String errorCode; - - private String diagnosisStatus; - - private String resourceOwnerAccount; - - private Long ownerId; - - private String zoneId; - - private String payType; - public ModifyResourceDiagnosisStatusRequest() { - super("Ecs", "2016-03-14", "ModifyResourceDiagnosisStatus", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getInstanceType() { - return this.instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - if(instanceType != null){ - putQueryParameter("InstanceType", instanceType); - } - } - - public String getErrorCode() { - return this.errorCode; - } - - public void setErrorCode(String errorCode) { - this.errorCode = errorCode; - if(errorCode != null){ - putQueryParameter("ErrorCode", errorCode); - } - } - - public String getDiagnosisStatus() { - return this.diagnosisStatus; - } - - public void setDiagnosisStatus(String diagnosisStatus) { - this.diagnosisStatus = diagnosisStatus; - if(diagnosisStatus != null){ - putQueryParameter("DiagnosisStatus", diagnosisStatus); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getZoneId() { - return this.zoneId; - } - - public void setZoneId(String zoneId) { - this.zoneId = zoneId; - if(zoneId != null){ - putQueryParameter("ZoneId", zoneId); - } - } - - public String getPayType() { - return this.payType; - } - - public void setPayType(String payType) { - this.payType = payType; - if(payType != null){ - putQueryParameter("PayType", payType); - } - } - - @Override - public Class getResponseClass() { - return ModifyResourceDiagnosisStatusResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyResourceDiagnosisStatusResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyResourceDiagnosisStatusResponse.java deleted file mode 100644 index a611248e48..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyResourceDiagnosisStatusResponse.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.ModifyResourceDiagnosisStatusResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class ModifyResourceDiagnosisStatusResponse extends AcsResponse { - - private String requestId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public ModifyResourceDiagnosisStatusResponse getInstance(UnmarshallerContext context) { - return ModifyResourceDiagnosisStatusResponseUnmarshaller.unmarshall(this, context); - } - - @Override - public boolean checkShowJsonItemName() { - return false; - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyResourceMetaRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyResourceMetaRequest.java deleted file mode 100644 index 4ef36f1de0..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyResourceMetaRequest.java +++ /dev/null @@ -1,159 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class ModifyResourceMetaRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String resourceId; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String resourceType; - - private List metas; - public ModifyResourceMetaRequest() { - super("Ecs", "2016-03-14", "ModifyResourceMeta", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getResourceId() { - return this.resourceId; - } - - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - if(resourceId != null){ - putQueryParameter("ResourceId", resourceId); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getResourceType() { - return this.resourceType; - } - - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - if(resourceType != null){ - putQueryParameter("ResourceType", resourceType); - } - } - - public List getMetas() { - return this.metas; - } - - public void setMetas(List metas) { - this.metas = metas; - if (metas != null) { - for (int depth1 = 0; depth1 < metas.size(); depth1++) { - putQueryParameter("Meta." + (depth1 + 1) + ".key" , metas.get(depth1).getKey()); - putQueryParameter("Meta." + (depth1 + 1) + ".value" , metas.get(depth1).getValue()); - } - } - } - - public static class Meta { - - private String key; - - private String value; - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } - } - - @Override - public Class getResponseClass() { - return ModifyResourceMetaResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyResourceMetaResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyResourceMetaResponse.java deleted file mode 100644 index 1b3296eeb1..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyResourceMetaResponse.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.ModifyResourceMetaResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class ModifyResourceMetaResponse extends AcsResponse { - - private String requestId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public ModifyResourceMetaResponse getInstance(UnmarshallerContext context) { - return ModifyResourceMetaResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyWaitingOrderRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyWaitingOrderRequest.java deleted file mode 100644 index a553b70e89..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyWaitingOrderRequest.java +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import java.util.List; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class ModifyWaitingOrderRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String clientToken; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private String resourceGroupId; - - private String waitingOrderId; - - private List tags; - - private Long instanceAmount; - public ModifyWaitingOrderRequest() { - super("Ecs", "2016-03-14", "ModifyWaitingOrder", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getClientToken() { - return this.clientToken; - } - - public void setClientToken(String clientToken) { - this.clientToken = clientToken; - if(clientToken != null){ - putQueryParameter("ClientToken", clientToken); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public String getResourceGroupId() { - return this.resourceGroupId; - } - - public void setResourceGroupId(String resourceGroupId) { - this.resourceGroupId = resourceGroupId; - if(resourceGroupId != null){ - putQueryParameter("ResourceGroupId", resourceGroupId); - } - } - - public String getWaitingOrderId() { - return this.waitingOrderId; - } - - public void setWaitingOrderId(String waitingOrderId) { - this.waitingOrderId = waitingOrderId; - if(waitingOrderId != null){ - putQueryParameter("WaitingOrderId", waitingOrderId); - } - } - - public List getTags() { - return this.tags; - } - - public void setTags(List tags) { - this.tags = tags; - if (tags != null) { - for (int depth1 = 0; depth1 < tags.size(); depth1++) { - putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); - putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); - } - } - } - - public Long getInstanceAmount() { - return this.instanceAmount; - } - - public void setInstanceAmount(Long instanceAmount) { - this.instanceAmount = instanceAmount; - if(instanceAmount != null){ - putQueryParameter("InstanceAmount", instanceAmount.toString()); - } - } - - public static class Tag { - - private String key; - - private String value; - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } - } - - @Override - public Class getResponseClass() { - return ModifyWaitingOrderResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyWaitingOrderResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyWaitingOrderResponse.java deleted file mode 100644 index e0d9a9cc8d..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ModifyWaitingOrderResponse.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.ModifyWaitingOrderResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class ModifyWaitingOrderResponse extends AcsResponse { - - private String requestId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public ModifyWaitingOrderResponse getInstance(UnmarshallerContext context) { - return ModifyWaitingOrderResponseUnmarshaller.unmarshall(this, context); - } - - @Override - public boolean checkShowJsonItemName() { - return false; - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/PurchaseSavingPlanOfferingRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/PurchaseSavingPlanOfferingRequest.java deleted file mode 100644 index c4809afc39..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/PurchaseSavingPlanOfferingRequest.java +++ /dev/null @@ -1,249 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class PurchaseSavingPlanOfferingRequest extends RpcAcsRequest { - - - private String clientToken; - - private String description; - - private String instanceFamily; - - private String instanceFamilySet; - - private String startTime; - - private String planType; - - private String committedAmount; - - private String purchaseMethod; - - private Integer period; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String periodUnit; - - private String offeringType; - - private String name; - - private String chargeType; - public PurchaseSavingPlanOfferingRequest() { - super("Ecs", "2016-03-14", "PurchaseSavingPlanOffering", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public String getClientToken() { - return this.clientToken; - } - - public void setClientToken(String clientToken) { - this.clientToken = clientToken; - if(clientToken != null){ - putQueryParameter("ClientToken", clientToken); - } - } - - public String getDescription() { - return this.description; - } - - public void setDescription(String description) { - this.description = description; - if(description != null){ - putQueryParameter("Description", description); - } - } - - public String getInstanceFamily() { - return this.instanceFamily; - } - - public void setInstanceFamily(String instanceFamily) { - this.instanceFamily = instanceFamily; - if(instanceFamily != null){ - putQueryParameter("InstanceFamily", instanceFamily); - } - } - - public String getInstanceFamilySet() { - return this.instanceFamilySet; - } - - public void setInstanceFamilySet(String instanceFamilySet) { - this.instanceFamilySet = instanceFamilySet; - if(instanceFamilySet != null){ - putQueryParameter("InstanceFamilySet", instanceFamilySet); - } - } - - public String getStartTime() { - return this.startTime; - } - - public void setStartTime(String startTime) { - this.startTime = startTime; - if(startTime != null){ - putQueryParameter("StartTime", startTime); - } - } - - public String getPlanType() { - return this.planType; - } - - public void setPlanType(String planType) { - this.planType = planType; - if(planType != null){ - putQueryParameter("PlanType", planType); - } - } - - public String getCommittedAmount() { - return this.committedAmount; - } - - public void setCommittedAmount(String committedAmount) { - this.committedAmount = committedAmount; - if(committedAmount != null){ - putQueryParameter("CommittedAmount", committedAmount); - } - } - - public String getPurchaseMethod() { - return this.purchaseMethod; - } - - public void setPurchaseMethod(String purchaseMethod) { - this.purchaseMethod = purchaseMethod; - if(purchaseMethod != null){ - putQueryParameter("PurchaseMethod", purchaseMethod); - } - } - - public Integer getPeriod() { - return this.period; - } - - public void setPeriod(Integer period) { - this.period = period; - if(period != null){ - putQueryParameter("Period", period.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getPeriodUnit() { - return this.periodUnit; - } - - public void setPeriodUnit(String periodUnit) { - this.periodUnit = periodUnit; - if(periodUnit != null){ - putQueryParameter("PeriodUnit", periodUnit); - } - } - - public String getOfferingType() { - return this.offeringType; - } - - public void setOfferingType(String offeringType) { - this.offeringType = offeringType; - if(offeringType != null){ - putQueryParameter("OfferingType", offeringType); - } - } - - public String getName() { - return this.name; - } - - public void setName(String name) { - this.name = name; - if(name != null){ - putQueryParameter("Name", name); - } - } - - public String getChargeType() { - return this.chargeType; - } - - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - if(chargeType != null){ - putQueryParameter("ChargeType", chargeType); - } - } - - @Override - public Class getResponseClass() { - return PurchaseSavingPlanOfferingResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/PurchaseSavingPlanOfferingResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/PurchaseSavingPlanOfferingResponse.java deleted file mode 100644 index e26a993d13..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/PurchaseSavingPlanOfferingResponse.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.PurchaseSavingPlanOfferingResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class PurchaseSavingPlanOfferingResponse extends AcsResponse { - - private String requestId; - - private String orderId; - - private List savingPlanIdSets; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public String getOrderId() { - return this.orderId; - } - - public void setOrderId(String orderId) { - this.orderId = orderId; - } - - public List getSavingPlanIdSets() { - return this.savingPlanIdSets; - } - - public void setSavingPlanIdSets(List savingPlanIdSets) { - this.savingPlanIdSets = savingPlanIdSets; - } - - @Override - public PurchaseSavingPlanOfferingResponse getInstance(UnmarshallerContext context) { - return PurchaseSavingPlanOfferingResponseUnmarshaller.unmarshall(this, context); - } - - @Override - public boolean checkShowJsonItemName() { - return false; - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/QueryEniQosGroupByEniRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/QueryEniQosGroupByEniRequest.java deleted file mode 100644 index 8568931ec7..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/QueryEniQosGroupByEniRequest.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class QueryEniQosGroupByEniRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String resourceOwnerAccount; - - private Long ownerId; - - private String networkInterfaceId; - public QueryEniQosGroupByEniRequest() { - super("Ecs", "2016-03-14", "QueryEniQosGroupByEni", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getNetworkInterfaceId() { - return this.networkInterfaceId; - } - - public void setNetworkInterfaceId(String networkInterfaceId) { - this.networkInterfaceId = networkInterfaceId; - if(networkInterfaceId != null){ - putQueryParameter("NetworkInterfaceId", networkInterfaceId); - } - } - - @Override - public Class getResponseClass() { - return QueryEniQosGroupByEniResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/QueryEniQosGroupByEniResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/QueryEniQosGroupByEniResponse.java deleted file mode 100644 index 5518a44289..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/QueryEniQosGroupByEniResponse.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.QueryEniQosGroupByEniResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class QueryEniQosGroupByEniResponse extends AcsResponse { - - private String qosGroupName; - - private String requestId; - - public String getQosGroupName() { - return this.qosGroupName; - } - - public void setQosGroupName(String qosGroupName) { - this.qosGroupName = qosGroupName; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public QueryEniQosGroupByEniResponse getInstance(UnmarshallerContext context) { - return QueryEniQosGroupByEniResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/QueryEniQosGroupByInstanceRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/QueryEniQosGroupByInstanceRequest.java deleted file mode 100644 index fc12e0eb85..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/QueryEniQosGroupByInstanceRequest.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class QueryEniQosGroupByInstanceRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String resourceOwnerAccount; - - private Long ownerId; - - private String instanceId; - public QueryEniQosGroupByInstanceRequest() { - super("Ecs", "2016-03-14", "QueryEniQosGroupByInstance", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getInstanceId() { - return this.instanceId; - } - - public void setInstanceId(String instanceId) { - this.instanceId = instanceId; - if(instanceId != null){ - putQueryParameter("InstanceId", instanceId); - } - } - - @Override - public Class getResponseClass() { - return QueryEniQosGroupByInstanceResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/QueryEniQosGroupByInstanceResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/QueryEniQosGroupByInstanceResponse.java deleted file mode 100644 index 4139b995ad..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/QueryEniQosGroupByInstanceResponse.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.QueryEniQosGroupByInstanceResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class QueryEniQosGroupByInstanceResponse extends AcsResponse { - - private String requestId; - - private List data; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public List getData() { - return this.data; - } - - public void setData(List data) { - this.data = data; - } - - @Override - public QueryEniQosGroupByInstanceResponse getInstance(UnmarshallerContext context) { - return QueryEniQosGroupByInstanceResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ReAddMigrationTaskInPlanRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ReAddMigrationTaskInPlanRequest.java deleted file mode 100644 index 1ae808f414..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ReAddMigrationTaskInPlanRequest.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class ReAddMigrationTaskInPlanRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String migrationPlanId; - - private String resourceOwnerAccount; - - private String migrationTime; - - private Long ownerId; - - private String instanceId; - - private String networkMigrationType; - public ReAddMigrationTaskInPlanRequest() { - super("Ecs", "2016-03-14", "ReAddMigrationTaskInPlan", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getMigrationPlanId() { - return this.migrationPlanId; - } - - public void setMigrationPlanId(String migrationPlanId) { - this.migrationPlanId = migrationPlanId; - if(migrationPlanId != null){ - putQueryParameter("MigrationPlanId", migrationPlanId); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getMigrationTime() { - return this.migrationTime; - } - - public void setMigrationTime(String migrationTime) { - this.migrationTime = migrationTime; - if(migrationTime != null){ - putQueryParameter("MigrationTime", migrationTime); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getInstanceId() { - return this.instanceId; - } - - public void setInstanceId(String instanceId) { - this.instanceId = instanceId; - if(instanceId != null){ - putQueryParameter("InstanceId", instanceId); - } - } - - public String getNetworkMigrationType() { - return this.networkMigrationType; - } - - public void setNetworkMigrationType(String networkMigrationType) { - this.networkMigrationType = networkMigrationType; - if(networkMigrationType != null){ - putQueryParameter("NetworkMigrationType", networkMigrationType); - } - } - - @Override - public Class getResponseClass() { - return ReAddMigrationTaskInPlanResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ReAddMigrationTaskInPlanResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ReAddMigrationTaskInPlanResponse.java deleted file mode 100644 index a85a91ac18..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ReAddMigrationTaskInPlanResponse.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.ReAddMigrationTaskInPlanResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class ReAddMigrationTaskInPlanResponse extends AcsResponse { - - private String requestId; - - private List failModels; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public List getFailModels() { - return this.failModels; - } - - public void setFailModels(List failModels) { - this.failModels = failModels; - } - - public static class FailModelsItem { - - private String errorCode; - - private String errorMessage; - - public String getErrorCode() { - return this.errorCode; - } - - public void setErrorCode(String errorCode) { - this.errorCode = errorCode; - } - - public String getErrorMessage() { - return this.errorMessage; - } - - public void setErrorMessage(String errorMessage) { - this.errorMessage = errorMessage; - } - } - - @Override - public ReAddMigrationTaskInPlanResponse getInstance(UnmarshallerContext context) { - return ReAddMigrationTaskInPlanResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/RenewDedicatedHostsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/RenewDedicatedHostsResponse.java deleted file mode 100644 index d30b070175..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/RenewDedicatedHostsResponse.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.RenewDedicatedHostsResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class RenewDedicatedHostsResponse extends AcsResponse { - - private String orderId; - - private String requestId; - - private List dedicatedHostIdSets; - - public String getOrderId() { - return this.orderId; - } - - public void setOrderId(String orderId) { - this.orderId = orderId; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public List getDedicatedHostIdSets() { - return this.dedicatedHostIdSets; - } - - public void setDedicatedHostIdSets(List dedicatedHostIdSets) { - this.dedicatedHostIdSets = dedicatedHostIdSets; - } - - @Override - public RenewDedicatedHostsResponse getInstance(UnmarshallerContext context) { - return RenewDedicatedHostsResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ReviewDiagnosticReportRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ReviewDiagnosticReportRequest.java deleted file mode 100644 index 9589188edc..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ReviewDiagnosticReportRequest.java +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class ReviewDiagnosticReportRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String clientToken; - - private String sourceSystem; - - private String resourceId; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String category; - - private String status; - public ReviewDiagnosticReportRequest() { - super("Ecs", "2016-03-14", "ReviewDiagnosticReport", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getClientToken() { - return this.clientToken; - } - - public void setClientToken(String clientToken) { - this.clientToken = clientToken; - if(clientToken != null){ - putQueryParameter("ClientToken", clientToken); - } - } - - public String getSourceSystem() { - return this.sourceSystem; - } - - public void setSourceSystem(String sourceSystem) { - this.sourceSystem = sourceSystem; - if(sourceSystem != null){ - putQueryParameter("SourceSystem", sourceSystem); - } - } - - public String getResourceId() { - return this.resourceId; - } - - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - if(resourceId != null){ - putQueryParameter("ResourceId", resourceId); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getCategory() { - return this.category; - } - - public void setCategory(String category) { - this.category = category; - if(category != null){ - putQueryParameter("Category", category); - } - } - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - if(status != null){ - putQueryParameter("Status", status); - } - } - - @Override - public Class getResponseClass() { - return ReviewDiagnosticReportResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ReviewDiagnosticReportResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ReviewDiagnosticReportResponse.java deleted file mode 100644 index a52c84122f..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/ReviewDiagnosticReportResponse.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.ReviewDiagnosticReportResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class ReviewDiagnosticReportResponse extends AcsResponse { - - private String status; - - private String requestId; - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public ReviewDiagnosticReportResponse getInstance(UnmarshallerContext context) { - return ReviewDiagnosticReportResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/RunInstancesResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/RunInstancesResponse.java deleted file mode 100644 index 1e4d290b45..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/RunInstancesResponse.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import java.util.List; -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.RunInstancesResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class RunInstancesResponse extends AcsResponse { - - private String taskId; - - private String requestId; - - private List instanceIdSets; - - public String getTaskId() { - return this.taskId; - } - - public void setTaskId(String taskId) { - this.taskId = taskId; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public List getInstanceIdSets() { - return this.instanceIdSets; - } - - public void setInstanceIdSets(List instanceIdSets) { - this.instanceIdSets = instanceIdSets; - } - - @Override - public RunInstancesResponse getInstance(UnmarshallerContext context) { - return RunInstancesResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/SetInstanceAutoReleaseTimeRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/SetInstanceAutoReleaseTimeRequest.java deleted file mode 100644 index 5d4b1db590..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/SetInstanceAutoReleaseTimeRequest.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class SetInstanceAutoReleaseTimeRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private String autoReleaseTime; - - private Long ownerId; - - private String instanceId; - public SetInstanceAutoReleaseTimeRequest() { - super("Ecs", "2016-03-14", "SetInstanceAutoReleaseTime", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public String getAutoReleaseTime() { - return this.autoReleaseTime; - } - - public void setAutoReleaseTime(String autoReleaseTime) { - this.autoReleaseTime = autoReleaseTime; - if(autoReleaseTime != null){ - putQueryParameter("AutoReleaseTime", autoReleaseTime); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getInstanceId() { - return this.instanceId; - } - - public void setInstanceId(String instanceId) { - this.instanceId = instanceId; - if(instanceId != null){ - putQueryParameter("InstanceId", instanceId); - } - } - - @Override - public Class getResponseClass() { - return SetInstanceAutoReleaseTimeResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/SetInstanceAutoReleaseTimeResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/SetInstanceAutoReleaseTimeResponse.java deleted file mode 100644 index a216f20fc2..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/SetInstanceAutoReleaseTimeResponse.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.SetInstanceAutoReleaseTimeResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class SetInstanceAutoReleaseTimeResponse extends AcsResponse { - - private String requestId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public SetInstanceAutoReleaseTimeResponse getInstance(UnmarshallerContext context) { - return SetInstanceAutoReleaseTimeResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/StartNetworkInsightsAnalysisRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/StartNetworkInsightsAnalysisRequest.java deleted file mode 100644 index 93f764952c..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/StartNetworkInsightsAnalysisRequest.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class StartNetworkInsightsAnalysisRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private Boolean dryRun; - - private String networkInsightsPathId; - public StartNetworkInsightsAnalysisRequest() { - super("Ecs", "2016-03-14", "StartNetworkInsightsAnalysis", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public Boolean getDryRun() { - return this.dryRun; - } - - public void setDryRun(Boolean dryRun) { - this.dryRun = dryRun; - if(dryRun != null){ - putQueryParameter("DryRun", dryRun.toString()); - } - } - - public String getNetworkInsightsPathId() { - return this.networkInsightsPathId; - } - - public void setNetworkInsightsPathId(String networkInsightsPathId) { - this.networkInsightsPathId = networkInsightsPathId; - if(networkInsightsPathId != null){ - putQueryParameter("NetworkInsightsPathId", networkInsightsPathId); - } - } - - @Override - public Class getResponseClass() { - return StartNetworkInsightsAnalysisResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/StartNetworkInsightsAnalysisResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/StartNetworkInsightsAnalysisResponse.java deleted file mode 100644 index 0c9c177067..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/StartNetworkInsightsAnalysisResponse.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.StartNetworkInsightsAnalysisResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class StartNetworkInsightsAnalysisResponse extends AcsResponse { - - private String requestId; - - private String networkInsightsAnalysisId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - public String getNetworkInsightsAnalysisId() { - return this.networkInsightsAnalysisId; - } - - public void setNetworkInsightsAnalysisId(String networkInsightsAnalysisId) { - this.networkInsightsAnalysisId = networkInsightsAnalysisId; - } - - @Override - public StartNetworkInsightsAnalysisResponse getInstance(UnmarshallerContext context) { - return StartNetworkInsightsAnalysisResponseUnmarshaller.unmarshall(this, context); - } - - @Override - public boolean checkShowJsonItemName() { - return false; - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/UnmountPEDiskRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/UnmountPEDiskRequest.java deleted file mode 100644 index 90a4b25888..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/UnmountPEDiskRequest.java +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class UnmountPEDiskRequest extends RpcAcsRequest { - - - private Long resourceOwnerId; - - private String clientToken; - - private String sourceSystem; - - private String resourceId; - - private String resourceOwnerAccount; - - private String ownerAccount; - - private Long ownerId; - - private String category; - - private String status; - public UnmountPEDiskRequest() { - super("Ecs", "2016-03-14", "UnmountPEDisk", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public String getClientToken() { - return this.clientToken; - } - - public void setClientToken(String clientToken) { - this.clientToken = clientToken; - if(clientToken != null){ - putQueryParameter("ClientToken", clientToken); - } - } - - public String getSourceSystem() { - return this.sourceSystem; - } - - public void setSourceSystem(String sourceSystem) { - this.sourceSystem = sourceSystem; - if(sourceSystem != null){ - putQueryParameter("SourceSystem", sourceSystem); - } - } - - public String getResourceId() { - return this.resourceId; - } - - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - if(resourceId != null){ - putQueryParameter("ResourceId", resourceId); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public String getCategory() { - return this.category; - } - - public void setCategory(String category) { - this.category = category; - if(category != null){ - putQueryParameter("Category", category); - } - } - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - if(status != null){ - putQueryParameter("Status", status); - } - } - - @Override - public Class getResponseClass() { - return UnmountPEDiskResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/UnmountPEDiskResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/UnmountPEDiskResponse.java deleted file mode 100644 index 2c76c88ee5..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/UnmountPEDiskResponse.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.UnmountPEDiskResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class UnmountPEDiskResponse extends AcsResponse { - - private String status; - - private String requestId; - - public String getStatus() { - return this.status; - } - - public void setStatus(String status) { - this.status = status; - } - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public UnmountPEDiskResponse getInstance(UnmarshallerContext context) { - return UnmountPEDiskResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/UpdateServiceSettingsRequest.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/UpdateServiceSettingsRequest.java deleted file mode 100644 index 581b0c096a..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/UpdateServiceSettingsRequest.java +++ /dev/null @@ -1,289 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.RpcAcsRequest; -import com.google.gson.Gson; -import com.google.gson.annotations.SerializedName; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.ecs.Endpoint; - -/** - * @author auto create - * @version - */ -public class UpdateServiceSettingsRequest extends RpcAcsRequest { - - - private String cloudAssistantDeliverySettingsOssBucketName; - - private Long resourceOwnerId; - - @SerializedName("sessionManagerDeliverySetting") - private SessionManagerDeliverySetting sessionManagerDeliverySetting; - - private String cloudAssistantDeliverySettingsSlsProjectName; - - private String cloudAssistantDeliverySettingsOssKeyPrefix; - - private Boolean cloudAssistantDeliverySettingsSlsEnabled; - - private String cloudAssistantDeliverySettingsSlsLogstoreName; - - private String resourceOwnerAccount; - - private Boolean cloudAssistantDeliverySettingsOssEnabled; - - private String ownerAccount; - - private Long ownerId; - public UpdateServiceSettingsRequest() { - super("Ecs", "2016-03-14", "UpdateServiceSettings", "ecs"); - setMethod(MethodType.POST); - try { - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); - com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); - } catch (Exception e) {} - } - - public String getCloudAssistantDeliverySettingsOssBucketName() { - return this.cloudAssistantDeliverySettingsOssBucketName; - } - - public void setCloudAssistantDeliverySettingsOssBucketName(String cloudAssistantDeliverySettingsOssBucketName) { - this.cloudAssistantDeliverySettingsOssBucketName = cloudAssistantDeliverySettingsOssBucketName; - if(cloudAssistantDeliverySettingsOssBucketName != null){ - putQueryParameter("CloudAssistantDeliverySettings.OssBucketName", cloudAssistantDeliverySettingsOssBucketName); - } - } - - public Long getResourceOwnerId() { - return this.resourceOwnerId; - } - - public void setResourceOwnerId(Long resourceOwnerId) { - this.resourceOwnerId = resourceOwnerId; - if(resourceOwnerId != null){ - putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); - } - } - - public SessionManagerDeliverySetting getSessionManagerDeliverySetting() { - return this.sessionManagerDeliverySetting; - } - - public void setSessionManagerDeliverySetting(SessionManagerDeliverySetting sessionManagerDeliverySetting) { - this.sessionManagerDeliverySetting = sessionManagerDeliverySetting; - if (sessionManagerDeliverySetting != null) { - putQueryParameter("SessionManagerDeliverySetting" , new Gson().toJson(sessionManagerDeliverySetting)); - } - } - - public String getCloudAssistantDeliverySettingsSlsProjectName() { - return this.cloudAssistantDeliverySettingsSlsProjectName; - } - - public void setCloudAssistantDeliverySettingsSlsProjectName(String cloudAssistantDeliverySettingsSlsProjectName) { - this.cloudAssistantDeliverySettingsSlsProjectName = cloudAssistantDeliverySettingsSlsProjectName; - if(cloudAssistantDeliverySettingsSlsProjectName != null){ - putQueryParameter("CloudAssistantDeliverySettings.SlsProjectName", cloudAssistantDeliverySettingsSlsProjectName); - } - } - - public String getCloudAssistantDeliverySettingsOssKeyPrefix() { - return this.cloudAssistantDeliverySettingsOssKeyPrefix; - } - - public void setCloudAssistantDeliverySettingsOssKeyPrefix(String cloudAssistantDeliverySettingsOssKeyPrefix) { - this.cloudAssistantDeliverySettingsOssKeyPrefix = cloudAssistantDeliverySettingsOssKeyPrefix; - if(cloudAssistantDeliverySettingsOssKeyPrefix != null){ - putQueryParameter("CloudAssistantDeliverySettings.OssKeyPrefix", cloudAssistantDeliverySettingsOssKeyPrefix); - } - } - - public Boolean getCloudAssistantDeliverySettingsSlsEnabled() { - return this.cloudAssistantDeliverySettingsSlsEnabled; - } - - public void setCloudAssistantDeliverySettingsSlsEnabled(Boolean cloudAssistantDeliverySettingsSlsEnabled) { - this.cloudAssistantDeliverySettingsSlsEnabled = cloudAssistantDeliverySettingsSlsEnabled; - if(cloudAssistantDeliverySettingsSlsEnabled != null){ - putQueryParameter("CloudAssistantDeliverySettings.SlsEnabled", cloudAssistantDeliverySettingsSlsEnabled.toString()); - } - } - - public String getCloudAssistantDeliverySettingsSlsLogstoreName() { - return this.cloudAssistantDeliverySettingsSlsLogstoreName; - } - - public void setCloudAssistantDeliverySettingsSlsLogstoreName(String cloudAssistantDeliverySettingsSlsLogstoreName) { - this.cloudAssistantDeliverySettingsSlsLogstoreName = cloudAssistantDeliverySettingsSlsLogstoreName; - if(cloudAssistantDeliverySettingsSlsLogstoreName != null){ - putQueryParameter("CloudAssistantDeliverySettings.SlsLogstoreName", cloudAssistantDeliverySettingsSlsLogstoreName); - } - } - - public String getResourceOwnerAccount() { - return this.resourceOwnerAccount; - } - - public void setResourceOwnerAccount(String resourceOwnerAccount) { - this.resourceOwnerAccount = resourceOwnerAccount; - if(resourceOwnerAccount != null){ - putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); - } - } - - public Boolean getCloudAssistantDeliverySettingsOssEnabled() { - return this.cloudAssistantDeliverySettingsOssEnabled; - } - - public void setCloudAssistantDeliverySettingsOssEnabled(Boolean cloudAssistantDeliverySettingsOssEnabled) { - this.cloudAssistantDeliverySettingsOssEnabled = cloudAssistantDeliverySettingsOssEnabled; - if(cloudAssistantDeliverySettingsOssEnabled != null){ - putQueryParameter("CloudAssistantDeliverySettings.OssEnabled", cloudAssistantDeliverySettingsOssEnabled.toString()); - } - } - - public String getOwnerAccount() { - return this.ownerAccount; - } - - public void setOwnerAccount(String ownerAccount) { - this.ownerAccount = ownerAccount; - if(ownerAccount != null){ - putQueryParameter("OwnerAccount", ownerAccount); - } - } - - public Long getOwnerId() { - return this.ownerId; - } - - public void setOwnerId(Long ownerId) { - this.ownerId = ownerId; - if(ownerId != null){ - putQueryParameter("OwnerId", ownerId.toString()); - } - } - - public static class SessionManagerDeliverySetting { - - @SerializedName("OssEnabled") - private Boolean ossEnabled; - - @SerializedName("OssBucketName") - private String ossBucketName; - - @SerializedName("OssKeyPrefix") - private String ossKeyPrefix; - - @SerializedName("OssEncryptionType") - private String ossEncryptionType; - - @SerializedName("OssEncryptionAlgorithm") - private String ossEncryptionAlgorithm; - - @SerializedName("OssEncryptionKeyId") - private String ossEncryptionKeyId; - - @SerializedName("SlsEnabled") - private Boolean slsEnabled; - - @SerializedName("SlsProjectName") - private String slsProjectName; - - @SerializedName("SlsLogstoreName") - private String slsLogstoreName; - - public Boolean getOssEnabled() { - return this.ossEnabled; - } - - public void setOssEnabled(Boolean ossEnabled) { - this.ossEnabled = ossEnabled; - } - - public String getOssBucketName() { - return this.ossBucketName; - } - - public void setOssBucketName(String ossBucketName) { - this.ossBucketName = ossBucketName; - } - - public String getOssKeyPrefix() { - return this.ossKeyPrefix; - } - - public void setOssKeyPrefix(String ossKeyPrefix) { - this.ossKeyPrefix = ossKeyPrefix; - } - - public String getOssEncryptionType() { - return this.ossEncryptionType; - } - - public void setOssEncryptionType(String ossEncryptionType) { - this.ossEncryptionType = ossEncryptionType; - } - - public String getOssEncryptionAlgorithm() { - return this.ossEncryptionAlgorithm; - } - - public void setOssEncryptionAlgorithm(String ossEncryptionAlgorithm) { - this.ossEncryptionAlgorithm = ossEncryptionAlgorithm; - } - - public String getOssEncryptionKeyId() { - return this.ossEncryptionKeyId; - } - - public void setOssEncryptionKeyId(String ossEncryptionKeyId) { - this.ossEncryptionKeyId = ossEncryptionKeyId; - } - - public Boolean getSlsEnabled() { - return this.slsEnabled; - } - - public void setSlsEnabled(Boolean slsEnabled) { - this.slsEnabled = slsEnabled; - } - - public String getSlsProjectName() { - return this.slsProjectName; - } - - public void setSlsProjectName(String slsProjectName) { - this.slsProjectName = slsProjectName; - } - - public String getSlsLogstoreName() { - return this.slsLogstoreName; - } - - public void setSlsLogstoreName(String slsLogstoreName) { - this.slsLogstoreName = slsLogstoreName; - } - } - - @Override - public Class getResponseClass() { - return UpdateServiceSettingsResponse.class; - } - -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/UpdateServiceSettingsResponse.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/UpdateServiceSettingsResponse.java deleted file mode 100644 index 94b798978d..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20160314/UpdateServiceSettingsResponse.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.model.v20160314; - -import com.aliyuncs.AcsResponse; -import com.aliyuncs.ecs.transform.v20160314.UpdateServiceSettingsResponseUnmarshaller; -import com.aliyuncs.transform.UnmarshallerContext; - -/** - * @author auto create - * @version - */ -public class UpdateServiceSettingsResponse extends AcsResponse { - - private String requestId; - - public String getRequestId() { - return this.requestId; - } - - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public UpdateServiceSettingsResponse getInstance(UnmarshallerContext context) { - return UpdateServiceSettingsResponseUnmarshaller.unmarshall(this, context); - } -} diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AcceptInquiredSystemEventResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AcceptInquiredSystemEventResponseUnmarshaller.java new file mode 100644 index 0000000000..66284571c3 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AcceptInquiredSystemEventResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.AcceptInquiredSystemEventResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class AcceptInquiredSystemEventResponseUnmarshaller { + + public static AcceptInquiredSystemEventResponse unmarshall(AcceptInquiredSystemEventResponse acceptInquiredSystemEventResponse, UnmarshallerContext _ctx) { + + acceptInquiredSystemEventResponse.setRequestId(_ctx.stringValue("AcceptInquiredSystemEventResponse.RequestId")); + + return acceptInquiredSystemEventResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ActivateRouterInterfaceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ActivateRouterInterfaceResponseUnmarshaller.java new file mode 100644 index 0000000000..76530d8782 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ActivateRouterInterfaceResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ActivateRouterInterfaceResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ActivateRouterInterfaceResponseUnmarshaller { + + public static ActivateRouterInterfaceResponse unmarshall(ActivateRouterInterfaceResponse activateRouterInterfaceResponse, UnmarshallerContext _ctx) { + + activateRouterInterfaceResponse.setRequestId(_ctx.stringValue("ActivateRouterInterfaceResponse.RequestId")); + + return activateRouterInterfaceResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AddBandwidthPackageIpsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AddBandwidthPackageIpsResponseUnmarshaller.java new file mode 100644 index 0000000000..287cf19024 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AddBandwidthPackageIpsResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.AddBandwidthPackageIpsResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class AddBandwidthPackageIpsResponseUnmarshaller { + + public static AddBandwidthPackageIpsResponse unmarshall(AddBandwidthPackageIpsResponse addBandwidthPackageIpsResponse, UnmarshallerContext _ctx) { + + addBandwidthPackageIpsResponse.setRequestId(_ctx.stringValue("AddBandwidthPackageIpsResponse.RequestId")); + + return addBandwidthPackageIpsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AddTagsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AddTagsResponseUnmarshaller.java new file mode 100644 index 0000000000..5d167f301a --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AddTagsResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.AddTagsResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class AddTagsResponseUnmarshaller { + + public static AddTagsResponse unmarshall(AddTagsResponse addTagsResponse, UnmarshallerContext _ctx) { + + addTagsResponse.setRequestId(_ctx.stringValue("AddTagsResponse.RequestId")); + + return addTagsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/AllocateDedicatedHostsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AllocateDedicatedHostsResponseUnmarshaller.java similarity index 86% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/AllocateDedicatedHostsResponseUnmarshaller.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AllocateDedicatedHostsResponseUnmarshaller.java index 01f1fe532a..f95fd07597 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/AllocateDedicatedHostsResponseUnmarshaller.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AllocateDedicatedHostsResponseUnmarshaller.java @@ -12,12 +12,12 @@ * limitations under the License. */ -package com.aliyuncs.ecs.transform.v20160314; +package com.aliyuncs.ecs.transform.v20140526; import java.util.ArrayList; import java.util.List; -import com.aliyuncs.ecs.model.v20160314.AllocateDedicatedHostsResponse; +import com.aliyuncs.ecs.model.v20140526.AllocateDedicatedHostsResponse; import com.aliyuncs.transform.UnmarshallerContext; @@ -26,7 +26,6 @@ public class AllocateDedicatedHostsResponseUnmarshaller { public static AllocateDedicatedHostsResponse unmarshall(AllocateDedicatedHostsResponse allocateDedicatedHostsResponse, UnmarshallerContext _ctx) { allocateDedicatedHostsResponse.setRequestId(_ctx.stringValue("AllocateDedicatedHostsResponse.RequestId")); - allocateDedicatedHostsResponse.setOrderId(_ctx.stringValue("AllocateDedicatedHostsResponse.OrderId")); List dedicatedHostIdSets = new ArrayList(); for (int i = 0; i < _ctx.lengthValue("AllocateDedicatedHostsResponse.DedicatedHostIdSets.Length"); i++) { diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AllocateEipAddressResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AllocateEipAddressResponseUnmarshaller.java new file mode 100644 index 0000000000..45e00a86c8 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AllocateEipAddressResponseUnmarshaller.java @@ -0,0 +1,31 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.AllocateEipAddressResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class AllocateEipAddressResponseUnmarshaller { + + public static AllocateEipAddressResponse unmarshall(AllocateEipAddressResponse allocateEipAddressResponse, UnmarshallerContext _ctx) { + + allocateEipAddressResponse.setRequestId(_ctx.stringValue("AllocateEipAddressResponse.RequestId")); + allocateEipAddressResponse.setAllocationId(_ctx.stringValue("AllocateEipAddressResponse.AllocationId")); + allocateEipAddressResponse.setEipAddress(_ctx.stringValue("AllocateEipAddressResponse.EipAddress")); + + return allocateEipAddressResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AllocatePublicIpAddressResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AllocatePublicIpAddressResponseUnmarshaller.java new file mode 100644 index 0000000000..3300e6ade9 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AllocatePublicIpAddressResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.AllocatePublicIpAddressResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class AllocatePublicIpAddressResponseUnmarshaller { + + public static AllocatePublicIpAddressResponse unmarshall(AllocatePublicIpAddressResponse allocatePublicIpAddressResponse, UnmarshallerContext _ctx) { + + allocatePublicIpAddressResponse.setRequestId(_ctx.stringValue("AllocatePublicIpAddressResponse.RequestId")); + allocatePublicIpAddressResponse.setIpAddress(_ctx.stringValue("AllocatePublicIpAddressResponse.IpAddress")); + + return allocatePublicIpAddressResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ApplyAutoSnapshotPolicyResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ApplyAutoSnapshotPolicyResponseUnmarshaller.java new file mode 100644 index 0000000000..2877c6fc61 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ApplyAutoSnapshotPolicyResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ApplyAutoSnapshotPolicyResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ApplyAutoSnapshotPolicyResponseUnmarshaller { + + public static ApplyAutoSnapshotPolicyResponse unmarshall(ApplyAutoSnapshotPolicyResponse applyAutoSnapshotPolicyResponse, UnmarshallerContext _ctx) { + + applyAutoSnapshotPolicyResponse.setRequestId(_ctx.stringValue("ApplyAutoSnapshotPolicyResponse.RequestId")); + + return applyAutoSnapshotPolicyResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AssignIpv6AddressesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AssignIpv6AddressesResponseUnmarshaller.java new file mode 100644 index 0000000000..055c4a7eae --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AssignIpv6AddressesResponseUnmarshaller.java @@ -0,0 +1,45 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.AssignIpv6AddressesResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class AssignIpv6AddressesResponseUnmarshaller { + + public static AssignIpv6AddressesResponse unmarshall(AssignIpv6AddressesResponse assignIpv6AddressesResponse, UnmarshallerContext _ctx) { + + assignIpv6AddressesResponse.setRequestId(_ctx.stringValue("AssignIpv6AddressesResponse.RequestId")); + assignIpv6AddressesResponse.setNetworkInterfaceId(_ctx.stringValue("AssignIpv6AddressesResponse.NetworkInterfaceId")); + + List ipv6Sets = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("AssignIpv6AddressesResponse.Ipv6Sets.Length"); i++) { + ipv6Sets.add(_ctx.stringValue("AssignIpv6AddressesResponse.Ipv6Sets["+ i +"]")); + } + assignIpv6AddressesResponse.setIpv6Sets(ipv6Sets); + + List ipv6PrefixSets = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("AssignIpv6AddressesResponse.Ipv6PrefixSets.Length"); i++) { + ipv6PrefixSets.add(_ctx.stringValue("AssignIpv6AddressesResponse.Ipv6PrefixSets["+ i +"]")); + } + assignIpv6AddressesResponse.setIpv6PrefixSets(ipv6PrefixSets); + + return assignIpv6AddressesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AssignPrivateIpAddressesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AssignPrivateIpAddressesResponseUnmarshaller.java new file mode 100644 index 0000000000..0cc4de0f91 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AssignPrivateIpAddressesResponseUnmarshaller.java @@ -0,0 +1,49 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.AssignPrivateIpAddressesResponse; +import com.aliyuncs.ecs.model.v20140526.AssignPrivateIpAddressesResponse.AssignedPrivateIpAddressesSet; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class AssignPrivateIpAddressesResponseUnmarshaller { + + public static AssignPrivateIpAddressesResponse unmarshall(AssignPrivateIpAddressesResponse assignPrivateIpAddressesResponse, UnmarshallerContext _ctx) { + + assignPrivateIpAddressesResponse.setRequestId(_ctx.stringValue("AssignPrivateIpAddressesResponse.RequestId")); + + AssignedPrivateIpAddressesSet assignedPrivateIpAddressesSet = new AssignedPrivateIpAddressesSet(); + assignedPrivateIpAddressesSet.setNetworkInterfaceId(_ctx.stringValue("AssignPrivateIpAddressesResponse.AssignedPrivateIpAddressesSet.NetworkInterfaceId")); + + List privateIpSet = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("AssignPrivateIpAddressesResponse.AssignedPrivateIpAddressesSet.PrivateIpSet.Length"); i++) { + privateIpSet.add(_ctx.stringValue("AssignPrivateIpAddressesResponse.AssignedPrivateIpAddressesSet.PrivateIpSet["+ i +"]")); + } + assignedPrivateIpAddressesSet.setPrivateIpSet(privateIpSet); + + List ipv4PrefixSet = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("AssignPrivateIpAddressesResponse.AssignedPrivateIpAddressesSet.Ipv4PrefixSet.Length"); i++) { + ipv4PrefixSet.add(_ctx.stringValue("AssignPrivateIpAddressesResponse.AssignedPrivateIpAddressesSet.Ipv4PrefixSet["+ i +"]")); + } + assignedPrivateIpAddressesSet.setIpv4PrefixSet(ipv4PrefixSet); + assignPrivateIpAddressesResponse.setAssignedPrivateIpAddressesSet(assignedPrivateIpAddressesSet); + + return assignPrivateIpAddressesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AssociateEipAddressResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AssociateEipAddressResponseUnmarshaller.java new file mode 100644 index 0000000000..ceb736fbcc --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AssociateEipAddressResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.AssociateEipAddressResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class AssociateEipAddressResponseUnmarshaller { + + public static AssociateEipAddressResponse unmarshall(AssociateEipAddressResponse associateEipAddressResponse, UnmarshallerContext _ctx) { + + associateEipAddressResponse.setRequestId(_ctx.stringValue("AssociateEipAddressResponse.RequestId")); + + return associateEipAddressResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AssociateHaVipResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AssociateHaVipResponseUnmarshaller.java new file mode 100644 index 0000000000..5789de51bd --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AssociateHaVipResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.AssociateHaVipResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class AssociateHaVipResponseUnmarshaller { + + public static AssociateHaVipResponse unmarshall(AssociateHaVipResponse associateHaVipResponse, UnmarshallerContext _ctx) { + + associateHaVipResponse.setRequestId(_ctx.stringValue("AssociateHaVipResponse.RequestId")); + + return associateHaVipResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AttachClassicLinkVpcResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AttachClassicLinkVpcResponseUnmarshaller.java new file mode 100644 index 0000000000..70666d37c6 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AttachClassicLinkVpcResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.AttachClassicLinkVpcResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class AttachClassicLinkVpcResponseUnmarshaller { + + public static AttachClassicLinkVpcResponse unmarshall(AttachClassicLinkVpcResponse attachClassicLinkVpcResponse, UnmarshallerContext _ctx) { + + attachClassicLinkVpcResponse.setRequestId(_ctx.stringValue("AttachClassicLinkVpcResponse.RequestId")); + + return attachClassicLinkVpcResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AttachDiskResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AttachDiskResponseUnmarshaller.java new file mode 100644 index 0000000000..b639105b15 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AttachDiskResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.AttachDiskResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class AttachDiskResponseUnmarshaller { + + public static AttachDiskResponse unmarshall(AttachDiskResponse attachDiskResponse, UnmarshallerContext _ctx) { + + attachDiskResponse.setRequestId(_ctx.stringValue("AttachDiskResponse.RequestId")); + + return attachDiskResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AttachInstanceRamRoleResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AttachInstanceRamRoleResponseUnmarshaller.java new file mode 100644 index 0000000000..b982b97d9d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AttachInstanceRamRoleResponseUnmarshaller.java @@ -0,0 +1,48 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.AttachInstanceRamRoleResponse; +import com.aliyuncs.ecs.model.v20140526.AttachInstanceRamRoleResponse.AttachInstanceRamRoleResult; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class AttachInstanceRamRoleResponseUnmarshaller { + + public static AttachInstanceRamRoleResponse unmarshall(AttachInstanceRamRoleResponse attachInstanceRamRoleResponse, UnmarshallerContext _ctx) { + + attachInstanceRamRoleResponse.setRequestId(_ctx.stringValue("AttachInstanceRamRoleResponse.RequestId")); + attachInstanceRamRoleResponse.setRamRoleName(_ctx.stringValue("AttachInstanceRamRoleResponse.RamRoleName")); + attachInstanceRamRoleResponse.setTotalCount(_ctx.integerValue("AttachInstanceRamRoleResponse.TotalCount")); + attachInstanceRamRoleResponse.setFailCount(_ctx.integerValue("AttachInstanceRamRoleResponse.FailCount")); + + List attachInstanceRamRoleResults = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("AttachInstanceRamRoleResponse.AttachInstanceRamRoleResults.Length"); i++) { + AttachInstanceRamRoleResult attachInstanceRamRoleResult = new AttachInstanceRamRoleResult(); + attachInstanceRamRoleResult.setCode(_ctx.stringValue("AttachInstanceRamRoleResponse.AttachInstanceRamRoleResults["+ i +"].Code")); + attachInstanceRamRoleResult.setMessage(_ctx.stringValue("AttachInstanceRamRoleResponse.AttachInstanceRamRoleResults["+ i +"].Message")); + attachInstanceRamRoleResult.setInstanceId(_ctx.stringValue("AttachInstanceRamRoleResponse.AttachInstanceRamRoleResults["+ i +"].InstanceId")); + attachInstanceRamRoleResult.setSuccess(_ctx.booleanValue("AttachInstanceRamRoleResponse.AttachInstanceRamRoleResults["+ i +"].Success")); + + attachInstanceRamRoleResults.add(attachInstanceRamRoleResult); + } + attachInstanceRamRoleResponse.setAttachInstanceRamRoleResults(attachInstanceRamRoleResults); + + return attachInstanceRamRoleResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AttachKeyPairResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AttachKeyPairResponseUnmarshaller.java new file mode 100644 index 0000000000..5f078d2004 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AttachKeyPairResponseUnmarshaller.java @@ -0,0 +1,48 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.AttachKeyPairResponse; +import com.aliyuncs.ecs.model.v20140526.AttachKeyPairResponse.Result; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class AttachKeyPairResponseUnmarshaller { + + public static AttachKeyPairResponse unmarshall(AttachKeyPairResponse attachKeyPairResponse, UnmarshallerContext _ctx) { + + attachKeyPairResponse.setRequestId(_ctx.stringValue("AttachKeyPairResponse.RequestId")); + attachKeyPairResponse.setKeyPairName(_ctx.stringValue("AttachKeyPairResponse.KeyPairName")); + attachKeyPairResponse.setTotalCount(_ctx.stringValue("AttachKeyPairResponse.TotalCount")); + attachKeyPairResponse.setFailCount(_ctx.stringValue("AttachKeyPairResponse.FailCount")); + + List results = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("AttachKeyPairResponse.Results.Length"); i++) { + Result result = new Result(); + result.setCode(_ctx.stringValue("AttachKeyPairResponse.Results["+ i +"].Code")); + result.setMessage(_ctx.stringValue("AttachKeyPairResponse.Results["+ i +"].Message")); + result.setInstanceId(_ctx.stringValue("AttachKeyPairResponse.Results["+ i +"].InstanceId")); + result.setSuccess(_ctx.stringValue("AttachKeyPairResponse.Results["+ i +"].Success")); + + results.add(result); + } + attachKeyPairResponse.setResults(results); + + return attachKeyPairResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AttachNetworkInterfaceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AttachNetworkInterfaceResponseUnmarshaller.java new file mode 100644 index 0000000000..a80e92fbfd --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AttachNetworkInterfaceResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.AttachNetworkInterfaceResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class AttachNetworkInterfaceResponseUnmarshaller { + + public static AttachNetworkInterfaceResponse unmarshall(AttachNetworkInterfaceResponse attachNetworkInterfaceResponse, UnmarshallerContext _ctx) { + + attachNetworkInterfaceResponse.setRequestId(_ctx.stringValue("AttachNetworkInterfaceResponse.RequestId")); + + return attachNetworkInterfaceResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AuthorizeSecurityGroupEgressResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AuthorizeSecurityGroupEgressResponseUnmarshaller.java new file mode 100644 index 0000000000..9ccf74a346 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AuthorizeSecurityGroupEgressResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.AuthorizeSecurityGroupEgressResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class AuthorizeSecurityGroupEgressResponseUnmarshaller { + + public static AuthorizeSecurityGroupEgressResponse unmarshall(AuthorizeSecurityGroupEgressResponse authorizeSecurityGroupEgressResponse, UnmarshallerContext _ctx) { + + authorizeSecurityGroupEgressResponse.setRequestId(_ctx.stringValue("AuthorizeSecurityGroupEgressResponse.RequestId")); + + return authorizeSecurityGroupEgressResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AuthorizeSecurityGroupResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AuthorizeSecurityGroupResponseUnmarshaller.java new file mode 100644 index 0000000000..499ec6a137 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/AuthorizeSecurityGroupResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.AuthorizeSecurityGroupResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class AuthorizeSecurityGroupResponseUnmarshaller { + + public static AuthorizeSecurityGroupResponse unmarshall(AuthorizeSecurityGroupResponse authorizeSecurityGroupResponse, UnmarshallerContext _ctx) { + + authorizeSecurityGroupResponse.setRequestId(_ctx.stringValue("AuthorizeSecurityGroupResponse.RequestId")); + + return authorizeSecurityGroupResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CancelAutoSnapshotPolicyResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CancelAutoSnapshotPolicyResponseUnmarshaller.java new file mode 100644 index 0000000000..309c13e074 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CancelAutoSnapshotPolicyResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CancelAutoSnapshotPolicyResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CancelAutoSnapshotPolicyResponseUnmarshaller { + + public static CancelAutoSnapshotPolicyResponse unmarshall(CancelAutoSnapshotPolicyResponse cancelAutoSnapshotPolicyResponse, UnmarshallerContext _ctx) { + + cancelAutoSnapshotPolicyResponse.setRequestId(_ctx.stringValue("CancelAutoSnapshotPolicyResponse.RequestId")); + + return cancelAutoSnapshotPolicyResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CancelCopyImageResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CancelCopyImageResponseUnmarshaller.java new file mode 100644 index 0000000000..f3f77ad94c --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CancelCopyImageResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CancelCopyImageResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CancelCopyImageResponseUnmarshaller { + + public static CancelCopyImageResponse unmarshall(CancelCopyImageResponse cancelCopyImageResponse, UnmarshallerContext _ctx) { + + cancelCopyImageResponse.setRequestId(_ctx.stringValue("CancelCopyImageResponse.RequestId")); + + return cancelCopyImageResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CancelImagePipelineExecutionResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CancelImagePipelineExecutionResponseUnmarshaller.java new file mode 100644 index 0000000000..ac7c10aeb5 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CancelImagePipelineExecutionResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CancelImagePipelineExecutionResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CancelImagePipelineExecutionResponseUnmarshaller { + + public static CancelImagePipelineExecutionResponse unmarshall(CancelImagePipelineExecutionResponse cancelImagePipelineExecutionResponse, UnmarshallerContext _ctx) { + + cancelImagePipelineExecutionResponse.setRequestId(_ctx.stringValue("CancelImagePipelineExecutionResponse.RequestId")); + + return cancelImagePipelineExecutionResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CancelPhysicalConnectionResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CancelPhysicalConnectionResponseUnmarshaller.java new file mode 100644 index 0000000000..4fa0a74f4c --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CancelPhysicalConnectionResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CancelPhysicalConnectionResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CancelPhysicalConnectionResponseUnmarshaller { + + public static CancelPhysicalConnectionResponse unmarshall(CancelPhysicalConnectionResponse cancelPhysicalConnectionResponse, UnmarshallerContext _ctx) { + + cancelPhysicalConnectionResponse.setRequestId(_ctx.stringValue("CancelPhysicalConnectionResponse.RequestId")); + + return cancelPhysicalConnectionResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CancelSimulatedSystemEventsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CancelSimulatedSystemEventsResponseUnmarshaller.java new file mode 100644 index 0000000000..229fabd4ad --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CancelSimulatedSystemEventsResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CancelSimulatedSystemEventsResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CancelSimulatedSystemEventsResponseUnmarshaller { + + public static CancelSimulatedSystemEventsResponse unmarshall(CancelSimulatedSystemEventsResponse cancelSimulatedSystemEventsResponse, UnmarshallerContext _ctx) { + + cancelSimulatedSystemEventsResponse.setRequestId(_ctx.stringValue("CancelSimulatedSystemEventsResponse.RequestId")); + + return cancelSimulatedSystemEventsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CancelTaskResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CancelTaskResponseUnmarshaller.java new file mode 100644 index 0000000000..79cda5b79a --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CancelTaskResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CancelTaskResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CancelTaskResponseUnmarshaller { + + public static CancelTaskResponse unmarshall(CancelTaskResponse cancelTaskResponse, UnmarshallerContext _ctx) { + + cancelTaskResponse.setRequestId(_ctx.stringValue("CancelTaskResponse.RequestId")); + + return cancelTaskResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ConnectRouterInterfaceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ConnectRouterInterfaceResponseUnmarshaller.java new file mode 100644 index 0000000000..c2817aad03 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ConnectRouterInterfaceResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ConnectRouterInterfaceResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ConnectRouterInterfaceResponseUnmarshaller { + + public static ConnectRouterInterfaceResponse unmarshall(ConnectRouterInterfaceResponse connectRouterInterfaceResponse, UnmarshallerContext _ctx) { + + connectRouterInterfaceResponse.setRequestId(_ctx.stringValue("ConnectRouterInterfaceResponse.RequestId")); + + return connectRouterInterfaceResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ConvertNatPublicIpToEipResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ConvertNatPublicIpToEipResponseUnmarshaller.java new file mode 100644 index 0000000000..7adadc3bf0 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ConvertNatPublicIpToEipResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ConvertNatPublicIpToEipResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ConvertNatPublicIpToEipResponseUnmarshaller { + + public static ConvertNatPublicIpToEipResponse unmarshall(ConvertNatPublicIpToEipResponse convertNatPublicIpToEipResponse, UnmarshallerContext _ctx) { + + convertNatPublicIpToEipResponse.setRequestId(_ctx.stringValue("ConvertNatPublicIpToEipResponse.RequestId")); + + return convertNatPublicIpToEipResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CopyImageResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CopyImageResponseUnmarshaller.java new file mode 100644 index 0000000000..55c0a03a93 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CopyImageResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CopyImageResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CopyImageResponseUnmarshaller { + + public static CopyImageResponse unmarshall(CopyImageResponse copyImageResponse, UnmarshallerContext _ctx) { + + copyImageResponse.setRequestId(_ctx.stringValue("CopyImageResponse.RequestId")); + copyImageResponse.setImageId(_ctx.stringValue("CopyImageResponse.ImageId")); + + return copyImageResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CopySnapshotResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CopySnapshotResponseUnmarshaller.java new file mode 100644 index 0000000000..f1ba34ba56 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CopySnapshotResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CopySnapshotResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CopySnapshotResponseUnmarshaller { + + public static CopySnapshotResponse unmarshall(CopySnapshotResponse copySnapshotResponse, UnmarshallerContext _ctx) { + + copySnapshotResponse.setRequestId(_ctx.stringValue("CopySnapshotResponse.RequestId")); + copySnapshotResponse.setSnapshotId(_ctx.stringValue("CopySnapshotResponse.SnapshotId")); + + return copySnapshotResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateActivationResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateActivationResponseUnmarshaller.java new file mode 100644 index 0000000000..df7da96bb8 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateActivationResponseUnmarshaller.java @@ -0,0 +1,31 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CreateActivationResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateActivationResponseUnmarshaller { + + public static CreateActivationResponse unmarshall(CreateActivationResponse createActivationResponse, UnmarshallerContext _ctx) { + + createActivationResponse.setRequestId(_ctx.stringValue("CreateActivationResponse.RequestId")); + createActivationResponse.setActivationCode(_ctx.stringValue("CreateActivationResponse.ActivationCode")); + createActivationResponse.setActivationId(_ctx.stringValue("CreateActivationResponse.ActivationId")); + + return createActivationResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateAutoProvisioningGroupResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateAutoProvisioningGroupResponseUnmarshaller.java new file mode 100644 index 0000000000..3b5aae0bcf --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateAutoProvisioningGroupResponseUnmarshaller.java @@ -0,0 +1,53 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.CreateAutoProvisioningGroupResponse; +import com.aliyuncs.ecs.model.v20140526.CreateAutoProvisioningGroupResponse.LaunchResult; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateAutoProvisioningGroupResponseUnmarshaller { + + public static CreateAutoProvisioningGroupResponse unmarshall(CreateAutoProvisioningGroupResponse createAutoProvisioningGroupResponse, UnmarshallerContext _ctx) { + + createAutoProvisioningGroupResponse.setRequestId(_ctx.stringValue("CreateAutoProvisioningGroupResponse.RequestId")); + createAutoProvisioningGroupResponse.setAutoProvisioningGroupId(_ctx.stringValue("CreateAutoProvisioningGroupResponse.AutoProvisioningGroupId")); + + List launchResults = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("CreateAutoProvisioningGroupResponse.LaunchResults.Length"); i++) { + LaunchResult launchResult = new LaunchResult(); + launchResult.setZoneId(_ctx.stringValue("CreateAutoProvisioningGroupResponse.LaunchResults["+ i +"].ZoneId")); + launchResult.setErrorMsg(_ctx.stringValue("CreateAutoProvisioningGroupResponse.LaunchResults["+ i +"].ErrorMsg")); + launchResult.setInstanceType(_ctx.stringValue("CreateAutoProvisioningGroupResponse.LaunchResults["+ i +"].InstanceType")); + launchResult.setErrorCode(_ctx.stringValue("CreateAutoProvisioningGroupResponse.LaunchResults["+ i +"].ErrorCode")); + launchResult.setSpotStrategy(_ctx.stringValue("CreateAutoProvisioningGroupResponse.LaunchResults["+ i +"].SpotStrategy")); + + List instanceIds = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("CreateAutoProvisioningGroupResponse.LaunchResults["+ i +"].InstanceIds.Length"); j++) { + instanceIds.add(_ctx.stringValue("CreateAutoProvisioningGroupResponse.LaunchResults["+ i +"].InstanceIds["+ j +"]")); + } + launchResult.setInstanceIds(instanceIds); + + launchResults.add(launchResult); + } + createAutoProvisioningGroupResponse.setLaunchResults(launchResults); + + return createAutoProvisioningGroupResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateAutoSnapshotPolicyResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateAutoSnapshotPolicyResponseUnmarshaller.java new file mode 100644 index 0000000000..90a382c20b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateAutoSnapshotPolicyResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CreateAutoSnapshotPolicyResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateAutoSnapshotPolicyResponseUnmarshaller { + + public static CreateAutoSnapshotPolicyResponse unmarshall(CreateAutoSnapshotPolicyResponse createAutoSnapshotPolicyResponse, UnmarshallerContext _ctx) { + + createAutoSnapshotPolicyResponse.setRequestId(_ctx.stringValue("CreateAutoSnapshotPolicyResponse.RequestId")); + createAutoSnapshotPolicyResponse.setAutoSnapshotPolicyId(_ctx.stringValue("CreateAutoSnapshotPolicyResponse.AutoSnapshotPolicyId")); + + return createAutoSnapshotPolicyResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateCapacityReservationResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateCapacityReservationResponseUnmarshaller.java similarity index 80% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateCapacityReservationResponseUnmarshaller.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateCapacityReservationResponseUnmarshaller.java index 78a1c1842b..eefab56695 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateCapacityReservationResponseUnmarshaller.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateCapacityReservationResponseUnmarshaller.java @@ -12,9 +12,9 @@ * limitations under the License. */ -package com.aliyuncs.ecs.transform.v20160314; +package com.aliyuncs.ecs.transform.v20140526; -import com.aliyuncs.ecs.model.v20160314.CreateCapacityReservationResponse; +import com.aliyuncs.ecs.model.v20140526.CreateCapacityReservationResponse; import com.aliyuncs.transform.UnmarshallerContext; @@ -23,7 +23,7 @@ public class CreateCapacityReservationResponseUnmarshaller { public static CreateCapacityReservationResponse unmarshall(CreateCapacityReservationResponse createCapacityReservationResponse, UnmarshallerContext _ctx) { createCapacityReservationResponse.setRequestId(_ctx.stringValue("CreateCapacityReservationResponse.RequestId")); - createCapacityReservationResponse.setCapacityReservationId(_ctx.stringValue("CreateCapacityReservationResponse.CapacityReservationId")); + createCapacityReservationResponse.setPrivatePoolOptionsId(_ctx.stringValue("CreateCapacityReservationResponse.PrivatePoolOptionsId")); return createCapacityReservationResponse; } diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateCommandResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateCommandResponseUnmarshaller.java new file mode 100644 index 0000000000..2f821f2ea2 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateCommandResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CreateCommandResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateCommandResponseUnmarshaller { + + public static CreateCommandResponse unmarshall(CreateCommandResponse createCommandResponse, UnmarshallerContext _ctx) { + + createCommandResponse.setRequestId(_ctx.stringValue("CreateCommandResponse.RequestId")); + createCommandResponse.setCommandId(_ctx.stringValue("CreateCommandResponse.CommandId")); + + return createCommandResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateDedicatedHostClusterResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateDedicatedHostClusterResponseUnmarshaller.java similarity index 91% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateDedicatedHostClusterResponseUnmarshaller.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateDedicatedHostClusterResponseUnmarshaller.java index 716f958675..f89604572b 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateDedicatedHostClusterResponseUnmarshaller.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateDedicatedHostClusterResponseUnmarshaller.java @@ -12,9 +12,9 @@ * limitations under the License. */ -package com.aliyuncs.ecs.transform.v20160314; +package com.aliyuncs.ecs.transform.v20140526; -import com.aliyuncs.ecs.model.v20160314.CreateDedicatedHostClusterResponse; +import com.aliyuncs.ecs.model.v20140526.CreateDedicatedHostClusterResponse; import com.aliyuncs.transform.UnmarshallerContext; diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateDemandResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateDemandResponseUnmarshaller.java new file mode 100644 index 0000000000..6498e26667 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateDemandResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CreateDemandResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateDemandResponseUnmarshaller { + + public static CreateDemandResponse unmarshall(CreateDemandResponse createDemandResponse, UnmarshallerContext _ctx) { + + createDemandResponse.setRequestId(_ctx.stringValue("CreateDemandResponse.RequestId")); + createDemandResponse.setDemandId(_ctx.stringValue("CreateDemandResponse.DemandId")); + + return createDemandResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateDeploymentSetResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateDeploymentSetResponseUnmarshaller.java new file mode 100644 index 0000000000..17dbc0e736 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateDeploymentSetResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CreateDeploymentSetResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateDeploymentSetResponseUnmarshaller { + + public static CreateDeploymentSetResponse unmarshall(CreateDeploymentSetResponse createDeploymentSetResponse, UnmarshallerContext _ctx) { + + createDeploymentSetResponse.setRequestId(_ctx.stringValue("CreateDeploymentSetResponse.RequestId")); + createDeploymentSetResponse.setDeploymentSetId(_ctx.stringValue("CreateDeploymentSetResponse.DeploymentSetId")); + + return createDeploymentSetResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateDiagnosticMetricSetResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateDiagnosticMetricSetResponseUnmarshaller.java new file mode 100644 index 0000000000..a819d186ce --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateDiagnosticMetricSetResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CreateDiagnosticMetricSetResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateDiagnosticMetricSetResponseUnmarshaller { + + public static CreateDiagnosticMetricSetResponse unmarshall(CreateDiagnosticMetricSetResponse createDiagnosticMetricSetResponse, UnmarshallerContext _ctx) { + + createDiagnosticMetricSetResponse.setRequestId(_ctx.stringValue("CreateDiagnosticMetricSetResponse.RequestId")); + createDiagnosticMetricSetResponse.setMetricSetId(_ctx.stringValue("CreateDiagnosticMetricSetResponse.MetricSetId")); + + return createDiagnosticMetricSetResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateDiagnosticReportResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateDiagnosticReportResponseUnmarshaller.java new file mode 100644 index 0000000000..935f2a597a --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateDiagnosticReportResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CreateDiagnosticReportResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateDiagnosticReportResponseUnmarshaller { + + public static CreateDiagnosticReportResponse unmarshall(CreateDiagnosticReportResponse createDiagnosticReportResponse, UnmarshallerContext _ctx) { + + createDiagnosticReportResponse.setRequestId(_ctx.stringValue("CreateDiagnosticReportResponse.RequestId")); + createDiagnosticReportResponse.setReportId(_ctx.stringValue("CreateDiagnosticReportResponse.ReportId")); + + return createDiagnosticReportResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateDiskResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateDiskResponseUnmarshaller.java new file mode 100644 index 0000000000..c477978d0f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateDiskResponseUnmarshaller.java @@ -0,0 +1,31 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CreateDiskResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateDiskResponseUnmarshaller { + + public static CreateDiskResponse unmarshall(CreateDiskResponse createDiskResponse, UnmarshallerContext _ctx) { + + createDiskResponse.setRequestId(_ctx.stringValue("CreateDiskResponse.RequestId")); + createDiskResponse.setDiskId(_ctx.stringValue("CreateDiskResponse.DiskId")); + createDiskResponse.setOrderId(_ctx.stringValue("CreateDiskResponse.OrderId")); + + return createDiskResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateElasticityAssuranceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateElasticityAssuranceResponseUnmarshaller.java similarity index 91% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateElasticityAssuranceResponseUnmarshaller.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateElasticityAssuranceResponseUnmarshaller.java index dabe4c4064..46f2da4439 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateElasticityAssuranceResponseUnmarshaller.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateElasticityAssuranceResponseUnmarshaller.java @@ -12,9 +12,9 @@ * limitations under the License. */ -package com.aliyuncs.ecs.transform.v20160314; +package com.aliyuncs.ecs.transform.v20140526; -import com.aliyuncs.ecs.model.v20160314.CreateElasticityAssuranceResponse; +import com.aliyuncs.ecs.model.v20140526.CreateElasticityAssuranceResponse; import com.aliyuncs.transform.UnmarshallerContext; diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateForwardEntryResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateForwardEntryResponseUnmarshaller.java new file mode 100644 index 0000000000..904154c8fd --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateForwardEntryResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CreateForwardEntryResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateForwardEntryResponseUnmarshaller { + + public static CreateForwardEntryResponse unmarshall(CreateForwardEntryResponse createForwardEntryResponse, UnmarshallerContext _ctx) { + + createForwardEntryResponse.setRequestId(_ctx.stringValue("CreateForwardEntryResponse.RequestId")); + createForwardEntryResponse.setForwardEntryId(_ctx.stringValue("CreateForwardEntryResponse.ForwardEntryId")); + + return createForwardEntryResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateHaVipResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateHaVipResponseUnmarshaller.java new file mode 100644 index 0000000000..d20baea4e7 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateHaVipResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CreateHaVipResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateHaVipResponseUnmarshaller { + + public static CreateHaVipResponse unmarshall(CreateHaVipResponse createHaVipResponse, UnmarshallerContext _ctx) { + + createHaVipResponse.setRequestId(_ctx.stringValue("CreateHaVipResponse.RequestId")); + createHaVipResponse.setHaVipId(_ctx.stringValue("CreateHaVipResponse.HaVipId")); + + return createHaVipResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateHpcClusterResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateHpcClusterResponseUnmarshaller.java new file mode 100644 index 0000000000..4b51992ba1 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateHpcClusterResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CreateHpcClusterResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateHpcClusterResponseUnmarshaller { + + public static CreateHpcClusterResponse unmarshall(CreateHpcClusterResponse createHpcClusterResponse, UnmarshallerContext _ctx) { + + createHpcClusterResponse.setRequestId(_ctx.stringValue("CreateHpcClusterResponse.RequestId")); + createHpcClusterResponse.setHpcClusterId(_ctx.stringValue("CreateHpcClusterResponse.HpcClusterId")); + + return createHpcClusterResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateImageComponentResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateImageComponentResponseUnmarshaller.java new file mode 100644 index 0000000000..d253c2e335 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateImageComponentResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CreateImageComponentResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateImageComponentResponseUnmarshaller { + + public static CreateImageComponentResponse unmarshall(CreateImageComponentResponse createImageComponentResponse, UnmarshallerContext _ctx) { + + createImageComponentResponse.setRequestId(_ctx.stringValue("CreateImageComponentResponse.RequestId")); + createImageComponentResponse.setImageComponentId(_ctx.stringValue("CreateImageComponentResponse.ImageComponentId")); + + return createImageComponentResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateImagePipelineResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateImagePipelineResponseUnmarshaller.java new file mode 100644 index 0000000000..8425e597f1 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateImagePipelineResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CreateImagePipelineResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateImagePipelineResponseUnmarshaller { + + public static CreateImagePipelineResponse unmarshall(CreateImagePipelineResponse createImagePipelineResponse, UnmarshallerContext _ctx) { + + createImagePipelineResponse.setRequestId(_ctx.stringValue("CreateImagePipelineResponse.RequestId")); + createImagePipelineResponse.setImagePipelineId(_ctx.stringValue("CreateImagePipelineResponse.ImagePipelineId")); + + return createImagePipelineResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateImageResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateImageResponseUnmarshaller.java new file mode 100644 index 0000000000..46191a6943 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateImageResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CreateImageResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateImageResponseUnmarshaller { + + public static CreateImageResponse unmarshall(CreateImageResponse createImageResponse, UnmarshallerContext _ctx) { + + createImageResponse.setRequestId(_ctx.stringValue("CreateImageResponse.RequestId")); + createImageResponse.setImageId(_ctx.stringValue("CreateImageResponse.ImageId")); + + return createImageResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateInstanceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateInstanceResponseUnmarshaller.java new file mode 100644 index 0000000000..9301b88751 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateInstanceResponseUnmarshaller.java @@ -0,0 +1,32 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CreateInstanceResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateInstanceResponseUnmarshaller { + + public static CreateInstanceResponse unmarshall(CreateInstanceResponse createInstanceResponse, UnmarshallerContext _ctx) { + + createInstanceResponse.setRequestId(_ctx.stringValue("CreateInstanceResponse.RequestId")); + createInstanceResponse.setInstanceId(_ctx.stringValue("CreateInstanceResponse.InstanceId")); + createInstanceResponse.setOrderId(_ctx.stringValue("CreateInstanceResponse.OrderId")); + createInstanceResponse.setTradePrice(_ctx.floatValue("CreateInstanceResponse.TradePrice")); + + return createInstanceResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateKeyPairResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateKeyPairResponseUnmarshaller.java new file mode 100644 index 0000000000..3daf45fe52 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateKeyPairResponseUnmarshaller.java @@ -0,0 +1,33 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CreateKeyPairResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateKeyPairResponseUnmarshaller { + + public static CreateKeyPairResponse unmarshall(CreateKeyPairResponse createKeyPairResponse, UnmarshallerContext _ctx) { + + createKeyPairResponse.setRequestId(_ctx.stringValue("CreateKeyPairResponse.RequestId")); + createKeyPairResponse.setPrivateKeyBody(_ctx.stringValue("CreateKeyPairResponse.PrivateKeyBody")); + createKeyPairResponse.setKeyPairName(_ctx.stringValue("CreateKeyPairResponse.KeyPairName")); + createKeyPairResponse.setKeyPairId(_ctx.stringValue("CreateKeyPairResponse.KeyPairId")); + createKeyPairResponse.setKeyPairFingerPrint(_ctx.stringValue("CreateKeyPairResponse.KeyPairFingerPrint")); + + return createKeyPairResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateLaunchTemplateResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateLaunchTemplateResponseUnmarshaller.java new file mode 100644 index 0000000000..0de1454efc --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateLaunchTemplateResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CreateLaunchTemplateResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateLaunchTemplateResponseUnmarshaller { + + public static CreateLaunchTemplateResponse unmarshall(CreateLaunchTemplateResponse createLaunchTemplateResponse, UnmarshallerContext _ctx) { + + createLaunchTemplateResponse.setRequestId(_ctx.stringValue("CreateLaunchTemplateResponse.RequestId")); + createLaunchTemplateResponse.setLaunchTemplateId(_ctx.stringValue("CreateLaunchTemplateResponse.LaunchTemplateId")); + + return createLaunchTemplateResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateLaunchTemplateVersionResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateLaunchTemplateVersionResponseUnmarshaller.java new file mode 100644 index 0000000000..06662ce355 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateLaunchTemplateVersionResponseUnmarshaller.java @@ -0,0 +1,31 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CreateLaunchTemplateVersionResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateLaunchTemplateVersionResponseUnmarshaller { + + public static CreateLaunchTemplateVersionResponse unmarshall(CreateLaunchTemplateVersionResponse createLaunchTemplateVersionResponse, UnmarshallerContext _ctx) { + + createLaunchTemplateVersionResponse.setRequestId(_ctx.stringValue("CreateLaunchTemplateVersionResponse.RequestId")); + createLaunchTemplateVersionResponse.setLaunchTemplateVersionNumber(_ctx.longValue("CreateLaunchTemplateVersionResponse.LaunchTemplateVersionNumber")); + createLaunchTemplateVersionResponse.setLaunchTemplateId(_ctx.stringValue("CreateLaunchTemplateVersionResponse.LaunchTemplateId")); + + return createLaunchTemplateVersionResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateNatGatewayResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateNatGatewayResponseUnmarshaller.java new file mode 100644 index 0000000000..cf05fa6a2c --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateNatGatewayResponseUnmarshaller.java @@ -0,0 +1,45 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.CreateNatGatewayResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateNatGatewayResponseUnmarshaller { + + public static CreateNatGatewayResponse unmarshall(CreateNatGatewayResponse createNatGatewayResponse, UnmarshallerContext _ctx) { + + createNatGatewayResponse.setRequestId(_ctx.stringValue("CreateNatGatewayResponse.RequestId")); + createNatGatewayResponse.setNatGatewayId(_ctx.stringValue("CreateNatGatewayResponse.NatGatewayId")); + + List forwardTableIds = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("CreateNatGatewayResponse.ForwardTableIds.Length"); i++) { + forwardTableIds.add(_ctx.stringValue("CreateNatGatewayResponse.ForwardTableIds["+ i +"]")); + } + createNatGatewayResponse.setForwardTableIds(forwardTableIds); + + List bandwidthPackageIds = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("CreateNatGatewayResponse.BandwidthPackageIds.Length"); i++) { + bandwidthPackageIds.add(_ctx.stringValue("CreateNatGatewayResponse.BandwidthPackageIds["+ i +"]")); + } + createNatGatewayResponse.setBandwidthPackageIds(bandwidthPackageIds); + + return createNatGatewayResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateNetworkInterfacePermissionResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateNetworkInterfacePermissionResponseUnmarshaller.java new file mode 100644 index 0000000000..15a655561b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateNetworkInterfacePermissionResponseUnmarshaller.java @@ -0,0 +1,39 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CreateNetworkInterfacePermissionResponse; +import com.aliyuncs.ecs.model.v20140526.CreateNetworkInterfacePermissionResponse.NetworkInterfacePermission; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateNetworkInterfacePermissionResponseUnmarshaller { + + public static CreateNetworkInterfacePermissionResponse unmarshall(CreateNetworkInterfacePermissionResponse createNetworkInterfacePermissionResponse, UnmarshallerContext _ctx) { + + createNetworkInterfacePermissionResponse.setRequestId(_ctx.stringValue("CreateNetworkInterfacePermissionResponse.RequestId")); + + NetworkInterfacePermission networkInterfacePermission = new NetworkInterfacePermission(); + networkInterfacePermission.setPermission(_ctx.stringValue("CreateNetworkInterfacePermissionResponse.NetworkInterfacePermission.Permission")); + networkInterfacePermission.setNetworkInterfaceId(_ctx.stringValue("CreateNetworkInterfacePermissionResponse.NetworkInterfacePermission.NetworkInterfaceId")); + networkInterfacePermission.setAccountId(_ctx.longValue("CreateNetworkInterfacePermissionResponse.NetworkInterfacePermission.AccountId")); + networkInterfacePermission.setNetworkInterfacePermissionId(_ctx.stringValue("CreateNetworkInterfacePermissionResponse.NetworkInterfacePermission.NetworkInterfacePermissionId")); + networkInterfacePermission.setServiceName(_ctx.stringValue("CreateNetworkInterfacePermissionResponse.NetworkInterfacePermission.ServiceName")); + networkInterfacePermission.setPermissionState(_ctx.stringValue("CreateNetworkInterfacePermissionResponse.NetworkInterfacePermission.PermissionState")); + createNetworkInterfacePermissionResponse.setNetworkInterfacePermission(networkInterfacePermission); + + return createNetworkInterfacePermissionResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateNetworkInterfaceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateNetworkInterfaceResponseUnmarshaller.java new file mode 100644 index 0000000000..068d242181 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateNetworkInterfaceResponseUnmarshaller.java @@ -0,0 +1,104 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.CreateNetworkInterfaceResponse; +import com.aliyuncs.ecs.model.v20140526.CreateNetworkInterfaceResponse.Ipv4PrefixSet; +import com.aliyuncs.ecs.model.v20140526.CreateNetworkInterfaceResponse.Ipv6PrefixSet; +import com.aliyuncs.ecs.model.v20140526.CreateNetworkInterfaceResponse.Ipv6Set; +import com.aliyuncs.ecs.model.v20140526.CreateNetworkInterfaceResponse.PrivateIpSet; +import com.aliyuncs.ecs.model.v20140526.CreateNetworkInterfaceResponse.Tag; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateNetworkInterfaceResponseUnmarshaller { + + public static CreateNetworkInterfaceResponse unmarshall(CreateNetworkInterfaceResponse createNetworkInterfaceResponse, UnmarshallerContext _ctx) { + + createNetworkInterfaceResponse.setRequestId(_ctx.stringValue("CreateNetworkInterfaceResponse.RequestId")); + createNetworkInterfaceResponse.setStatus(_ctx.stringValue("CreateNetworkInterfaceResponse.Status")); + createNetworkInterfaceResponse.setType(_ctx.stringValue("CreateNetworkInterfaceResponse.Type")); + createNetworkInterfaceResponse.setVpcId(_ctx.stringValue("CreateNetworkInterfaceResponse.VpcId")); + createNetworkInterfaceResponse.setNetworkInterfaceName(_ctx.stringValue("CreateNetworkInterfaceResponse.NetworkInterfaceName")); + createNetworkInterfaceResponse.setMacAddress(_ctx.stringValue("CreateNetworkInterfaceResponse.MacAddress")); + createNetworkInterfaceResponse.setNetworkInterfaceId(_ctx.stringValue("CreateNetworkInterfaceResponse.NetworkInterfaceId")); + createNetworkInterfaceResponse.setServiceID(_ctx.longValue("CreateNetworkInterfaceResponse.ServiceID")); + createNetworkInterfaceResponse.setOwnerId(_ctx.stringValue("CreateNetworkInterfaceResponse.OwnerId")); + createNetworkInterfaceResponse.setServiceManaged(_ctx.booleanValue("CreateNetworkInterfaceResponse.ServiceManaged")); + createNetworkInterfaceResponse.setVSwitchId(_ctx.stringValue("CreateNetworkInterfaceResponse.VSwitchId")); + createNetworkInterfaceResponse.setDescription(_ctx.stringValue("CreateNetworkInterfaceResponse.Description")); + createNetworkInterfaceResponse.setResourceGroupId(_ctx.stringValue("CreateNetworkInterfaceResponse.ResourceGroupId")); + createNetworkInterfaceResponse.setZoneId(_ctx.stringValue("CreateNetworkInterfaceResponse.ZoneId")); + createNetworkInterfaceResponse.setPrivateIpAddress(_ctx.stringValue("CreateNetworkInterfaceResponse.PrivateIpAddress")); + + List securityGroupIds = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("CreateNetworkInterfaceResponse.SecurityGroupIds.Length"); i++) { + securityGroupIds.add(_ctx.stringValue("CreateNetworkInterfaceResponse.SecurityGroupIds["+ i +"]")); + } + createNetworkInterfaceResponse.setSecurityGroupIds(securityGroupIds); + + List privateIpSets = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("CreateNetworkInterfaceResponse.PrivateIpSets.Length"); i++) { + PrivateIpSet privateIpSet = new PrivateIpSet(); + privateIpSet.setPrivateIpAddress(_ctx.stringValue("CreateNetworkInterfaceResponse.PrivateIpSets["+ i +"].PrivateIpAddress")); + privateIpSet.setPrimary(_ctx.booleanValue("CreateNetworkInterfaceResponse.PrivateIpSets["+ i +"].Primary")); + + privateIpSets.add(privateIpSet); + } + createNetworkInterfaceResponse.setPrivateIpSets(privateIpSets); + + List tags = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("CreateNetworkInterfaceResponse.Tags.Length"); i++) { + Tag tag = new Tag(); + tag.setTagValue(_ctx.stringValue("CreateNetworkInterfaceResponse.Tags["+ i +"].TagValue")); + tag.setTagKey(_ctx.stringValue("CreateNetworkInterfaceResponse.Tags["+ i +"].TagKey")); + + tags.add(tag); + } + createNetworkInterfaceResponse.setTags(tags); + + List ipv6Sets = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("CreateNetworkInterfaceResponse.Ipv6Sets.Length"); i++) { + Ipv6Set ipv6Set = new Ipv6Set(); + ipv6Set.setIpv6Address(_ctx.stringValue("CreateNetworkInterfaceResponse.Ipv6Sets["+ i +"].Ipv6Address")); + + ipv6Sets.add(ipv6Set); + } + createNetworkInterfaceResponse.setIpv6Sets(ipv6Sets); + + List ipv4PrefixSets = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("CreateNetworkInterfaceResponse.Ipv4PrefixSets.Length"); i++) { + Ipv4PrefixSet ipv4PrefixSet = new Ipv4PrefixSet(); + ipv4PrefixSet.setIpv4Prefix(_ctx.stringValue("CreateNetworkInterfaceResponse.Ipv4PrefixSets["+ i +"].Ipv4Prefix")); + + ipv4PrefixSets.add(ipv4PrefixSet); + } + createNetworkInterfaceResponse.setIpv4PrefixSets(ipv4PrefixSets); + + List ipv6PrefixSets = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("CreateNetworkInterfaceResponse.Ipv6PrefixSets.Length"); i++) { + Ipv6PrefixSet ipv6PrefixSet = new Ipv6PrefixSet(); + ipv6PrefixSet.setIpv6Prefix(_ctx.stringValue("CreateNetworkInterfaceResponse.Ipv6PrefixSets["+ i +"].Ipv6Prefix")); + + ipv6PrefixSets.add(ipv6PrefixSet); + } + createNetworkInterfaceResponse.setIpv6PrefixSets(ipv6PrefixSets); + + return createNetworkInterfaceResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreatePhysicalConnectionResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreatePhysicalConnectionResponseUnmarshaller.java new file mode 100644 index 0000000000..0a47aef17e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreatePhysicalConnectionResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CreatePhysicalConnectionResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreatePhysicalConnectionResponseUnmarshaller { + + public static CreatePhysicalConnectionResponse unmarshall(CreatePhysicalConnectionResponse createPhysicalConnectionResponse, UnmarshallerContext _ctx) { + + createPhysicalConnectionResponse.setRequestId(_ctx.stringValue("CreatePhysicalConnectionResponse.RequestId")); + createPhysicalConnectionResponse.setPhysicalConnectionId(_ctx.stringValue("CreatePhysicalConnectionResponse.PhysicalConnectionId")); + + return createPhysicalConnectionResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreatePrefixListResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreatePrefixListResponseUnmarshaller.java new file mode 100644 index 0000000000..1230378245 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreatePrefixListResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CreatePrefixListResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreatePrefixListResponseUnmarshaller { + + public static CreatePrefixListResponse unmarshall(CreatePrefixListResponse createPrefixListResponse, UnmarshallerContext _ctx) { + + createPrefixListResponse.setRequestId(_ctx.stringValue("CreatePrefixListResponse.RequestId")); + createPrefixListResponse.setPrefixListId(_ctx.stringValue("CreatePrefixListResponse.PrefixListId")); + + return createPrefixListResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateRouteEntryResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateRouteEntryResponseUnmarshaller.java new file mode 100644 index 0000000000..8c7a27eff4 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateRouteEntryResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CreateRouteEntryResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateRouteEntryResponseUnmarshaller { + + public static CreateRouteEntryResponse unmarshall(CreateRouteEntryResponse createRouteEntryResponse, UnmarshallerContext _ctx) { + + createRouteEntryResponse.setRequestId(_ctx.stringValue("CreateRouteEntryResponse.RequestId")); + + return createRouteEntryResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateRouterInterfaceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateRouterInterfaceResponseUnmarshaller.java new file mode 100644 index 0000000000..34ff7c13a7 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateRouterInterfaceResponseUnmarshaller.java @@ -0,0 +1,31 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CreateRouterInterfaceResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateRouterInterfaceResponseUnmarshaller { + + public static CreateRouterInterfaceResponse unmarshall(CreateRouterInterfaceResponse createRouterInterfaceResponse, UnmarshallerContext _ctx) { + + createRouterInterfaceResponse.setRequestId(_ctx.stringValue("CreateRouterInterfaceResponse.RequestId")); + createRouterInterfaceResponse.setOrderId(_ctx.longValue("CreateRouterInterfaceResponse.OrderId")); + createRouterInterfaceResponse.setRouterInterfaceId(_ctx.stringValue("CreateRouterInterfaceResponse.RouterInterfaceId")); + + return createRouterInterfaceResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateSecurityGroupResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateSecurityGroupResponseUnmarshaller.java new file mode 100644 index 0000000000..0d2a1904b2 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateSecurityGroupResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CreateSecurityGroupResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateSecurityGroupResponseUnmarshaller { + + public static CreateSecurityGroupResponse unmarshall(CreateSecurityGroupResponse createSecurityGroupResponse, UnmarshallerContext _ctx) { + + createSecurityGroupResponse.setRequestId(_ctx.stringValue("CreateSecurityGroupResponse.RequestId")); + createSecurityGroupResponse.setSecurityGroupId(_ctx.stringValue("CreateSecurityGroupResponse.SecurityGroupId")); + + return createSecurityGroupResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateSimulatedSystemEventsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateSimulatedSystemEventsResponseUnmarshaller.java new file mode 100644 index 0000000000..3541014c75 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateSimulatedSystemEventsResponseUnmarshaller.java @@ -0,0 +1,38 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.CreateSimulatedSystemEventsResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateSimulatedSystemEventsResponseUnmarshaller { + + public static CreateSimulatedSystemEventsResponse unmarshall(CreateSimulatedSystemEventsResponse createSimulatedSystemEventsResponse, UnmarshallerContext _ctx) { + + createSimulatedSystemEventsResponse.setRequestId(_ctx.stringValue("CreateSimulatedSystemEventsResponse.RequestId")); + + List eventIdSet = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("CreateSimulatedSystemEventsResponse.EventIdSet.Length"); i++) { + eventIdSet.add(_ctx.stringValue("CreateSimulatedSystemEventsResponse.EventIdSet["+ i +"]")); + } + createSimulatedSystemEventsResponse.setEventIdSet(eventIdSet); + + return createSimulatedSystemEventsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateSnapshotGroupResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateSnapshotGroupResponseUnmarshaller.java new file mode 100644 index 0000000000..2eb8be3312 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateSnapshotGroupResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CreateSnapshotGroupResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateSnapshotGroupResponseUnmarshaller { + + public static CreateSnapshotGroupResponse unmarshall(CreateSnapshotGroupResponse createSnapshotGroupResponse, UnmarshallerContext _ctx) { + + createSnapshotGroupResponse.setRequestId(_ctx.stringValue("CreateSnapshotGroupResponse.RequestId")); + createSnapshotGroupResponse.setSnapshotGroupId(_ctx.stringValue("CreateSnapshotGroupResponse.SnapshotGroupId")); + + return createSnapshotGroupResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateSnapshotResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateSnapshotResponseUnmarshaller.java new file mode 100644 index 0000000000..47db2f9d30 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateSnapshotResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CreateSnapshotResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateSnapshotResponseUnmarshaller { + + public static CreateSnapshotResponse unmarshall(CreateSnapshotResponse createSnapshotResponse, UnmarshallerContext _ctx) { + + createSnapshotResponse.setRequestId(_ctx.stringValue("CreateSnapshotResponse.RequestId")); + createSnapshotResponse.setSnapshotId(_ctx.stringValue("CreateSnapshotResponse.SnapshotId")); + + return createSnapshotResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateStorageSetResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateStorageSetResponseUnmarshaller.java similarity index 90% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateStorageSetResponseUnmarshaller.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateStorageSetResponseUnmarshaller.java index bf9ef84cb4..cb18fde763 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateStorageSetResponseUnmarshaller.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateStorageSetResponseUnmarshaller.java @@ -12,9 +12,9 @@ * limitations under the License. */ -package com.aliyuncs.ecs.transform.v20160314; +package com.aliyuncs.ecs.transform.v20140526; -import com.aliyuncs.ecs.model.v20160314.CreateStorageSetResponse; +import com.aliyuncs.ecs.model.v20140526.CreateStorageSetResponse; import com.aliyuncs.transform.UnmarshallerContext; diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateVSwitchResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateVSwitchResponseUnmarshaller.java new file mode 100644 index 0000000000..e57ac921c1 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateVSwitchResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CreateVSwitchResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateVSwitchResponseUnmarshaller { + + public static CreateVSwitchResponse unmarshall(CreateVSwitchResponse createVSwitchResponse, UnmarshallerContext _ctx) { + + createVSwitchResponse.setRequestId(_ctx.stringValue("CreateVSwitchResponse.RequestId")); + createVSwitchResponse.setVSwitchId(_ctx.stringValue("CreateVSwitchResponse.VSwitchId")); + + return createVSwitchResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateVirtualBorderRouterResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateVirtualBorderRouterResponseUnmarshaller.java new file mode 100644 index 0000000000..54136ee442 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateVirtualBorderRouterResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CreateVirtualBorderRouterResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateVirtualBorderRouterResponseUnmarshaller { + + public static CreateVirtualBorderRouterResponse unmarshall(CreateVirtualBorderRouterResponse createVirtualBorderRouterResponse, UnmarshallerContext _ctx) { + + createVirtualBorderRouterResponse.setRequestId(_ctx.stringValue("CreateVirtualBorderRouterResponse.RequestId")); + createVirtualBorderRouterResponse.setVbrId(_ctx.stringValue("CreateVirtualBorderRouterResponse.VbrId")); + + return createVirtualBorderRouterResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateVpcResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateVpcResponseUnmarshaller.java new file mode 100644 index 0000000000..5213b86cfd --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/CreateVpcResponseUnmarshaller.java @@ -0,0 +1,32 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.CreateVpcResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateVpcResponseUnmarshaller { + + public static CreateVpcResponse unmarshall(CreateVpcResponse createVpcResponse, UnmarshallerContext _ctx) { + + createVpcResponse.setRequestId(_ctx.stringValue("CreateVpcResponse.RequestId")); + createVpcResponse.setVpcId(_ctx.stringValue("CreateVpcResponse.VpcId")); + createVpcResponse.setVRouterId(_ctx.stringValue("CreateVpcResponse.VRouterId")); + createVpcResponse.setRouteTableId(_ctx.stringValue("CreateVpcResponse.RouteTableId")); + + return createVpcResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeactivateRouterInterfaceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeactivateRouterInterfaceResponseUnmarshaller.java new file mode 100644 index 0000000000..83310afafa --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeactivateRouterInterfaceResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeactivateRouterInterfaceResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeactivateRouterInterfaceResponseUnmarshaller { + + public static DeactivateRouterInterfaceResponse unmarshall(DeactivateRouterInterfaceResponse deactivateRouterInterfaceResponse, UnmarshallerContext _ctx) { + + deactivateRouterInterfaceResponse.setRequestId(_ctx.stringValue("DeactivateRouterInterfaceResponse.RequestId")); + + return deactivateRouterInterfaceResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteActivationResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteActivationResponseUnmarshaller.java new file mode 100644 index 0000000000..240c5d33d8 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteActivationResponseUnmarshaller.java @@ -0,0 +1,42 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeleteActivationResponse; +import com.aliyuncs.ecs.model.v20140526.DeleteActivationResponse.Activation; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteActivationResponseUnmarshaller { + + public static DeleteActivationResponse unmarshall(DeleteActivationResponse deleteActivationResponse, UnmarshallerContext _ctx) { + + deleteActivationResponse.setRequestId(_ctx.stringValue("DeleteActivationResponse.RequestId")); + + Activation activation = new Activation(); + activation.setCreationTime(_ctx.stringValue("DeleteActivationResponse.Activation.CreationTime")); + activation.setDeregisteredCount(_ctx.integerValue("DeleteActivationResponse.Activation.DeregisteredCount")); + activation.setInstanceCount(_ctx.integerValue("DeleteActivationResponse.Activation.InstanceCount")); + activation.setDescription(_ctx.stringValue("DeleteActivationResponse.Activation.Description")); + activation.setRegisteredCount(_ctx.integerValue("DeleteActivationResponse.Activation.RegisteredCount")); + activation.setInstanceName(_ctx.stringValue("DeleteActivationResponse.Activation.InstanceName")); + activation.setIpAddressRange(_ctx.stringValue("DeleteActivationResponse.Activation.IpAddressRange")); + activation.setTimeToLiveInHours(_ctx.longValue("DeleteActivationResponse.Activation.TimeToLiveInHours")); + activation.setActivationId(_ctx.stringValue("DeleteActivationResponse.Activation.ActivationId")); + deleteActivationResponse.setActivation(activation); + + return deleteActivationResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteAutoProvisioningGroupResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteAutoProvisioningGroupResponseUnmarshaller.java new file mode 100644 index 0000000000..465fea1085 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteAutoProvisioningGroupResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeleteAutoProvisioningGroupResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteAutoProvisioningGroupResponseUnmarshaller { + + public static DeleteAutoProvisioningGroupResponse unmarshall(DeleteAutoProvisioningGroupResponse deleteAutoProvisioningGroupResponse, UnmarshallerContext _ctx) { + + deleteAutoProvisioningGroupResponse.setRequestId(_ctx.stringValue("DeleteAutoProvisioningGroupResponse.RequestId")); + + return deleteAutoProvisioningGroupResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteAutoSnapshotPolicyResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteAutoSnapshotPolicyResponseUnmarshaller.java new file mode 100644 index 0000000000..58d11f8668 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteAutoSnapshotPolicyResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeleteAutoSnapshotPolicyResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteAutoSnapshotPolicyResponseUnmarshaller { + + public static DeleteAutoSnapshotPolicyResponse unmarshall(DeleteAutoSnapshotPolicyResponse deleteAutoSnapshotPolicyResponse, UnmarshallerContext _ctx) { + + deleteAutoSnapshotPolicyResponse.setRequestId(_ctx.stringValue("DeleteAutoSnapshotPolicyResponse.RequestId")); + + return deleteAutoSnapshotPolicyResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteBandwidthPackageResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteBandwidthPackageResponseUnmarshaller.java new file mode 100644 index 0000000000..c0f8be573f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteBandwidthPackageResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeleteBandwidthPackageResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteBandwidthPackageResponseUnmarshaller { + + public static DeleteBandwidthPackageResponse unmarshall(DeleteBandwidthPackageResponse deleteBandwidthPackageResponse, UnmarshallerContext _ctx) { + + deleteBandwidthPackageResponse.setRequestId(_ctx.stringValue("DeleteBandwidthPackageResponse.RequestId")); + + return deleteBandwidthPackageResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteCommandResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteCommandResponseUnmarshaller.java new file mode 100644 index 0000000000..245ac32633 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteCommandResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeleteCommandResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteCommandResponseUnmarshaller { + + public static DeleteCommandResponse unmarshall(DeleteCommandResponse deleteCommandResponse, UnmarshallerContext _ctx) { + + deleteCommandResponse.setRequestId(_ctx.stringValue("DeleteCommandResponse.RequestId")); + + return deleteCommandResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DeleteDedicatedHostClusterResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteDedicatedHostClusterResponseUnmarshaller.java similarity index 90% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DeleteDedicatedHostClusterResponseUnmarshaller.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteDedicatedHostClusterResponseUnmarshaller.java index 7b66d832f7..b643680769 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DeleteDedicatedHostClusterResponseUnmarshaller.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteDedicatedHostClusterResponseUnmarshaller.java @@ -12,9 +12,9 @@ * limitations under the License. */ -package com.aliyuncs.ecs.transform.v20160314; +package com.aliyuncs.ecs.transform.v20140526; -import com.aliyuncs.ecs.model.v20160314.DeleteDedicatedHostClusterResponse; +import com.aliyuncs.ecs.model.v20140526.DeleteDedicatedHostClusterResponse; import com.aliyuncs.transform.UnmarshallerContext; diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteDemandResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteDemandResponseUnmarshaller.java new file mode 100644 index 0000000000..a3d69d05de --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteDemandResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeleteDemandResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteDemandResponseUnmarshaller { + + public static DeleteDemandResponse unmarshall(DeleteDemandResponse deleteDemandResponse, UnmarshallerContext _ctx) { + + deleteDemandResponse.setRequestId(_ctx.stringValue("DeleteDemandResponse.RequestId")); + + return deleteDemandResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteDeploymentSetResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteDeploymentSetResponseUnmarshaller.java new file mode 100644 index 0000000000..669b73aadd --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteDeploymentSetResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeleteDeploymentSetResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteDeploymentSetResponseUnmarshaller { + + public static DeleteDeploymentSetResponse unmarshall(DeleteDeploymentSetResponse deleteDeploymentSetResponse, UnmarshallerContext _ctx) { + + deleteDeploymentSetResponse.setRequestId(_ctx.stringValue("DeleteDeploymentSetResponse.RequestId")); + + return deleteDeploymentSetResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteDiagnosticMetricSetsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteDiagnosticMetricSetsResponseUnmarshaller.java new file mode 100644 index 0000000000..72abb04adb --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteDiagnosticMetricSetsResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeleteDiagnosticMetricSetsResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteDiagnosticMetricSetsResponseUnmarshaller { + + public static DeleteDiagnosticMetricSetsResponse unmarshall(DeleteDiagnosticMetricSetsResponse deleteDiagnosticMetricSetsResponse, UnmarshallerContext _ctx) { + + deleteDiagnosticMetricSetsResponse.setRequestId(_ctx.stringValue("DeleteDiagnosticMetricSetsResponse.RequestId")); + + return deleteDiagnosticMetricSetsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteDiagnosticReportsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteDiagnosticReportsResponseUnmarshaller.java new file mode 100644 index 0000000000..6d89e62d95 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteDiagnosticReportsResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeleteDiagnosticReportsResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteDiagnosticReportsResponseUnmarshaller { + + public static DeleteDiagnosticReportsResponse unmarshall(DeleteDiagnosticReportsResponse deleteDiagnosticReportsResponse, UnmarshallerContext _ctx) { + + deleteDiagnosticReportsResponse.setRequestId(_ctx.stringValue("DeleteDiagnosticReportsResponse.RequestId")); + + return deleteDiagnosticReportsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteDiskResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteDiskResponseUnmarshaller.java new file mode 100644 index 0000000000..bde1f68b5c --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteDiskResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeleteDiskResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteDiskResponseUnmarshaller { + + public static DeleteDiskResponse unmarshall(DeleteDiskResponse deleteDiskResponse, UnmarshallerContext _ctx) { + + deleteDiskResponse.setRequestId(_ctx.stringValue("DeleteDiskResponse.RequestId")); + + return deleteDiskResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteForwardEntryResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteForwardEntryResponseUnmarshaller.java new file mode 100644 index 0000000000..dceb991592 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteForwardEntryResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeleteForwardEntryResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteForwardEntryResponseUnmarshaller { + + public static DeleteForwardEntryResponse unmarshall(DeleteForwardEntryResponse deleteForwardEntryResponse, UnmarshallerContext _ctx) { + + deleteForwardEntryResponse.setRequestId(_ctx.stringValue("DeleteForwardEntryResponse.RequestId")); + + return deleteForwardEntryResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteHaVipResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteHaVipResponseUnmarshaller.java new file mode 100644 index 0000000000..84b5eadb95 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteHaVipResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeleteHaVipResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteHaVipResponseUnmarshaller { + + public static DeleteHaVipResponse unmarshall(DeleteHaVipResponse deleteHaVipResponse, UnmarshallerContext _ctx) { + + deleteHaVipResponse.setRequestId(_ctx.stringValue("DeleteHaVipResponse.RequestId")); + + return deleteHaVipResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteHpcClusterResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteHpcClusterResponseUnmarshaller.java new file mode 100644 index 0000000000..58b995caec --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteHpcClusterResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeleteHpcClusterResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteHpcClusterResponseUnmarshaller { + + public static DeleteHpcClusterResponse unmarshall(DeleteHpcClusterResponse deleteHpcClusterResponse, UnmarshallerContext _ctx) { + + deleteHpcClusterResponse.setRequestId(_ctx.stringValue("DeleteHpcClusterResponse.RequestId")); + + return deleteHpcClusterResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteImageComponentResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteImageComponentResponseUnmarshaller.java new file mode 100644 index 0000000000..643b60874c --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteImageComponentResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeleteImageComponentResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteImageComponentResponseUnmarshaller { + + public static DeleteImageComponentResponse unmarshall(DeleteImageComponentResponse deleteImageComponentResponse, UnmarshallerContext _ctx) { + + deleteImageComponentResponse.setRequestId(_ctx.stringValue("DeleteImageComponentResponse.RequestId")); + + return deleteImageComponentResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteImagePipelineResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteImagePipelineResponseUnmarshaller.java new file mode 100644 index 0000000000..5955160225 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteImagePipelineResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeleteImagePipelineResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteImagePipelineResponseUnmarshaller { + + public static DeleteImagePipelineResponse unmarshall(DeleteImagePipelineResponse deleteImagePipelineResponse, UnmarshallerContext _ctx) { + + deleteImagePipelineResponse.setRequestId(_ctx.stringValue("DeleteImagePipelineResponse.RequestId")); + + return deleteImagePipelineResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteImageResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteImageResponseUnmarshaller.java new file mode 100644 index 0000000000..d2261169ba --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteImageResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeleteImageResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteImageResponseUnmarshaller { + + public static DeleteImageResponse unmarshall(DeleteImageResponse deleteImageResponse, UnmarshallerContext _ctx) { + + deleteImageResponse.setRequestId(_ctx.stringValue("DeleteImageResponse.RequestId")); + + return deleteImageResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteInstanceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteInstanceResponseUnmarshaller.java new file mode 100644 index 0000000000..577e8ed695 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteInstanceResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeleteInstanceResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteInstanceResponseUnmarshaller { + + public static DeleteInstanceResponse unmarshall(DeleteInstanceResponse deleteInstanceResponse, UnmarshallerContext _ctx) { + + deleteInstanceResponse.setRequestId(_ctx.stringValue("DeleteInstanceResponse.RequestId")); + + return deleteInstanceResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteInstancesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteInstancesResponseUnmarshaller.java new file mode 100644 index 0000000000..49b8fec400 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteInstancesResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeleteInstancesResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteInstancesResponseUnmarshaller { + + public static DeleteInstancesResponse unmarshall(DeleteInstancesResponse deleteInstancesResponse, UnmarshallerContext _ctx) { + + deleteInstancesResponse.setRequestId(_ctx.stringValue("DeleteInstancesResponse.RequestId")); + + return deleteInstancesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteKeyPairsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteKeyPairsResponseUnmarshaller.java new file mode 100644 index 0000000000..e9cd0e3f29 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteKeyPairsResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeleteKeyPairsResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteKeyPairsResponseUnmarshaller { + + public static DeleteKeyPairsResponse unmarshall(DeleteKeyPairsResponse deleteKeyPairsResponse, UnmarshallerContext _ctx) { + + deleteKeyPairsResponse.setRequestId(_ctx.stringValue("DeleteKeyPairsResponse.RequestId")); + + return deleteKeyPairsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteLaunchTemplateResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteLaunchTemplateResponseUnmarshaller.java new file mode 100644 index 0000000000..0003528f1b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteLaunchTemplateResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeleteLaunchTemplateResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteLaunchTemplateResponseUnmarshaller { + + public static DeleteLaunchTemplateResponse unmarshall(DeleteLaunchTemplateResponse deleteLaunchTemplateResponse, UnmarshallerContext _ctx) { + + deleteLaunchTemplateResponse.setRequestId(_ctx.stringValue("DeleteLaunchTemplateResponse.RequestId")); + deleteLaunchTemplateResponse.setLaunchTemplateId(_ctx.stringValue("DeleteLaunchTemplateResponse.LaunchTemplateId")); + + return deleteLaunchTemplateResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteLaunchTemplateVersionResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteLaunchTemplateVersionResponseUnmarshaller.java new file mode 100644 index 0000000000..7f990c373b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteLaunchTemplateVersionResponseUnmarshaller.java @@ -0,0 +1,43 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DeleteLaunchTemplateVersionResponse; +import com.aliyuncs.ecs.model.v20140526.DeleteLaunchTemplateVersionResponse.LaunchTemplateVersion; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteLaunchTemplateVersionResponseUnmarshaller { + + public static DeleteLaunchTemplateVersionResponse unmarshall(DeleteLaunchTemplateVersionResponse deleteLaunchTemplateVersionResponse, UnmarshallerContext _ctx) { + + deleteLaunchTemplateVersionResponse.setRequestId(_ctx.stringValue("DeleteLaunchTemplateVersionResponse.RequestId")); + + List launchTemplateVersions = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DeleteLaunchTemplateVersionResponse.LaunchTemplateVersions.Length"); i++) { + LaunchTemplateVersion launchTemplateVersion = new LaunchTemplateVersion(); + launchTemplateVersion.setLaunchTemplateId(_ctx.stringValue("DeleteLaunchTemplateVersionResponse.LaunchTemplateVersions["+ i +"].LaunchTemplateId")); + launchTemplateVersion.setLaunchTemplateVersionNumber(_ctx.longValue("DeleteLaunchTemplateVersionResponse.LaunchTemplateVersions["+ i +"].LaunchTemplateVersionNumber")); + + launchTemplateVersions.add(launchTemplateVersion); + } + deleteLaunchTemplateVersionResponse.setLaunchTemplateVersions(launchTemplateVersions); + + return deleteLaunchTemplateVersionResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteNatGatewayResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteNatGatewayResponseUnmarshaller.java new file mode 100644 index 0000000000..b3d736e00d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteNatGatewayResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeleteNatGatewayResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteNatGatewayResponseUnmarshaller { + + public static DeleteNatGatewayResponse unmarshall(DeleteNatGatewayResponse deleteNatGatewayResponse, UnmarshallerContext _ctx) { + + deleteNatGatewayResponse.setRequestId(_ctx.stringValue("DeleteNatGatewayResponse.RequestId")); + + return deleteNatGatewayResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteNetworkInterfacePermissionResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteNetworkInterfacePermissionResponseUnmarshaller.java new file mode 100644 index 0000000000..1ae11f25e6 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteNetworkInterfacePermissionResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeleteNetworkInterfacePermissionResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteNetworkInterfacePermissionResponseUnmarshaller { + + public static DeleteNetworkInterfacePermissionResponse unmarshall(DeleteNetworkInterfacePermissionResponse deleteNetworkInterfacePermissionResponse, UnmarshallerContext _ctx) { + + deleteNetworkInterfacePermissionResponse.setRequestId(_ctx.stringValue("DeleteNetworkInterfacePermissionResponse.RequestId")); + + return deleteNetworkInterfacePermissionResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteNetworkInterfaceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteNetworkInterfaceResponseUnmarshaller.java new file mode 100644 index 0000000000..3c10a230f8 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteNetworkInterfaceResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeleteNetworkInterfaceResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteNetworkInterfaceResponseUnmarshaller { + + public static DeleteNetworkInterfaceResponse unmarshall(DeleteNetworkInterfaceResponse deleteNetworkInterfaceResponse, UnmarshallerContext _ctx) { + + deleteNetworkInterfaceResponse.setRequestId(_ctx.stringValue("DeleteNetworkInterfaceResponse.RequestId")); + + return deleteNetworkInterfaceResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeletePhysicalConnectionResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeletePhysicalConnectionResponseUnmarshaller.java new file mode 100644 index 0000000000..4b67a0a9d5 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeletePhysicalConnectionResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeletePhysicalConnectionResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeletePhysicalConnectionResponseUnmarshaller { + + public static DeletePhysicalConnectionResponse unmarshall(DeletePhysicalConnectionResponse deletePhysicalConnectionResponse, UnmarshallerContext _ctx) { + + deletePhysicalConnectionResponse.setRequestId(_ctx.stringValue("DeletePhysicalConnectionResponse.RequestId")); + + return deletePhysicalConnectionResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeletePrefixListResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeletePrefixListResponseUnmarshaller.java new file mode 100644 index 0000000000..7215d12832 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeletePrefixListResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeletePrefixListResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeletePrefixListResponseUnmarshaller { + + public static DeletePrefixListResponse unmarshall(DeletePrefixListResponse deletePrefixListResponse, UnmarshallerContext _ctx) { + + deletePrefixListResponse.setRequestId(_ctx.stringValue("DeletePrefixListResponse.RequestId")); + + return deletePrefixListResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteRouteEntryResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteRouteEntryResponseUnmarshaller.java new file mode 100644 index 0000000000..d3c87c4738 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteRouteEntryResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeleteRouteEntryResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteRouteEntryResponseUnmarshaller { + + public static DeleteRouteEntryResponse unmarshall(DeleteRouteEntryResponse deleteRouteEntryResponse, UnmarshallerContext _ctx) { + + deleteRouteEntryResponse.setRequestId(_ctx.stringValue("DeleteRouteEntryResponse.RequestId")); + + return deleteRouteEntryResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteRouterInterfaceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteRouterInterfaceResponseUnmarshaller.java new file mode 100644 index 0000000000..d75ddd3be8 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteRouterInterfaceResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeleteRouterInterfaceResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteRouterInterfaceResponseUnmarshaller { + + public static DeleteRouterInterfaceResponse unmarshall(DeleteRouterInterfaceResponse deleteRouterInterfaceResponse, UnmarshallerContext _ctx) { + + deleteRouterInterfaceResponse.setRequestId(_ctx.stringValue("DeleteRouterInterfaceResponse.RequestId")); + + return deleteRouterInterfaceResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteSecurityGroupResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteSecurityGroupResponseUnmarshaller.java new file mode 100644 index 0000000000..22d6843451 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteSecurityGroupResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeleteSecurityGroupResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteSecurityGroupResponseUnmarshaller { + + public static DeleteSecurityGroupResponse unmarshall(DeleteSecurityGroupResponse deleteSecurityGroupResponse, UnmarshallerContext _ctx) { + + deleteSecurityGroupResponse.setRequestId(_ctx.stringValue("DeleteSecurityGroupResponse.RequestId")); + + return deleteSecurityGroupResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteSnapshotGroupResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteSnapshotGroupResponseUnmarshaller.java new file mode 100644 index 0000000000..0c15a042e7 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteSnapshotGroupResponseUnmarshaller.java @@ -0,0 +1,55 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DeleteSnapshotGroupResponse; +import com.aliyuncs.ecs.model.v20140526.DeleteSnapshotGroupResponse.OperationProgress; +import com.aliyuncs.ecs.model.v20140526.DeleteSnapshotGroupResponse.OperationProgress.RelatedItem; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteSnapshotGroupResponseUnmarshaller { + + public static DeleteSnapshotGroupResponse unmarshall(DeleteSnapshotGroupResponse deleteSnapshotGroupResponse, UnmarshallerContext _ctx) { + + deleteSnapshotGroupResponse.setRequestId(_ctx.stringValue("DeleteSnapshotGroupResponse.RequestId")); + + List operationProgressSet = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DeleteSnapshotGroupResponse.OperationProgressSet.Length"); i++) { + OperationProgress operationProgress = new OperationProgress(); + operationProgress.setErrorMsg(_ctx.stringValue("DeleteSnapshotGroupResponse.OperationProgressSet["+ i +"].ErrorMsg")); + operationProgress.setErrorCode(_ctx.stringValue("DeleteSnapshotGroupResponse.OperationProgressSet["+ i +"].ErrorCode")); + operationProgress.setOperationStatus(_ctx.stringValue("DeleteSnapshotGroupResponse.OperationProgressSet["+ i +"].OperationStatus")); + + List relatedItemSet = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DeleteSnapshotGroupResponse.OperationProgressSet["+ i +"].RelatedItemSet.Length"); j++) { + RelatedItem relatedItem = new RelatedItem(); + relatedItem.setName(_ctx.stringValue("DeleteSnapshotGroupResponse.OperationProgressSet["+ i +"].RelatedItemSet["+ j +"].Name")); + relatedItem.setValue(_ctx.stringValue("DeleteSnapshotGroupResponse.OperationProgressSet["+ i +"].RelatedItemSet["+ j +"].Value")); + + relatedItemSet.add(relatedItem); + } + operationProgress.setRelatedItemSet(relatedItemSet); + + operationProgressSet.add(operationProgress); + } + deleteSnapshotGroupResponse.setOperationProgressSet(operationProgressSet); + + return deleteSnapshotGroupResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteSnapshotResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteSnapshotResponseUnmarshaller.java new file mode 100644 index 0000000000..430f9a7b84 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteSnapshotResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeleteSnapshotResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteSnapshotResponseUnmarshaller { + + public static DeleteSnapshotResponse unmarshall(DeleteSnapshotResponse deleteSnapshotResponse, UnmarshallerContext _ctx) { + + deleteSnapshotResponse.setRequestId(_ctx.stringValue("DeleteSnapshotResponse.RequestId")); + + return deleteSnapshotResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DeleteStorageSetResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteStorageSetResponseUnmarshaller.java similarity index 89% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DeleteStorageSetResponseUnmarshaller.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteStorageSetResponseUnmarshaller.java index b74c335720..c8c750bb6e 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DeleteStorageSetResponseUnmarshaller.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteStorageSetResponseUnmarshaller.java @@ -12,9 +12,9 @@ * limitations under the License. */ -package com.aliyuncs.ecs.transform.v20160314; +package com.aliyuncs.ecs.transform.v20140526; -import com.aliyuncs.ecs.model.v20160314.DeleteStorageSetResponse; +import com.aliyuncs.ecs.model.v20140526.DeleteStorageSetResponse; import com.aliyuncs.transform.UnmarshallerContext; diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteVSwitchResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteVSwitchResponseUnmarshaller.java new file mode 100644 index 0000000000..1a11252fe8 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteVSwitchResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeleteVSwitchResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteVSwitchResponseUnmarshaller { + + public static DeleteVSwitchResponse unmarshall(DeleteVSwitchResponse deleteVSwitchResponse, UnmarshallerContext _ctx) { + + deleteVSwitchResponse.setRequestId(_ctx.stringValue("DeleteVSwitchResponse.RequestId")); + + return deleteVSwitchResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteVirtualBorderRouterResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteVirtualBorderRouterResponseUnmarshaller.java new file mode 100644 index 0000000000..21821c75f7 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteVirtualBorderRouterResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeleteVirtualBorderRouterResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteVirtualBorderRouterResponseUnmarshaller { + + public static DeleteVirtualBorderRouterResponse unmarshall(DeleteVirtualBorderRouterResponse deleteVirtualBorderRouterResponse, UnmarshallerContext _ctx) { + + deleteVirtualBorderRouterResponse.setRequestId(_ctx.stringValue("DeleteVirtualBorderRouterResponse.RequestId")); + + return deleteVirtualBorderRouterResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteVpcResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteVpcResponseUnmarshaller.java new file mode 100644 index 0000000000..239b3f6e2d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeleteVpcResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeleteVpcResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteVpcResponseUnmarshaller { + + public static DeleteVpcResponse unmarshall(DeleteVpcResponse deleteVpcResponse, UnmarshallerContext _ctx) { + + deleteVpcResponse.setRequestId(_ctx.stringValue("DeleteVpcResponse.RequestId")); + + return deleteVpcResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeregisterManagedInstanceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeregisterManagedInstanceResponseUnmarshaller.java new file mode 100644 index 0000000000..70100f5f79 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DeregisterManagedInstanceResponseUnmarshaller.java @@ -0,0 +1,46 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DeregisterManagedInstanceResponse; +import com.aliyuncs.ecs.model.v20140526.DeregisterManagedInstanceResponse.Instance; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeregisterManagedInstanceResponseUnmarshaller { + + public static DeregisterManagedInstanceResponse unmarshall(DeregisterManagedInstanceResponse deregisterManagedInstanceResponse, UnmarshallerContext _ctx) { + + deregisterManagedInstanceResponse.setRequestId(_ctx.stringValue("DeregisterManagedInstanceResponse.RequestId")); + + Instance instance = new Instance(); + instance.setLastInvokedTime(_ctx.stringValue("DeregisterManagedInstanceResponse.Instance.LastInvokedTime")); + instance.setInternetIp(_ctx.stringValue("DeregisterManagedInstanceResponse.Instance.InternetIp")); + instance.setHostname(_ctx.stringValue("DeregisterManagedInstanceResponse.Instance.Hostname")); + instance.setInstanceId(_ctx.stringValue("DeregisterManagedInstanceResponse.Instance.InstanceId")); + instance.setActivationId(_ctx.stringValue("DeregisterManagedInstanceResponse.Instance.ActivationId")); + instance.setIntranetIp(_ctx.stringValue("DeregisterManagedInstanceResponse.Instance.IntranetIp")); + instance.setAgentVersion(_ctx.stringValue("DeregisterManagedInstanceResponse.Instance.AgentVersion")); + instance.setRegistrationTime(_ctx.stringValue("DeregisterManagedInstanceResponse.Instance.RegistrationTime")); + instance.setInstanceName(_ctx.stringValue("DeregisterManagedInstanceResponse.Instance.InstanceName")); + instance.setOsType(_ctx.stringValue("DeregisterManagedInstanceResponse.Instance.OsType")); + instance.setOsVersion(_ctx.stringValue("DeregisterManagedInstanceResponse.Instance.OsVersion")); + instance.setInvocationCount(_ctx.longValue("DeregisterManagedInstanceResponse.Instance.InvocationCount")); + instance.setMachineId(_ctx.stringValue("DeregisterManagedInstanceResponse.Instance.MachineId")); + deregisterManagedInstanceResponse.setInstance(instance); + + return deregisterManagedInstanceResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeAccessPointsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeAccessPointsResponseUnmarshaller.java new file mode 100644 index 0000000000..68f2649436 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeAccessPointsResponseUnmarshaller.java @@ -0,0 +1,52 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeAccessPointsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeAccessPointsResponse.AccessPointType; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeAccessPointsResponseUnmarshaller { + + public static DescribeAccessPointsResponse unmarshall(DescribeAccessPointsResponse describeAccessPointsResponse, UnmarshallerContext _ctx) { + + describeAccessPointsResponse.setRequestId(_ctx.stringValue("DescribeAccessPointsResponse.RequestId")); + describeAccessPointsResponse.setPageNumber(_ctx.integerValue("DescribeAccessPointsResponse.PageNumber")); + describeAccessPointsResponse.setPageSize(_ctx.integerValue("DescribeAccessPointsResponse.PageSize")); + describeAccessPointsResponse.setTotalCount(_ctx.integerValue("DescribeAccessPointsResponse.TotalCount")); + + List accessPointSet = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeAccessPointsResponse.AccessPointSet.Length"); i++) { + AccessPointType accessPointType = new AccessPointType(); + accessPointType.setStatus(_ctx.stringValue("DescribeAccessPointsResponse.AccessPointSet["+ i +"].Status")); + accessPointType.setType(_ctx.stringValue("DescribeAccessPointsResponse.AccessPointSet["+ i +"].Type")); + accessPointType.setHostOperator(_ctx.stringValue("DescribeAccessPointsResponse.AccessPointSet["+ i +"].HostOperator")); + accessPointType.setDescription(_ctx.stringValue("DescribeAccessPointsResponse.AccessPointSet["+ i +"].Description")); + accessPointType.setAttachedRegionNo(_ctx.stringValue("DescribeAccessPointsResponse.AccessPointSet["+ i +"].AttachedRegionNo")); + accessPointType.setName(_ctx.stringValue("DescribeAccessPointsResponse.AccessPointSet["+ i +"].Name")); + accessPointType.setAccessPointId(_ctx.stringValue("DescribeAccessPointsResponse.AccessPointSet["+ i +"].AccessPointId")); + accessPointType.setLocation(_ctx.stringValue("DescribeAccessPointsResponse.AccessPointSet["+ i +"].Location")); + + accessPointSet.add(accessPointType); + } + describeAccessPointsResponse.setAccessPointSet(accessPointSet); + + return describeAccessPointsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeAccountAttributesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeAccountAttributesResponseUnmarshaller.java similarity index 92% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeAccountAttributesResponseUnmarshaller.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeAccountAttributesResponseUnmarshaller.java index be0afe52c4..9db7e78943 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeAccountAttributesResponseUnmarshaller.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeAccountAttributesResponseUnmarshaller.java @@ -12,14 +12,14 @@ * limitations under the License. */ -package com.aliyuncs.ecs.transform.v20160314; +package com.aliyuncs.ecs.transform.v20140526; import java.util.ArrayList; import java.util.List; -import com.aliyuncs.ecs.model.v20160314.DescribeAccountAttributesResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeAccountAttributesResponse.AccountAttributeItem; -import com.aliyuncs.ecs.model.v20160314.DescribeAccountAttributesResponse.AccountAttributeItem.ValueItem; +import com.aliyuncs.ecs.model.v20140526.DescribeAccountAttributesResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeAccountAttributesResponse.AccountAttributeItem; +import com.aliyuncs.ecs.model.v20140526.DescribeAccountAttributesResponse.AccountAttributeItem.ValueItem; import com.aliyuncs.transform.UnmarshallerContext; diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeActivationsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeActivationsResponseUnmarshaller.java new file mode 100644 index 0000000000..cfd00842cc --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeActivationsResponseUnmarshaller.java @@ -0,0 +1,65 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeActivationsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeActivationsResponse.Activation; +import com.aliyuncs.ecs.model.v20140526.DescribeActivationsResponse.Activation.Tag; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeActivationsResponseUnmarshaller { + + public static DescribeActivationsResponse unmarshall(DescribeActivationsResponse describeActivationsResponse, UnmarshallerContext _ctx) { + + describeActivationsResponse.setRequestId(_ctx.stringValue("DescribeActivationsResponse.RequestId")); + describeActivationsResponse.setPageSize(_ctx.longValue("DescribeActivationsResponse.PageSize")); + describeActivationsResponse.setPageNumber(_ctx.longValue("DescribeActivationsResponse.PageNumber")); + describeActivationsResponse.setTotalCount(_ctx.longValue("DescribeActivationsResponse.TotalCount")); + + List activationList = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeActivationsResponse.ActivationList.Length"); i++) { + Activation activation = new Activation(); + activation.setCreationTime(_ctx.stringValue("DescribeActivationsResponse.ActivationList["+ i +"].CreationTime")); + activation.setDeregisteredCount(_ctx.integerValue("DescribeActivationsResponse.ActivationList["+ i +"].DeregisteredCount")); + activation.setInstanceCount(_ctx.integerValue("DescribeActivationsResponse.ActivationList["+ i +"].InstanceCount")); + activation.setDescription(_ctx.stringValue("DescribeActivationsResponse.ActivationList["+ i +"].Description")); + activation.setRegisteredCount(_ctx.integerValue("DescribeActivationsResponse.ActivationList["+ i +"].RegisteredCount")); + activation.setInstanceName(_ctx.stringValue("DescribeActivationsResponse.ActivationList["+ i +"].InstanceName")); + activation.setDisabled(_ctx.booleanValue("DescribeActivationsResponse.ActivationList["+ i +"].Disabled")); + activation.setIpAddressRange(_ctx.stringValue("DescribeActivationsResponse.ActivationList["+ i +"].IpAddressRange")); + activation.setTimeToLiveInHours(_ctx.longValue("DescribeActivationsResponse.ActivationList["+ i +"].TimeToLiveInHours")); + activation.setActivationId(_ctx.stringValue("DescribeActivationsResponse.ActivationList["+ i +"].ActivationId")); + + List tags = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeActivationsResponse.ActivationList["+ i +"].Tags.Length"); j++) { + Tag tag = new Tag(); + tag.setTagKey(_ctx.stringValue("DescribeActivationsResponse.ActivationList["+ i +"].Tags["+ j +"].TagKey")); + tag.setTagValue(_ctx.stringValue("DescribeActivationsResponse.ActivationList["+ i +"].Tags["+ j +"].TagValue")); + + tags.add(tag); + } + activation.setTags(tags); + + activationList.add(activation); + } + describeActivationsResponse.setActivationList(activationList); + + return describeActivationsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeAutoProvisioningGroupHistoryResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeAutoProvisioningGroupHistoryResponseUnmarshaller.java new file mode 100644 index 0000000000..dac785b5f0 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeAutoProvisioningGroupHistoryResponseUnmarshaller.java @@ -0,0 +1,59 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeAutoProvisioningGroupHistoryResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeAutoProvisioningGroupHistoryResponse.AutoProvisioningGroupHistory; +import com.aliyuncs.ecs.model.v20140526.DescribeAutoProvisioningGroupHistoryResponse.AutoProvisioningGroupHistory.ActivityDetail; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeAutoProvisioningGroupHistoryResponseUnmarshaller { + + public static DescribeAutoProvisioningGroupHistoryResponse unmarshall(DescribeAutoProvisioningGroupHistoryResponse describeAutoProvisioningGroupHistoryResponse, UnmarshallerContext _ctx) { + + describeAutoProvisioningGroupHistoryResponse.setRequestId(_ctx.stringValue("DescribeAutoProvisioningGroupHistoryResponse.RequestId")); + describeAutoProvisioningGroupHistoryResponse.setPageSize(_ctx.integerValue("DescribeAutoProvisioningGroupHistoryResponse.PageSize")); + describeAutoProvisioningGroupHistoryResponse.setPageNumber(_ctx.integerValue("DescribeAutoProvisioningGroupHistoryResponse.PageNumber")); + describeAutoProvisioningGroupHistoryResponse.setTotalCount(_ctx.integerValue("DescribeAutoProvisioningGroupHistoryResponse.TotalCount")); + + List autoProvisioningGroupHistories = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeAutoProvisioningGroupHistoryResponse.AutoProvisioningGroupHistories.Length"); i++) { + AutoProvisioningGroupHistory autoProvisioningGroupHistory = new AutoProvisioningGroupHistory(); + autoProvisioningGroupHistory.setStatus(_ctx.stringValue("DescribeAutoProvisioningGroupHistoryResponse.AutoProvisioningGroupHistories["+ i +"].Status")); + autoProvisioningGroupHistory.setStartTime(_ctx.stringValue("DescribeAutoProvisioningGroupHistoryResponse.AutoProvisioningGroupHistories["+ i +"].StartTime")); + autoProvisioningGroupHistory.setTaskId(_ctx.stringValue("DescribeAutoProvisioningGroupHistoryResponse.AutoProvisioningGroupHistories["+ i +"].TaskId")); + autoProvisioningGroupHistory.setLastEventTime(_ctx.stringValue("DescribeAutoProvisioningGroupHistoryResponse.AutoProvisioningGroupHistories["+ i +"].LastEventTime")); + + List activityDetails = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeAutoProvisioningGroupHistoryResponse.AutoProvisioningGroupHistories["+ i +"].ActivityDetails.Length"); j++) { + ActivityDetail activityDetail = new ActivityDetail(); + activityDetail.setStatus(_ctx.stringValue("DescribeAutoProvisioningGroupHistoryResponse.AutoProvisioningGroupHistories["+ i +"].ActivityDetails["+ j +"].Status")); + activityDetail.setDetail(_ctx.stringValue("DescribeAutoProvisioningGroupHistoryResponse.AutoProvisioningGroupHistories["+ i +"].ActivityDetails["+ j +"].Detail")); + + activityDetails.add(activityDetail); + } + autoProvisioningGroupHistory.setActivityDetails(activityDetails); + + autoProvisioningGroupHistories.add(autoProvisioningGroupHistory); + } + describeAutoProvisioningGroupHistoryResponse.setAutoProvisioningGroupHistories(autoProvisioningGroupHistories); + + return describeAutoProvisioningGroupHistoryResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeAutoProvisioningGroupInstancesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeAutoProvisioningGroupInstancesResponseUnmarshaller.java new file mode 100644 index 0000000000..d7e05a5fb2 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeAutoProvisioningGroupInstancesResponseUnmarshaller.java @@ -0,0 +1,56 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeAutoProvisioningGroupInstancesResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeAutoProvisioningGroupInstancesResponse.Instance; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeAutoProvisioningGroupInstancesResponseUnmarshaller { + + public static DescribeAutoProvisioningGroupInstancesResponse unmarshall(DescribeAutoProvisioningGroupInstancesResponse describeAutoProvisioningGroupInstancesResponse, UnmarshallerContext _ctx) { + + describeAutoProvisioningGroupInstancesResponse.setRequestId(_ctx.stringValue("DescribeAutoProvisioningGroupInstancesResponse.RequestId")); + describeAutoProvisioningGroupInstancesResponse.setPageSize(_ctx.integerValue("DescribeAutoProvisioningGroupInstancesResponse.PageSize")); + describeAutoProvisioningGroupInstancesResponse.setPageNumber(_ctx.integerValue("DescribeAutoProvisioningGroupInstancesResponse.PageNumber")); + describeAutoProvisioningGroupInstancesResponse.setTotalCount(_ctx.integerValue("DescribeAutoProvisioningGroupInstancesResponse.TotalCount")); + + List instances = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeAutoProvisioningGroupInstancesResponse.Instances.Length"); i++) { + Instance instance = new Instance(); + instance.setStatus(_ctx.stringValue("DescribeAutoProvisioningGroupInstancesResponse.Instances["+ i +"].Status")); + instance.setCreationTime(_ctx.stringValue("DescribeAutoProvisioningGroupInstancesResponse.Instances["+ i +"].CreationTime")); + instance.setIsSpot(_ctx.booleanValue("DescribeAutoProvisioningGroupInstancesResponse.Instances["+ i +"].IsSpot")); + instance.setCPU(_ctx.integerValue("DescribeAutoProvisioningGroupInstancesResponse.Instances["+ i +"].CPU")); + instance.setInstanceId(_ctx.stringValue("DescribeAutoProvisioningGroupInstancesResponse.Instances["+ i +"].InstanceId")); + instance.setNetworkType(_ctx.stringValue("DescribeAutoProvisioningGroupInstancesResponse.Instances["+ i +"].NetworkType")); + instance.setInstanceType(_ctx.stringValue("DescribeAutoProvisioningGroupInstancesResponse.Instances["+ i +"].InstanceType")); + instance.setRegionId(_ctx.stringValue("DescribeAutoProvisioningGroupInstancesResponse.Instances["+ i +"].RegionId")); + instance.setIoOptimized(_ctx.booleanValue("DescribeAutoProvisioningGroupInstancesResponse.Instances["+ i +"].IoOptimized")); + instance.setOsType(_ctx.stringValue("DescribeAutoProvisioningGroupInstancesResponse.Instances["+ i +"].OsType")); + instance.setZoneId(_ctx.stringValue("DescribeAutoProvisioningGroupInstancesResponse.Instances["+ i +"].ZoneId")); + instance.setMemory(_ctx.integerValue("DescribeAutoProvisioningGroupInstancesResponse.Instances["+ i +"].Memory")); + + instances.add(instance); + } + describeAutoProvisioningGroupInstancesResponse.setInstances(instances); + + return describeAutoProvisioningGroupInstancesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeAutoProvisioningGroupsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeAutoProvisioningGroupsResponseUnmarshaller.java new file mode 100644 index 0000000000..4e77573a68 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeAutoProvisioningGroupsResponseUnmarshaller.java @@ -0,0 +1,93 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeAutoProvisioningGroupsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroup; +import com.aliyuncs.ecs.model.v20140526.DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroup.LaunchTemplateConfig; +import com.aliyuncs.ecs.model.v20140526.DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroup.PayAsYouGoOptions; +import com.aliyuncs.ecs.model.v20140526.DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroup.SpotOptions; +import com.aliyuncs.ecs.model.v20140526.DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroup.TargetCapacitySpecification; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeAutoProvisioningGroupsResponseUnmarshaller { + + public static DescribeAutoProvisioningGroupsResponse unmarshall(DescribeAutoProvisioningGroupsResponse describeAutoProvisioningGroupsResponse, UnmarshallerContext _ctx) { + + describeAutoProvisioningGroupsResponse.setRequestId(_ctx.stringValue("DescribeAutoProvisioningGroupsResponse.RequestId")); + describeAutoProvisioningGroupsResponse.setPageSize(_ctx.integerValue("DescribeAutoProvisioningGroupsResponse.PageSize")); + describeAutoProvisioningGroupsResponse.setPageNumber(_ctx.integerValue("DescribeAutoProvisioningGroupsResponse.PageNumber")); + describeAutoProvisioningGroupsResponse.setTotalCount(_ctx.integerValue("DescribeAutoProvisioningGroupsResponse.TotalCount")); + + List autoProvisioningGroups = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroups.Length"); i++) { + AutoProvisioningGroup autoProvisioningGroup = new AutoProvisioningGroup(); + autoProvisioningGroup.setCreationTime(_ctx.stringValue("DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroups["+ i +"].CreationTime")); + autoProvisioningGroup.setAutoProvisioningGroupName(_ctx.stringValue("DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroups["+ i +"].AutoProvisioningGroupName")); + autoProvisioningGroup.setStatus(_ctx.stringValue("DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroups["+ i +"].Status")); + autoProvisioningGroup.setTerminateInstances(_ctx.booleanValue("DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroups["+ i +"].TerminateInstances")); + autoProvisioningGroup.setMaxSpotPrice(_ctx.floatValue("DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroups["+ i +"].MaxSpotPrice")); + autoProvisioningGroup.setState(_ctx.stringValue("DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroups["+ i +"].State")); + autoProvisioningGroup.setLaunchTemplateId(_ctx.stringValue("DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroups["+ i +"].LaunchTemplateId")); + autoProvisioningGroup.setValidFrom(_ctx.stringValue("DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroups["+ i +"].ValidFrom")); + autoProvisioningGroup.setLaunchTemplateVersion(_ctx.stringValue("DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroups["+ i +"].LaunchTemplateVersion")); + autoProvisioningGroup.setTerminateInstancesWithExpiration(_ctx.booleanValue("DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroups["+ i +"].TerminateInstancesWithExpiration")); + autoProvisioningGroup.setRegionId(_ctx.stringValue("DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroups["+ i +"].RegionId")); + autoProvisioningGroup.setValidUntil(_ctx.stringValue("DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroups["+ i +"].ValidUntil")); + autoProvisioningGroup.setAutoProvisioningGroupType(_ctx.stringValue("DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroups["+ i +"].AutoProvisioningGroupType")); + autoProvisioningGroup.setAutoProvisioningGroupId(_ctx.stringValue("DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroups["+ i +"].AutoProvisioningGroupId")); + autoProvisioningGroup.setExcessCapacityTerminationPolicy(_ctx.stringValue("DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroups["+ i +"].ExcessCapacityTerminationPolicy")); + + SpotOptions spotOptions = new SpotOptions(); + spotOptions.setInstancePoolsToUseCount(_ctx.integerValue("DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroups["+ i +"].SpotOptions.InstancePoolsToUseCount")); + spotOptions.setAllocationStrategy(_ctx.stringValue("DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroups["+ i +"].SpotOptions.AllocationStrategy")); + spotOptions.setInstanceInterruptionBehavior(_ctx.stringValue("DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroups["+ i +"].SpotOptions.InstanceInterruptionBehavior")); + autoProvisioningGroup.setSpotOptions(spotOptions); + + PayAsYouGoOptions payAsYouGoOptions = new PayAsYouGoOptions(); + payAsYouGoOptions.setAllocationStrategy(_ctx.stringValue("DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroups["+ i +"].PayAsYouGoOptions.AllocationStrategy")); + autoProvisioningGroup.setPayAsYouGoOptions(payAsYouGoOptions); + + TargetCapacitySpecification targetCapacitySpecification = new TargetCapacitySpecification(); + targetCapacitySpecification.setSpotTargetCapacity(_ctx.floatValue("DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroups["+ i +"].TargetCapacitySpecification.SpotTargetCapacity")); + targetCapacitySpecification.setPayAsYouGoTargetCapacity(_ctx.floatValue("DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroups["+ i +"].TargetCapacitySpecification.PayAsYouGoTargetCapacity")); + targetCapacitySpecification.setDefaultTargetCapacityType(_ctx.stringValue("DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroups["+ i +"].TargetCapacitySpecification.DefaultTargetCapacityType")); + targetCapacitySpecification.setTotalTargetCapacity(_ctx.floatValue("DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroups["+ i +"].TargetCapacitySpecification.TotalTargetCapacity")); + autoProvisioningGroup.setTargetCapacitySpecification(targetCapacitySpecification); + + List launchTemplateConfigs = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroups["+ i +"].LaunchTemplateConfigs.Length"); j++) { + LaunchTemplateConfig launchTemplateConfig = new LaunchTemplateConfig(); + launchTemplateConfig.setMaxPrice(_ctx.floatValue("DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroups["+ i +"].LaunchTemplateConfigs["+ j +"].MaxPrice")); + launchTemplateConfig.setPriority(_ctx.floatValue("DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroups["+ i +"].LaunchTemplateConfigs["+ j +"].Priority")); + launchTemplateConfig.setVSwitchId(_ctx.stringValue("DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroups["+ i +"].LaunchTemplateConfigs["+ j +"].VSwitchId")); + launchTemplateConfig.setWeightedCapacity(_ctx.floatValue("DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroups["+ i +"].LaunchTemplateConfigs["+ j +"].WeightedCapacity")); + launchTemplateConfig.setInstanceType(_ctx.stringValue("DescribeAutoProvisioningGroupsResponse.AutoProvisioningGroups["+ i +"].LaunchTemplateConfigs["+ j +"].InstanceType")); + + launchTemplateConfigs.add(launchTemplateConfig); + } + autoProvisioningGroup.setLaunchTemplateConfigs(launchTemplateConfigs); + + autoProvisioningGroups.add(autoProvisioningGroup); + } + describeAutoProvisioningGroupsResponse.setAutoProvisioningGroups(autoProvisioningGroups); + + return describeAutoProvisioningGroupsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeAutoSnapshotPolicyExResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeAutoSnapshotPolicyExResponseUnmarshaller.java new file mode 100644 index 0000000000..f28c9af479 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeAutoSnapshotPolicyExResponseUnmarshaller.java @@ -0,0 +1,69 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeAutoSnapshotPolicyExResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeAutoSnapshotPolicyExResponse.AutoSnapshotPolicy; +import com.aliyuncs.ecs.model.v20140526.DescribeAutoSnapshotPolicyExResponse.AutoSnapshotPolicy.Tag; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeAutoSnapshotPolicyExResponseUnmarshaller { + + public static DescribeAutoSnapshotPolicyExResponse unmarshall(DescribeAutoSnapshotPolicyExResponse describeAutoSnapshotPolicyExResponse, UnmarshallerContext _ctx) { + + describeAutoSnapshotPolicyExResponse.setRequestId(_ctx.stringValue("DescribeAutoSnapshotPolicyExResponse.RequestId")); + describeAutoSnapshotPolicyExResponse.setPageSize(_ctx.integerValue("DescribeAutoSnapshotPolicyExResponse.PageSize")); + describeAutoSnapshotPolicyExResponse.setPageNumber(_ctx.integerValue("DescribeAutoSnapshotPolicyExResponse.PageNumber")); + describeAutoSnapshotPolicyExResponse.setTotalCount(_ctx.integerValue("DescribeAutoSnapshotPolicyExResponse.TotalCount")); + + List autoSnapshotPolicies = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeAutoSnapshotPolicyExResponse.AutoSnapshotPolicies.Length"); i++) { + AutoSnapshotPolicy autoSnapshotPolicy = new AutoSnapshotPolicy(); + autoSnapshotPolicy.setTimePoints(_ctx.stringValue("DescribeAutoSnapshotPolicyExResponse.AutoSnapshotPolicies["+ i +"].TimePoints")); + autoSnapshotPolicy.setCreationTime(_ctx.stringValue("DescribeAutoSnapshotPolicyExResponse.AutoSnapshotPolicies["+ i +"].CreationTime")); + autoSnapshotPolicy.setStatus(_ctx.stringValue("DescribeAutoSnapshotPolicyExResponse.AutoSnapshotPolicies["+ i +"].Status")); + autoSnapshotPolicy.setAutoSnapshotPolicyName(_ctx.stringValue("DescribeAutoSnapshotPolicyExResponse.AutoSnapshotPolicies["+ i +"].AutoSnapshotPolicyName")); + autoSnapshotPolicy.setTargetCopyRegions(_ctx.stringValue("DescribeAutoSnapshotPolicyExResponse.AutoSnapshotPolicies["+ i +"].TargetCopyRegions")); + autoSnapshotPolicy.setCopiedSnapshotsRetentionDays(_ctx.integerValue("DescribeAutoSnapshotPolicyExResponse.AutoSnapshotPolicies["+ i +"].CopiedSnapshotsRetentionDays")); + autoSnapshotPolicy.setAutoSnapshotPolicyId(_ctx.stringValue("DescribeAutoSnapshotPolicyExResponse.AutoSnapshotPolicies["+ i +"].AutoSnapshotPolicyId")); + autoSnapshotPolicy.setRetentionDays(_ctx.integerValue("DescribeAutoSnapshotPolicyExResponse.AutoSnapshotPolicies["+ i +"].RetentionDays")); + autoSnapshotPolicy.setRegionId(_ctx.stringValue("DescribeAutoSnapshotPolicyExResponse.AutoSnapshotPolicies["+ i +"].RegionId")); + autoSnapshotPolicy.setDiskNums(_ctx.integerValue("DescribeAutoSnapshotPolicyExResponse.AutoSnapshotPolicies["+ i +"].DiskNums")); + autoSnapshotPolicy.setEnableCrossRegionCopy(_ctx.booleanValue("DescribeAutoSnapshotPolicyExResponse.AutoSnapshotPolicies["+ i +"].EnableCrossRegionCopy")); + autoSnapshotPolicy.setRepeatWeekdays(_ctx.stringValue("DescribeAutoSnapshotPolicyExResponse.AutoSnapshotPolicies["+ i +"].RepeatWeekdays")); + autoSnapshotPolicy.setVolumeNums(_ctx.integerValue("DescribeAutoSnapshotPolicyExResponse.AutoSnapshotPolicies["+ i +"].VolumeNums")); + autoSnapshotPolicy.setResourceGroupId(_ctx.stringValue("DescribeAutoSnapshotPolicyExResponse.AutoSnapshotPolicies["+ i +"].ResourceGroupId")); + + List tags = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeAutoSnapshotPolicyExResponse.AutoSnapshotPolicies["+ i +"].Tags.Length"); j++) { + Tag tag = new Tag(); + tag.setTagValue(_ctx.stringValue("DescribeAutoSnapshotPolicyExResponse.AutoSnapshotPolicies["+ i +"].Tags["+ j +"].TagValue")); + tag.setTagKey(_ctx.stringValue("DescribeAutoSnapshotPolicyExResponse.AutoSnapshotPolicies["+ i +"].Tags["+ j +"].TagKey")); + + tags.add(tag); + } + autoSnapshotPolicy.setTags(tags); + + autoSnapshotPolicies.add(autoSnapshotPolicy); + } + describeAutoSnapshotPolicyExResponse.setAutoSnapshotPolicies(autoSnapshotPolicies); + + return describeAutoSnapshotPolicyExResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeAvailableResourceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeAvailableResourceResponseUnmarshaller.java new file mode 100644 index 0000000000..0316b0a1b7 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeAvailableResourceResponseUnmarshaller.java @@ -0,0 +1,70 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeAvailableResourceResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeAvailableResourceResponse.AvailableZone; +import com.aliyuncs.ecs.model.v20140526.DescribeAvailableResourceResponse.AvailableZone.AvailableResource; +import com.aliyuncs.ecs.model.v20140526.DescribeAvailableResourceResponse.AvailableZone.AvailableResource.SupportedResource; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeAvailableResourceResponseUnmarshaller { + + public static DescribeAvailableResourceResponse unmarshall(DescribeAvailableResourceResponse describeAvailableResourceResponse, UnmarshallerContext _ctx) { + + describeAvailableResourceResponse.setRequestId(_ctx.stringValue("DescribeAvailableResourceResponse.RequestId")); + + List availableZones = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeAvailableResourceResponse.AvailableZones.Length"); i++) { + AvailableZone availableZone = new AvailableZone(); + availableZone.setZoneId(_ctx.stringValue("DescribeAvailableResourceResponse.AvailableZones["+ i +"].ZoneId")); + availableZone.setStatus(_ctx.stringValue("DescribeAvailableResourceResponse.AvailableZones["+ i +"].Status")); + availableZone.setStatusCategory(_ctx.stringValue("DescribeAvailableResourceResponse.AvailableZones["+ i +"].StatusCategory")); + availableZone.setRegionId(_ctx.stringValue("DescribeAvailableResourceResponse.AvailableZones["+ i +"].RegionId")); + + List availableResources = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeAvailableResourceResponse.AvailableZones["+ i +"].AvailableResources.Length"); j++) { + AvailableResource availableResource = new AvailableResource(); + availableResource.setType(_ctx.stringValue("DescribeAvailableResourceResponse.AvailableZones["+ i +"].AvailableResources["+ j +"].Type")); + + List supportedResources = new ArrayList(); + for (int k = 0; k < _ctx.lengthValue("DescribeAvailableResourceResponse.AvailableZones["+ i +"].AvailableResources["+ j +"].SupportedResources.Length"); k++) { + SupportedResource supportedResource = new SupportedResource(); + supportedResource.setStatus(_ctx.stringValue("DescribeAvailableResourceResponse.AvailableZones["+ i +"].AvailableResources["+ j +"].SupportedResources["+ k +"].Status")); + supportedResource.setValue(_ctx.stringValue("DescribeAvailableResourceResponse.AvailableZones["+ i +"].AvailableResources["+ j +"].SupportedResources["+ k +"].Value")); + supportedResource.setMax(_ctx.integerValue("DescribeAvailableResourceResponse.AvailableZones["+ i +"].AvailableResources["+ j +"].SupportedResources["+ k +"].Max")); + supportedResource.setUnit(_ctx.stringValue("DescribeAvailableResourceResponse.AvailableZones["+ i +"].AvailableResources["+ j +"].SupportedResources["+ k +"].Unit")); + supportedResource.setStatusCategory(_ctx.stringValue("DescribeAvailableResourceResponse.AvailableZones["+ i +"].AvailableResources["+ j +"].SupportedResources["+ k +"].StatusCategory")); + supportedResource.setMin(_ctx.integerValue("DescribeAvailableResourceResponse.AvailableZones["+ i +"].AvailableResources["+ j +"].SupportedResources["+ k +"].Min")); + + supportedResources.add(supportedResource); + } + availableResource.setSupportedResources(supportedResources); + + availableResources.add(availableResource); + } + availableZone.setAvailableResources(availableResources); + + availableZones.add(availableZone); + } + describeAvailableResourceResponse.setAvailableZones(availableZones); + + return describeAvailableResourceResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeBandwidthLimitationResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeBandwidthLimitationResponseUnmarshaller.java new file mode 100644 index 0000000000..4b36da4f0b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeBandwidthLimitationResponseUnmarshaller.java @@ -0,0 +1,45 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeBandwidthLimitationResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeBandwidthLimitationResponse.Bandwidth; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeBandwidthLimitationResponseUnmarshaller { + + public static DescribeBandwidthLimitationResponse unmarshall(DescribeBandwidthLimitationResponse describeBandwidthLimitationResponse, UnmarshallerContext _ctx) { + + describeBandwidthLimitationResponse.setRequestId(_ctx.stringValue("DescribeBandwidthLimitationResponse.RequestId")); + + List bandwidths = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeBandwidthLimitationResponse.Bandwidths.Length"); i++) { + Bandwidth bandwidth = new Bandwidth(); + bandwidth.setInternetChargeType(_ctx.stringValue("DescribeBandwidthLimitationResponse.Bandwidths["+ i +"].InternetChargeType")); + bandwidth.setMax(_ctx.integerValue("DescribeBandwidthLimitationResponse.Bandwidths["+ i +"].Max")); + bandwidth.setMin(_ctx.integerValue("DescribeBandwidthLimitationResponse.Bandwidths["+ i +"].Min")); + bandwidth.setUnit(_ctx.stringValue("DescribeBandwidthLimitationResponse.Bandwidths["+ i +"].Unit")); + + bandwidths.add(bandwidth); + } + describeBandwidthLimitationResponse.setBandwidths(bandwidths); + + return describeBandwidthLimitationResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeBandwidthPackagesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeBandwidthPackagesResponseUnmarshaller.java new file mode 100644 index 0000000000..cbf9130064 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeBandwidthPackagesResponseUnmarshaller.java @@ -0,0 +1,69 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeBandwidthPackagesResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeBandwidthPackagesResponse.BandwidthPackage; +import com.aliyuncs.ecs.model.v20140526.DescribeBandwidthPackagesResponse.BandwidthPackage.PublicIpAddresse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeBandwidthPackagesResponseUnmarshaller { + + public static DescribeBandwidthPackagesResponse unmarshall(DescribeBandwidthPackagesResponse describeBandwidthPackagesResponse, UnmarshallerContext _ctx) { + + describeBandwidthPackagesResponse.setRequestId(_ctx.stringValue("DescribeBandwidthPackagesResponse.RequestId")); + describeBandwidthPackagesResponse.setPageSize(_ctx.integerValue("DescribeBandwidthPackagesResponse.PageSize")); + describeBandwidthPackagesResponse.setPageNumber(_ctx.integerValue("DescribeBandwidthPackagesResponse.PageNumber")); + describeBandwidthPackagesResponse.setTotalCount(_ctx.integerValue("DescribeBandwidthPackagesResponse.TotalCount")); + + List bandwidthPackages = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeBandwidthPackagesResponse.BandwidthPackages.Length"); i++) { + BandwidthPackage bandwidthPackage = new BandwidthPackage(); + bandwidthPackage.setStatus(_ctx.stringValue("DescribeBandwidthPackagesResponse.BandwidthPackages["+ i +"].Status")); + bandwidthPackage.setCreationTime(_ctx.stringValue("DescribeBandwidthPackagesResponse.BandwidthPackages["+ i +"].CreationTime")); + bandwidthPackage.setIpCount(_ctx.stringValue("DescribeBandwidthPackagesResponse.BandwidthPackages["+ i +"].IpCount")); + bandwidthPackage.setRegionId(_ctx.stringValue("DescribeBandwidthPackagesResponse.BandwidthPackages["+ i +"].RegionId")); + bandwidthPackage.setInstanceChargeType(_ctx.stringValue("DescribeBandwidthPackagesResponse.BandwidthPackages["+ i +"].InstanceChargeType")); + bandwidthPackage.setBandwidthPackageId(_ctx.stringValue("DescribeBandwidthPackagesResponse.BandwidthPackages["+ i +"].BandwidthPackageId")); + bandwidthPackage.setDescription(_ctx.stringValue("DescribeBandwidthPackagesResponse.BandwidthPackages["+ i +"].Description")); + bandwidthPackage.setBandwidth(_ctx.stringValue("DescribeBandwidthPackagesResponse.BandwidthPackages["+ i +"].Bandwidth")); + bandwidthPackage.setNatGatewayId(_ctx.stringValue("DescribeBandwidthPackagesResponse.BandwidthPackages["+ i +"].NatGatewayId")); + bandwidthPackage.setZoneId(_ctx.stringValue("DescribeBandwidthPackagesResponse.BandwidthPackages["+ i +"].ZoneId")); + bandwidthPackage.setInternetChargeType(_ctx.stringValue("DescribeBandwidthPackagesResponse.BandwidthPackages["+ i +"].InternetChargeType")); + bandwidthPackage.setBusinessStatus(_ctx.stringValue("DescribeBandwidthPackagesResponse.BandwidthPackages["+ i +"].BusinessStatus")); + bandwidthPackage.setName(_ctx.stringValue("DescribeBandwidthPackagesResponse.BandwidthPackages["+ i +"].Name")); + bandwidthPackage.setISP(_ctx.stringValue("DescribeBandwidthPackagesResponse.BandwidthPackages["+ i +"].ISP")); + + List publicIpAddresses = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeBandwidthPackagesResponse.BandwidthPackages["+ i +"].PublicIpAddresses.Length"); j++) { + PublicIpAddresse publicIpAddresse = new PublicIpAddresse(); + publicIpAddresse.setIpAddress(_ctx.stringValue("DescribeBandwidthPackagesResponse.BandwidthPackages["+ i +"].PublicIpAddresses["+ j +"].IpAddress")); + publicIpAddresse.setAllocationId(_ctx.stringValue("DescribeBandwidthPackagesResponse.BandwidthPackages["+ i +"].PublicIpAddresses["+ j +"].AllocationId")); + + publicIpAddresses.add(publicIpAddresse); + } + bandwidthPackage.setPublicIpAddresses(publicIpAddresses); + + bandwidthPackages.add(bandwidthPackage); + } + describeBandwidthPackagesResponse.setBandwidthPackages(bandwidthPackages); + + return describeBandwidthPackagesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeCapacityReservationInstancesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeCapacityReservationInstancesResponseUnmarshaller.java new file mode 100644 index 0000000000..e4f04bf45d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeCapacityReservationInstancesResponseUnmarshaller.java @@ -0,0 +1,45 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeCapacityReservationInstancesResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeCapacityReservationInstancesResponse.InstanceIdSet; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeCapacityReservationInstancesResponseUnmarshaller { + + public static DescribeCapacityReservationInstancesResponse unmarshall(DescribeCapacityReservationInstancesResponse describeCapacityReservationInstancesResponse, UnmarshallerContext _ctx) { + + describeCapacityReservationInstancesResponse.setRequestId(_ctx.stringValue("DescribeCapacityReservationInstancesResponse.RequestId")); + describeCapacityReservationInstancesResponse.setNextToken(_ctx.stringValue("DescribeCapacityReservationInstancesResponse.NextToken")); + describeCapacityReservationInstancesResponse.setTotalCount(_ctx.integerValue("DescribeCapacityReservationInstancesResponse.TotalCount")); + describeCapacityReservationInstancesResponse.setMaxResults(_ctx.integerValue("DescribeCapacityReservationInstancesResponse.MaxResults")); + + List capacityReservationItem = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeCapacityReservationInstancesResponse.CapacityReservationItem.Length"); i++) { + InstanceIdSet instanceIdSet = new InstanceIdSet(); + instanceIdSet.setInstanceId(_ctx.stringValue("DescribeCapacityReservationInstancesResponse.CapacityReservationItem["+ i +"].InstanceId")); + + capacityReservationItem.add(instanceIdSet); + } + describeCapacityReservationInstancesResponse.setCapacityReservationItem(capacityReservationItem); + + return describeCapacityReservationInstancesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeCapacityReservationsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeCapacityReservationsResponseUnmarshaller.java new file mode 100644 index 0000000000..95647968d3 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeCapacityReservationsResponseUnmarshaller.java @@ -0,0 +1,84 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeCapacityReservationsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeCapacityReservationsResponse.CapacityReservationItem; +import com.aliyuncs.ecs.model.v20140526.DescribeCapacityReservationsResponse.CapacityReservationItem.AllocatedResource; +import com.aliyuncs.ecs.model.v20140526.DescribeCapacityReservationsResponse.CapacityReservationItem.Tag; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeCapacityReservationsResponseUnmarshaller { + + public static DescribeCapacityReservationsResponse unmarshall(DescribeCapacityReservationsResponse describeCapacityReservationsResponse, UnmarshallerContext _ctx) { + + describeCapacityReservationsResponse.setRequestId(_ctx.stringValue("DescribeCapacityReservationsResponse.RequestId")); + describeCapacityReservationsResponse.setNextToken(_ctx.stringValue("DescribeCapacityReservationsResponse.NextToken")); + describeCapacityReservationsResponse.setTotalCount(_ctx.integerValue("DescribeCapacityReservationsResponse.TotalCount")); + describeCapacityReservationsResponse.setMaxResults(_ctx.integerValue("DescribeCapacityReservationsResponse.MaxResults")); + + List capacityReservationSet = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeCapacityReservationsResponse.CapacityReservationSet.Length"); i++) { + CapacityReservationItem capacityReservationItem = new CapacityReservationItem(); + capacityReservationItem.setStatus(_ctx.stringValue("DescribeCapacityReservationsResponse.CapacityReservationSet["+ i +"].Status")); + capacityReservationItem.setTimeSlot(_ctx.stringValue("DescribeCapacityReservationsResponse.CapacityReservationSet["+ i +"].TimeSlot")); + capacityReservationItem.setPrivatePoolOptionsMatchCriteria(_ctx.stringValue("DescribeCapacityReservationsResponse.CapacityReservationSet["+ i +"].PrivatePoolOptionsMatchCriteria")); + capacityReservationItem.setPrivatePoolOptionsId(_ctx.stringValue("DescribeCapacityReservationsResponse.CapacityReservationSet["+ i +"].PrivatePoolOptionsId")); + capacityReservationItem.setPrivatePoolOptionsName(_ctx.stringValue("DescribeCapacityReservationsResponse.CapacityReservationSet["+ i +"].PrivatePoolOptionsName")); + capacityReservationItem.setRegionId(_ctx.stringValue("DescribeCapacityReservationsResponse.CapacityReservationSet["+ i +"].RegionId")); + capacityReservationItem.setInstanceChargeType(_ctx.stringValue("DescribeCapacityReservationsResponse.CapacityReservationSet["+ i +"].InstanceChargeType")); + capacityReservationItem.setEndTime(_ctx.stringValue("DescribeCapacityReservationsResponse.CapacityReservationSet["+ i +"].EndTime")); + capacityReservationItem.setStartTime(_ctx.stringValue("DescribeCapacityReservationsResponse.CapacityReservationSet["+ i +"].StartTime")); + capacityReservationItem.setDescription(_ctx.stringValue("DescribeCapacityReservationsResponse.CapacityReservationSet["+ i +"].Description")); + capacityReservationItem.setEndTimeType(_ctx.stringValue("DescribeCapacityReservationsResponse.CapacityReservationSet["+ i +"].EndTimeType")); + capacityReservationItem.setResourceGroupId(_ctx.stringValue("DescribeCapacityReservationsResponse.CapacityReservationSet["+ i +"].ResourceGroupId")); + capacityReservationItem.setPlatform(_ctx.stringValue("DescribeCapacityReservationsResponse.CapacityReservationSet["+ i +"].Platform")); + capacityReservationItem.setStartTimeType(_ctx.stringValue("DescribeCapacityReservationsResponse.CapacityReservationSet["+ i +"].StartTimeType")); + capacityReservationItem.setSavingPlanId(_ctx.stringValue("DescribeCapacityReservationsResponse.CapacityReservationSet["+ i +"].SavingPlanId")); + capacityReservationItem.setReservedInstanceId(_ctx.stringValue("DescribeCapacityReservationsResponse.CapacityReservationSet["+ i +"].ReservedInstanceId")); + + List allocatedResources = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeCapacityReservationsResponse.CapacityReservationSet["+ i +"].AllocatedResources.Length"); j++) { + AllocatedResource allocatedResource = new AllocatedResource(); + allocatedResource.setUsedAmount(_ctx.integerValue("DescribeCapacityReservationsResponse.CapacityReservationSet["+ i +"].AllocatedResources["+ j +"].UsedAmount")); + allocatedResource.setTotalAmount(_ctx.integerValue("DescribeCapacityReservationsResponse.CapacityReservationSet["+ i +"].AllocatedResources["+ j +"].TotalAmount")); + allocatedResource.setZoneId(_ctx.stringValue("DescribeCapacityReservationsResponse.CapacityReservationSet["+ i +"].AllocatedResources["+ j +"].zoneId")); + allocatedResource.setInstanceType(_ctx.stringValue("DescribeCapacityReservationsResponse.CapacityReservationSet["+ i +"].AllocatedResources["+ j +"].InstanceType")); + + allocatedResources.add(allocatedResource); + } + capacityReservationItem.setAllocatedResources(allocatedResources); + + List tags = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeCapacityReservationsResponse.CapacityReservationSet["+ i +"].Tags.Length"); j++) { + Tag tag = new Tag(); + tag.setTagValue(_ctx.stringValue("DescribeCapacityReservationsResponse.CapacityReservationSet["+ i +"].Tags["+ j +"].TagValue")); + tag.setTagKey(_ctx.stringValue("DescribeCapacityReservationsResponse.CapacityReservationSet["+ i +"].Tags["+ j +"].TagKey")); + + tags.add(tag); + } + capacityReservationItem.setTags(tags); + + capacityReservationSet.add(capacityReservationItem); + } + describeCapacityReservationsResponse.setCapacityReservationSet(capacityReservationSet); + + return describeCapacityReservationsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeClassicLinkInstancesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeClassicLinkInstancesResponseUnmarshaller.java new file mode 100644 index 0000000000..ec3bca480e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeClassicLinkInstancesResponseUnmarshaller.java @@ -0,0 +1,46 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeClassicLinkInstancesResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeClassicLinkInstancesResponse.Link; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeClassicLinkInstancesResponseUnmarshaller { + + public static DescribeClassicLinkInstancesResponse unmarshall(DescribeClassicLinkInstancesResponse describeClassicLinkInstancesResponse, UnmarshallerContext _ctx) { + + describeClassicLinkInstancesResponse.setRequestId(_ctx.stringValue("DescribeClassicLinkInstancesResponse.RequestId")); + describeClassicLinkInstancesResponse.setPageSize(_ctx.integerValue("DescribeClassicLinkInstancesResponse.PageSize")); + describeClassicLinkInstancesResponse.setPageNumber(_ctx.integerValue("DescribeClassicLinkInstancesResponse.PageNumber")); + describeClassicLinkInstancesResponse.setTotalCount(_ctx.integerValue("DescribeClassicLinkInstancesResponse.TotalCount")); + + List links = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeClassicLinkInstancesResponse.Links.Length"); i++) { + Link link = new Link(); + link.setVpcId(_ctx.stringValue("DescribeClassicLinkInstancesResponse.Links["+ i +"].VpcId")); + link.setInstanceId(_ctx.stringValue("DescribeClassicLinkInstancesResponse.Links["+ i +"].InstanceId")); + + links.add(link); + } + describeClassicLinkInstancesResponse.setLinks(links); + + return describeClassicLinkInstancesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeCloudAssistantStatusResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeCloudAssistantStatusResponseUnmarshaller.java new file mode 100644 index 0000000000..79364015a1 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeCloudAssistantStatusResponseUnmarshaller.java @@ -0,0 +1,53 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeCloudAssistantStatusResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeCloudAssistantStatusResponse.InstanceCloudAssistantStatus; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeCloudAssistantStatusResponseUnmarshaller { + + public static DescribeCloudAssistantStatusResponse unmarshall(DescribeCloudAssistantStatusResponse describeCloudAssistantStatusResponse, UnmarshallerContext _ctx) { + + describeCloudAssistantStatusResponse.setRequestId(_ctx.stringValue("DescribeCloudAssistantStatusResponse.RequestId")); + describeCloudAssistantStatusResponse.setPageSize(_ctx.longValue("DescribeCloudAssistantStatusResponse.PageSize")); + describeCloudAssistantStatusResponse.setPageNumber(_ctx.longValue("DescribeCloudAssistantStatusResponse.PageNumber")); + describeCloudAssistantStatusResponse.setTotalCount(_ctx.longValue("DescribeCloudAssistantStatusResponse.TotalCount")); + + List instanceCloudAssistantStatusSet = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeCloudAssistantStatusResponse.InstanceCloudAssistantStatusSet.Length"); i++) { + InstanceCloudAssistantStatus instanceCloudAssistantStatus = new InstanceCloudAssistantStatus(); + instanceCloudAssistantStatus.setCloudAssistantStatus(_ctx.stringValue("DescribeCloudAssistantStatusResponse.InstanceCloudAssistantStatusSet["+ i +"].CloudAssistantStatus")); + instanceCloudAssistantStatus.setLastInvokedTime(_ctx.stringValue("DescribeCloudAssistantStatusResponse.InstanceCloudAssistantStatusSet["+ i +"].LastInvokedTime")); + instanceCloudAssistantStatus.setCloudAssistantVersion(_ctx.stringValue("DescribeCloudAssistantStatusResponse.InstanceCloudAssistantStatusSet["+ i +"].CloudAssistantVersion")); + instanceCloudAssistantStatus.setActiveTaskCount(_ctx.longValue("DescribeCloudAssistantStatusResponse.InstanceCloudAssistantStatusSet["+ i +"].ActiveTaskCount")); + instanceCloudAssistantStatus.setInvocationCount(_ctx.longValue("DescribeCloudAssistantStatusResponse.InstanceCloudAssistantStatusSet["+ i +"].InvocationCount")); + instanceCloudAssistantStatus.setInstanceId(_ctx.stringValue("DescribeCloudAssistantStatusResponse.InstanceCloudAssistantStatusSet["+ i +"].InstanceId")); + instanceCloudAssistantStatus.setLastHeartbeatTime(_ctx.stringValue("DescribeCloudAssistantStatusResponse.InstanceCloudAssistantStatusSet["+ i +"].LastHeartbeatTime")); + instanceCloudAssistantStatus.setOSType(_ctx.stringValue("DescribeCloudAssistantStatusResponse.InstanceCloudAssistantStatusSet["+ i +"].OSType")); + instanceCloudAssistantStatus.setSupportSessionManager(_ctx.booleanValue("DescribeCloudAssistantStatusResponse.InstanceCloudAssistantStatusSet["+ i +"].SupportSessionManager")); + + instanceCloudAssistantStatusSet.add(instanceCloudAssistantStatus); + } + describeCloudAssistantStatusResponse.setInstanceCloudAssistantStatusSet(instanceCloudAssistantStatusSet); + + return describeCloudAssistantStatusResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeClustersResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeClustersResponseUnmarshaller.java new file mode 100644 index 0000000000..311cbd3fa0 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeClustersResponseUnmarshaller.java @@ -0,0 +1,42 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeClustersResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeClustersResponse.Cluster; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeClustersResponseUnmarshaller { + + public static DescribeClustersResponse unmarshall(DescribeClustersResponse describeClustersResponse, UnmarshallerContext _ctx) { + + describeClustersResponse.setRequestId(_ctx.stringValue("DescribeClustersResponse.RequestId")); + + List clusters = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeClustersResponse.Clusters.Length"); i++) { + Cluster cluster = new Cluster(); + cluster.setClusterId(_ctx.stringValue("DescribeClustersResponse.Clusters["+ i +"].ClusterId")); + + clusters.add(cluster); + } + describeClustersResponse.setClusters(clusters); + + return describeClustersResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeCommandsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeCommandsResponseUnmarshaller.java new file mode 100644 index 0000000000..6ea0a5b061 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeCommandsResponseUnmarshaller.java @@ -0,0 +1,94 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeCommandsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeCommandsResponse.Command; +import com.aliyuncs.ecs.model.v20140526.DescribeCommandsResponse.Command.ParameterDefinition; +import com.aliyuncs.ecs.model.v20140526.DescribeCommandsResponse.Command.Tag; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeCommandsResponseUnmarshaller { + + public static DescribeCommandsResponse unmarshall(DescribeCommandsResponse describeCommandsResponse, UnmarshallerContext _ctx) { + + describeCommandsResponse.setRequestId(_ctx.stringValue("DescribeCommandsResponse.RequestId")); + describeCommandsResponse.setPageSize(_ctx.longValue("DescribeCommandsResponse.PageSize")); + describeCommandsResponse.setPageNumber(_ctx.longValue("DescribeCommandsResponse.PageNumber")); + describeCommandsResponse.setTotalCount(_ctx.longValue("DescribeCommandsResponse.TotalCount")); + + List commands = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeCommandsResponse.Commands.Length"); i++) { + Command command = new Command(); + command.setCreationTime(_ctx.stringValue("DescribeCommandsResponse.Commands["+ i +"].CreationTime")); + command.setType(_ctx.stringValue("DescribeCommandsResponse.Commands["+ i +"].Type")); + command.setTimeout(_ctx.longValue("DescribeCommandsResponse.Commands["+ i +"].Timeout")); + command.setInvokeTimes(_ctx.integerValue("DescribeCommandsResponse.Commands["+ i +"].InvokeTimes")); + command.setCommandId(_ctx.stringValue("DescribeCommandsResponse.Commands["+ i +"].CommandId")); + command.setWorkingDir(_ctx.stringValue("DescribeCommandsResponse.Commands["+ i +"].WorkingDir")); + command.setDescription(_ctx.stringValue("DescribeCommandsResponse.Commands["+ i +"].Description")); + command.setVersion(_ctx.integerValue("DescribeCommandsResponse.Commands["+ i +"].Version")); + command.setProvider(_ctx.stringValue("DescribeCommandsResponse.Commands["+ i +"].Provider")); + command.setCommandContent(_ctx.stringValue("DescribeCommandsResponse.Commands["+ i +"].CommandContent")); + command.setCategory(_ctx.stringValue("DescribeCommandsResponse.Commands["+ i +"].Category")); + command.setLatest(_ctx.booleanValue("DescribeCommandsResponse.Commands["+ i +"].Latest")); + command.setName(_ctx.stringValue("DescribeCommandsResponse.Commands["+ i +"].Name")); + command.setEnableParameter(_ctx.booleanValue("DescribeCommandsResponse.Commands["+ i +"].EnableParameter")); + + List parameterNames = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeCommandsResponse.Commands["+ i +"].ParameterNames.Length"); j++) { + parameterNames.add(_ctx.stringValue("DescribeCommandsResponse.Commands["+ i +"].ParameterNames["+ j +"]")); + } + command.setParameterNames(parameterNames); + + List parameterDefinitions = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeCommandsResponse.Commands["+ i +"].ParameterDefinitions.Length"); j++) { + ParameterDefinition parameterDefinition = new ParameterDefinition(); + parameterDefinition.setRequired(_ctx.booleanValue("DescribeCommandsResponse.Commands["+ i +"].ParameterDefinitions["+ j +"].Required")); + parameterDefinition.setDescription(_ctx.stringValue("DescribeCommandsResponse.Commands["+ i +"].ParameterDefinitions["+ j +"].Description")); + parameterDefinition.setDefaultValue(_ctx.stringValue("DescribeCommandsResponse.Commands["+ i +"].ParameterDefinitions["+ j +"].DefaultValue")); + parameterDefinition.setParameterName(_ctx.stringValue("DescribeCommandsResponse.Commands["+ i +"].ParameterDefinitions["+ j +"].ParameterName")); + + List possibleValues = new ArrayList(); + for (int k = 0; k < _ctx.lengthValue("DescribeCommandsResponse.Commands["+ i +"].ParameterDefinitions["+ j +"].PossibleValues.Length"); k++) { + possibleValues.add(_ctx.stringValue("DescribeCommandsResponse.Commands["+ i +"].ParameterDefinitions["+ j +"].PossibleValues["+ k +"]")); + } + parameterDefinition.setPossibleValues(possibleValues); + + parameterDefinitions.add(parameterDefinition); + } + command.setParameterDefinitions(parameterDefinitions); + + List tags = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeCommandsResponse.Commands["+ i +"].Tags.Length"); j++) { + Tag tag = new Tag(); + tag.setTagKey(_ctx.stringValue("DescribeCommandsResponse.Commands["+ i +"].Tags["+ j +"].TagKey")); + tag.setTagValue(_ctx.stringValue("DescribeCommandsResponse.Commands["+ i +"].Tags["+ j +"].TagValue")); + + tags.add(tag); + } + command.setTags(tags); + + commands.add(command); + } + describeCommandsResponse.setCommands(commands); + + return describeCommandsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDedicatedHostAutoRenewResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDedicatedHostAutoRenewResponseUnmarshaller.java new file mode 100644 index 0000000000..a408fa7d27 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDedicatedHostAutoRenewResponseUnmarshaller.java @@ -0,0 +1,47 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeDedicatedHostAutoRenewResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeDedicatedHostAutoRenewResponse.DedicatedHostRenewAttribute; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeDedicatedHostAutoRenewResponseUnmarshaller { + + public static DescribeDedicatedHostAutoRenewResponse unmarshall(DescribeDedicatedHostAutoRenewResponse describeDedicatedHostAutoRenewResponse, UnmarshallerContext _ctx) { + + describeDedicatedHostAutoRenewResponse.setRequestId(_ctx.stringValue("DescribeDedicatedHostAutoRenewResponse.RequestId")); + + List dedicatedHostRenewAttributes = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeDedicatedHostAutoRenewResponse.DedicatedHostRenewAttributes.Length"); i++) { + DedicatedHostRenewAttribute dedicatedHostRenewAttribute = new DedicatedHostRenewAttribute(); + dedicatedHostRenewAttribute.setPeriodUnit(_ctx.stringValue("DescribeDedicatedHostAutoRenewResponse.DedicatedHostRenewAttributes["+ i +"].PeriodUnit")); + dedicatedHostRenewAttribute.setDuration(_ctx.integerValue("DescribeDedicatedHostAutoRenewResponse.DedicatedHostRenewAttributes["+ i +"].Duration")); + dedicatedHostRenewAttribute.setDedicatedHostId(_ctx.stringValue("DescribeDedicatedHostAutoRenewResponse.DedicatedHostRenewAttributes["+ i +"].DedicatedHostId")); + dedicatedHostRenewAttribute.setRenewalStatus(_ctx.stringValue("DescribeDedicatedHostAutoRenewResponse.DedicatedHostRenewAttributes["+ i +"].RenewalStatus")); + dedicatedHostRenewAttribute.setAutoRenewEnabled(_ctx.booleanValue("DescribeDedicatedHostAutoRenewResponse.DedicatedHostRenewAttributes["+ i +"].AutoRenewEnabled")); + dedicatedHostRenewAttribute.setAutoRenewWithEcs(_ctx.stringValue("DescribeDedicatedHostAutoRenewResponse.DedicatedHostRenewAttributes["+ i +"].AutoRenewWithEcs")); + + dedicatedHostRenewAttributes.add(dedicatedHostRenewAttribute); + } + describeDedicatedHostAutoRenewResponse.setDedicatedHostRenewAttributes(dedicatedHostRenewAttributes); + + return describeDedicatedHostAutoRenewResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeDedicatedHostClustersResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDedicatedHostClustersResponseUnmarshaller.java similarity index 90% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeDedicatedHostClustersResponseUnmarshaller.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDedicatedHostClustersResponseUnmarshaller.java index fc84e45e2e..7f0bbd9ee3 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeDedicatedHostClustersResponseUnmarshaller.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDedicatedHostClustersResponseUnmarshaller.java @@ -12,17 +12,17 @@ * limitations under the License. */ -package com.aliyuncs.ecs.transform.v20160314; +package com.aliyuncs.ecs.transform.v20140526; import java.util.ArrayList; import java.util.List; -import com.aliyuncs.ecs.model.v20160314.DescribeDedicatedHostClustersResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeDedicatedHostClustersResponse.DedicatedHostCluster; -import com.aliyuncs.ecs.model.v20160314.DescribeDedicatedHostClustersResponse.DedicatedHostCluster.DedicatedHostClusterCapacity; -import com.aliyuncs.ecs.model.v20160314.DescribeDedicatedHostClustersResponse.DedicatedHostCluster.DedicatedHostClusterCapacity.AvailableInstanceType; -import com.aliyuncs.ecs.model.v20160314.DescribeDedicatedHostClustersResponse.DedicatedHostCluster.DedicatedHostClusterCapacity.LocalStorageCapacity; -import com.aliyuncs.ecs.model.v20160314.DescribeDedicatedHostClustersResponse.DedicatedHostCluster.Tag; +import com.aliyuncs.ecs.model.v20140526.DescribeDedicatedHostClustersResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeDedicatedHostClustersResponse.DedicatedHostCluster; +import com.aliyuncs.ecs.model.v20140526.DescribeDedicatedHostClustersResponse.DedicatedHostCluster.DedicatedHostClusterCapacity; +import com.aliyuncs.ecs.model.v20140526.DescribeDedicatedHostClustersResponse.DedicatedHostCluster.DedicatedHostClusterCapacity.AvailableInstanceType; +import com.aliyuncs.ecs.model.v20140526.DescribeDedicatedHostClustersResponse.DedicatedHostCluster.DedicatedHostClusterCapacity.LocalStorageCapacity; +import com.aliyuncs.ecs.model.v20140526.DescribeDedicatedHostClustersResponse.DedicatedHostCluster.Tag; import com.aliyuncs.transform.UnmarshallerContext; @@ -39,7 +39,6 @@ public static DescribeDedicatedHostClustersResponse unmarshall(DescribeDedicated for (int i = 0; i < _ctx.lengthValue("DescribeDedicatedHostClustersResponse.DedicatedHostClusters.Length"); i++) { DedicatedHostCluster dedicatedHostCluster = new DedicatedHostCluster(); dedicatedHostCluster.setDescription(_ctx.stringValue("DescribeDedicatedHostClustersResponse.DedicatedHostClusters["+ i +"].Description")); - dedicatedHostCluster.setSchedulerOptionsManagedPrivateSpaceId(_ctx.stringValue("DescribeDedicatedHostClustersResponse.DedicatedHostClusters["+ i +"].SchedulerOptions.ManagedPrivateSpaceId")); dedicatedHostCluster.setDedicatedHostClusterId(_ctx.stringValue("DescribeDedicatedHostClustersResponse.DedicatedHostClusters["+ i +"].DedicatedHostClusterId")); dedicatedHostCluster.setResourceGroupId(_ctx.stringValue("DescribeDedicatedHostClustersResponse.DedicatedHostClusters["+ i +"].ResourceGroupId")); dedicatedHostCluster.setZoneId(_ctx.stringValue("DescribeDedicatedHostClustersResponse.DedicatedHostClusters["+ i +"].ZoneId")); diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDedicatedHostTypesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDedicatedHostTypesResponseUnmarshaller.java new file mode 100644 index 0000000000..f4ce473b4f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDedicatedHostTypesResponseUnmarshaller.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeDedicatedHostTypesResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeDedicatedHostTypesResponse.DedicatedHostType; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeDedicatedHostTypesResponseUnmarshaller { + + public static DescribeDedicatedHostTypesResponse unmarshall(DescribeDedicatedHostTypesResponse describeDedicatedHostTypesResponse, UnmarshallerContext _ctx) { + + describeDedicatedHostTypesResponse.setRequestId(_ctx.stringValue("DescribeDedicatedHostTypesResponse.RequestId")); + + List dedicatedHostTypes = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes.Length"); i++) { + DedicatedHostType dedicatedHostType = new DedicatedHostType(); + dedicatedHostType.setCores(_ctx.integerValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].Cores")); + dedicatedHostType.setLocalStorageCategory(_ctx.stringValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].LocalStorageCategory")); + dedicatedHostType.setGPUSpec(_ctx.stringValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].GPUSpec")); + dedicatedHostType.setTotalVcpus(_ctx.integerValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].TotalVcpus")); + dedicatedHostType.setCpuOverCommitRatioRange(_ctx.stringValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].CpuOverCommitRatioRange")); + dedicatedHostType.setPhysicalGpus(_ctx.integerValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].PhysicalGpus")); + dedicatedHostType.setMemorySize(_ctx.floatValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].MemorySize")); + dedicatedHostType.setSupportCpuOverCommitRatio(_ctx.booleanValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].SupportCpuOverCommitRatio")); + dedicatedHostType.setLocalStorageCapacity(_ctx.longValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].LocalStorageCapacity")); + dedicatedHostType.setDedicatedHostType(_ctx.stringValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].DedicatedHostType")); + dedicatedHostType.setLocalStorageAmount(_ctx.integerValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].LocalStorageAmount")); + dedicatedHostType.setTotalVgpus(_ctx.integerValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].TotalVgpus")); + dedicatedHostType.setSockets(_ctx.integerValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].Sockets")); + + List supportedInstanceTypeFamilies = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].SupportedInstanceTypeFamilies.Length"); j++) { + supportedInstanceTypeFamilies.add(_ctx.stringValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].SupportedInstanceTypeFamilies["+ j +"]")); + } + dedicatedHostType.setSupportedInstanceTypeFamilies(supportedInstanceTypeFamilies); + + List supportedInstanceTypesList = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].SupportedInstanceTypesList.Length"); j++) { + supportedInstanceTypesList.add(_ctx.stringValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].SupportedInstanceTypesList["+ j +"]")); + } + dedicatedHostType.setSupportedInstanceTypesList(supportedInstanceTypesList); + + dedicatedHostTypes.add(dedicatedHostType); + } + describeDedicatedHostTypesResponse.setDedicatedHostTypes(dedicatedHostTypes); + + return describeDedicatedHostTypesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDedicatedHostsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDedicatedHostsResponseUnmarshaller.java new file mode 100644 index 0000000000..c211c4ea18 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDedicatedHostsResponseUnmarshaller.java @@ -0,0 +1,158 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeDedicatedHostsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeDedicatedHostsResponse.DedicatedHost; +import com.aliyuncs.ecs.model.v20140526.DescribeDedicatedHostsResponse.DedicatedHost.Capacity; +import com.aliyuncs.ecs.model.v20140526.DescribeDedicatedHostsResponse.DedicatedHost.Capacity.SocketCapacity; +import com.aliyuncs.ecs.model.v20140526.DescribeDedicatedHostsResponse.DedicatedHost.HostDetailInfo; +import com.aliyuncs.ecs.model.v20140526.DescribeDedicatedHostsResponse.DedicatedHost.Instance; +import com.aliyuncs.ecs.model.v20140526.DescribeDedicatedHostsResponse.DedicatedHost.NetworkAttributes; +import com.aliyuncs.ecs.model.v20140526.DescribeDedicatedHostsResponse.DedicatedHost.OperationLock; +import com.aliyuncs.ecs.model.v20140526.DescribeDedicatedHostsResponse.DedicatedHost.Tag; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeDedicatedHostsResponseUnmarshaller { + + public static DescribeDedicatedHostsResponse unmarshall(DescribeDedicatedHostsResponse describeDedicatedHostsResponse, UnmarshallerContext _ctx) { + + describeDedicatedHostsResponse.setRequestId(_ctx.stringValue("DescribeDedicatedHostsResponse.RequestId")); + describeDedicatedHostsResponse.setPageSize(_ctx.integerValue("DescribeDedicatedHostsResponse.PageSize")); + describeDedicatedHostsResponse.setPageNumber(_ctx.integerValue("DescribeDedicatedHostsResponse.PageNumber")); + describeDedicatedHostsResponse.setTotalCount(_ctx.integerValue("DescribeDedicatedHostsResponse.TotalCount")); + + List dedicatedHosts = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeDedicatedHostsResponse.DedicatedHosts.Length"); i++) { + DedicatedHost dedicatedHost = new DedicatedHost(); + dedicatedHost.setCreationTime(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].CreationTime")); + dedicatedHost.setSchedulerOptionsManagedPrivateSpaceId(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].SchedulerOptions.ManagedPrivateSpaceId")); + dedicatedHost.setStatus(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Status")); + dedicatedHost.setCores(_ctx.integerValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Cores")); + dedicatedHost.setAutoPlacement(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].AutoPlacement")); + dedicatedHost.setGPUSpec(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].GPUSpec")); + dedicatedHost.setAutoReleaseTime(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].AutoReleaseTime")); + dedicatedHost.setChargeType(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].ChargeType")); + dedicatedHost.setCpuOverCommitRatio(_ctx.floatValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].CpuOverCommitRatio")); + dedicatedHost.setActionOnMaintenance(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].ActionOnMaintenance")); + dedicatedHost.setSaleCycle(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].SaleCycle")); + dedicatedHost.setPhysicalGpus(_ctx.integerValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].PhysicalGpus")); + dedicatedHost.setRegionId(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].RegionId")); + dedicatedHost.setDedicatedHostName(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].DedicatedHostName")); + dedicatedHost.setDescription(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Description")); + dedicatedHost.setDedicatedHostClusterId(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].DedicatedHostClusterId")); + dedicatedHost.setExpiredTime(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].ExpiredTime")); + dedicatedHost.setDedicatedHostType(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].DedicatedHostType")); + dedicatedHost.setResourceGroupId(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].ResourceGroupId")); + dedicatedHost.setZoneId(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].ZoneId")); + dedicatedHost.setDedicatedHostId(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].DedicatedHostId")); + dedicatedHost.setSockets(_ctx.integerValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Sockets")); + dedicatedHost.setMachineId(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].MachineId")); + dedicatedHost.setDedicatedHostOwnerId(_ctx.longValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].DedicatedHostOwnerId")); + + List supportedInstanceTypeFamilies = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].SupportedInstanceTypeFamilies.Length"); j++) { + supportedInstanceTypeFamilies.add(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].SupportedInstanceTypeFamilies["+ j +"]")); + } + dedicatedHost.setSupportedInstanceTypeFamilies(supportedInstanceTypeFamilies); + + List supportedCustomInstanceTypeFamilies = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].SupportedCustomInstanceTypeFamilies.Length"); j++) { + supportedCustomInstanceTypeFamilies.add(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].SupportedCustomInstanceTypeFamilies["+ j +"]")); + } + dedicatedHost.setSupportedCustomInstanceTypeFamilies(supportedCustomInstanceTypeFamilies); + + List supportedInstanceTypesList = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].SupportedInstanceTypesList.Length"); j++) { + supportedInstanceTypesList.add(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].SupportedInstanceTypesList["+ j +"]")); + } + dedicatedHost.setSupportedInstanceTypesList(supportedInstanceTypesList); + + Capacity capacity = new Capacity(); + capacity.setAvailableMemory(_ctx.floatValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Capacity.AvailableMemory")); + capacity.setLocalStorageCategory(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Capacity.LocalStorageCategory")); + capacity.setTotalMemory(_ctx.floatValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Capacity.TotalMemory")); + capacity.setTotalLocalStorage(_ctx.integerValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Capacity.TotalLocalStorage")); + capacity.setTotalVcpus(_ctx.integerValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Capacity.TotalVcpus")); + capacity.setTotalVgpus(_ctx.integerValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Capacity.TotalVgpus")); + capacity.setAvailableLocalStorage(_ctx.integerValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Capacity.AvailableLocalStorage")); + capacity.setAvailableVcpus(_ctx.integerValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Capacity.AvailableVcpus")); + capacity.setAvailableVgpus(_ctx.integerValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Capacity.AvailableVgpus")); + + List socketCapacities = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Capacity.SocketCapacities.Length"); j++) { + SocketCapacity socketCapacity = new SocketCapacity(); + socketCapacity.setSocketId(_ctx.integerValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Capacity.SocketCapacities["+ j +"].SocketId")); + socketCapacity.setAvailableMemory(_ctx.floatValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Capacity.SocketCapacities["+ j +"].AvailableMemory")); + socketCapacity.setTotalMemory(_ctx.floatValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Capacity.SocketCapacities["+ j +"].TotalMemory")); + socketCapacity.setAvailableVcpu(_ctx.integerValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Capacity.SocketCapacities["+ j +"].AvailableVcpu")); + socketCapacity.setTotalVcpu(_ctx.integerValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Capacity.SocketCapacities["+ j +"].TotalVcpu")); + + socketCapacities.add(socketCapacity); + } + capacity.setSocketCapacities(socketCapacities); + dedicatedHost.setCapacity(capacity); + + NetworkAttributes networkAttributes = new NetworkAttributes(); + networkAttributes.setUdpTimeout(_ctx.integerValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].NetworkAttributes.UdpTimeout")); + networkAttributes.setSlbUdpTimeout(_ctx.integerValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].NetworkAttributes.SlbUdpTimeout")); + dedicatedHost.setNetworkAttributes(networkAttributes); + + HostDetailInfo hostDetailInfo = new HostDetailInfo(); + hostDetailInfo.setSerialNumber(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].HostDetailInfo.SerialNumber")); + dedicatedHost.setHostDetailInfo(hostDetailInfo); + + List instances = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Instances.Length"); j++) { + Instance instance = new Instance(); + instance.setInstanceType(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Instances["+ j +"].InstanceType")); + instance.setInstanceId(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Instances["+ j +"].InstanceId")); + instance.setSocketId(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Instances["+ j +"].SocketId")); + instance.setInstanceOwnerId(_ctx.longValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Instances["+ j +"].InstanceOwnerId")); + + instances.add(instance); + } + dedicatedHost.setInstances(instances); + + List operationLocks = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].OperationLocks.Length"); j++) { + OperationLock operationLock = new OperationLock(); + operationLock.setLockReason(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].OperationLocks["+ j +"].LockReason")); + + operationLocks.add(operationLock); + } + dedicatedHost.setOperationLocks(operationLocks); + + List tags = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Tags.Length"); j++) { + Tag tag = new Tag(); + tag.setTagValue(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Tags["+ j +"].TagValue")); + tag.setTagKey(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Tags["+ j +"].TagKey")); + + tags.add(tag); + } + dedicatedHost.setTags(tags); + + dedicatedHosts.add(dedicatedHost); + } + describeDedicatedHostsResponse.setDedicatedHosts(dedicatedHosts); + + return describeDedicatedHostsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDemandsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDemandsResponseUnmarshaller.java new file mode 100644 index 0000000000..0b2b80b8b0 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDemandsResponseUnmarshaller.java @@ -0,0 +1,77 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeDemandsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeDemandsResponse.Demand; +import com.aliyuncs.ecs.model.v20140526.DescribeDemandsResponse.Demand.SupplyInfo; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeDemandsResponseUnmarshaller { + + public static DescribeDemandsResponse unmarshall(DescribeDemandsResponse describeDemandsResponse, UnmarshallerContext _ctx) { + + describeDemandsResponse.setRequestId(_ctx.stringValue("DescribeDemandsResponse.RequestId")); + describeDemandsResponse.setPageSize(_ctx.integerValue("DescribeDemandsResponse.PageSize")); + describeDemandsResponse.setPageNumber(_ctx.integerValue("DescribeDemandsResponse.PageNumber")); + describeDemandsResponse.setTotalCount(_ctx.integerValue("DescribeDemandsResponse.TotalCount")); + describeDemandsResponse.setRegionId(_ctx.stringValue("DescribeDemandsResponse.RegionId")); + + List demands = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeDemandsResponse.Demands.Length"); i++) { + Demand demand = new Demand(); + demand.setComment(_ctx.stringValue("DescribeDemandsResponse.Demands["+ i +"].Comment")); + demand.setDemandDescription(_ctx.stringValue("DescribeDemandsResponse.Demands["+ i +"].DemandDescription")); + demand.setDemandId(_ctx.stringValue("DescribeDemandsResponse.Demands["+ i +"].DemandId")); + demand.setDemandTime(_ctx.stringValue("DescribeDemandsResponse.Demands["+ i +"].DemandTime")); + demand.setInstanceType(_ctx.stringValue("DescribeDemandsResponse.Demands["+ i +"].InstanceType")); + demand.setDemandName(_ctx.stringValue("DescribeDemandsResponse.Demands["+ i +"].DemandName")); + demand.setPeriod(_ctx.integerValue("DescribeDemandsResponse.Demands["+ i +"].Period")); + demand.setInstanceChargeType(_ctx.stringValue("DescribeDemandsResponse.Demands["+ i +"].InstanceChargeType")); + demand.setAvailableAmount(_ctx.integerValue("DescribeDemandsResponse.Demands["+ i +"].AvailableAmount")); + demand.setEndTime(_ctx.stringValue("DescribeDemandsResponse.Demands["+ i +"].EndTime")); + demand.setStartTime(_ctx.stringValue("DescribeDemandsResponse.Demands["+ i +"].StartTime")); + demand.setPeriodUnit(_ctx.stringValue("DescribeDemandsResponse.Demands["+ i +"].PeriodUnit")); + demand.setZoneId(_ctx.stringValue("DescribeDemandsResponse.Demands["+ i +"].ZoneId")); + demand.setUsedAmount(_ctx.integerValue("DescribeDemandsResponse.Demands["+ i +"].UsedAmount")); + demand.setTotalAmount(_ctx.integerValue("DescribeDemandsResponse.Demands["+ i +"].TotalAmount")); + demand.setDeliveringAmount(_ctx.integerValue("DescribeDemandsResponse.Demands["+ i +"].DeliveringAmount")); + demand.setInstanceTypeFamily(_ctx.stringValue("DescribeDemandsResponse.Demands["+ i +"].InstanceTypeFamily")); + demand.setDemandStatus(_ctx.stringValue("DescribeDemandsResponse.Demands["+ i +"].DemandStatus")); + + List supplyInfos = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeDemandsResponse.Demands["+ i +"].SupplyInfos.Length"); j++) { + SupplyInfo supplyInfo = new SupplyInfo(); + supplyInfo.setAmount(_ctx.integerValue("DescribeDemandsResponse.Demands["+ i +"].SupplyInfos["+ j +"].Amount")); + supplyInfo.setSupplyStatus(_ctx.stringValue("DescribeDemandsResponse.Demands["+ i +"].SupplyInfos["+ j +"].SupplyStatus")); + supplyInfo.setSupplyStartTime(_ctx.stringValue("DescribeDemandsResponse.Demands["+ i +"].SupplyInfos["+ j +"].SupplyStartTime")); + supplyInfo.setSupplyEndTime(_ctx.stringValue("DescribeDemandsResponse.Demands["+ i +"].SupplyInfos["+ j +"].SupplyEndTime")); + supplyInfo.setPrivatePoolId(_ctx.stringValue("DescribeDemandsResponse.Demands["+ i +"].SupplyInfos["+ j +"].PrivatePoolId")); + + supplyInfos.add(supplyInfo); + } + demand.setSupplyInfos(supplyInfos); + + demands.add(demand); + } + describeDemandsResponse.setDemands(demands); + + return describeDemandsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDeploymentSetSupportedInstanceTypeFamilyResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDeploymentSetSupportedInstanceTypeFamilyResponseUnmarshaller.java new file mode 100644 index 0000000000..1b710a2a13 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDeploymentSetSupportedInstanceTypeFamilyResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DescribeDeploymentSetSupportedInstanceTypeFamilyResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeDeploymentSetSupportedInstanceTypeFamilyResponseUnmarshaller { + + public static DescribeDeploymentSetSupportedInstanceTypeFamilyResponse unmarshall(DescribeDeploymentSetSupportedInstanceTypeFamilyResponse describeDeploymentSetSupportedInstanceTypeFamilyResponse, UnmarshallerContext _ctx) { + + describeDeploymentSetSupportedInstanceTypeFamilyResponse.setRequestId(_ctx.stringValue("DescribeDeploymentSetSupportedInstanceTypeFamilyResponse.RequestId")); + describeDeploymentSetSupportedInstanceTypeFamilyResponse.setInstanceTypeFamilies(_ctx.stringValue("DescribeDeploymentSetSupportedInstanceTypeFamilyResponse.InstanceTypeFamilies")); + + return describeDeploymentSetSupportedInstanceTypeFamilyResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDeploymentSetsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDeploymentSetsResponseUnmarshaller.java new file mode 100644 index 0000000000..4b530dfc83 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDeploymentSetsResponseUnmarshaller.java @@ -0,0 +1,73 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeDeploymentSetsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeDeploymentSetsResponse.DeploymentSet; +import com.aliyuncs.ecs.model.v20140526.DescribeDeploymentSetsResponse.DeploymentSet.Capacity; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeDeploymentSetsResponseUnmarshaller { + + public static DescribeDeploymentSetsResponse unmarshall(DescribeDeploymentSetsResponse describeDeploymentSetsResponse, UnmarshallerContext _ctx) { + + describeDeploymentSetsResponse.setRequestId(_ctx.stringValue("DescribeDeploymentSetsResponse.RequestId")); + describeDeploymentSetsResponse.setPageSize(_ctx.integerValue("DescribeDeploymentSetsResponse.PageSize")); + describeDeploymentSetsResponse.setPageNumber(_ctx.integerValue("DescribeDeploymentSetsResponse.PageNumber")); + describeDeploymentSetsResponse.setTotalCount(_ctx.integerValue("DescribeDeploymentSetsResponse.TotalCount")); + describeDeploymentSetsResponse.setRegionId(_ctx.stringValue("DescribeDeploymentSetsResponse.RegionId")); + + List deploymentSets = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeDeploymentSetsResponse.DeploymentSets.Length"); i++) { + DeploymentSet deploymentSet = new DeploymentSet(); + deploymentSet.setCreationTime(_ctx.stringValue("DescribeDeploymentSetsResponse.DeploymentSets["+ i +"].CreationTime")); + deploymentSet.setStrategy(_ctx.stringValue("DescribeDeploymentSetsResponse.DeploymentSets["+ i +"].Strategy")); + deploymentSet.setDeploymentSetId(_ctx.stringValue("DescribeDeploymentSetsResponse.DeploymentSets["+ i +"].DeploymentSetId")); + deploymentSet.setDeploymentStrategy(_ctx.stringValue("DescribeDeploymentSetsResponse.DeploymentSets["+ i +"].DeploymentStrategy")); + deploymentSet.setDeploymentSetDescription(_ctx.stringValue("DescribeDeploymentSetsResponse.DeploymentSets["+ i +"].DeploymentSetDescription")); + deploymentSet.setDomain(_ctx.stringValue("DescribeDeploymentSetsResponse.DeploymentSets["+ i +"].Domain")); + deploymentSet.setGroupCount(_ctx.integerValue("DescribeDeploymentSetsResponse.DeploymentSets["+ i +"].GroupCount")); + deploymentSet.setGranularity(_ctx.stringValue("DescribeDeploymentSetsResponse.DeploymentSets["+ i +"].Granularity")); + deploymentSet.setDeploymentSetName(_ctx.stringValue("DescribeDeploymentSetsResponse.DeploymentSets["+ i +"].DeploymentSetName")); + deploymentSet.setInstanceAmount(_ctx.integerValue("DescribeDeploymentSetsResponse.DeploymentSets["+ i +"].InstanceAmount")); + + List instanceIds = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeDeploymentSetsResponse.DeploymentSets["+ i +"].InstanceIds.Length"); j++) { + instanceIds.add(_ctx.stringValue("DescribeDeploymentSetsResponse.DeploymentSets["+ i +"].InstanceIds["+ j +"]")); + } + deploymentSet.setInstanceIds(instanceIds); + + List capacities = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeDeploymentSetsResponse.DeploymentSets["+ i +"].Capacities.Length"); j++) { + Capacity capacity = new Capacity(); + capacity.setZoneId(_ctx.stringValue("DescribeDeploymentSetsResponse.DeploymentSets["+ i +"].Capacities["+ j +"].ZoneId")); + capacity.setUsedAmount(_ctx.integerValue("DescribeDeploymentSetsResponse.DeploymentSets["+ i +"].Capacities["+ j +"].UsedAmount")); + capacity.setAvailableAmount(_ctx.integerValue("DescribeDeploymentSetsResponse.DeploymentSets["+ i +"].Capacities["+ j +"].AvailableAmount")); + + capacities.add(capacity); + } + deploymentSet.setCapacities(capacities); + + deploymentSets.add(deploymentSet); + } + describeDeploymentSetsResponse.setDeploymentSets(deploymentSets); + + return describeDeploymentSetsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDiagnosticMetricSetsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDiagnosticMetricSetsResponseUnmarshaller.java new file mode 100644 index 0000000000..f260e98180 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDiagnosticMetricSetsResponseUnmarshaller.java @@ -0,0 +1,53 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeDiagnosticMetricSetsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeDiagnosticMetricSetsResponse.MetricSet; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeDiagnosticMetricSetsResponseUnmarshaller { + + public static DescribeDiagnosticMetricSetsResponse unmarshall(DescribeDiagnosticMetricSetsResponse describeDiagnosticMetricSetsResponse, UnmarshallerContext _ctx) { + + describeDiagnosticMetricSetsResponse.setRequestId(_ctx.stringValue("DescribeDiagnosticMetricSetsResponse.RequestId")); + describeDiagnosticMetricSetsResponse.setNextToken(_ctx.stringValue("DescribeDiagnosticMetricSetsResponse.NextToken")); + + List metricSets = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeDiagnosticMetricSetsResponse.MetricSets.Length"); i++) { + MetricSet metricSet = new MetricSet(); + metricSet.setMetricSetId(_ctx.stringValue("DescribeDiagnosticMetricSetsResponse.MetricSets["+ i +"].MetricSetId")); + metricSet.setMetricSetName(_ctx.stringValue("DescribeDiagnosticMetricSetsResponse.MetricSets["+ i +"].MetricSetName")); + metricSet.setDescription(_ctx.stringValue("DescribeDiagnosticMetricSetsResponse.MetricSets["+ i +"].Description")); + metricSet.setType(_ctx.stringValue("DescribeDiagnosticMetricSetsResponse.MetricSets["+ i +"].Type")); + metricSet.setResourceType(_ctx.stringValue("DescribeDiagnosticMetricSetsResponse.MetricSets["+ i +"].ResourceType")); + + List metricIds = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeDiagnosticMetricSetsResponse.MetricSets["+ i +"].MetricIds.Length"); j++) { + metricIds.add(_ctx.stringValue("DescribeDiagnosticMetricSetsResponse.MetricSets["+ i +"].MetricIds["+ j +"]")); + } + metricSet.setMetricIds(metricIds); + + metricSets.add(metricSet); + } + describeDiagnosticMetricSetsResponse.setMetricSets(metricSets); + + return describeDiagnosticMetricSetsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDiagnosticMetricsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDiagnosticMetricsResponseUnmarshaller.java new file mode 100644 index 0000000000..8295f0588b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDiagnosticMetricsResponseUnmarshaller.java @@ -0,0 +1,49 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeDiagnosticMetricsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeDiagnosticMetricsResponse.Metric; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeDiagnosticMetricsResponseUnmarshaller { + + public static DescribeDiagnosticMetricsResponse unmarshall(DescribeDiagnosticMetricsResponse describeDiagnosticMetricsResponse, UnmarshallerContext _ctx) { + + describeDiagnosticMetricsResponse.setRequestId(_ctx.stringValue("DescribeDiagnosticMetricsResponse.RequestId")); + describeDiagnosticMetricsResponse.setNextToken(_ctx.stringValue("DescribeDiagnosticMetricsResponse.NextToken")); + + List metrics = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeDiagnosticMetricsResponse.Metrics.Length"); i++) { + Metric metric = new Metric(); + metric.setMetricId(_ctx.stringValue("DescribeDiagnosticMetricsResponse.Metrics["+ i +"].MetricId")); + metric.setMetricName(_ctx.stringValue("DescribeDiagnosticMetricsResponse.Metrics["+ i +"].MetricName")); + metric.setMetricCategory(_ctx.stringValue("DescribeDiagnosticMetricsResponse.Metrics["+ i +"].MetricCategory")); + metric.setDescription(_ctx.stringValue("DescribeDiagnosticMetricsResponse.Metrics["+ i +"].Description")); + metric.setResourceType(_ctx.stringValue("DescribeDiagnosticMetricsResponse.Metrics["+ i +"].ResourceType")); + metric.setGuestMetric(_ctx.booleanValue("DescribeDiagnosticMetricsResponse.Metrics["+ i +"].GuestMetric")); + metric.setSupportedOperatingSystem(_ctx.stringValue("DescribeDiagnosticMetricsResponse.Metrics["+ i +"].SupportedOperatingSystem")); + + metrics.add(metric); + } + describeDiagnosticMetricsResponse.setMetrics(metrics); + + return describeDiagnosticMetricsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDiagnosticReportAttributesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDiagnosticReportAttributesResponseUnmarshaller.java new file mode 100644 index 0000000000..698380bb6e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDiagnosticReportAttributesResponseUnmarshaller.java @@ -0,0 +1,69 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeDiagnosticReportAttributesResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeDiagnosticReportAttributesResponse.MetricResult; +import com.aliyuncs.ecs.model.v20140526.DescribeDiagnosticReportAttributesResponse.MetricResult.Issue; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeDiagnosticReportAttributesResponseUnmarshaller { + + public static DescribeDiagnosticReportAttributesResponse unmarshall(DescribeDiagnosticReportAttributesResponse describeDiagnosticReportAttributesResponse, UnmarshallerContext _ctx) { + + describeDiagnosticReportAttributesResponse.setRequestId(_ctx.stringValue("DescribeDiagnosticReportAttributesResponse.RequestId")); + describeDiagnosticReportAttributesResponse.setResourceId(_ctx.stringValue("DescribeDiagnosticReportAttributesResponse.ResourceId")); + describeDiagnosticReportAttributesResponse.setResourceType(_ctx.stringValue("DescribeDiagnosticReportAttributesResponse.ResourceType")); + describeDiagnosticReportAttributesResponse.setReportId(_ctx.stringValue("DescribeDiagnosticReportAttributesResponse.ReportId")); + describeDiagnosticReportAttributesResponse.setStatus(_ctx.stringValue("DescribeDiagnosticReportAttributesResponse.Status")); + describeDiagnosticReportAttributesResponse.setCreationTime(_ctx.stringValue("DescribeDiagnosticReportAttributesResponse.CreationTime")); + describeDiagnosticReportAttributesResponse.setFinishedTime(_ctx.stringValue("DescribeDiagnosticReportAttributesResponse.FinishedTime")); + describeDiagnosticReportAttributesResponse.setStartTime(_ctx.stringValue("DescribeDiagnosticReportAttributesResponse.StartTime")); + describeDiagnosticReportAttributesResponse.setEndTime(_ctx.stringValue("DescribeDiagnosticReportAttributesResponse.EndTime")); + describeDiagnosticReportAttributesResponse.setSeverity(_ctx.stringValue("DescribeDiagnosticReportAttributesResponse.Severity")); + describeDiagnosticReportAttributesResponse.setMetricSetId(_ctx.stringValue("DescribeDiagnosticReportAttributesResponse.MetricSetId")); + describeDiagnosticReportAttributesResponse.setAttributes(_ctx.stringValue("DescribeDiagnosticReportAttributesResponse.Attributes")); + + List metricResults = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeDiagnosticReportAttributesResponse.MetricResults.Length"); i++) { + MetricResult metricResult = new MetricResult(); + metricResult.setMetricId(_ctx.stringValue("DescribeDiagnosticReportAttributesResponse.MetricResults["+ i +"].MetricId")); + metricResult.setMetricCategory(_ctx.stringValue("DescribeDiagnosticReportAttributesResponse.MetricResults["+ i +"].MetricCategory")); + metricResult.setSeverity(_ctx.stringValue("DescribeDiagnosticReportAttributesResponse.MetricResults["+ i +"].Severity")); + metricResult.setStatus(_ctx.stringValue("DescribeDiagnosticReportAttributesResponse.MetricResults["+ i +"].Status")); + + List issues = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeDiagnosticReportAttributesResponse.MetricResults["+ i +"].Issues.Length"); j++) { + Issue issue = new Issue(); + issue.setIssueId(_ctx.stringValue("DescribeDiagnosticReportAttributesResponse.MetricResults["+ i +"].Issues["+ j +"].IssueId")); + issue.setSeverity(_ctx.stringValue("DescribeDiagnosticReportAttributesResponse.MetricResults["+ i +"].Issues["+ j +"].Severity")); + issue.setAdditional(_ctx.stringValue("DescribeDiagnosticReportAttributesResponse.MetricResults["+ i +"].Issues["+ j +"].Additional")); + issue.setOccurrenceTime(_ctx.stringValue("DescribeDiagnosticReportAttributesResponse.MetricResults["+ i +"].Issues["+ j +"].OccurrenceTime")); + + issues.add(issue); + } + metricResult.setIssues(issues); + + metricResults.add(metricResult); + } + describeDiagnosticReportAttributesResponse.setMetricResults(metricResults); + + return describeDiagnosticReportAttributesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDiagnosticReportsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDiagnosticReportsResponseUnmarshaller.java new file mode 100644 index 0000000000..24d7713130 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDiagnosticReportsResponseUnmarshaller.java @@ -0,0 +1,65 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeDiagnosticReportsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeDiagnosticReportsResponse.Report; +import com.aliyuncs.ecs.model.v20140526.DescribeDiagnosticReportsResponse.Report.Issue; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeDiagnosticReportsResponseUnmarshaller { + + public static DescribeDiagnosticReportsResponse unmarshall(DescribeDiagnosticReportsResponse describeDiagnosticReportsResponse, UnmarshallerContext _ctx) { + + describeDiagnosticReportsResponse.setRequestId(_ctx.stringValue("DescribeDiagnosticReportsResponse.RequestId")); + describeDiagnosticReportsResponse.setNextToken(_ctx.stringValue("DescribeDiagnosticReportsResponse.NextToken")); + + List reports = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeDiagnosticReportsResponse.Reports.Length"); i++) { + Report report = new Report(); + report.setResourceId(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].ResourceId")); + report.setResourceType(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].ResourceType")); + report.setMetricSetId(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].MetricSetId")); + report.setStartTime(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].StartTime")); + report.setEndTime(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].EndTime")); + report.setReportId(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].ReportId")); + report.setStatus(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].Status")); + report.setCreationTime(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].CreationTime")); + report.setFinishedTime(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].FinishedTime")); + report.setSeverity(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].Severity")); + + List issues = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].Issues.Length"); j++) { + Issue issue = new Issue(); + issue.setMetricId(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].Issues["+ j +"].MetricId")); + issue.setMetricCategory(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].Issues["+ j +"].MetricCategory")); + issue.setIssueId(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].Issues["+ j +"].IssueId")); + issue.setSeverity(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].Issues["+ j +"].Severity")); + + issues.add(issue); + } + report.setIssues(issues); + + reports.add(report); + } + describeDiagnosticReportsResponse.setReports(reports); + + return describeDiagnosticReportsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDiskMonitorDataResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDiskMonitorDataResponseUnmarshaller.java new file mode 100644 index 0000000000..4c74506abc --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDiskMonitorDataResponseUnmarshaller.java @@ -0,0 +1,52 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeDiskMonitorDataResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeDiskMonitorDataResponse.DiskMonitorData; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeDiskMonitorDataResponseUnmarshaller { + + public static DescribeDiskMonitorDataResponse unmarshall(DescribeDiskMonitorDataResponse describeDiskMonitorDataResponse, UnmarshallerContext _ctx) { + + describeDiskMonitorDataResponse.setRequestId(_ctx.stringValue("DescribeDiskMonitorDataResponse.RequestId")); + describeDiskMonitorDataResponse.setTotalCount(_ctx.integerValue("DescribeDiskMonitorDataResponse.TotalCount")); + + List monitorData = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeDiskMonitorDataResponse.MonitorData.Length"); i++) { + DiskMonitorData diskMonitorData = new DiskMonitorData(); + diskMonitorData.setBPSRead(_ctx.integerValue("DescribeDiskMonitorDataResponse.MonitorData["+ i +"].BPSRead")); + diskMonitorData.setIOPSRead(_ctx.integerValue("DescribeDiskMonitorDataResponse.MonitorData["+ i +"].IOPSRead")); + diskMonitorData.setLatencyRead(_ctx.integerValue("DescribeDiskMonitorDataResponse.MonitorData["+ i +"].LatencyRead")); + diskMonitorData.setBPSTotal(_ctx.integerValue("DescribeDiskMonitorDataResponse.MonitorData["+ i +"].BPSTotal")); + diskMonitorData.setIOPSTotal(_ctx.integerValue("DescribeDiskMonitorDataResponse.MonitorData["+ i +"].IOPSTotal")); + diskMonitorData.setTimeStamp(_ctx.stringValue("DescribeDiskMonitorDataResponse.MonitorData["+ i +"].TimeStamp")); + diskMonitorData.setLatencyWrite(_ctx.integerValue("DescribeDiskMonitorDataResponse.MonitorData["+ i +"].LatencyWrite")); + diskMonitorData.setIOPSWrite(_ctx.integerValue("DescribeDiskMonitorDataResponse.MonitorData["+ i +"].IOPSWrite")); + diskMonitorData.setDiskId(_ctx.stringValue("DescribeDiskMonitorDataResponse.MonitorData["+ i +"].DiskId")); + diskMonitorData.setBPSWrite(_ctx.integerValue("DescribeDiskMonitorDataResponse.MonitorData["+ i +"].BPSWrite")); + + monitorData.add(diskMonitorData); + } + describeDiskMonitorDataResponse.setMonitorData(monitorData); + + return describeDiskMonitorDataResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDisksFullStatusResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDisksFullStatusResponseUnmarshaller.java new file mode 100644 index 0000000000..fd48e6f363 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDisksFullStatusResponseUnmarshaller.java @@ -0,0 +1,78 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeDisksFullStatusResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeDisksFullStatusResponse.DiskFullStatusType; +import com.aliyuncs.ecs.model.v20140526.DescribeDisksFullStatusResponse.DiskFullStatusType.DiskEventType; +import com.aliyuncs.ecs.model.v20140526.DescribeDisksFullStatusResponse.DiskFullStatusType.DiskEventType.EventType; +import com.aliyuncs.ecs.model.v20140526.DescribeDisksFullStatusResponse.DiskFullStatusType.HealthStatus; +import com.aliyuncs.ecs.model.v20140526.DescribeDisksFullStatusResponse.DiskFullStatusType.Status; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeDisksFullStatusResponseUnmarshaller { + + public static DescribeDisksFullStatusResponse unmarshall(DescribeDisksFullStatusResponse describeDisksFullStatusResponse, UnmarshallerContext _ctx) { + + describeDisksFullStatusResponse.setRequestId(_ctx.stringValue("DescribeDisksFullStatusResponse.RequestId")); + describeDisksFullStatusResponse.setPageSize(_ctx.integerValue("DescribeDisksFullStatusResponse.PageSize")); + describeDisksFullStatusResponse.setPageNumber(_ctx.integerValue("DescribeDisksFullStatusResponse.PageNumber")); + describeDisksFullStatusResponse.setTotalCount(_ctx.integerValue("DescribeDisksFullStatusResponse.TotalCount")); + + List diskFullStatusSet = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeDisksFullStatusResponse.DiskFullStatusSet.Length"); i++) { + DiskFullStatusType diskFullStatusType = new DiskFullStatusType(); + diskFullStatusType.setDiskId(_ctx.stringValue("DescribeDisksFullStatusResponse.DiskFullStatusSet["+ i +"].DiskId")); + diskFullStatusType.setInstanceId(_ctx.stringValue("DescribeDisksFullStatusResponse.DiskFullStatusSet["+ i +"].InstanceId")); + diskFullStatusType.setDevice(_ctx.stringValue("DescribeDisksFullStatusResponse.DiskFullStatusSet["+ i +"].Device")); + + Status status = new Status(); + status.setName(_ctx.stringValue("DescribeDisksFullStatusResponse.DiskFullStatusSet["+ i +"].Status.Name")); + status.setCode(_ctx.integerValue("DescribeDisksFullStatusResponse.DiskFullStatusSet["+ i +"].Status.Code")); + diskFullStatusType.setStatus(status); + + HealthStatus healthStatus = new HealthStatus(); + healthStatus.setName(_ctx.stringValue("DescribeDisksFullStatusResponse.DiskFullStatusSet["+ i +"].HealthStatus.Name")); + healthStatus.setCode(_ctx.integerValue("DescribeDisksFullStatusResponse.DiskFullStatusSet["+ i +"].HealthStatus.Code")); + diskFullStatusType.setHealthStatus(healthStatus); + + List diskEventSet = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeDisksFullStatusResponse.DiskFullStatusSet["+ i +"].DiskEventSet.Length"); j++) { + DiskEventType diskEventType = new DiskEventType(); + diskEventType.setEventId(_ctx.stringValue("DescribeDisksFullStatusResponse.DiskFullStatusSet["+ i +"].DiskEventSet["+ j +"].EventId")); + diskEventType.setEventEndTime(_ctx.stringValue("DescribeDisksFullStatusResponse.DiskFullStatusSet["+ i +"].DiskEventSet["+ j +"].EventEndTime")); + diskEventType.setEventTime(_ctx.stringValue("DescribeDisksFullStatusResponse.DiskFullStatusSet["+ i +"].DiskEventSet["+ j +"].EventTime")); + diskEventType.setImpactLevel(_ctx.stringValue("DescribeDisksFullStatusResponse.DiskFullStatusSet["+ i +"].DiskEventSet["+ j +"].ImpactLevel")); + + EventType eventType = new EventType(); + eventType.setName(_ctx.stringValue("DescribeDisksFullStatusResponse.DiskFullStatusSet["+ i +"].DiskEventSet["+ j +"].EventType.Name")); + eventType.setCode(_ctx.integerValue("DescribeDisksFullStatusResponse.DiskFullStatusSet["+ i +"].DiskEventSet["+ j +"].EventType.Code")); + diskEventType.setEventType(eventType); + + diskEventSet.add(diskEventType); + } + diskFullStatusType.setDiskEventSet(diskEventSet); + + diskFullStatusSet.add(diskFullStatusType); + } + describeDisksFullStatusResponse.setDiskFullStatusSet(diskFullStatusSet); + + return describeDisksFullStatusResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDisksResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDisksResponseUnmarshaller.java new file mode 100644 index 0000000000..d2b4c35383 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeDisksResponseUnmarshaller.java @@ -0,0 +1,132 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeDisksResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeDisksResponse.Disk; +import com.aliyuncs.ecs.model.v20140526.DescribeDisksResponse.Disk.Attachment; +import com.aliyuncs.ecs.model.v20140526.DescribeDisksResponse.Disk.MountInstance; +import com.aliyuncs.ecs.model.v20140526.DescribeDisksResponse.Disk.OperationLock; +import com.aliyuncs.ecs.model.v20140526.DescribeDisksResponse.Disk.Tag; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeDisksResponseUnmarshaller { + + public static DescribeDisksResponse unmarshall(DescribeDisksResponse describeDisksResponse, UnmarshallerContext _ctx) { + + describeDisksResponse.setRequestId(_ctx.stringValue("DescribeDisksResponse.RequestId")); + describeDisksResponse.setNextToken(_ctx.stringValue("DescribeDisksResponse.NextToken")); + describeDisksResponse.setPageSize(_ctx.integerValue("DescribeDisksResponse.PageSize")); + describeDisksResponse.setPageNumber(_ctx.integerValue("DescribeDisksResponse.PageNumber")); + describeDisksResponse.setTotalCount(_ctx.integerValue("DescribeDisksResponse.TotalCount")); + + List disks = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeDisksResponse.Disks.Length"); i++) { + Disk disk = new Disk(); + disk.setSerialNumber(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].SerialNumber")); + disk.setCreationTime(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].CreationTime")); + disk.setStatus(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].Status")); + disk.setType(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].Type")); + disk.setPerformanceLevel(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].PerformanceLevel")); + disk.setBdfId(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].BdfId")); + disk.setEnableAutoSnapshot(_ctx.booleanValue("DescribeDisksResponse.Disks["+ i +"].EnableAutoSnapshot")); + disk.setStorageSetId(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].StorageSetId")); + disk.setStorageSetPartitionNumber(_ctx.integerValue("DescribeDisksResponse.Disks["+ i +"].StorageSetPartitionNumber")); + disk.setDiskId(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].DiskId")); + disk.setDeleteAutoSnapshot(_ctx.booleanValue("DescribeDisksResponse.Disks["+ i +"].DeleteAutoSnapshot")); + disk.setStorageClusterId(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].StorageClusterId")); + disk.setEncrypted(_ctx.booleanValue("DescribeDisksResponse.Disks["+ i +"].Encrypted")); + disk.setIOPSRead(_ctx.integerValue("DescribeDisksResponse.Disks["+ i +"].IOPSRead")); + disk.setMountInstanceNum(_ctx.integerValue("DescribeDisksResponse.Disks["+ i +"].MountInstanceNum")); + disk.setDescription(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].Description")); + disk.setDevice(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].Device")); + disk.setDiskName(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].DiskName")); + disk.setPortable(_ctx.booleanValue("DescribeDisksResponse.Disks["+ i +"].Portable")); + disk.setImageId(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].ImageId")); + disk.setKMSKeyId(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].KMSKeyId")); + disk.setDeleteWithInstance(_ctx.booleanValue("DescribeDisksResponse.Disks["+ i +"].DeleteWithInstance")); + disk.setDetachedTime(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].DetachedTime")); + disk.setSourceSnapshotId(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].SourceSnapshotId")); + disk.setAutoSnapshotPolicyId(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].AutoSnapshotPolicyId")); + disk.setEnableAutomatedSnapshotPolicy(_ctx.booleanValue("DescribeDisksResponse.Disks["+ i +"].EnableAutomatedSnapshotPolicy")); + disk.setIOPSWrite(_ctx.integerValue("DescribeDisksResponse.Disks["+ i +"].IOPSWrite")); + disk.setInstanceId(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].InstanceId")); + disk.setIOPS(_ctx.integerValue("DescribeDisksResponse.Disks["+ i +"].IOPS")); + disk.setRegionId(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].RegionId")); + disk.setExpiredTime(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].ExpiredTime")); + disk.setSize(_ctx.integerValue("DescribeDisksResponse.Disks["+ i +"].Size")); + disk.setResourceGroupId(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].ResourceGroupId")); + disk.setDiskChargeType(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].DiskChargeType")); + disk.setZoneId(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].ZoneId")); + disk.setAttachedTime(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].AttachedTime")); + disk.setCategory(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].Category")); + disk.setProductCode(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].ProductCode")); + disk.setMultiAttach(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].MultiAttach")); + disk.setProvisionedIops(_ctx.longValue("DescribeDisksResponse.Disks["+ i +"].ProvisionedIops")); + disk.setBurstingEnabled(_ctx.booleanValue("DescribeDisksResponse.Disks["+ i +"].BurstingEnabled")); + disk.setThroughput(_ctx.integerValue("DescribeDisksResponse.Disks["+ i +"].Throughput")); + + List operationLocks = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeDisksResponse.Disks["+ i +"].OperationLocks.Length"); j++) { + OperationLock operationLock = new OperationLock(); + operationLock.setLockReason(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].OperationLocks["+ j +"].LockReason")); + + operationLocks.add(operationLock); + } + disk.setOperationLocks(operationLocks); + + List mountInstances = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeDisksResponse.Disks["+ i +"].MountInstances.Length"); j++) { + MountInstance mountInstance = new MountInstance(); + mountInstance.setAttachedTime(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].MountInstances["+ j +"].AttachedTime")); + mountInstance.setInstanceId(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].MountInstances["+ j +"].InstanceId")); + mountInstance.setDevice(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].MountInstances["+ j +"].Device")); + + mountInstances.add(mountInstance); + } + disk.setMountInstances(mountInstances); + + List tags = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeDisksResponse.Disks["+ i +"].Tags.Length"); j++) { + Tag tag = new Tag(); + tag.setTagValue(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].Tags["+ j +"].TagValue")); + tag.setTagKey(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].Tags["+ j +"].TagKey")); + + tags.add(tag); + } + disk.setTags(tags); + + List attachments = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeDisksResponse.Disks["+ i +"].Attachments.Length"); j++) { + Attachment attachment = new Attachment(); + attachment.setInstanceId(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].Attachments["+ j +"].InstanceId")); + attachment.setDevice(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].Attachments["+ j +"].Device")); + attachment.setAttachedTime(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].Attachments["+ j +"].AttachedTime")); + + attachments.add(attachment); + } + disk.setAttachments(attachments); + + disks.add(disk); + } + describeDisksResponse.setDisks(disks); + + return describeDisksResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeEipAddressesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeEipAddressesResponseUnmarshaller.java new file mode 100644 index 0000000000..2b4072a3ab --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeEipAddressesResponseUnmarshaller.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeEipAddressesResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeEipAddressesResponse.EipAddress; +import com.aliyuncs.ecs.model.v20140526.DescribeEipAddressesResponse.EipAddress.LockReason; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeEipAddressesResponseUnmarshaller { + + public static DescribeEipAddressesResponse unmarshall(DescribeEipAddressesResponse describeEipAddressesResponse, UnmarshallerContext _ctx) { + + describeEipAddressesResponse.setRequestId(_ctx.stringValue("DescribeEipAddressesResponse.RequestId")); + describeEipAddressesResponse.setPageSize(_ctx.integerValue("DescribeEipAddressesResponse.PageSize")); + describeEipAddressesResponse.setPageNumber(_ctx.integerValue("DescribeEipAddressesResponse.PageNumber")); + describeEipAddressesResponse.setTotalCount(_ctx.integerValue("DescribeEipAddressesResponse.TotalCount")); + + List eipAddresses = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeEipAddressesResponse.EipAddresses.Length"); i++) { + EipAddress eipAddress = new EipAddress(); + eipAddress.setStatus(_ctx.stringValue("DescribeEipAddressesResponse.EipAddresses["+ i +"].Status")); + eipAddress.setAllocationTime(_ctx.stringValue("DescribeEipAddressesResponse.EipAddresses["+ i +"].AllocationTime")); + eipAddress.setChargeType(_ctx.stringValue("DescribeEipAddressesResponse.EipAddresses["+ i +"].ChargeType")); + eipAddress.setInstanceId(_ctx.stringValue("DescribeEipAddressesResponse.EipAddresses["+ i +"].InstanceId")); + eipAddress.setInstanceType(_ctx.stringValue("DescribeEipAddressesResponse.EipAddresses["+ i +"].InstanceType")); + eipAddress.setRegionId(_ctx.stringValue("DescribeEipAddressesResponse.EipAddresses["+ i +"].RegionId")); + eipAddress.setIpAddress(_ctx.stringValue("DescribeEipAddressesResponse.EipAddresses["+ i +"].IpAddress")); + eipAddress.setBandwidth(_ctx.stringValue("DescribeEipAddressesResponse.EipAddresses["+ i +"].Bandwidth")); + eipAddress.setExpiredTime(_ctx.stringValue("DescribeEipAddressesResponse.EipAddresses["+ i +"].ExpiredTime")); + eipAddress.setAllocationId(_ctx.stringValue("DescribeEipAddressesResponse.EipAddresses["+ i +"].AllocationId")); + eipAddress.setInternetChargeType(_ctx.stringValue("DescribeEipAddressesResponse.EipAddresses["+ i +"].InternetChargeType")); + eipAddress.setEipBandwidth(_ctx.stringValue("DescribeEipAddressesResponse.EipAddresses["+ i +"].EipBandwidth")); + + List operationLocks = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeEipAddressesResponse.EipAddresses["+ i +"].OperationLocks.Length"); j++) { + LockReason lockReason = new LockReason(); + lockReason.setLockReason(_ctx.stringValue("DescribeEipAddressesResponse.EipAddresses["+ i +"].OperationLocks["+ j +"].LockReason")); + + operationLocks.add(lockReason); + } + eipAddress.setOperationLocks(operationLocks); + + eipAddresses.add(eipAddress); + } + describeEipAddressesResponse.setEipAddresses(eipAddresses); + + return describeEipAddressesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeEipMonitorDataResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeEipMonitorDataResponseUnmarshaller.java new file mode 100644 index 0000000000..44219a6225 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeEipMonitorDataResponseUnmarshaller.java @@ -0,0 +1,47 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeEipMonitorDataResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeEipMonitorDataResponse.EipMonitorData; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeEipMonitorDataResponseUnmarshaller { + + public static DescribeEipMonitorDataResponse unmarshall(DescribeEipMonitorDataResponse describeEipMonitorDataResponse, UnmarshallerContext _ctx) { + + describeEipMonitorDataResponse.setRequestId(_ctx.stringValue("DescribeEipMonitorDataResponse.RequestId")); + + List eipMonitorDatas = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeEipMonitorDataResponse.EipMonitorDatas.Length"); i++) { + EipMonitorData eipMonitorData = new EipMonitorData(); + eipMonitorData.setEipTX(_ctx.integerValue("DescribeEipMonitorDataResponse.EipMonitorDatas["+ i +"].EipTX")); + eipMonitorData.setEipPackets(_ctx.integerValue("DescribeEipMonitorDataResponse.EipMonitorDatas["+ i +"].EipPackets")); + eipMonitorData.setEipBandwidth(_ctx.integerValue("DescribeEipMonitorDataResponse.EipMonitorDatas["+ i +"].EipBandwidth")); + eipMonitorData.setTimeStamp(_ctx.stringValue("DescribeEipMonitorDataResponse.EipMonitorDatas["+ i +"].TimeStamp")); + eipMonitorData.setEipFlow(_ctx.integerValue("DescribeEipMonitorDataResponse.EipMonitorDatas["+ i +"].EipFlow")); + eipMonitorData.setEipRX(_ctx.integerValue("DescribeEipMonitorDataResponse.EipMonitorDatas["+ i +"].EipRX")); + + eipMonitorDatas.add(eipMonitorData); + } + describeEipMonitorDataResponse.setEipMonitorDatas(eipMonitorDatas); + + return describeEipMonitorDataResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeElasticityAssuranceInstancesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeElasticityAssuranceInstancesResponseUnmarshaller.java new file mode 100644 index 0000000000..62dbe518bd --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeElasticityAssuranceInstancesResponseUnmarshaller.java @@ -0,0 +1,45 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeElasticityAssuranceInstancesResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeElasticityAssuranceInstancesResponse.InstanceIdSet; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeElasticityAssuranceInstancesResponseUnmarshaller { + + public static DescribeElasticityAssuranceInstancesResponse unmarshall(DescribeElasticityAssuranceInstancesResponse describeElasticityAssuranceInstancesResponse, UnmarshallerContext _ctx) { + + describeElasticityAssuranceInstancesResponse.setRequestId(_ctx.stringValue("DescribeElasticityAssuranceInstancesResponse.RequestId")); + describeElasticityAssuranceInstancesResponse.setNextToken(_ctx.stringValue("DescribeElasticityAssuranceInstancesResponse.NextToken")); + describeElasticityAssuranceInstancesResponse.setTotalCount(_ctx.integerValue("DescribeElasticityAssuranceInstancesResponse.TotalCount")); + describeElasticityAssuranceInstancesResponse.setMaxResults(_ctx.integerValue("DescribeElasticityAssuranceInstancesResponse.MaxResults")); + + List elasticityAssuranceItem = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeElasticityAssuranceInstancesResponse.ElasticityAssuranceItem.Length"); i++) { + InstanceIdSet instanceIdSet = new InstanceIdSet(); + instanceIdSet.setInstanceId(_ctx.stringValue("DescribeElasticityAssuranceInstancesResponse.ElasticityAssuranceItem["+ i +"].InstanceId")); + + elasticityAssuranceItem.add(instanceIdSet); + } + describeElasticityAssuranceInstancesResponse.setElasticityAssuranceItem(elasticityAssuranceItem); + + return describeElasticityAssuranceInstancesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeElasticityAssurancesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeElasticityAssurancesResponseUnmarshaller.java new file mode 100644 index 0000000000..87aaae8281 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeElasticityAssurancesResponseUnmarshaller.java @@ -0,0 +1,82 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeElasticityAssurancesResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeElasticityAssurancesResponse.ElasticityAssuranceItem; +import com.aliyuncs.ecs.model.v20140526.DescribeElasticityAssurancesResponse.ElasticityAssuranceItem.AllocatedResource; +import com.aliyuncs.ecs.model.v20140526.DescribeElasticityAssurancesResponse.ElasticityAssuranceItem.Tag; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeElasticityAssurancesResponseUnmarshaller { + + public static DescribeElasticityAssurancesResponse unmarshall(DescribeElasticityAssurancesResponse describeElasticityAssurancesResponse, UnmarshallerContext _ctx) { + + describeElasticityAssurancesResponse.setRequestId(_ctx.stringValue("DescribeElasticityAssurancesResponse.RequestId")); + describeElasticityAssurancesResponse.setNextToken(_ctx.stringValue("DescribeElasticityAssurancesResponse.NextToken")); + describeElasticityAssurancesResponse.setTotalCount(_ctx.integerValue("DescribeElasticityAssurancesResponse.TotalCount")); + describeElasticityAssurancesResponse.setMaxResults(_ctx.integerValue("DescribeElasticityAssurancesResponse.MaxResults")); + + List elasticityAssuranceSet = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeElasticityAssurancesResponse.ElasticityAssuranceSet.Length"); i++) { + ElasticityAssuranceItem elasticityAssuranceItem = new ElasticityAssuranceItem(); + elasticityAssuranceItem.setStatus(_ctx.stringValue("DescribeElasticityAssurancesResponse.ElasticityAssuranceSet["+ i +"].Status")); + elasticityAssuranceItem.setPrivatePoolOptionsMatchCriteria(_ctx.stringValue("DescribeElasticityAssurancesResponse.ElasticityAssuranceSet["+ i +"].PrivatePoolOptionsMatchCriteria")); + elasticityAssuranceItem.setPrivatePoolOptionsId(_ctx.stringValue("DescribeElasticityAssurancesResponse.ElasticityAssuranceSet["+ i +"].PrivatePoolOptionsId")); + elasticityAssuranceItem.setUsedAssuranceTimes(_ctx.integerValue("DescribeElasticityAssurancesResponse.ElasticityAssuranceSet["+ i +"].UsedAssuranceTimes")); + elasticityAssuranceItem.setLatestStartTime(_ctx.stringValue("DescribeElasticityAssurancesResponse.ElasticityAssuranceSet["+ i +"].LatestStartTime")); + elasticityAssuranceItem.setPrivatePoolOptionsName(_ctx.stringValue("DescribeElasticityAssurancesResponse.ElasticityAssuranceSet["+ i +"].PrivatePoolOptionsName")); + elasticityAssuranceItem.setRegionId(_ctx.stringValue("DescribeElasticityAssurancesResponse.ElasticityAssuranceSet["+ i +"].RegionId")); + elasticityAssuranceItem.setEndTime(_ctx.stringValue("DescribeElasticityAssurancesResponse.ElasticityAssuranceSet["+ i +"].EndTime")); + elasticityAssuranceItem.setStartTime(_ctx.stringValue("DescribeElasticityAssurancesResponse.ElasticityAssuranceSet["+ i +"].StartTime")); + elasticityAssuranceItem.setDescription(_ctx.stringValue("DescribeElasticityAssurancesResponse.ElasticityAssuranceSet["+ i +"].Description")); + elasticityAssuranceItem.setResourceGroupId(_ctx.stringValue("DescribeElasticityAssurancesResponse.ElasticityAssuranceSet["+ i +"].ResourceGroupId")); + elasticityAssuranceItem.setTotalAssuranceTimes(_ctx.stringValue("DescribeElasticityAssurancesResponse.ElasticityAssuranceSet["+ i +"].TotalAssuranceTimes")); + elasticityAssuranceItem.setInstanceChargeType(_ctx.stringValue("DescribeElasticityAssurancesResponse.ElasticityAssuranceSet["+ i +"].InstanceChargeType")); + elasticityAssuranceItem.setStartTimeType(_ctx.stringValue("DescribeElasticityAssurancesResponse.ElasticityAssuranceSet["+ i +"].StartTimeType")); + + List allocatedResources = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeElasticityAssurancesResponse.ElasticityAssuranceSet["+ i +"].AllocatedResources.Length"); j++) { + AllocatedResource allocatedResource = new AllocatedResource(); + allocatedResource.setUsedAmount(_ctx.integerValue("DescribeElasticityAssurancesResponse.ElasticityAssuranceSet["+ i +"].AllocatedResources["+ j +"].UsedAmount")); + allocatedResource.setTotalAmount(_ctx.integerValue("DescribeElasticityAssurancesResponse.ElasticityAssuranceSet["+ i +"].AllocatedResources["+ j +"].TotalAmount")); + allocatedResource.setZoneId(_ctx.stringValue("DescribeElasticityAssurancesResponse.ElasticityAssuranceSet["+ i +"].AllocatedResources["+ j +"].zoneId")); + allocatedResource.setInstanceType(_ctx.stringValue("DescribeElasticityAssurancesResponse.ElasticityAssuranceSet["+ i +"].AllocatedResources["+ j +"].InstanceType")); + + allocatedResources.add(allocatedResource); + } + elasticityAssuranceItem.setAllocatedResources(allocatedResources); + + List tags = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeElasticityAssurancesResponse.ElasticityAssuranceSet["+ i +"].Tags.Length"); j++) { + Tag tag = new Tag(); + tag.setTagValue(_ctx.stringValue("DescribeElasticityAssurancesResponse.ElasticityAssuranceSet["+ i +"].Tags["+ j +"].TagValue")); + tag.setTagKey(_ctx.stringValue("DescribeElasticityAssurancesResponse.ElasticityAssuranceSet["+ i +"].Tags["+ j +"].TagKey")); + + tags.add(tag); + } + elasticityAssuranceItem.setTags(tags); + + elasticityAssuranceSet.add(elasticityAssuranceItem); + } + describeElasticityAssurancesResponse.setElasticityAssuranceSet(elasticityAssuranceSet); + + return describeElasticityAssurancesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeEniMonitorDataResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeEniMonitorDataResponseUnmarshaller.java new file mode 100644 index 0000000000..47ed0a4b0b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeEniMonitorDataResponseUnmarshaller.java @@ -0,0 +1,50 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeEniMonitorDataResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeEniMonitorDataResponse.EniMonitorData; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeEniMonitorDataResponseUnmarshaller { + + public static DescribeEniMonitorDataResponse unmarshall(DescribeEniMonitorDataResponse describeEniMonitorDataResponse, UnmarshallerContext _ctx) { + + describeEniMonitorDataResponse.setRequestId(_ctx.stringValue("DescribeEniMonitorDataResponse.RequestId")); + describeEniMonitorDataResponse.setTotalCount(_ctx.integerValue("DescribeEniMonitorDataResponse.TotalCount")); + + List monitorData = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeEniMonitorDataResponse.MonitorData.Length"); i++) { + EniMonitorData eniMonitorData = new EniMonitorData(); + eniMonitorData.setPacketRx(_ctx.stringValue("DescribeEniMonitorDataResponse.MonitorData["+ i +"].PacketRx")); + eniMonitorData.setTimeStamp(_ctx.stringValue("DescribeEniMonitorDataResponse.MonitorData["+ i +"].TimeStamp")); + eniMonitorData.setDropPacketRx(_ctx.stringValue("DescribeEniMonitorDataResponse.MonitorData["+ i +"].DropPacketRx")); + eniMonitorData.setEniId(_ctx.stringValue("DescribeEniMonitorDataResponse.MonitorData["+ i +"].EniId")); + eniMonitorData.setDropPacketTx(_ctx.stringValue("DescribeEniMonitorDataResponse.MonitorData["+ i +"].DropPacketTx")); + eniMonitorData.setPacketTx(_ctx.stringValue("DescribeEniMonitorDataResponse.MonitorData["+ i +"].PacketTx")); + eniMonitorData.setIntranetTx(_ctx.stringValue("DescribeEniMonitorDataResponse.MonitorData["+ i +"].IntranetTx")); + eniMonitorData.setIntranetRx(_ctx.stringValue("DescribeEniMonitorDataResponse.MonitorData["+ i +"].IntranetRx")); + + monitorData.add(eniMonitorData); + } + describeEniMonitorDataResponse.setMonitorData(monitorData); + + return describeEniMonitorDataResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeForwardTableEntriesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeForwardTableEntriesResponseUnmarshaller.java new file mode 100644 index 0000000000..3c58ef936d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeForwardTableEntriesResponseUnmarshaller.java @@ -0,0 +1,52 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeForwardTableEntriesResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeForwardTableEntriesResponse.ForwardTableEntry; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeForwardTableEntriesResponseUnmarshaller { + + public static DescribeForwardTableEntriesResponse unmarshall(DescribeForwardTableEntriesResponse describeForwardTableEntriesResponse, UnmarshallerContext _ctx) { + + describeForwardTableEntriesResponse.setRequestId(_ctx.stringValue("DescribeForwardTableEntriesResponse.RequestId")); + describeForwardTableEntriesResponse.setPageSize(_ctx.integerValue("DescribeForwardTableEntriesResponse.PageSize")); + describeForwardTableEntriesResponse.setPageNumber(_ctx.integerValue("DescribeForwardTableEntriesResponse.PageNumber")); + describeForwardTableEntriesResponse.setTotalCount(_ctx.integerValue("DescribeForwardTableEntriesResponse.TotalCount")); + + List forwardTableEntries = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeForwardTableEntriesResponse.ForwardTableEntries.Length"); i++) { + ForwardTableEntry forwardTableEntry = new ForwardTableEntry(); + forwardTableEntry.setStatus(_ctx.stringValue("DescribeForwardTableEntriesResponse.ForwardTableEntries["+ i +"].Status")); + forwardTableEntry.setForwardEntryId(_ctx.stringValue("DescribeForwardTableEntriesResponse.ForwardTableEntries["+ i +"].ForwardEntryId")); + forwardTableEntry.setInternalIp(_ctx.stringValue("DescribeForwardTableEntriesResponse.ForwardTableEntries["+ i +"].InternalIp")); + forwardTableEntry.setInternalPort(_ctx.stringValue("DescribeForwardTableEntriesResponse.ForwardTableEntries["+ i +"].InternalPort")); + forwardTableEntry.setForwardTableId(_ctx.stringValue("DescribeForwardTableEntriesResponse.ForwardTableEntries["+ i +"].ForwardTableId")); + forwardTableEntry.setExternalPort(_ctx.stringValue("DescribeForwardTableEntriesResponse.ForwardTableEntries["+ i +"].ExternalPort")); + forwardTableEntry.setIpProtocol(_ctx.stringValue("DescribeForwardTableEntriesResponse.ForwardTableEntries["+ i +"].IpProtocol")); + forwardTableEntry.setExternalIp(_ctx.stringValue("DescribeForwardTableEntriesResponse.ForwardTableEntries["+ i +"].ExternalIp")); + + forwardTableEntries.add(forwardTableEntry); + } + describeForwardTableEntriesResponse.setForwardTableEntries(forwardTableEntries); + + return describeForwardTableEntriesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeHaVipsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeHaVipsResponseUnmarshaller.java new file mode 100644 index 0000000000..1e9aeba19e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeHaVipsResponseUnmarshaller.java @@ -0,0 +1,65 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeHaVipsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeHaVipsResponse.HaVip; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeHaVipsResponseUnmarshaller { + + public static DescribeHaVipsResponse unmarshall(DescribeHaVipsResponse describeHaVipsResponse, UnmarshallerContext _ctx) { + + describeHaVipsResponse.setRequestId(_ctx.stringValue("DescribeHaVipsResponse.RequestId")); + describeHaVipsResponse.setPageSize(_ctx.integerValue("DescribeHaVipsResponse.PageSize")); + describeHaVipsResponse.setPageNumber(_ctx.integerValue("DescribeHaVipsResponse.PageNumber")); + describeHaVipsResponse.setTotalCount(_ctx.integerValue("DescribeHaVipsResponse.TotalCount")); + + List haVips = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeHaVipsResponse.HaVips.Length"); i++) { + HaVip haVip = new HaVip(); + haVip.setStatus(_ctx.stringValue("DescribeHaVipsResponse.HaVips["+ i +"].Status")); + haVip.setVpcId(_ctx.stringValue("DescribeHaVipsResponse.HaVips["+ i +"].VpcId")); + haVip.setVSwitchId(_ctx.stringValue("DescribeHaVipsResponse.HaVips["+ i +"].VSwitchId")); + haVip.setIpAddress(_ctx.stringValue("DescribeHaVipsResponse.HaVips["+ i +"].IpAddress")); + haVip.setDescription(_ctx.stringValue("DescribeHaVipsResponse.HaVips["+ i +"].Description")); + haVip.setHaVipId(_ctx.stringValue("DescribeHaVipsResponse.HaVips["+ i +"].HaVipId")); + haVip.setCreateTime(_ctx.stringValue("DescribeHaVipsResponse.HaVips["+ i +"].CreateTime")); + haVip.setMasterInstanceId(_ctx.stringValue("DescribeHaVipsResponse.HaVips["+ i +"].MasterInstanceId")); + haVip.setRegionId(_ctx.stringValue("DescribeHaVipsResponse.HaVips["+ i +"].RegionId")); + + List associatedEipAddresses = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeHaVipsResponse.HaVips["+ i +"].AssociatedEipAddresses.Length"); j++) { + associatedEipAddresses.add(_ctx.stringValue("DescribeHaVipsResponse.HaVips["+ i +"].AssociatedEipAddresses["+ j +"]")); + } + haVip.setAssociatedEipAddresses(associatedEipAddresses); + + List associatedInstances = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeHaVipsResponse.HaVips["+ i +"].AssociatedInstances.Length"); j++) { + associatedInstances.add(_ctx.stringValue("DescribeHaVipsResponse.HaVips["+ i +"].AssociatedInstances["+ j +"]")); + } + haVip.setAssociatedInstances(associatedInstances); + + haVips.add(haVip); + } + describeHaVipsResponse.setHaVips(haVips); + + return describeHaVipsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeHpcClustersResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeHpcClustersResponseUnmarshaller.java new file mode 100644 index 0000000000..f24567ed5b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeHpcClustersResponseUnmarshaller.java @@ -0,0 +1,47 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeHpcClustersResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeHpcClustersResponse.HpcCluster; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeHpcClustersResponseUnmarshaller { + + public static DescribeHpcClustersResponse unmarshall(DescribeHpcClustersResponse describeHpcClustersResponse, UnmarshallerContext _ctx) { + + describeHpcClustersResponse.setRequestId(_ctx.stringValue("DescribeHpcClustersResponse.RequestId")); + describeHpcClustersResponse.setPageSize(_ctx.integerValue("DescribeHpcClustersResponse.PageSize")); + describeHpcClustersResponse.setPageNumber(_ctx.integerValue("DescribeHpcClustersResponse.PageNumber")); + describeHpcClustersResponse.setTotalCount(_ctx.integerValue("DescribeHpcClustersResponse.TotalCount")); + + List hpcClusters = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeHpcClustersResponse.HpcClusters.Length"); i++) { + HpcCluster hpcCluster = new HpcCluster(); + hpcCluster.setHpcClusterId(_ctx.stringValue("DescribeHpcClustersResponse.HpcClusters["+ i +"].HpcClusterId")); + hpcCluster.setName(_ctx.stringValue("DescribeHpcClustersResponse.HpcClusters["+ i +"].Name")); + hpcCluster.setDescription(_ctx.stringValue("DescribeHpcClustersResponse.HpcClusters["+ i +"].Description")); + + hpcClusters.add(hpcCluster); + } + describeHpcClustersResponse.setHpcClusters(hpcClusters); + + return describeHpcClustersResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeImageComponentsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeImageComponentsResponseUnmarshaller.java new file mode 100644 index 0000000000..059980ee0d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeImageComponentsResponseUnmarshaller.java @@ -0,0 +1,64 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeImageComponentsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeImageComponentsResponse.ImageComponentSet; +import com.aliyuncs.ecs.model.v20140526.DescribeImageComponentsResponse.ImageComponentSet.Tag; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeImageComponentsResponseUnmarshaller { + + public static DescribeImageComponentsResponse unmarshall(DescribeImageComponentsResponse describeImageComponentsResponse, UnmarshallerContext _ctx) { + + describeImageComponentsResponse.setRequestId(_ctx.stringValue("DescribeImageComponentsResponse.RequestId")); + describeImageComponentsResponse.setNextToken(_ctx.stringValue("DescribeImageComponentsResponse.NextToken")); + describeImageComponentsResponse.setTotalCount(_ctx.integerValue("DescribeImageComponentsResponse.TotalCount")); + describeImageComponentsResponse.setMaxResults(_ctx.integerValue("DescribeImageComponentsResponse.MaxResults")); + + List imageComponent = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeImageComponentsResponse.ImageComponent.Length"); i++) { + ImageComponentSet imageComponentSet = new ImageComponentSet(); + imageComponentSet.setCreationTime(_ctx.stringValue("DescribeImageComponentsResponse.ImageComponent["+ i +"].CreationTime")); + imageComponentSet.setDescription(_ctx.stringValue("DescribeImageComponentsResponse.ImageComponent["+ i +"].Description")); + imageComponentSet.setSystemType(_ctx.stringValue("DescribeImageComponentsResponse.ImageComponent["+ i +"].SystemType")); + imageComponentSet.setImageComponentId(_ctx.stringValue("DescribeImageComponentsResponse.ImageComponent["+ i +"].ImageComponentId")); + imageComponentSet.setComponentType(_ctx.stringValue("DescribeImageComponentsResponse.ImageComponent["+ i +"].ComponentType")); + imageComponentSet.setResourceGroupId(_ctx.stringValue("DescribeImageComponentsResponse.ImageComponent["+ i +"].ResourceGroupId")); + imageComponentSet.setName(_ctx.stringValue("DescribeImageComponentsResponse.ImageComponent["+ i +"].Name")); + imageComponentSet.setContent(_ctx.stringValue("DescribeImageComponentsResponse.ImageComponent["+ i +"].Content")); + imageComponentSet.setOwner(_ctx.stringValue("DescribeImageComponentsResponse.ImageComponent["+ i +"].Owner")); + + List tags = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeImageComponentsResponse.ImageComponent["+ i +"].Tags.Length"); j++) { + Tag tag = new Tag(); + tag.setTagValue(_ctx.stringValue("DescribeImageComponentsResponse.ImageComponent["+ i +"].Tags["+ j +"].TagValue")); + tag.setTagKey(_ctx.stringValue("DescribeImageComponentsResponse.ImageComponent["+ i +"].Tags["+ j +"].TagKey")); + + tags.add(tag); + } + imageComponentSet.setTags(tags); + + imageComponent.add(imageComponentSet); + } + describeImageComponentsResponse.setImageComponent(imageComponent); + + return describeImageComponentsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeImageFromFamilyResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeImageFromFamilyResponseUnmarshaller.java new file mode 100644 index 0000000000..9af0e1db6d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeImageFromFamilyResponseUnmarshaller.java @@ -0,0 +1,84 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeImageFromFamilyResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeImageFromFamilyResponse.Image; +import com.aliyuncs.ecs.model.v20140526.DescribeImageFromFamilyResponse.Image.DiskDeviceMapping; +import com.aliyuncs.ecs.model.v20140526.DescribeImageFromFamilyResponse.Image.Tag; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeImageFromFamilyResponseUnmarshaller { + + public static DescribeImageFromFamilyResponse unmarshall(DescribeImageFromFamilyResponse describeImageFromFamilyResponse, UnmarshallerContext _ctx) { + + describeImageFromFamilyResponse.setRequestId(_ctx.stringValue("DescribeImageFromFamilyResponse.RequestId")); + + Image image = new Image(); + image.setCreationTime(_ctx.stringValue("DescribeImageFromFamilyResponse.Image.CreationTime")); + image.setStatus(_ctx.stringValue("DescribeImageFromFamilyResponse.Image.Status")); + image.setImageFamily(_ctx.stringValue("DescribeImageFromFamilyResponse.Image.ImageFamily")); + image.setProgress(_ctx.stringValue("DescribeImageFromFamilyResponse.Image.Progress")); + image.setIsCopied(_ctx.booleanValue("DescribeImageFromFamilyResponse.Image.IsCopied")); + image.setIsSupportIoOptimized(_ctx.booleanValue("DescribeImageFromFamilyResponse.Image.IsSupportIoOptimized")); + image.setImageOwnerAlias(_ctx.stringValue("DescribeImageFromFamilyResponse.Image.ImageOwnerAlias")); + image.setIsSupportCloudinit(_ctx.booleanValue("DescribeImageFromFamilyResponse.Image.IsSupportCloudinit")); + image.setImageVersion(_ctx.stringValue("DescribeImageFromFamilyResponse.Image.ImageVersion")); + image.setUsage(_ctx.stringValue("DescribeImageFromFamilyResponse.Image.Usage")); + image.setIsSelfShared(_ctx.stringValue("DescribeImageFromFamilyResponse.Image.IsSelfShared")); + image.setDescription(_ctx.stringValue("DescribeImageFromFamilyResponse.Image.Description")); + image.setSize(_ctx.integerValue("DescribeImageFromFamilyResponse.Image.Size")); + image.setPlatform(_ctx.stringValue("DescribeImageFromFamilyResponse.Image.Platform")); + image.setImageName(_ctx.stringValue("DescribeImageFromFamilyResponse.Image.ImageName")); + image.setOSName(_ctx.stringValue("DescribeImageFromFamilyResponse.Image.OSName")); + image.setImageId(_ctx.stringValue("DescribeImageFromFamilyResponse.Image.ImageId")); + image.setOSType(_ctx.stringValue("DescribeImageFromFamilyResponse.Image.OSType")); + image.setIsSubscribed(_ctx.booleanValue("DescribeImageFromFamilyResponse.Image.IsSubscribed")); + image.setProductCode(_ctx.stringValue("DescribeImageFromFamilyResponse.Image.ProductCode")); + image.setArchitecture(_ctx.stringValue("DescribeImageFromFamilyResponse.Image.Architecture")); + + List diskDeviceMappings = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeImageFromFamilyResponse.Image.DiskDeviceMappings.Length"); i++) { + DiskDeviceMapping diskDeviceMapping = new DiskDeviceMapping(); + diskDeviceMapping.setType(_ctx.stringValue("DescribeImageFromFamilyResponse.Image.DiskDeviceMappings["+ i +"].Type")); + diskDeviceMapping.setImportOSSBucket(_ctx.stringValue("DescribeImageFromFamilyResponse.Image.DiskDeviceMappings["+ i +"].ImportOSSBucket")); + diskDeviceMapping.setSnapshotId(_ctx.stringValue("DescribeImageFromFamilyResponse.Image.DiskDeviceMappings["+ i +"].SnapshotId")); + diskDeviceMapping.setImportOSSObject(_ctx.stringValue("DescribeImageFromFamilyResponse.Image.DiskDeviceMappings["+ i +"].ImportOSSObject")); + diskDeviceMapping.setSize(_ctx.stringValue("DescribeImageFromFamilyResponse.Image.DiskDeviceMappings["+ i +"].Size")); + diskDeviceMapping.setDevice(_ctx.stringValue("DescribeImageFromFamilyResponse.Image.DiskDeviceMappings["+ i +"].Device")); + diskDeviceMapping.setFormat(_ctx.stringValue("DescribeImageFromFamilyResponse.Image.DiskDeviceMappings["+ i +"].Format")); + + diskDeviceMappings.add(diskDeviceMapping); + } + image.setDiskDeviceMappings(diskDeviceMappings); + + List tags = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeImageFromFamilyResponse.Image.Tags.Length"); i++) { + Tag tag = new Tag(); + tag.setTagValue(_ctx.stringValue("DescribeImageFromFamilyResponse.Image.Tags["+ i +"].TagValue")); + tag.setTagKey(_ctx.stringValue("DescribeImageFromFamilyResponse.Image.Tags["+ i +"].TagKey")); + + tags.add(tag); + } + image.setTags(tags); + describeImageFromFamilyResponse.setImage(image); + + return describeImageFromFamilyResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeImagePipelineExecutionsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeImagePipelineExecutionsResponseUnmarshaller.java new file mode 100644 index 0000000000..896947e67a --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeImagePipelineExecutionsResponseUnmarshaller.java @@ -0,0 +1,63 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeImagePipelineExecutionsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeImagePipelineExecutionsResponse.ImagePipelineExecutionSet; +import com.aliyuncs.ecs.model.v20140526.DescribeImagePipelineExecutionsResponse.ImagePipelineExecutionSet.Tag; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeImagePipelineExecutionsResponseUnmarshaller { + + public static DescribeImagePipelineExecutionsResponse unmarshall(DescribeImagePipelineExecutionsResponse describeImagePipelineExecutionsResponse, UnmarshallerContext _ctx) { + + describeImagePipelineExecutionsResponse.setRequestId(_ctx.stringValue("DescribeImagePipelineExecutionsResponse.RequestId")); + describeImagePipelineExecutionsResponse.setNextToken(_ctx.stringValue("DescribeImagePipelineExecutionsResponse.NextToken")); + describeImagePipelineExecutionsResponse.setTotalCount(_ctx.integerValue("DescribeImagePipelineExecutionsResponse.TotalCount")); + describeImagePipelineExecutionsResponse.setMaxResults(_ctx.integerValue("DescribeImagePipelineExecutionsResponse.MaxResults")); + + List imagePipelineExecution = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeImagePipelineExecutionsResponse.ImagePipelineExecution.Length"); i++) { + ImagePipelineExecutionSet imagePipelineExecutionSet = new ImagePipelineExecutionSet(); + imagePipelineExecutionSet.setCreationTime(_ctx.stringValue("DescribeImagePipelineExecutionsResponse.ImagePipelineExecution["+ i +"].CreationTime")); + imagePipelineExecutionSet.setImagePipelineId(_ctx.stringValue("DescribeImagePipelineExecutionsResponse.ImagePipelineExecution["+ i +"].ImagePipelineId")); + imagePipelineExecutionSet.setStatus(_ctx.stringValue("DescribeImagePipelineExecutionsResponse.ImagePipelineExecution["+ i +"].Status")); + imagePipelineExecutionSet.setModifiedTime(_ctx.stringValue("DescribeImagePipelineExecutionsResponse.ImagePipelineExecution["+ i +"].ModifiedTime")); + imagePipelineExecutionSet.setResourceGroupId(_ctx.stringValue("DescribeImagePipelineExecutionsResponse.ImagePipelineExecution["+ i +"].ResourceGroupId")); + imagePipelineExecutionSet.setMessage(_ctx.stringValue("DescribeImagePipelineExecutionsResponse.ImagePipelineExecution["+ i +"].Message")); + imagePipelineExecutionSet.setImageId(_ctx.stringValue("DescribeImagePipelineExecutionsResponse.ImagePipelineExecution["+ i +"].ImageId")); + imagePipelineExecutionSet.setExecutionId(_ctx.stringValue("DescribeImagePipelineExecutionsResponse.ImagePipelineExecution["+ i +"].ExecutionId")); + + List tags = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeImagePipelineExecutionsResponse.ImagePipelineExecution["+ i +"].Tags.Length"); j++) { + Tag tag = new Tag(); + tag.setTagValue(_ctx.stringValue("DescribeImagePipelineExecutionsResponse.ImagePipelineExecution["+ i +"].Tags["+ j +"].TagValue")); + tag.setTagKey(_ctx.stringValue("DescribeImagePipelineExecutionsResponse.ImagePipelineExecution["+ i +"].Tags["+ j +"].TagKey")); + + tags.add(tag); + } + imagePipelineExecutionSet.setTags(tags); + + imagePipelineExecution.add(imagePipelineExecutionSet); + } + describeImagePipelineExecutionsResponse.setImagePipelineExecution(imagePipelineExecution); + + return describeImagePipelineExecutionsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeImagePipelinesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeImagePipelinesResponseUnmarshaller.java new file mode 100644 index 0000000000..87cff9615f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeImagePipelinesResponseUnmarshaller.java @@ -0,0 +1,81 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeImagePipelinesResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeImagePipelinesResponse.ImagePipelineSet; +import com.aliyuncs.ecs.model.v20140526.DescribeImagePipelinesResponse.ImagePipelineSet.Tag; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeImagePipelinesResponseUnmarshaller { + + public static DescribeImagePipelinesResponse unmarshall(DescribeImagePipelinesResponse describeImagePipelinesResponse, UnmarshallerContext _ctx) { + + describeImagePipelinesResponse.setRequestId(_ctx.stringValue("DescribeImagePipelinesResponse.RequestId")); + describeImagePipelinesResponse.setNextToken(_ctx.stringValue("DescribeImagePipelinesResponse.NextToken")); + describeImagePipelinesResponse.setTotalCount(_ctx.integerValue("DescribeImagePipelinesResponse.TotalCount")); + describeImagePipelinesResponse.setMaxResults(_ctx.integerValue("DescribeImagePipelinesResponse.MaxResults")); + + List imagePipeline = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeImagePipelinesResponse.ImagePipeline.Length"); i++) { + ImagePipelineSet imagePipelineSet = new ImagePipelineSet(); + imagePipelineSet.setCreationTime(_ctx.stringValue("DescribeImagePipelinesResponse.ImagePipeline["+ i +"].CreationTime")); + imagePipelineSet.setDeleteInstanceOnFailure(_ctx.booleanValue("DescribeImagePipelinesResponse.ImagePipeline["+ i +"].DeleteInstanceOnFailure")); + imagePipelineSet.setInstanceType(_ctx.stringValue("DescribeImagePipelinesResponse.ImagePipeline["+ i +"].InstanceType")); + imagePipelineSet.setInternetMaxBandwidthOut(_ctx.integerValue("DescribeImagePipelinesResponse.ImagePipeline["+ i +"].InternetMaxBandwidthOut")); + imagePipelineSet.setImagePipelineId(_ctx.stringValue("DescribeImagePipelinesResponse.ImagePipeline["+ i +"].ImagePipelineId")); + imagePipelineSet.setVSwitchId(_ctx.stringValue("DescribeImagePipelinesResponse.ImagePipeline["+ i +"].VSwitchId")); + imagePipelineSet.setSystemDiskSize(_ctx.integerValue("DescribeImagePipelinesResponse.ImagePipeline["+ i +"].SystemDiskSize")); + imagePipelineSet.setDescription(_ctx.stringValue("DescribeImagePipelinesResponse.ImagePipeline["+ i +"].Description")); + imagePipelineSet.setBaseImage(_ctx.stringValue("DescribeImagePipelinesResponse.ImagePipeline["+ i +"].BaseImage")); + imagePipelineSet.setResourceGroupId(_ctx.stringValue("DescribeImagePipelinesResponse.ImagePipeline["+ i +"].ResourceGroupId")); + imagePipelineSet.setImageName(_ctx.stringValue("DescribeImagePipelinesResponse.ImagePipeline["+ i +"].ImageName")); + imagePipelineSet.setBaseImageType(_ctx.stringValue("DescribeImagePipelinesResponse.ImagePipeline["+ i +"].BaseImageType")); + imagePipelineSet.setName(_ctx.stringValue("DescribeImagePipelinesResponse.ImagePipeline["+ i +"].Name")); + imagePipelineSet.setBuildContent(_ctx.stringValue("DescribeImagePipelinesResponse.ImagePipeline["+ i +"].BuildContent")); + + List toRegionIds = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeImagePipelinesResponse.ImagePipeline["+ i +"].ToRegionIds.Length"); j++) { + toRegionIds.add(_ctx.stringValue("DescribeImagePipelinesResponse.ImagePipeline["+ i +"].ToRegionIds["+ j +"]")); + } + imagePipelineSet.setToRegionIds(toRegionIds); + + List addAccounts = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeImagePipelinesResponse.ImagePipeline["+ i +"].AddAccounts.Length"); j++) { + addAccounts.add(_ctx.stringValue("DescribeImagePipelinesResponse.ImagePipeline["+ i +"].AddAccounts["+ j +"]")); + } + imagePipelineSet.setAddAccounts(addAccounts); + + List tags = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeImagePipelinesResponse.ImagePipeline["+ i +"].Tags.Length"); j++) { + Tag tag = new Tag(); + tag.setTagValue(_ctx.stringValue("DescribeImagePipelinesResponse.ImagePipeline["+ i +"].Tags["+ j +"].TagValue")); + tag.setTagKey(_ctx.stringValue("DescribeImagePipelinesResponse.ImagePipeline["+ i +"].Tags["+ j +"].TagKey")); + + tags.add(tag); + } + imagePipelineSet.setTags(tags); + + imagePipeline.add(imagePipelineSet); + } + describeImagePipelinesResponse.setImagePipeline(imagePipeline); + + return describeImagePipelinesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeImageSharePermissionResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeImageSharePermissionResponseUnmarshaller.java new file mode 100644 index 0000000000..4c3f7b93c2 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeImageSharePermissionResponseUnmarshaller.java @@ -0,0 +1,58 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeImageSharePermissionResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeImageSharePermissionResponse.Account; +import com.aliyuncs.ecs.model.v20140526.DescribeImageSharePermissionResponse.ShareGroup; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeImageSharePermissionResponseUnmarshaller { + + public static DescribeImageSharePermissionResponse unmarshall(DescribeImageSharePermissionResponse describeImageSharePermissionResponse, UnmarshallerContext _ctx) { + + describeImageSharePermissionResponse.setRequestId(_ctx.stringValue("DescribeImageSharePermissionResponse.RequestId")); + describeImageSharePermissionResponse.setPageNumber(_ctx.integerValue("DescribeImageSharePermissionResponse.PageNumber")); + describeImageSharePermissionResponse.setPageSize(_ctx.integerValue("DescribeImageSharePermissionResponse.PageSize")); + describeImageSharePermissionResponse.setTotalCount(_ctx.integerValue("DescribeImageSharePermissionResponse.TotalCount")); + describeImageSharePermissionResponse.setImageId(_ctx.stringValue("DescribeImageSharePermissionResponse.ImageId")); + describeImageSharePermissionResponse.setRegionId(_ctx.stringValue("DescribeImageSharePermissionResponse.RegionId")); + + List shareGroups = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeImageSharePermissionResponse.ShareGroups.Length"); i++) { + ShareGroup shareGroup = new ShareGroup(); + shareGroup.setGroup(_ctx.stringValue("DescribeImageSharePermissionResponse.ShareGroups["+ i +"].Group")); + + shareGroups.add(shareGroup); + } + describeImageSharePermissionResponse.setShareGroups(shareGroups); + + List accounts = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeImageSharePermissionResponse.Accounts.Length"); i++) { + Account account = new Account(); + account.setAliyunId(_ctx.stringValue("DescribeImageSharePermissionResponse.Accounts["+ i +"].AliyunId")); + account.setSharedTime(_ctx.stringValue("DescribeImageSharePermissionResponse.Accounts["+ i +"].SharedTime")); + + accounts.add(account); + } + describeImageSharePermissionResponse.setAccounts(accounts); + + return describeImageSharePermissionResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeImageSupportInstanceTypesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeImageSupportInstanceTypesResponseUnmarshaller.java new file mode 100644 index 0000000000..a84d2793a7 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeImageSupportInstanceTypesResponseUnmarshaller.java @@ -0,0 +1,47 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeImageSupportInstanceTypesResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeImageSupportInstanceTypesResponse.InstanceType; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeImageSupportInstanceTypesResponseUnmarshaller { + + public static DescribeImageSupportInstanceTypesResponse unmarshall(DescribeImageSupportInstanceTypesResponse describeImageSupportInstanceTypesResponse, UnmarshallerContext _ctx) { + + describeImageSupportInstanceTypesResponse.setRequestId(_ctx.stringValue("DescribeImageSupportInstanceTypesResponse.RequestId")); + describeImageSupportInstanceTypesResponse.setImageId(_ctx.stringValue("DescribeImageSupportInstanceTypesResponse.ImageId")); + describeImageSupportInstanceTypesResponse.setRegionId(_ctx.stringValue("DescribeImageSupportInstanceTypesResponse.RegionId")); + + List instanceTypes = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeImageSupportInstanceTypesResponse.InstanceTypes.Length"); i++) { + InstanceType instanceType = new InstanceType(); + instanceType.setInstanceTypeId(_ctx.stringValue("DescribeImageSupportInstanceTypesResponse.InstanceTypes["+ i +"].InstanceTypeId")); + instanceType.setInstanceTypeFamily(_ctx.stringValue("DescribeImageSupportInstanceTypesResponse.InstanceTypes["+ i +"].InstanceTypeFamily")); + instanceType.setCpuCoreCount(_ctx.integerValue("DescribeImageSupportInstanceTypesResponse.InstanceTypes["+ i +"].CpuCoreCount")); + instanceType.setMemorySize(_ctx.floatValue("DescribeImageSupportInstanceTypesResponse.InstanceTypes["+ i +"].MemorySize")); + + instanceTypes.add(instanceType); + } + describeImageSupportInstanceTypesResponse.setInstanceTypes(instanceTypes); + + return describeImageSupportInstanceTypesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeImagesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeImagesResponseUnmarshaller.java new file mode 100644 index 0000000000..15303af4d0 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeImagesResponseUnmarshaller.java @@ -0,0 +1,125 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeImagesResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeImagesResponse.Image; +import com.aliyuncs.ecs.model.v20140526.DescribeImagesResponse.Image.DetectionOptions; +import com.aliyuncs.ecs.model.v20140526.DescribeImagesResponse.Image.DetectionOptions.Item; +import com.aliyuncs.ecs.model.v20140526.DescribeImagesResponse.Image.DiskDeviceMapping; +import com.aliyuncs.ecs.model.v20140526.DescribeImagesResponse.Image.Features; +import com.aliyuncs.ecs.model.v20140526.DescribeImagesResponse.Image.Tag; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeImagesResponseUnmarshaller { + + public static DescribeImagesResponse unmarshall(DescribeImagesResponse describeImagesResponse, UnmarshallerContext _ctx) { + + describeImagesResponse.setRequestId(_ctx.stringValue("DescribeImagesResponse.RequestId")); + describeImagesResponse.setPageSize(_ctx.integerValue("DescribeImagesResponse.PageSize")); + describeImagesResponse.setPageNumber(_ctx.integerValue("DescribeImagesResponse.PageNumber")); + describeImagesResponse.setTotalCount(_ctx.integerValue("DescribeImagesResponse.TotalCount")); + describeImagesResponse.setRegionId(_ctx.stringValue("DescribeImagesResponse.RegionId")); + + List images = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeImagesResponse.Images.Length"); i++) { + Image image = new Image(); + image.setCreationTime(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].CreationTime")); + image.setStatus(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].Status")); + image.setImageFamily(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].ImageFamily")); + image.setProgress(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].Progress")); + image.setIsCopied(_ctx.booleanValue("DescribeImagesResponse.Images["+ i +"].IsCopied")); + image.setIsSupportIoOptimized(_ctx.booleanValue("DescribeImagesResponse.Images["+ i +"].IsSupportIoOptimized")); + image.setImageOwnerAlias(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].ImageOwnerAlias")); + image.setIsSupportCloudinit(_ctx.booleanValue("DescribeImagesResponse.Images["+ i +"].IsSupportCloudinit")); + image.setImageVersion(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].ImageVersion")); + image.setUsage(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].Usage")); + image.setIsSelfShared(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].IsSelfShared")); + image.setDescription(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].Description")); + image.setSize(_ctx.integerValue("DescribeImagesResponse.Images["+ i +"].Size")); + image.setResourceGroupId(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].ResourceGroupId")); + image.setPlatform(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].Platform")); + image.setOSNameEn(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].OSNameEn")); + image.setImageName(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].ImageName")); + image.setOSName(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].OSName")); + image.setImageId(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].ImageId")); + image.setOSType(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].OSType")); + image.setIsSubscribed(_ctx.booleanValue("DescribeImagesResponse.Images["+ i +"].IsSubscribed")); + image.setProductCode(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].ProductCode")); + image.setArchitecture(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].Architecture")); + image.setBootMode(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].BootMode")); + image.setIsPublic(_ctx.booleanValue("DescribeImagesResponse.Images["+ i +"].IsPublic")); + image.setImageOwnerId(_ctx.longValue("DescribeImagesResponse.Images["+ i +"].ImageOwnerId")); + image.setLoginAsNonRootSupported(_ctx.booleanValue("DescribeImagesResponse.Images["+ i +"].LoginAsNonRootSupported")); + image.setSupplierName(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].SupplierName")); + + DetectionOptions detectionOptions = new DetectionOptions(); + detectionOptions.setStatus(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].DetectionOptions.Status")); + + List items = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeImagesResponse.Images["+ i +"].DetectionOptions.Items.Length"); j++) { + Item item = new Item(); + item.setName(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].DetectionOptions.Items["+ j +"].Name")); + item.setValue(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].DetectionOptions.Items["+ j +"].Value")); + item.setRiskLevel(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].DetectionOptions.Items["+ j +"].RiskLevel")); + item.setRiskCode(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].DetectionOptions.Items["+ j +"].RiskCode")); + + items.add(item); + } + detectionOptions.setItems(items); + image.setDetectionOptions(detectionOptions); + + Features features = new Features(); + features.setNvmeSupport(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].Features.NvmeSupport")); + image.setFeatures(features); + + List diskDeviceMappings = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeImagesResponse.Images["+ i +"].DiskDeviceMappings.Length"); j++) { + DiskDeviceMapping diskDeviceMapping = new DiskDeviceMapping(); + diskDeviceMapping.setType(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].DiskDeviceMappings["+ j +"].Type")); + diskDeviceMapping.setImportOSSBucket(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].DiskDeviceMappings["+ j +"].ImportOSSBucket")); + diskDeviceMapping.setProgress(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].DiskDeviceMappings["+ j +"].Progress")); + diskDeviceMapping.setSnapshotId(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].DiskDeviceMappings["+ j +"].SnapshotId")); + diskDeviceMapping.setImportOSSObject(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].DiskDeviceMappings["+ j +"].ImportOSSObject")); + diskDeviceMapping.setDevice(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].DiskDeviceMappings["+ j +"].Device")); + diskDeviceMapping.setSize(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].DiskDeviceMappings["+ j +"].Size")); + diskDeviceMapping.setRemainTime(_ctx.integerValue("DescribeImagesResponse.Images["+ i +"].DiskDeviceMappings["+ j +"].RemainTime")); + diskDeviceMapping.setFormat(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].DiskDeviceMappings["+ j +"].Format")); + + diskDeviceMappings.add(diskDeviceMapping); + } + image.setDiskDeviceMappings(diskDeviceMappings); + + List tags = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeImagesResponse.Images["+ i +"].Tags.Length"); j++) { + Tag tag = new Tag(); + tag.setTagValue(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].Tags["+ j +"].TagValue")); + tag.setTagKey(_ctx.stringValue("DescribeImagesResponse.Images["+ i +"].Tags["+ j +"].TagKey")); + + tags.add(tag); + } + image.setTags(tags); + + images.add(image); + } + describeImagesResponse.setImages(images); + + return describeImagesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceAttachmentAttributesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceAttachmentAttributesResponseUnmarshaller.java new file mode 100644 index 0000000000..5b327d3ac5 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceAttachmentAttributesResponseUnmarshaller.java @@ -0,0 +1,47 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceAttachmentAttributesResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceAttachmentAttributesResponse.Instance; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeInstanceAttachmentAttributesResponseUnmarshaller { + + public static DescribeInstanceAttachmentAttributesResponse unmarshall(DescribeInstanceAttachmentAttributesResponse describeInstanceAttachmentAttributesResponse, UnmarshallerContext _ctx) { + + describeInstanceAttachmentAttributesResponse.setRequestId(_ctx.stringValue("DescribeInstanceAttachmentAttributesResponse.RequestId")); + describeInstanceAttachmentAttributesResponse.setPageSize(_ctx.integerValue("DescribeInstanceAttachmentAttributesResponse.PageSize")); + describeInstanceAttachmentAttributesResponse.setPageNumber(_ctx.integerValue("DescribeInstanceAttachmentAttributesResponse.PageNumber")); + describeInstanceAttachmentAttributesResponse.setTotalCount(_ctx.integerValue("DescribeInstanceAttachmentAttributesResponse.TotalCount")); + + List instances = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeInstanceAttachmentAttributesResponse.Instances.Length"); i++) { + Instance instance = new Instance(); + instance.setInstanceId(_ctx.stringValue("DescribeInstanceAttachmentAttributesResponse.Instances["+ i +"].InstanceId")); + instance.setPrivatePoolOptionsMatchCriteria(_ctx.stringValue("DescribeInstanceAttachmentAttributesResponse.Instances["+ i +"].PrivatePoolOptionsMatchCriteria")); + instance.setPrivatePoolOptionsId(_ctx.stringValue("DescribeInstanceAttachmentAttributesResponse.Instances["+ i +"].PrivatePoolOptionsId")); + + instances.add(instance); + } + describeInstanceAttachmentAttributesResponse.setInstances(instances); + + return describeInstanceAttachmentAttributesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceAttributeResponseUnmarshaller.java new file mode 100644 index 0000000000..6b7333e2e8 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceAttributeResponseUnmarshaller.java @@ -0,0 +1,112 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceAttributeResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceAttributeResponse.DedicatedHostAttribute; +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceAttributeResponse.EipAddress; +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceAttributeResponse.LockReason; +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceAttributeResponse.VpcAttributes; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeInstanceAttributeResponseUnmarshaller { + + public static DescribeInstanceAttributeResponse unmarshall(DescribeInstanceAttributeResponse describeInstanceAttributeResponse, UnmarshallerContext _ctx) { + + describeInstanceAttributeResponse.setRequestId(_ctx.stringValue("DescribeInstanceAttributeResponse.RequestId")); + describeInstanceAttributeResponse.setStatus(_ctx.stringValue("DescribeInstanceAttributeResponse.Status")); + describeInstanceAttributeResponse.setSerialNumber(_ctx.stringValue("DescribeInstanceAttributeResponse.SerialNumber")); + describeInstanceAttributeResponse.setCreationTime(_ctx.stringValue("DescribeInstanceAttributeResponse.CreationTime")); + describeInstanceAttributeResponse.setDescription(_ctx.stringValue("DescribeInstanceAttributeResponse.Description")); + describeInstanceAttributeResponse.setInstanceName(_ctx.stringValue("DescribeInstanceAttributeResponse.InstanceName")); + describeInstanceAttributeResponse.setInstanceNetworkType(_ctx.stringValue("DescribeInstanceAttributeResponse.InstanceNetworkType")); + describeInstanceAttributeResponse.setMemory(_ctx.integerValue("DescribeInstanceAttributeResponse.Memory")); + describeInstanceAttributeResponse.setImageId(_ctx.stringValue("DescribeInstanceAttributeResponse.ImageId")); + describeInstanceAttributeResponse.setClusterId(_ctx.stringValue("DescribeInstanceAttributeResponse.ClusterId")); + describeInstanceAttributeResponse.setVlanId(_ctx.stringValue("DescribeInstanceAttributeResponse.VlanId")); + describeInstanceAttributeResponse.setStoppedMode(_ctx.stringValue("DescribeInstanceAttributeResponse.StoppedMode")); + describeInstanceAttributeResponse.setHostName(_ctx.stringValue("DescribeInstanceAttributeResponse.HostName")); + describeInstanceAttributeResponse.setInstanceId(_ctx.stringValue("DescribeInstanceAttributeResponse.InstanceId")); + describeInstanceAttributeResponse.setInstanceType(_ctx.stringValue("DescribeInstanceAttributeResponse.InstanceType")); + describeInstanceAttributeResponse.setInternetMaxBandwidthIn(_ctx.integerValue("DescribeInstanceAttributeResponse.InternetMaxBandwidthIn")); + describeInstanceAttributeResponse.setInternetMaxBandwidthOut(_ctx.integerValue("DescribeInstanceAttributeResponse.InternetMaxBandwidthOut")); + describeInstanceAttributeResponse.setRegionId(_ctx.stringValue("DescribeInstanceAttributeResponse.RegionId")); + describeInstanceAttributeResponse.setInstanceChargeType(_ctx.stringValue("DescribeInstanceAttributeResponse.InstanceChargeType")); + describeInstanceAttributeResponse.setIoOptimized(_ctx.stringValue("DescribeInstanceAttributeResponse.IoOptimized")); + describeInstanceAttributeResponse.setCpu(_ctx.integerValue("DescribeInstanceAttributeResponse.Cpu")); + describeInstanceAttributeResponse.setExpiredTime(_ctx.stringValue("DescribeInstanceAttributeResponse.ExpiredTime")); + describeInstanceAttributeResponse.setZoneId(_ctx.stringValue("DescribeInstanceAttributeResponse.ZoneId")); + describeInstanceAttributeResponse.setInternetChargeType(_ctx.stringValue("DescribeInstanceAttributeResponse.InternetChargeType")); + describeInstanceAttributeResponse.setCreditSpecification(_ctx.stringValue("DescribeInstanceAttributeResponse.CreditSpecification")); + describeInstanceAttributeResponse.setEnableJumboFrame(_ctx.booleanValue("DescribeInstanceAttributeResponse.EnableJumboFrame")); + + List securityGroupIds = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeInstanceAttributeResponse.SecurityGroupIds.Length"); i++) { + securityGroupIds.add(_ctx.stringValue("DescribeInstanceAttributeResponse.SecurityGroupIds["+ i +"]")); + } + describeInstanceAttributeResponse.setSecurityGroupIds(securityGroupIds); + + List publicIpAddress = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeInstanceAttributeResponse.PublicIpAddress.Length"); i++) { + publicIpAddress.add(_ctx.stringValue("DescribeInstanceAttributeResponse.PublicIpAddress["+ i +"]")); + } + describeInstanceAttributeResponse.setPublicIpAddress(publicIpAddress); + + List innerIpAddress = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeInstanceAttributeResponse.InnerIpAddress.Length"); i++) { + innerIpAddress.add(_ctx.stringValue("DescribeInstanceAttributeResponse.InnerIpAddress["+ i +"]")); + } + describeInstanceAttributeResponse.setInnerIpAddress(innerIpAddress); + + VpcAttributes vpcAttributes = new VpcAttributes(); + vpcAttributes.setVpcId(_ctx.stringValue("DescribeInstanceAttributeResponse.VpcAttributes.VpcId")); + vpcAttributes.setNatIpAddress(_ctx.stringValue("DescribeInstanceAttributeResponse.VpcAttributes.NatIpAddress")); + vpcAttributes.setVSwitchId(_ctx.stringValue("DescribeInstanceAttributeResponse.VpcAttributes.VSwitchId")); + + List privateIpAddress = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeInstanceAttributeResponse.VpcAttributes.PrivateIpAddress.Length"); i++) { + privateIpAddress.add(_ctx.stringValue("DescribeInstanceAttributeResponse.VpcAttributes.PrivateIpAddress["+ i +"]")); + } + vpcAttributes.setPrivateIpAddress(privateIpAddress); + describeInstanceAttributeResponse.setVpcAttributes(vpcAttributes); + + EipAddress eipAddress = new EipAddress(); + eipAddress.setInternetChargeType(_ctx.stringValue("DescribeInstanceAttributeResponse.EipAddress.InternetChargeType")); + eipAddress.setIpAddress(_ctx.stringValue("DescribeInstanceAttributeResponse.EipAddress.IpAddress")); + eipAddress.setBandwidth(_ctx.integerValue("DescribeInstanceAttributeResponse.EipAddress.Bandwidth")); + eipAddress.setAllocationId(_ctx.stringValue("DescribeInstanceAttributeResponse.EipAddress.AllocationId")); + describeInstanceAttributeResponse.setEipAddress(eipAddress); + + DedicatedHostAttribute dedicatedHostAttribute = new DedicatedHostAttribute(); + dedicatedHostAttribute.setDedicatedHostName(_ctx.stringValue("DescribeInstanceAttributeResponse.DedicatedHostAttribute.DedicatedHostName")); + dedicatedHostAttribute.setDedicatedHostId(_ctx.stringValue("DescribeInstanceAttributeResponse.DedicatedHostAttribute.DedicatedHostId")); + describeInstanceAttributeResponse.setDedicatedHostAttribute(dedicatedHostAttribute); + + List operationLocks = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeInstanceAttributeResponse.OperationLocks.Length"); i++) { + LockReason lockReason = new LockReason(); + lockReason.setLockReason(_ctx.stringValue("DescribeInstanceAttributeResponse.OperationLocks["+ i +"].LockReason")); + + operationLocks.add(lockReason); + } + describeInstanceAttributeResponse.setOperationLocks(operationLocks); + + return describeInstanceAttributeResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceAutoRenewAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceAutoRenewAttributeResponseUnmarshaller.java new file mode 100644 index 0000000000..141d3c4c8e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceAutoRenewAttributeResponseUnmarshaller.java @@ -0,0 +1,49 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceAutoRenewAttributeResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceAutoRenewAttributeResponse.InstanceRenewAttribute; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeInstanceAutoRenewAttributeResponseUnmarshaller { + + public static DescribeInstanceAutoRenewAttributeResponse unmarshall(DescribeInstanceAutoRenewAttributeResponse describeInstanceAutoRenewAttributeResponse, UnmarshallerContext _ctx) { + + describeInstanceAutoRenewAttributeResponse.setRequestId(_ctx.stringValue("DescribeInstanceAutoRenewAttributeResponse.RequestId")); + describeInstanceAutoRenewAttributeResponse.setPageNumber(_ctx.integerValue("DescribeInstanceAutoRenewAttributeResponse.PageNumber")); + describeInstanceAutoRenewAttributeResponse.setPageSize(_ctx.integerValue("DescribeInstanceAutoRenewAttributeResponse.PageSize")); + describeInstanceAutoRenewAttributeResponse.setTotalCount(_ctx.integerValue("DescribeInstanceAutoRenewAttributeResponse.TotalCount")); + + List instanceRenewAttributes = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeInstanceAutoRenewAttributeResponse.InstanceRenewAttributes.Length"); i++) { + InstanceRenewAttribute instanceRenewAttribute = new InstanceRenewAttribute(); + instanceRenewAttribute.setPeriodUnit(_ctx.stringValue("DescribeInstanceAutoRenewAttributeResponse.InstanceRenewAttributes["+ i +"].PeriodUnit")); + instanceRenewAttribute.setDuration(_ctx.integerValue("DescribeInstanceAutoRenewAttributeResponse.InstanceRenewAttributes["+ i +"].Duration")); + instanceRenewAttribute.setRenewalStatus(_ctx.stringValue("DescribeInstanceAutoRenewAttributeResponse.InstanceRenewAttributes["+ i +"].RenewalStatus")); + instanceRenewAttribute.setInstanceId(_ctx.stringValue("DescribeInstanceAutoRenewAttributeResponse.InstanceRenewAttributes["+ i +"].InstanceId")); + instanceRenewAttribute.setAutoRenewEnabled(_ctx.booleanValue("DescribeInstanceAutoRenewAttributeResponse.InstanceRenewAttributes["+ i +"].AutoRenewEnabled")); + + instanceRenewAttributes.add(instanceRenewAttribute); + } + describeInstanceAutoRenewAttributeResponse.setInstanceRenewAttributes(instanceRenewAttributes); + + return describeInstanceAutoRenewAttributeResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceHistoryEventsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceHistoryEventsResponseUnmarshaller.java new file mode 100644 index 0000000000..8a26da03d8 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceHistoryEventsResponseUnmarshaller.java @@ -0,0 +1,99 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceHistoryEventsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceHistoryEventsResponse.InstanceSystemEventType; +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceHistoryEventsResponse.InstanceSystemEventType.EventCycleStatus; +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceHistoryEventsResponse.InstanceSystemEventType.EventType; +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceHistoryEventsResponse.InstanceSystemEventType.ExtendedAttribute; +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceHistoryEventsResponse.InstanceSystemEventType.ExtendedAttribute.InactiveDisk; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeInstanceHistoryEventsResponseUnmarshaller { + + public static DescribeInstanceHistoryEventsResponse unmarshall(DescribeInstanceHistoryEventsResponse describeInstanceHistoryEventsResponse, UnmarshallerContext _ctx) { + + describeInstanceHistoryEventsResponse.setRequestId(_ctx.stringValue("DescribeInstanceHistoryEventsResponse.RequestId")); + describeInstanceHistoryEventsResponse.setPageSize(_ctx.integerValue("DescribeInstanceHistoryEventsResponse.PageSize")); + describeInstanceHistoryEventsResponse.setPageNumber(_ctx.integerValue("DescribeInstanceHistoryEventsResponse.PageNumber")); + describeInstanceHistoryEventsResponse.setTotalCount(_ctx.integerValue("DescribeInstanceHistoryEventsResponse.TotalCount")); + + List instanceSystemEventSet = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet.Length"); i++) { + InstanceSystemEventType instanceSystemEventType = new InstanceSystemEventType(); + instanceSystemEventType.setEventId(_ctx.stringValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet["+ i +"].EventId")); + instanceSystemEventType.setEventPublishTime(_ctx.stringValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet["+ i +"].EventPublishTime")); + instanceSystemEventType.setEventFinishTime(_ctx.stringValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet["+ i +"].EventFinishTime")); + instanceSystemEventType.setResourceType(_ctx.stringValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet["+ i +"].ResourceType")); + instanceSystemEventType.setImpactLevel(_ctx.stringValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet["+ i +"].ImpactLevel")); + instanceSystemEventType.setNotBefore(_ctx.stringValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet["+ i +"].NotBefore")); + instanceSystemEventType.setInstanceId(_ctx.stringValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet["+ i +"].InstanceId")); + instanceSystemEventType.setReason(_ctx.stringValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet["+ i +"].Reason")); + + EventType eventType = new EventType(); + eventType.setName(_ctx.stringValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet["+ i +"].EventType.Name")); + eventType.setCode(_ctx.integerValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet["+ i +"].EventType.Code")); + instanceSystemEventType.setEventType(eventType); + + EventCycleStatus eventCycleStatus = new EventCycleStatus(); + eventCycleStatus.setName(_ctx.stringValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet["+ i +"].EventCycleStatus.Name")); + eventCycleStatus.setCode(_ctx.integerValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet["+ i +"].EventCycleStatus.Code")); + instanceSystemEventType.setEventCycleStatus(eventCycleStatus); + + ExtendedAttribute extendedAttribute = new ExtendedAttribute(); + extendedAttribute.setDevice(_ctx.stringValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet["+ i +"].ExtendedAttribute.Device")); + extendedAttribute.setDiskId(_ctx.stringValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet["+ i +"].ExtendedAttribute.DiskId")); + extendedAttribute.setHostType(_ctx.stringValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet["+ i +"].ExtendedAttribute.HostType")); + extendedAttribute.setHostId(_ctx.stringValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet["+ i +"].ExtendedAttribute.HostId")); + extendedAttribute.setOnlineRepairPolicy(_ctx.stringValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet["+ i +"].ExtendedAttribute.OnlineRepairPolicy")); + extendedAttribute.setRack(_ctx.stringValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet["+ i +"].ExtendedAttribute.Rack")); + extendedAttribute.setPunishType(_ctx.stringValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet["+ i +"].ExtendedAttribute.PunishType")); + extendedAttribute.setPunishDomain(_ctx.stringValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet["+ i +"].ExtendedAttribute.PunishDomain")); + extendedAttribute.setPunishUrl(_ctx.stringValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet["+ i +"].ExtendedAttribute.PunishUrl")); + extendedAttribute.setCode(_ctx.stringValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet["+ i +"].ExtendedAttribute.Code")); + extendedAttribute.setCanAccept(_ctx.stringValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet["+ i +"].ExtendedAttribute.CanAccept")); + + List migrationOptions = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet["+ i +"].ExtendedAttribute.MigrationOptions.Length"); j++) { + migrationOptions.add(_ctx.stringValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet["+ i +"].ExtendedAttribute.MigrationOptions["+ j +"]")); + } + extendedAttribute.setMigrationOptions(migrationOptions); + + List inactiveDisks = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet["+ i +"].ExtendedAttribute.InactiveDisks.Length"); j++) { + InactiveDisk inactiveDisk = new InactiveDisk(); + inactiveDisk.setCreationTime(_ctx.stringValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet["+ i +"].ExtendedAttribute.InactiveDisks["+ j +"].CreationTime")); + inactiveDisk.setDeviceSize(_ctx.stringValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet["+ i +"].ExtendedAttribute.InactiveDisks["+ j +"].DeviceSize")); + inactiveDisk.setDeviceCategory(_ctx.stringValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet["+ i +"].ExtendedAttribute.InactiveDisks["+ j +"].DeviceCategory")); + inactiveDisk.setDeviceType(_ctx.stringValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet["+ i +"].ExtendedAttribute.InactiveDisks["+ j +"].DeviceType")); + inactiveDisk.setReleaseTime(_ctx.stringValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet["+ i +"].ExtendedAttribute.InactiveDisks["+ j +"].ReleaseTime")); + + inactiveDisks.add(inactiveDisk); + } + extendedAttribute.setInactiveDisks(inactiveDisks); + instanceSystemEventType.setExtendedAttribute(extendedAttribute); + + instanceSystemEventSet.add(instanceSystemEventType); + } + describeInstanceHistoryEventsResponse.setInstanceSystemEventSet(instanceSystemEventSet); + + return describeInstanceHistoryEventsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeInstanceMaintenanceAttributesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceMaintenanceAttributesResponseUnmarshaller.java similarity index 88% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeInstanceMaintenanceAttributesResponseUnmarshaller.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceMaintenanceAttributesResponseUnmarshaller.java index 7f6bad6ea6..f19d8aa31d 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeInstanceMaintenanceAttributesResponseUnmarshaller.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceMaintenanceAttributesResponseUnmarshaller.java @@ -12,15 +12,15 @@ * limitations under the License. */ -package com.aliyuncs.ecs.transform.v20160314; +package com.aliyuncs.ecs.transform.v20140526; import java.util.ArrayList; import java.util.List; -import com.aliyuncs.ecs.model.v20160314.DescribeInstanceMaintenanceAttributesResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeInstanceMaintenanceAttributesResponse.MaintenanceAttribute; -import com.aliyuncs.ecs.model.v20160314.DescribeInstanceMaintenanceAttributesResponse.MaintenanceAttribute.ActionOnMaintenance; -import com.aliyuncs.ecs.model.v20160314.DescribeInstanceMaintenanceAttributesResponse.MaintenanceAttribute.MaintenanceWindow; +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceMaintenanceAttributesResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceMaintenanceAttributesResponse.MaintenanceAttribute; +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceMaintenanceAttributesResponse.MaintenanceAttribute.ActionOnMaintenance; +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceMaintenanceAttributesResponse.MaintenanceAttribute.MaintenanceWindow; import com.aliyuncs.transform.UnmarshallerContext; @@ -36,7 +36,7 @@ public static DescribeInstanceMaintenanceAttributesResponse unmarshall(DescribeI List maintenanceAttributes = new ArrayList(); for (int i = 0; i < _ctx.lengthValue("DescribeInstanceMaintenanceAttributesResponse.MaintenanceAttributes.Length"); i++) { MaintenanceAttribute maintenanceAttribute = new MaintenanceAttribute(); - maintenanceAttribute.setLiveMigration(_ctx.booleanValue("DescribeInstanceMaintenanceAttributesResponse.MaintenanceAttributes["+ i +"].LiveMigration")); + maintenanceAttribute.setNotifyOnMaintenance(_ctx.booleanValue("DescribeInstanceMaintenanceAttributesResponse.MaintenanceAttributes["+ i +"].NotifyOnMaintenance")); maintenanceAttribute.setInstanceId(_ctx.stringValue("DescribeInstanceMaintenanceAttributesResponse.MaintenanceAttributes["+ i +"].InstanceId")); ActionOnMaintenance actionOnMaintenance = new ActionOnMaintenance(); diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeInstanceModificationPriceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceModificationPriceResponseUnmarshaller.java similarity index 87% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeInstanceModificationPriceResponseUnmarshaller.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceModificationPriceResponseUnmarshaller.java index e693e00b68..f0d1b27a08 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeInstanceModificationPriceResponseUnmarshaller.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceModificationPriceResponseUnmarshaller.java @@ -12,15 +12,15 @@ * limitations under the License. */ -package com.aliyuncs.ecs.transform.v20160314; +package com.aliyuncs.ecs.transform.v20140526; import java.util.ArrayList; import java.util.List; -import com.aliyuncs.ecs.model.v20160314.DescribeInstanceModificationPriceResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeInstanceModificationPriceResponse.PriceInfo; -import com.aliyuncs.ecs.model.v20160314.DescribeInstanceModificationPriceResponse.PriceInfo.Price; -import com.aliyuncs.ecs.model.v20160314.DescribeInstanceModificationPriceResponse.PriceInfo.Rule; +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceModificationPriceResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceModificationPriceResponse.PriceInfo; +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceModificationPriceResponse.PriceInfo.Price; +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceModificationPriceResponse.PriceInfo.Rule; import com.aliyuncs.transform.UnmarshallerContext; diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceMonitorDataResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceMonitorDataResponseUnmarshaller.java new file mode 100644 index 0000000000..57923fd590 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceMonitorDataResponseUnmarshaller.java @@ -0,0 +1,58 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceMonitorDataResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceMonitorDataResponse.InstanceMonitorData; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeInstanceMonitorDataResponseUnmarshaller { + + public static DescribeInstanceMonitorDataResponse unmarshall(DescribeInstanceMonitorDataResponse describeInstanceMonitorDataResponse, UnmarshallerContext _ctx) { + + describeInstanceMonitorDataResponse.setRequestId(_ctx.stringValue("DescribeInstanceMonitorDataResponse.RequestId")); + + List monitorData = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeInstanceMonitorDataResponse.MonitorData.Length"); i++) { + InstanceMonitorData instanceMonitorData = new InstanceMonitorData(); + instanceMonitorData.setCPUCreditBalance(_ctx.floatValue("DescribeInstanceMonitorDataResponse.MonitorData["+ i +"].CPUCreditBalance")); + instanceMonitorData.setBPSRead(_ctx.integerValue("DescribeInstanceMonitorDataResponse.MonitorData["+ i +"].BPSRead")); + instanceMonitorData.setInternetTX(_ctx.integerValue("DescribeInstanceMonitorDataResponse.MonitorData["+ i +"].InternetTX")); + instanceMonitorData.setCPU(_ctx.integerValue("DescribeInstanceMonitorDataResponse.MonitorData["+ i +"].CPU")); + instanceMonitorData.setCPUCreditUsage(_ctx.floatValue("DescribeInstanceMonitorDataResponse.MonitorData["+ i +"].CPUCreditUsage")); + instanceMonitorData.setIOPSWrite(_ctx.integerValue("DescribeInstanceMonitorDataResponse.MonitorData["+ i +"].IOPSWrite")); + instanceMonitorData.setIntranetTX(_ctx.integerValue("DescribeInstanceMonitorDataResponse.MonitorData["+ i +"].IntranetTX")); + instanceMonitorData.setInstanceId(_ctx.stringValue("DescribeInstanceMonitorDataResponse.MonitorData["+ i +"].InstanceId")); + instanceMonitorData.setBPSWrite(_ctx.integerValue("DescribeInstanceMonitorDataResponse.MonitorData["+ i +"].BPSWrite")); + instanceMonitorData.setCPUNotpaidSurplusCreditUsage(_ctx.floatValue("DescribeInstanceMonitorDataResponse.MonitorData["+ i +"].CPUNotpaidSurplusCreditUsage")); + instanceMonitorData.setCPUAdvanceCreditBalance(_ctx.floatValue("DescribeInstanceMonitorDataResponse.MonitorData["+ i +"].CPUAdvanceCreditBalance")); + instanceMonitorData.setIOPSRead(_ctx.integerValue("DescribeInstanceMonitorDataResponse.MonitorData["+ i +"].IOPSRead")); + instanceMonitorData.setInternetBandwidth(_ctx.integerValue("DescribeInstanceMonitorDataResponse.MonitorData["+ i +"].InternetBandwidth")); + instanceMonitorData.setInternetRX(_ctx.integerValue("DescribeInstanceMonitorDataResponse.MonitorData["+ i +"].InternetRX")); + instanceMonitorData.setTimeStamp(_ctx.stringValue("DescribeInstanceMonitorDataResponse.MonitorData["+ i +"].TimeStamp")); + instanceMonitorData.setIntranetRX(_ctx.integerValue("DescribeInstanceMonitorDataResponse.MonitorData["+ i +"].IntranetRX")); + instanceMonitorData.setIntranetBandwidth(_ctx.integerValue("DescribeInstanceMonitorDataResponse.MonitorData["+ i +"].IntranetBandwidth")); + + monitorData.add(instanceMonitorData); + } + describeInstanceMonitorDataResponse.setMonitorData(monitorData); + + return describeInstanceMonitorDataResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceRamRoleResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceRamRoleResponseUnmarshaller.java new file mode 100644 index 0000000000..0cf8b9aaab --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceRamRoleResponseUnmarshaller.java @@ -0,0 +1,45 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceRamRoleResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceRamRoleResponse.InstanceRamRoleSet; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeInstanceRamRoleResponseUnmarshaller { + + public static DescribeInstanceRamRoleResponse unmarshall(DescribeInstanceRamRoleResponse describeInstanceRamRoleResponse, UnmarshallerContext _ctx) { + + describeInstanceRamRoleResponse.setRequestId(_ctx.stringValue("DescribeInstanceRamRoleResponse.RequestId")); + describeInstanceRamRoleResponse.setTotalCount(_ctx.integerValue("DescribeInstanceRamRoleResponse.TotalCount")); + describeInstanceRamRoleResponse.setRegionId(_ctx.stringValue("DescribeInstanceRamRoleResponse.RegionId")); + + List instanceRamRoleSets = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeInstanceRamRoleResponse.InstanceRamRoleSets.Length"); i++) { + InstanceRamRoleSet instanceRamRoleSet = new InstanceRamRoleSet(); + instanceRamRoleSet.setRamRoleName(_ctx.stringValue("DescribeInstanceRamRoleResponse.InstanceRamRoleSets["+ i +"].RamRoleName")); + instanceRamRoleSet.setInstanceId(_ctx.stringValue("DescribeInstanceRamRoleResponse.InstanceRamRoleSets["+ i +"].InstanceId")); + + instanceRamRoleSets.add(instanceRamRoleSet); + } + describeInstanceRamRoleResponse.setInstanceRamRoleSets(instanceRamRoleSets); + + return describeInstanceRamRoleResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceStatusResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceStatusResponseUnmarshaller.java new file mode 100644 index 0000000000..cb68b1da6f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceStatusResponseUnmarshaller.java @@ -0,0 +1,46 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceStatusResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceStatusResponse.InstanceStatus; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeInstanceStatusResponseUnmarshaller { + + public static DescribeInstanceStatusResponse unmarshall(DescribeInstanceStatusResponse describeInstanceStatusResponse, UnmarshallerContext _ctx) { + + describeInstanceStatusResponse.setRequestId(_ctx.stringValue("DescribeInstanceStatusResponse.RequestId")); + describeInstanceStatusResponse.setPageSize(_ctx.integerValue("DescribeInstanceStatusResponse.PageSize")); + describeInstanceStatusResponse.setPageNumber(_ctx.integerValue("DescribeInstanceStatusResponse.PageNumber")); + describeInstanceStatusResponse.setTotalCount(_ctx.integerValue("DescribeInstanceStatusResponse.TotalCount")); + + List instanceStatuses = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeInstanceStatusResponse.InstanceStatuses.Length"); i++) { + InstanceStatus instanceStatus = new InstanceStatus(); + instanceStatus.setStatus(_ctx.stringValue("DescribeInstanceStatusResponse.InstanceStatuses["+ i +"].Status")); + instanceStatus.setInstanceId(_ctx.stringValue("DescribeInstanceStatusResponse.InstanceStatuses["+ i +"].InstanceId")); + + instanceStatuses.add(instanceStatus); + } + describeInstanceStatusResponse.setInstanceStatuses(instanceStatuses); + + return describeInstanceStatusResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceTopologyResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceTopologyResponseUnmarshaller.java new file mode 100644 index 0000000000..4f29709460 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceTopologyResponseUnmarshaller.java @@ -0,0 +1,43 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceTopologyResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceTopologyResponse.Topology; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeInstanceTopologyResponseUnmarshaller { + + public static DescribeInstanceTopologyResponse unmarshall(DescribeInstanceTopologyResponse describeInstanceTopologyResponse, UnmarshallerContext _ctx) { + + describeInstanceTopologyResponse.setRequestId(_ctx.stringValue("DescribeInstanceTopologyResponse.RequestId")); + + List topologys = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeInstanceTopologyResponse.Topologys.Length"); i++) { + Topology topology = new Topology(); + topology.setHostId(_ctx.stringValue("DescribeInstanceTopologyResponse.Topologys["+ i +"].HostId")); + topology.setInstanceId(_ctx.stringValue("DescribeInstanceTopologyResponse.Topologys["+ i +"].InstanceId")); + + topologys.add(topology); + } + describeInstanceTopologyResponse.setTopologys(topologys); + + return describeInstanceTopologyResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceTypeFamiliesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceTypeFamiliesResponseUnmarshaller.java new file mode 100644 index 0000000000..28fd49e91f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceTypeFamiliesResponseUnmarshaller.java @@ -0,0 +1,43 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceTypeFamiliesResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceTypeFamiliesResponse.InstanceTypeFamily; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeInstanceTypeFamiliesResponseUnmarshaller { + + public static DescribeInstanceTypeFamiliesResponse unmarshall(DescribeInstanceTypeFamiliesResponse describeInstanceTypeFamiliesResponse, UnmarshallerContext _ctx) { + + describeInstanceTypeFamiliesResponse.setRequestId(_ctx.stringValue("DescribeInstanceTypeFamiliesResponse.RequestId")); + + List instanceTypeFamilies = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeInstanceTypeFamiliesResponse.InstanceTypeFamilies.Length"); i++) { + InstanceTypeFamily instanceTypeFamily = new InstanceTypeFamily(); + instanceTypeFamily.setGeneration(_ctx.stringValue("DescribeInstanceTypeFamiliesResponse.InstanceTypeFamilies["+ i +"].Generation")); + instanceTypeFamily.setInstanceTypeFamilyId(_ctx.stringValue("DescribeInstanceTypeFamiliesResponse.InstanceTypeFamilies["+ i +"].InstanceTypeFamilyId")); + + instanceTypeFamilies.add(instanceTypeFamily); + } + describeInstanceTypeFamiliesResponse.setInstanceTypeFamilies(instanceTypeFamilies); + + return describeInstanceTypeFamiliesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceTypesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceTypesResponseUnmarshaller.java new file mode 100644 index 0000000000..5ed86fb61d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceTypesResponseUnmarshaller.java @@ -0,0 +1,89 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceTypesResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceTypesResponse.InstanceType; +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceTypesResponse.InstanceType.NetworkCardInfo; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeInstanceTypesResponseUnmarshaller { + + public static DescribeInstanceTypesResponse unmarshall(DescribeInstanceTypesResponse describeInstanceTypesResponse, UnmarshallerContext _ctx) { + + describeInstanceTypesResponse.setRequestId(_ctx.stringValue("DescribeInstanceTypesResponse.RequestId")); + describeInstanceTypesResponse.setNextToken(_ctx.stringValue("DescribeInstanceTypesResponse.NextToken")); + + List instanceTypes = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeInstanceTypesResponse.InstanceTypes.Length"); i++) { + InstanceType instanceType = new InstanceType(); + instanceType.setEniTotalQuantity(_ctx.integerValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].EniTotalQuantity")); + instanceType.setLocalStorageCategory(_ctx.stringValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].LocalStorageCategory")); + instanceType.setPrimaryEniQueueNumber(_ctx.integerValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].PrimaryEniQueueNumber")); + instanceType.setMemorySize(_ctx.floatValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].MemorySize")); + instanceType.setLocalStorageCapacity(_ctx.longValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].LocalStorageCapacity")); + instanceType.setInstanceFamilyLevel(_ctx.stringValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].InstanceFamilyLevel")); + instanceType.setInstancePpsRx(_ctx.longValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].InstancePpsRx")); + instanceType.setEniIpv6AddressQuantity(_ctx.integerValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].EniIpv6AddressQuantity")); + instanceType.setMaximumQueueNumberPerEni(_ctx.integerValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].MaximumQueueNumberPerEni")); + instanceType.setInstanceTypeId(_ctx.stringValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].InstanceTypeId")); + instanceType.setInstanceBandwidthRx(_ctx.integerValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].InstanceBandwidthRx")); + instanceType.setSecondaryEniQueueNumber(_ctx.integerValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].SecondaryEniQueueNumber")); + instanceType.setGPUSpec(_ctx.stringValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].GPUSpec")); + instanceType.setInstanceBandwidthTx(_ctx.integerValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].InstanceBandwidthTx")); + instanceType.setQueuePairNumber(_ctx.integerValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].QueuePairNumber")); + instanceType.setEriQuantity(_ctx.integerValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].EriQuantity")); + instanceType.setGPUAmount(_ctx.integerValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].GPUAmount")); + instanceType.setTotalEniQueueQuantity(_ctx.integerValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].TotalEniQueueQuantity")); + instanceType.setNvmeSupport(_ctx.stringValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].NvmeSupport")); + instanceType.setDiskQuantity(_ctx.integerValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].DiskQuantity")); + instanceType.setInitialCredit(_ctx.integerValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].InitialCredit")); + instanceType.setLocalStorageAmount(_ctx.integerValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].LocalStorageAmount")); + instanceType.setBaselineCredit(_ctx.integerValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].BaselineCredit")); + instanceType.setInstancePpsTx(_ctx.longValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].InstancePpsTx")); + instanceType.setEniPrivateIpAddressQuantity(_ctx.integerValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].EniPrivateIpAddressQuantity")); + instanceType.setCpuCoreCount(_ctx.integerValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].CpuCoreCount")); + instanceType.setInstanceTypeFamily(_ctx.stringValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].InstanceTypeFamily")); + instanceType.setEniQuantity(_ctx.integerValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].EniQuantity")); + instanceType.setEniTrunkSupported(_ctx.booleanValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].EniTrunkSupported")); + instanceType.setCpuSpeedFrequency(_ctx.floatValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].CpuSpeedFrequency")); + instanceType.setCpuTurboFrequency(_ctx.floatValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].CpuTurboFrequency")); + instanceType.setPhysicalProcessorModel(_ctx.stringValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].PhysicalProcessorModel")); + instanceType.setNetworkEncryptionSupport(_ctx.booleanValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].NetworkEncryptionSupport")); + instanceType.setInstanceCategory(_ctx.stringValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].InstanceCategory")); + instanceType.setCpuArchitecture(_ctx.stringValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].CpuArchitecture")); + instanceType.setGPUMemorySize(_ctx.floatValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].GPUMemorySize")); + instanceType.setNetworkCardQuantity(_ctx.integerValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].NetworkCardQuantity")); + + List networkCards = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].NetworkCards.Length"); j++) { + NetworkCardInfo networkCardInfo = new NetworkCardInfo(); + networkCardInfo.setNetworkCardIndex(_ctx.integerValue("DescribeInstanceTypesResponse.InstanceTypes["+ i +"].NetworkCards["+ j +"].NetworkCardIndex")); + + networkCards.add(networkCardInfo); + } + instanceType.setNetworkCards(networkCards); + + instanceTypes.add(instanceType); + } + describeInstanceTypesResponse.setInstanceTypes(instanceTypes); + + return describeInstanceTypesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceVncPasswdResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceVncPasswdResponseUnmarshaller.java new file mode 100644 index 0000000000..0a36a402be --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceVncPasswdResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceVncPasswdResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeInstanceVncPasswdResponseUnmarshaller { + + public static DescribeInstanceVncPasswdResponse unmarshall(DescribeInstanceVncPasswdResponse describeInstanceVncPasswdResponse, UnmarshallerContext _ctx) { + + describeInstanceVncPasswdResponse.setRequestId(_ctx.stringValue("DescribeInstanceVncPasswdResponse.RequestId")); + describeInstanceVncPasswdResponse.setVncPasswd(_ctx.stringValue("DescribeInstanceVncPasswdResponse.VncPasswd")); + + return describeInstanceVncPasswdResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceVncUrlResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceVncUrlResponseUnmarshaller.java new file mode 100644 index 0000000000..a73a31b2fd --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstanceVncUrlResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DescribeInstanceVncUrlResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeInstanceVncUrlResponseUnmarshaller { + + public static DescribeInstanceVncUrlResponse unmarshall(DescribeInstanceVncUrlResponse describeInstanceVncUrlResponse, UnmarshallerContext _ctx) { + + describeInstanceVncUrlResponse.setRequestId(_ctx.stringValue("DescribeInstanceVncUrlResponse.RequestId")); + describeInstanceVncUrlResponse.setVncUrl(_ctx.stringValue("DescribeInstanceVncUrlResponse.VncUrl")); + + return describeInstanceVncUrlResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstancesFullStatusResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstancesFullStatusResponseUnmarshaller.java new file mode 100644 index 0000000000..57b9d32bc6 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstancesFullStatusResponseUnmarshaller.java @@ -0,0 +1,103 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeInstancesFullStatusResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeInstancesFullStatusResponse.InstanceFullStatusType; +import com.aliyuncs.ecs.model.v20140526.DescribeInstancesFullStatusResponse.InstanceFullStatusType.HealthStatus; +import com.aliyuncs.ecs.model.v20140526.DescribeInstancesFullStatusResponse.InstanceFullStatusType.ScheduledSystemEventType; +import com.aliyuncs.ecs.model.v20140526.DescribeInstancesFullStatusResponse.InstanceFullStatusType.ScheduledSystemEventType.EventCycleStatus; +import com.aliyuncs.ecs.model.v20140526.DescribeInstancesFullStatusResponse.InstanceFullStatusType.ScheduledSystemEventType.EventType; +import com.aliyuncs.ecs.model.v20140526.DescribeInstancesFullStatusResponse.InstanceFullStatusType.ScheduledSystemEventType.ExtendedAttribute; +import com.aliyuncs.ecs.model.v20140526.DescribeInstancesFullStatusResponse.InstanceFullStatusType.ScheduledSystemEventType.ExtendedAttribute.InactiveDisk; +import com.aliyuncs.ecs.model.v20140526.DescribeInstancesFullStatusResponse.InstanceFullStatusType.Status; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeInstancesFullStatusResponseUnmarshaller { + + public static DescribeInstancesFullStatusResponse unmarshall(DescribeInstancesFullStatusResponse describeInstancesFullStatusResponse, UnmarshallerContext _ctx) { + + describeInstancesFullStatusResponse.setRequestId(_ctx.stringValue("DescribeInstancesFullStatusResponse.RequestId")); + describeInstancesFullStatusResponse.setPageSize(_ctx.integerValue("DescribeInstancesFullStatusResponse.PageSize")); + describeInstancesFullStatusResponse.setPageNumber(_ctx.integerValue("DescribeInstancesFullStatusResponse.PageNumber")); + describeInstancesFullStatusResponse.setTotalCount(_ctx.integerValue("DescribeInstancesFullStatusResponse.TotalCount")); + + List instanceFullStatusSet = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeInstancesFullStatusResponse.InstanceFullStatusSet.Length"); i++) { + InstanceFullStatusType instanceFullStatusType = new InstanceFullStatusType(); + instanceFullStatusType.setInstanceId(_ctx.stringValue("DescribeInstancesFullStatusResponse.InstanceFullStatusSet["+ i +"].InstanceId")); + + Status status = new Status(); + status.setName(_ctx.stringValue("DescribeInstancesFullStatusResponse.InstanceFullStatusSet["+ i +"].Status.Name")); + status.setCode(_ctx.integerValue("DescribeInstancesFullStatusResponse.InstanceFullStatusSet["+ i +"].Status.Code")); + instanceFullStatusType.setStatus(status); + + HealthStatus healthStatus = new HealthStatus(); + healthStatus.setName(_ctx.stringValue("DescribeInstancesFullStatusResponse.InstanceFullStatusSet["+ i +"].HealthStatus.Name")); + healthStatus.setCode(_ctx.integerValue("DescribeInstancesFullStatusResponse.InstanceFullStatusSet["+ i +"].HealthStatus.Code")); + instanceFullStatusType.setHealthStatus(healthStatus); + + List scheduledSystemEventSet = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeInstancesFullStatusResponse.InstanceFullStatusSet["+ i +"].ScheduledSystemEventSet.Length"); j++) { + ScheduledSystemEventType scheduledSystemEventType = new ScheduledSystemEventType(); + scheduledSystemEventType.setEventPublishTime(_ctx.stringValue("DescribeInstancesFullStatusResponse.InstanceFullStatusSet["+ i +"].ScheduledSystemEventSet["+ j +"].EventPublishTime")); + scheduledSystemEventType.setEventId(_ctx.stringValue("DescribeInstancesFullStatusResponse.InstanceFullStatusSet["+ i +"].ScheduledSystemEventSet["+ j +"].EventId")); + scheduledSystemEventType.setNotBefore(_ctx.stringValue("DescribeInstancesFullStatusResponse.InstanceFullStatusSet["+ i +"].ScheduledSystemEventSet["+ j +"].NotBefore")); + scheduledSystemEventType.setImpactLevel(_ctx.stringValue("DescribeInstancesFullStatusResponse.InstanceFullStatusSet["+ i +"].ScheduledSystemEventSet["+ j +"].ImpactLevel")); + scheduledSystemEventType.setReason(_ctx.stringValue("DescribeInstancesFullStatusResponse.InstanceFullStatusSet["+ i +"].ScheduledSystemEventSet["+ j +"].Reason")); + + EventCycleStatus eventCycleStatus = new EventCycleStatus(); + eventCycleStatus.setName(_ctx.stringValue("DescribeInstancesFullStatusResponse.InstanceFullStatusSet["+ i +"].ScheduledSystemEventSet["+ j +"].EventCycleStatus.Name")); + eventCycleStatus.setCode(_ctx.integerValue("DescribeInstancesFullStatusResponse.InstanceFullStatusSet["+ i +"].ScheduledSystemEventSet["+ j +"].EventCycleStatus.Code")); + scheduledSystemEventType.setEventCycleStatus(eventCycleStatus); + + EventType eventType = new EventType(); + eventType.setName(_ctx.stringValue("DescribeInstancesFullStatusResponse.InstanceFullStatusSet["+ i +"].ScheduledSystemEventSet["+ j +"].EventType.Name")); + eventType.setCode(_ctx.integerValue("DescribeInstancesFullStatusResponse.InstanceFullStatusSet["+ i +"].ScheduledSystemEventSet["+ j +"].EventType.Code")); + scheduledSystemEventType.setEventType(eventType); + + ExtendedAttribute extendedAttribute = new ExtendedAttribute(); + extendedAttribute.setDevice(_ctx.stringValue("DescribeInstancesFullStatusResponse.InstanceFullStatusSet["+ i +"].ScheduledSystemEventSet["+ j +"].ExtendedAttribute.Device")); + extendedAttribute.setDiskId(_ctx.stringValue("DescribeInstancesFullStatusResponse.InstanceFullStatusSet["+ i +"].ScheduledSystemEventSet["+ j +"].ExtendedAttribute.DiskId")); + + List inactiveDisks = new ArrayList(); + for (int k = 0; k < _ctx.lengthValue("DescribeInstancesFullStatusResponse.InstanceFullStatusSet["+ i +"].ScheduledSystemEventSet["+ j +"].ExtendedAttribute.InactiveDisks.Length"); k++) { + InactiveDisk inactiveDisk = new InactiveDisk(); + inactiveDisk.setCreationTime(_ctx.stringValue("DescribeInstancesFullStatusResponse.InstanceFullStatusSet["+ i +"].ScheduledSystemEventSet["+ j +"].ExtendedAttribute.InactiveDisks["+ k +"].CreationTime")); + inactiveDisk.setDeviceSize(_ctx.stringValue("DescribeInstancesFullStatusResponse.InstanceFullStatusSet["+ i +"].ScheduledSystemEventSet["+ j +"].ExtendedAttribute.InactiveDisks["+ k +"].DeviceSize")); + inactiveDisk.setDeviceCategory(_ctx.stringValue("DescribeInstancesFullStatusResponse.InstanceFullStatusSet["+ i +"].ScheduledSystemEventSet["+ j +"].ExtendedAttribute.InactiveDisks["+ k +"].DeviceCategory")); + inactiveDisk.setDeviceType(_ctx.stringValue("DescribeInstancesFullStatusResponse.InstanceFullStatusSet["+ i +"].ScheduledSystemEventSet["+ j +"].ExtendedAttribute.InactiveDisks["+ k +"].DeviceType")); + inactiveDisk.setReleaseTime(_ctx.stringValue("DescribeInstancesFullStatusResponse.InstanceFullStatusSet["+ i +"].ScheduledSystemEventSet["+ j +"].ExtendedAttribute.InactiveDisks["+ k +"].ReleaseTime")); + + inactiveDisks.add(inactiveDisk); + } + extendedAttribute.setInactiveDisks(inactiveDisks); + scheduledSystemEventType.setExtendedAttribute(extendedAttribute); + + scheduledSystemEventSet.add(scheduledSystemEventType); + } + instanceFullStatusType.setScheduledSystemEventSet(scheduledSystemEventSet); + + instanceFullStatusSet.add(instanceFullStatusType); + } + describeInstancesFullStatusResponse.setInstanceFullStatusSet(instanceFullStatusSet); + + return describeInstancesFullStatusResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstancesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstancesResponseUnmarshaller.java new file mode 100644 index 0000000000..e991cfb728 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInstancesResponseUnmarshaller.java @@ -0,0 +1,257 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeInstancesResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeInstancesResponse.Instance; +import com.aliyuncs.ecs.model.v20140526.DescribeInstancesResponse.Instance.CpuOptions; +import com.aliyuncs.ecs.model.v20140526.DescribeInstancesResponse.Instance.DedicatedHostAttribute; +import com.aliyuncs.ecs.model.v20140526.DescribeInstancesResponse.Instance.DedicatedInstanceAttribute; +import com.aliyuncs.ecs.model.v20140526.DescribeInstancesResponse.Instance.EcsCapacityReservationAttr; +import com.aliyuncs.ecs.model.v20140526.DescribeInstancesResponse.Instance.EipAddress; +import com.aliyuncs.ecs.model.v20140526.DescribeInstancesResponse.Instance.HibernationOptions; +import com.aliyuncs.ecs.model.v20140526.DescribeInstancesResponse.Instance.ImageOptions; +import com.aliyuncs.ecs.model.v20140526.DescribeInstancesResponse.Instance.LockReason; +import com.aliyuncs.ecs.model.v20140526.DescribeInstancesResponse.Instance.MetadataOptions; +import com.aliyuncs.ecs.model.v20140526.DescribeInstancesResponse.Instance.NetworkInterface; +import com.aliyuncs.ecs.model.v20140526.DescribeInstancesResponse.Instance.NetworkInterface.Ipv4PrefixSet; +import com.aliyuncs.ecs.model.v20140526.DescribeInstancesResponse.Instance.NetworkInterface.Ipv6PrefixSet; +import com.aliyuncs.ecs.model.v20140526.DescribeInstancesResponse.Instance.NetworkInterface.Ipv6Set; +import com.aliyuncs.ecs.model.v20140526.DescribeInstancesResponse.Instance.NetworkInterface.PrivateIpSet; +import com.aliyuncs.ecs.model.v20140526.DescribeInstancesResponse.Instance.Tag; +import com.aliyuncs.ecs.model.v20140526.DescribeInstancesResponse.Instance.VpcAttributes; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeInstancesResponseUnmarshaller { + + public static DescribeInstancesResponse unmarshall(DescribeInstancesResponse describeInstancesResponse, UnmarshallerContext _ctx) { + + describeInstancesResponse.setRequestId(_ctx.stringValue("DescribeInstancesResponse.RequestId")); + describeInstancesResponse.setNextToken(_ctx.stringValue("DescribeInstancesResponse.NextToken")); + describeInstancesResponse.setPageSize(_ctx.integerValue("DescribeInstancesResponse.PageSize")); + describeInstancesResponse.setPageNumber(_ctx.integerValue("DescribeInstancesResponse.PageNumber")); + describeInstancesResponse.setTotalCount(_ctx.integerValue("DescribeInstancesResponse.TotalCount")); + + List instances = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeInstancesResponse.Instances.Length"); i++) { + Instance instance = new Instance(); + instance.setCreationTime(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].CreationTime")); + instance.setSerialNumber(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].SerialNumber")); + instance.setStatus(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].Status")); + instance.setDeploymentSetId(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].DeploymentSetId")); + instance.setKeyPairName(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].KeyPairName")); + instance.setSaleCycle(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].SaleCycle")); + instance.setSpotStrategy(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].SpotStrategy")); + instance.setDeviceAvailable(_ctx.booleanValue("DescribeInstancesResponse.Instances["+ i +"].DeviceAvailable")); + instance.setLocalStorageCapacity(_ctx.longValue("DescribeInstancesResponse.Instances["+ i +"].LocalStorageCapacity")); + instance.setDescription(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].Description")); + instance.setSpotDuration(_ctx.integerValue("DescribeInstancesResponse.Instances["+ i +"].SpotDuration")); + instance.setInstanceNetworkType(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].InstanceNetworkType")); + instance.setInstanceName(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].InstanceName")); + instance.setOSNameEn(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].OSNameEn")); + instance.setHpcClusterId(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].HpcClusterId")); + instance.setSpotPriceLimit(_ctx.floatValue("DescribeInstancesResponse.Instances["+ i +"].SpotPriceLimit")); + instance.setMemory(_ctx.integerValue("DescribeInstancesResponse.Instances["+ i +"].Memory")); + instance.setOSName(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].OSName")); + instance.setDeploymentSetGroupNo(_ctx.integerValue("DescribeInstancesResponse.Instances["+ i +"].DeploymentSetGroupNo")); + instance.setImageId(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].ImageId")); + instance.setVlanId(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].VlanId")); + instance.setClusterId(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].ClusterId")); + instance.setGPUSpec(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].GPUSpec")); + instance.setAutoReleaseTime(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].AutoReleaseTime")); + instance.setDeletionProtection(_ctx.booleanValue("DescribeInstancesResponse.Instances["+ i +"].DeletionProtection")); + instance.setStoppedMode(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].StoppedMode")); + instance.setGPUAmount(_ctx.integerValue("DescribeInstancesResponse.Instances["+ i +"].GPUAmount")); + instance.setHostName(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].HostName")); + instance.setInstanceId(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].InstanceId")); + instance.setInternetMaxBandwidthOut(_ctx.integerValue("DescribeInstancesResponse.Instances["+ i +"].InternetMaxBandwidthOut")); + instance.setInternetMaxBandwidthIn(_ctx.integerValue("DescribeInstancesResponse.Instances["+ i +"].InternetMaxBandwidthIn")); + instance.setInstanceType(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].InstanceType")); + instance.setInstanceChargeType(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].InstanceChargeType")); + instance.setRegionId(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].RegionId")); + instance.setIoOptimized(_ctx.booleanValue("DescribeInstancesResponse.Instances["+ i +"].IoOptimized")); + instance.setStartTime(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].StartTime")); + instance.setCpu(_ctx.integerValue("DescribeInstancesResponse.Instances["+ i +"].Cpu")); + instance.setLocalStorageAmount(_ctx.integerValue("DescribeInstancesResponse.Instances["+ i +"].LocalStorageAmount")); + instance.setExpiredTime(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].ExpiredTime")); + instance.setResourceGroupId(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].ResourceGroupId")); + instance.setInternetChargeType(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].InternetChargeType")); + instance.setZoneId(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].ZoneId")); + instance.setRecyclable(_ctx.booleanValue("DescribeInstancesResponse.Instances["+ i +"].Recyclable")); + instance.setISP(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].ISP")); + instance.setCreditSpecification(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].CreditSpecification")); + instance.setInstanceTypeFamily(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].InstanceTypeFamily")); + instance.setOSType(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].OSType")); + + List rdmaIpAddress = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeInstancesResponse.Instances["+ i +"].RdmaIpAddress.Length"); j++) { + rdmaIpAddress.add(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].RdmaIpAddress["+ j +"]")); + } + instance.setRdmaIpAddress(rdmaIpAddress); + + List securityGroupIds = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeInstancesResponse.Instances["+ i +"].SecurityGroupIds.Length"); j++) { + securityGroupIds.add(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].SecurityGroupIds["+ j +"]")); + } + instance.setSecurityGroupIds(securityGroupIds); + + List publicIpAddress = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeInstancesResponse.Instances["+ i +"].PublicIpAddress.Length"); j++) { + publicIpAddress.add(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].PublicIpAddress["+ j +"]")); + } + instance.setPublicIpAddress(publicIpAddress); + + List innerIpAddress = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeInstancesResponse.Instances["+ i +"].InnerIpAddress.Length"); j++) { + innerIpAddress.add(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].InnerIpAddress["+ j +"]")); + } + instance.setInnerIpAddress(innerIpAddress); + + VpcAttributes vpcAttributes = new VpcAttributes(); + vpcAttributes.setVpcId(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].VpcAttributes.VpcId")); + vpcAttributes.setNatIpAddress(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].VpcAttributes.NatIpAddress")); + vpcAttributes.setVSwitchId(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].VpcAttributes.VSwitchId")); + + List privateIpAddress = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeInstancesResponse.Instances["+ i +"].VpcAttributes.PrivateIpAddress.Length"); j++) { + privateIpAddress.add(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].VpcAttributes.PrivateIpAddress["+ j +"]")); + } + vpcAttributes.setPrivateIpAddress(privateIpAddress); + instance.setVpcAttributes(vpcAttributes); + + EipAddress eipAddress = new EipAddress(); + eipAddress.setIsSupportUnassociate(_ctx.booleanValue("DescribeInstancesResponse.Instances["+ i +"].EipAddress.IsSupportUnassociate")); + eipAddress.setInternetChargeType(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].EipAddress.InternetChargeType")); + eipAddress.setIpAddress(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].EipAddress.IpAddress")); + eipAddress.setBandwidth(_ctx.integerValue("DescribeInstancesResponse.Instances["+ i +"].EipAddress.Bandwidth")); + eipAddress.setAllocationId(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].EipAddress.AllocationId")); + instance.setEipAddress(eipAddress); + + HibernationOptions hibernationOptions = new HibernationOptions(); + hibernationOptions.setConfigured(_ctx.booleanValue("DescribeInstancesResponse.Instances["+ i +"].HibernationOptions.Configured")); + instance.setHibernationOptions(hibernationOptions); + + DedicatedHostAttribute dedicatedHostAttribute = new DedicatedHostAttribute(); + dedicatedHostAttribute.setDedicatedHostId(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].DedicatedHostAttribute.DedicatedHostId")); + dedicatedHostAttribute.setDedicatedHostName(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].DedicatedHostAttribute.DedicatedHostName")); + dedicatedHostAttribute.setDedicatedHostClusterId(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].DedicatedHostAttribute.DedicatedHostClusterId")); + instance.setDedicatedHostAttribute(dedicatedHostAttribute); + + EcsCapacityReservationAttr ecsCapacityReservationAttr = new EcsCapacityReservationAttr(); + ecsCapacityReservationAttr.setCapacityReservationPreference(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].EcsCapacityReservationAttr.CapacityReservationPreference")); + ecsCapacityReservationAttr.setCapacityReservationId(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].EcsCapacityReservationAttr.CapacityReservationId")); + instance.setEcsCapacityReservationAttr(ecsCapacityReservationAttr); + + DedicatedInstanceAttribute dedicatedInstanceAttribute = new DedicatedInstanceAttribute(); + dedicatedInstanceAttribute.setAffinity(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].DedicatedInstanceAttribute.Affinity")); + dedicatedInstanceAttribute.setTenancy(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].DedicatedInstanceAttribute.Tenancy")); + instance.setDedicatedInstanceAttribute(dedicatedInstanceAttribute); + + CpuOptions cpuOptions = new CpuOptions(); + cpuOptions.setNuma(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].CpuOptions.Numa")); + cpuOptions.setCoreCount(_ctx.integerValue("DescribeInstancesResponse.Instances["+ i +"].CpuOptions.CoreCount")); + cpuOptions.setThreadsPerCore(_ctx.integerValue("DescribeInstancesResponse.Instances["+ i +"].CpuOptions.ThreadsPerCore")); + instance.setCpuOptions(cpuOptions); + + MetadataOptions metadataOptions = new MetadataOptions(); + metadataOptions.setHttpEndpoint(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].MetadataOptions.HttpEndpoint")); + metadataOptions.setHttpPutResponseHopLimit(_ctx.integerValue("DescribeInstancesResponse.Instances["+ i +"].MetadataOptions.HttpPutResponseHopLimit")); + metadataOptions.setHttpTokens(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].MetadataOptions.HttpTokens")); + instance.setMetadataOptions(metadataOptions); + + ImageOptions imageOptions = new ImageOptions(); + imageOptions.setLoginAsNonRoot(_ctx.booleanValue("DescribeInstancesResponse.Instances["+ i +"].ImageOptions.LoginAsNonRoot")); + instance.setImageOptions(imageOptions); + + List networkInterfaces = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeInstancesResponse.Instances["+ i +"].NetworkInterfaces.Length"); j++) { + NetworkInterface networkInterface = new NetworkInterface(); + networkInterface.setType(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].NetworkInterfaces["+ j +"].Type")); + networkInterface.setMacAddress(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].NetworkInterfaces["+ j +"].MacAddress")); + networkInterface.setPrimaryIpAddress(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].NetworkInterfaces["+ j +"].PrimaryIpAddress")); + networkInterface.setNetworkInterfaceId(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].NetworkInterfaces["+ j +"].NetworkInterfaceId")); + + List privateIpSets = new ArrayList(); + for (int k = 0; k < _ctx.lengthValue("DescribeInstancesResponse.Instances["+ i +"].NetworkInterfaces["+ j +"].PrivateIpSets.Length"); k++) { + PrivateIpSet privateIpSet = new PrivateIpSet(); + privateIpSet.setPrivateIpAddress(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].NetworkInterfaces["+ j +"].PrivateIpSets["+ k +"].PrivateIpAddress")); + privateIpSet.setPrimary(_ctx.booleanValue("DescribeInstancesResponse.Instances["+ i +"].NetworkInterfaces["+ j +"].PrivateIpSets["+ k +"].Primary")); + + privateIpSets.add(privateIpSet); + } + networkInterface.setPrivateIpSets(privateIpSets); + + List ipv6Sets = new ArrayList(); + for (int k = 0; k < _ctx.lengthValue("DescribeInstancesResponse.Instances["+ i +"].NetworkInterfaces["+ j +"].Ipv6Sets.Length"); k++) { + Ipv6Set ipv6Set = new Ipv6Set(); + ipv6Set.setIpv6Address(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].NetworkInterfaces["+ j +"].Ipv6Sets["+ k +"].Ipv6Address")); + + ipv6Sets.add(ipv6Set); + } + networkInterface.setIpv6Sets(ipv6Sets); + + List ipv4PrefixSets = new ArrayList(); + for (int k = 0; k < _ctx.lengthValue("DescribeInstancesResponse.Instances["+ i +"].NetworkInterfaces["+ j +"].Ipv4PrefixSets.Length"); k++) { + Ipv4PrefixSet ipv4PrefixSet = new Ipv4PrefixSet(); + ipv4PrefixSet.setIpv4Prefix(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].NetworkInterfaces["+ j +"].Ipv4PrefixSets["+ k +"].Ipv4Prefix")); + + ipv4PrefixSets.add(ipv4PrefixSet); + } + networkInterface.setIpv4PrefixSets(ipv4PrefixSets); + + List ipv6PrefixSets = new ArrayList(); + for (int k = 0; k < _ctx.lengthValue("DescribeInstancesResponse.Instances["+ i +"].NetworkInterfaces["+ j +"].Ipv6PrefixSets.Length"); k++) { + Ipv6PrefixSet ipv6PrefixSet = new Ipv6PrefixSet(); + ipv6PrefixSet.setIpv6Prefix(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].NetworkInterfaces["+ j +"].Ipv6PrefixSets["+ k +"].Ipv6Prefix")); + + ipv6PrefixSets.add(ipv6PrefixSet); + } + networkInterface.setIpv6PrefixSets(ipv6PrefixSets); + + networkInterfaces.add(networkInterface); + } + instance.setNetworkInterfaces(networkInterfaces); + + List operationLocks = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeInstancesResponse.Instances["+ i +"].OperationLocks.Length"); j++) { + LockReason lockReason = new LockReason(); + lockReason.setLockMsg(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].OperationLocks["+ j +"].LockMsg")); + lockReason.setLockReason(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].OperationLocks["+ j +"].LockReason")); + + operationLocks.add(lockReason); + } + instance.setOperationLocks(operationLocks); + + List tags = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeInstancesResponse.Instances["+ i +"].Tags.Length"); j++) { + Tag tag = new Tag(); + tag.setTagValue(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].Tags["+ j +"].TagValue")); + tag.setTagKey(_ctx.stringValue("DescribeInstancesResponse.Instances["+ i +"].Tags["+ j +"].TagKey")); + + tags.add(tag); + } + instance.setTags(tags); + + instances.add(instance); + } + describeInstancesResponse.setInstances(instances); + + return describeInstancesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInvocationResultsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInvocationResultsResponseUnmarshaller.java new file mode 100644 index 0000000000..0d5bc3a0db --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInvocationResultsResponseUnmarshaller.java @@ -0,0 +1,76 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeInvocationResultsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeInvocationResultsResponse.Invocation; +import com.aliyuncs.ecs.model.v20140526.DescribeInvocationResultsResponse.Invocation.InvocationResult; +import com.aliyuncs.ecs.model.v20140526.DescribeInvocationResultsResponse.Invocation.InvocationResult.Tag; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeInvocationResultsResponseUnmarshaller { + + public static DescribeInvocationResultsResponse unmarshall(DescribeInvocationResultsResponse describeInvocationResultsResponse, UnmarshallerContext _ctx) { + + describeInvocationResultsResponse.setRequestId(_ctx.stringValue("DescribeInvocationResultsResponse.RequestId")); + + Invocation invocation = new Invocation(); + invocation.setPageSize(_ctx.longValue("DescribeInvocationResultsResponse.Invocation.PageSize")); + invocation.setPageNumber(_ctx.longValue("DescribeInvocationResultsResponse.Invocation.PageNumber")); + invocation.setTotalCount(_ctx.longValue("DescribeInvocationResultsResponse.Invocation.TotalCount")); + + List invocationResults = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeInvocationResultsResponse.Invocation.InvocationResults.Length"); i++) { + InvocationResult invocationResult = new InvocationResult(); + invocationResult.setInvocationStatus(_ctx.stringValue("DescribeInvocationResultsResponse.Invocation.InvocationResults["+ i +"].InvocationStatus")); + invocationResult.setRepeats(_ctx.integerValue("DescribeInvocationResultsResponse.Invocation.InvocationResults["+ i +"].Repeats")); + invocationResult.setCommandId(_ctx.stringValue("DescribeInvocationResultsResponse.Invocation.InvocationResults["+ i +"].CommandId")); + invocationResult.setInstanceId(_ctx.stringValue("DescribeInvocationResultsResponse.Invocation.InvocationResults["+ i +"].InstanceId")); + invocationResult.setOutput(_ctx.stringValue("DescribeInvocationResultsResponse.Invocation.InvocationResults["+ i +"].Output")); + invocationResult.setDropped(_ctx.integerValue("DescribeInvocationResultsResponse.Invocation.InvocationResults["+ i +"].Dropped")); + invocationResult.setStopTime(_ctx.stringValue("DescribeInvocationResultsResponse.Invocation.InvocationResults["+ i +"].StopTime")); + invocationResult.setExitCode(_ctx.longValue("DescribeInvocationResultsResponse.Invocation.InvocationResults["+ i +"].ExitCode")); + invocationResult.setStartTime(_ctx.stringValue("DescribeInvocationResultsResponse.Invocation.InvocationResults["+ i +"].StartTime")); + invocationResult.setErrorInfo(_ctx.stringValue("DescribeInvocationResultsResponse.Invocation.InvocationResults["+ i +"].ErrorInfo")); + invocationResult.setErrorCode(_ctx.stringValue("DescribeInvocationResultsResponse.Invocation.InvocationResults["+ i +"].ErrorCode")); + invocationResult.setFinishedTime(_ctx.stringValue("DescribeInvocationResultsResponse.Invocation.InvocationResults["+ i +"].FinishedTime")); + invocationResult.setInvokeId(_ctx.stringValue("DescribeInvocationResultsResponse.Invocation.InvocationResults["+ i +"].InvokeId")); + invocationResult.setInvokeRecordStatus(_ctx.stringValue("DescribeInvocationResultsResponse.Invocation.InvocationResults["+ i +"].InvokeRecordStatus")); + invocationResult.setUsername(_ctx.stringValue("DescribeInvocationResultsResponse.Invocation.InvocationResults["+ i +"].Username")); + invocationResult.setContainerId(_ctx.stringValue("DescribeInvocationResultsResponse.Invocation.InvocationResults["+ i +"].ContainerId")); + invocationResult.setContainerName(_ctx.stringValue("DescribeInvocationResultsResponse.Invocation.InvocationResults["+ i +"].ContainerName")); + + List tags = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeInvocationResultsResponse.Invocation.InvocationResults["+ i +"].Tags.Length"); j++) { + Tag tag = new Tag(); + tag.setTagKey(_ctx.stringValue("DescribeInvocationResultsResponse.Invocation.InvocationResults["+ i +"].Tags["+ j +"].TagKey")); + tag.setTagValue(_ctx.stringValue("DescribeInvocationResultsResponse.Invocation.InvocationResults["+ i +"].Tags["+ j +"].TagValue")); + + tags.add(tag); + } + invocationResult.setTags(tags); + + invocationResults.add(invocationResult); + } + invocation.setInvocationResults(invocationResults); + describeInvocationResultsResponse.setInvocation(invocation); + + return describeInvocationResultsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInvocationsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInvocationsResponseUnmarshaller.java new file mode 100644 index 0000000000..db15bc8351 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeInvocationsResponseUnmarshaller.java @@ -0,0 +1,97 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeInvocationsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeInvocationsResponse.Invocation; +import com.aliyuncs.ecs.model.v20140526.DescribeInvocationsResponse.Invocation.InvokeInstance; +import com.aliyuncs.ecs.model.v20140526.DescribeInvocationsResponse.Invocation.Tag; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeInvocationsResponseUnmarshaller { + + public static DescribeInvocationsResponse unmarshall(DescribeInvocationsResponse describeInvocationsResponse, UnmarshallerContext _ctx) { + + describeInvocationsResponse.setRequestId(_ctx.stringValue("DescribeInvocationsResponse.RequestId")); + describeInvocationsResponse.setPageSize(_ctx.longValue("DescribeInvocationsResponse.PageSize")); + describeInvocationsResponse.setPageNumber(_ctx.longValue("DescribeInvocationsResponse.PageNumber")); + describeInvocationsResponse.setTotalCount(_ctx.longValue("DescribeInvocationsResponse.TotalCount")); + + List invocations = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeInvocationsResponse.Invocations.Length"); i++) { + Invocation invocation = new Invocation(); + invocation.setCreationTime(_ctx.stringValue("DescribeInvocationsResponse.Invocations["+ i +"].CreationTime")); + invocation.setFrequency(_ctx.stringValue("DescribeInvocationsResponse.Invocations["+ i +"].Frequency")); + invocation.setInvocationStatus(_ctx.stringValue("DescribeInvocationsResponse.Invocations["+ i +"].InvocationStatus")); + invocation.setRepeatMode(_ctx.stringValue("DescribeInvocationsResponse.Invocations["+ i +"].RepeatMode")); + invocation.setCommandId(_ctx.stringValue("DescribeInvocationsResponse.Invocations["+ i +"].CommandId")); + invocation.setCommandType(_ctx.stringValue("DescribeInvocationsResponse.Invocations["+ i +"].CommandType")); + invocation.setInvokeStatus(_ctx.stringValue("DescribeInvocationsResponse.Invocations["+ i +"].InvokeStatus")); + invocation.setParameters(_ctx.stringValue("DescribeInvocationsResponse.Invocations["+ i +"].Parameters")); + invocation.setTimed(_ctx.booleanValue("DescribeInvocationsResponse.Invocations["+ i +"].Timed")); + invocation.setCommandContent(_ctx.stringValue("DescribeInvocationsResponse.Invocations["+ i +"].CommandContent")); + invocation.setCommandName(_ctx.stringValue("DescribeInvocationsResponse.Invocations["+ i +"].CommandName")); + invocation.setCommandDescription(_ctx.stringValue("DescribeInvocationsResponse.Invocations["+ i +"].CommandDescription")); + invocation.setInvokeId(_ctx.stringValue("DescribeInvocationsResponse.Invocations["+ i +"].InvokeId")); + invocation.setUsername(_ctx.stringValue("DescribeInvocationsResponse.Invocations["+ i +"].Username")); + invocation.setWorkingDir(_ctx.stringValue("DescribeInvocationsResponse.Invocations["+ i +"].WorkingDir")); + invocation.setTimeout(_ctx.longValue("DescribeInvocationsResponse.Invocations["+ i +"].Timeout")); + invocation.setContainerId(_ctx.stringValue("DescribeInvocationsResponse.Invocations["+ i +"].ContainerId")); + invocation.setContainerName(_ctx.stringValue("DescribeInvocationsResponse.Invocations["+ i +"].ContainerName")); + + List invokeInstances = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeInvocationsResponse.Invocations["+ i +"].InvokeInstances.Length"); j++) { + InvokeInstance invokeInstance = new InvokeInstance(); + invokeInstance.setCreationTime(_ctx.stringValue("DescribeInvocationsResponse.Invocations["+ i +"].InvokeInstances["+ j +"].CreationTime")); + invokeInstance.setUpdateTime(_ctx.stringValue("DescribeInvocationsResponse.Invocations["+ i +"].InvokeInstances["+ j +"].UpdateTime")); + invokeInstance.setFinishTime(_ctx.stringValue("DescribeInvocationsResponse.Invocations["+ i +"].InvokeInstances["+ j +"].FinishTime")); + invokeInstance.setInvocationStatus(_ctx.stringValue("DescribeInvocationsResponse.Invocations["+ i +"].InvokeInstances["+ j +"].InvocationStatus")); + invokeInstance.setRepeats(_ctx.integerValue("DescribeInvocationsResponse.Invocations["+ i +"].InvokeInstances["+ j +"].Repeats")); + invokeInstance.setInstanceId(_ctx.stringValue("DescribeInvocationsResponse.Invocations["+ i +"].InvokeInstances["+ j +"].InstanceId")); + invokeInstance.setOutput(_ctx.stringValue("DescribeInvocationsResponse.Invocations["+ i +"].InvokeInstances["+ j +"].Output")); + invokeInstance.setDropped(_ctx.integerValue("DescribeInvocationsResponse.Invocations["+ i +"].InvokeInstances["+ j +"].Dropped")); + invokeInstance.setStopTime(_ctx.stringValue("DescribeInvocationsResponse.Invocations["+ i +"].InvokeInstances["+ j +"].StopTime")); + invokeInstance.setExitCode(_ctx.longValue("DescribeInvocationsResponse.Invocations["+ i +"].InvokeInstances["+ j +"].ExitCode")); + invokeInstance.setStartTime(_ctx.stringValue("DescribeInvocationsResponse.Invocations["+ i +"].InvokeInstances["+ j +"].StartTime")); + invokeInstance.setErrorInfo(_ctx.stringValue("DescribeInvocationsResponse.Invocations["+ i +"].InvokeInstances["+ j +"].ErrorInfo")); + invokeInstance.setTimed(_ctx.booleanValue("DescribeInvocationsResponse.Invocations["+ i +"].InvokeInstances["+ j +"].Timed")); + invokeInstance.setErrorCode(_ctx.stringValue("DescribeInvocationsResponse.Invocations["+ i +"].InvokeInstances["+ j +"].ErrorCode")); + invokeInstance.setInstanceInvokeStatus(_ctx.stringValue("DescribeInvocationsResponse.Invocations["+ i +"].InvokeInstances["+ j +"].InstanceInvokeStatus")); + + invokeInstances.add(invokeInstance); + } + invocation.setInvokeInstances(invokeInstances); + + List tags = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeInvocationsResponse.Invocations["+ i +"].Tags.Length"); j++) { + Tag tag = new Tag(); + tag.setTagKey(_ctx.stringValue("DescribeInvocationsResponse.Invocations["+ i +"].Tags["+ j +"].TagKey")); + tag.setTagValue(_ctx.stringValue("DescribeInvocationsResponse.Invocations["+ i +"].Tags["+ j +"].TagValue")); + + tags.add(tag); + } + invocation.setTags(tags); + + invocations.add(invocation); + } + describeInvocationsResponse.setInvocations(invocations); + + return describeInvocationsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeKeyPairsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeKeyPairsResponseUnmarshaller.java new file mode 100644 index 0000000000..3c94d04a89 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeKeyPairsResponseUnmarshaller.java @@ -0,0 +1,59 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeKeyPairsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeKeyPairsResponse.KeyPair; +import com.aliyuncs.ecs.model.v20140526.DescribeKeyPairsResponse.KeyPair.Tag; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeKeyPairsResponseUnmarshaller { + + public static DescribeKeyPairsResponse unmarshall(DescribeKeyPairsResponse describeKeyPairsResponse, UnmarshallerContext _ctx) { + + describeKeyPairsResponse.setRequestId(_ctx.stringValue("DescribeKeyPairsResponse.RequestId")); + describeKeyPairsResponse.setPageSize(_ctx.integerValue("DescribeKeyPairsResponse.PageSize")); + describeKeyPairsResponse.setPageNumber(_ctx.integerValue("DescribeKeyPairsResponse.PageNumber")); + describeKeyPairsResponse.setTotalCount(_ctx.integerValue("DescribeKeyPairsResponse.TotalCount")); + + List keyPairs = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeKeyPairsResponse.KeyPairs.Length"); i++) { + KeyPair keyPair = new KeyPair(); + keyPair.setCreationTime(_ctx.stringValue("DescribeKeyPairsResponse.KeyPairs["+ i +"].CreationTime")); + keyPair.setKeyPairName(_ctx.stringValue("DescribeKeyPairsResponse.KeyPairs["+ i +"].KeyPairName")); + keyPair.setKeyPairFingerPrint(_ctx.stringValue("DescribeKeyPairsResponse.KeyPairs["+ i +"].KeyPairFingerPrint")); + keyPair.setResourceGroupId(_ctx.stringValue("DescribeKeyPairsResponse.KeyPairs["+ i +"].ResourceGroupId")); + + List tags = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeKeyPairsResponse.KeyPairs["+ i +"].Tags.Length"); j++) { + Tag tag = new Tag(); + tag.setTagValue(_ctx.stringValue("DescribeKeyPairsResponse.KeyPairs["+ i +"].Tags["+ j +"].TagValue")); + tag.setTagKey(_ctx.stringValue("DescribeKeyPairsResponse.KeyPairs["+ i +"].Tags["+ j +"].TagKey")); + + tags.add(tag); + } + keyPair.setTags(tags); + + keyPairs.add(keyPair); + } + describeKeyPairsResponse.setKeyPairs(keyPairs); + + return describeKeyPairsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeLaunchTemplateVersionsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeLaunchTemplateVersionsResponseUnmarshaller.java new file mode 100644 index 0000000000..965b6ecf2c --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeLaunchTemplateVersionsResponseUnmarshaller.java @@ -0,0 +1,158 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeLaunchTemplateVersionsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSet; +import com.aliyuncs.ecs.model.v20140526.DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSet.LaunchTemplateData; +import com.aliyuncs.ecs.model.v20140526.DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSet.LaunchTemplateData.DataDisk; +import com.aliyuncs.ecs.model.v20140526.DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSet.LaunchTemplateData.InstanceTag; +import com.aliyuncs.ecs.model.v20140526.DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSet.LaunchTemplateData.NetworkInterface; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeLaunchTemplateVersionsResponseUnmarshaller { + + public static DescribeLaunchTemplateVersionsResponse unmarshall(DescribeLaunchTemplateVersionsResponse describeLaunchTemplateVersionsResponse, UnmarshallerContext _ctx) { + + describeLaunchTemplateVersionsResponse.setRequestId(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.RequestId")); + describeLaunchTemplateVersionsResponse.setPageSize(_ctx.integerValue("DescribeLaunchTemplateVersionsResponse.PageSize")); + describeLaunchTemplateVersionsResponse.setPageNumber(_ctx.integerValue("DescribeLaunchTemplateVersionsResponse.PageNumber")); + describeLaunchTemplateVersionsResponse.setTotalCount(_ctx.integerValue("DescribeLaunchTemplateVersionsResponse.TotalCount")); + + List launchTemplateVersionSets = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets.Length"); i++) { + LaunchTemplateVersionSet launchTemplateVersionSet = new LaunchTemplateVersionSet(); + launchTemplateVersionSet.setLaunchTemplateName(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateName")); + launchTemplateVersionSet.setDefaultVersion(_ctx.booleanValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].DefaultVersion")); + launchTemplateVersionSet.setVersionNumber(_ctx.longValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].VersionNumber")); + launchTemplateVersionSet.setModifiedTime(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].ModifiedTime")); + launchTemplateVersionSet.setLaunchTemplateId(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateId")); + launchTemplateVersionSet.setCreateTime(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].CreateTime")); + launchTemplateVersionSet.setCreatedBy(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].CreatedBy")); + launchTemplateVersionSet.setVersionDescription(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].VersionDescription")); + + LaunchTemplateData launchTemplateData = new LaunchTemplateData(); + launchTemplateData.setDeploymentSetId(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.DeploymentSetId")); + launchTemplateData.setVpcId(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.VpcId")); + launchTemplateData.setSystemDiskPerformanceLevel(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.SystemDisk.PerformanceLevel")); + launchTemplateData.setKeyPairName(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.KeyPairName")); + launchTemplateData.setSecurityGroupId(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.SecurityGroupId")); + launchTemplateData.setNetworkType(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.NetworkType")); + launchTemplateData.setSpotStrategy(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.SpotStrategy")); + launchTemplateData.setEnableVmOsConfig(_ctx.booleanValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.EnableVmOsConfig")); + launchTemplateData.setDescription(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.Description")); + launchTemplateData.setSpotDuration(_ctx.integerValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.SpotDuration")); + launchTemplateData.setInstanceName(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.InstanceName")); + launchTemplateData.setSecurityEnhancementStrategy(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.SecurityEnhancementStrategy")); + launchTemplateData.setUserData(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.UserData")); + launchTemplateData.setSystemDiskDiskName(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.SystemDisk.DiskName")); + launchTemplateData.setSystemDiskSize(_ctx.integerValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.SystemDisk.Size")); + launchTemplateData.setSpotPriceLimit(_ctx.floatValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.SpotPriceLimit")); + launchTemplateData.setPasswordInherit(_ctx.booleanValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.PasswordInherit")); + launchTemplateData.setPrivateIpAddress(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.PrivateIpAddress")); + launchTemplateData.setImageId(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.ImageId")); + launchTemplateData.setSystemDiskDeleteWithInstance(_ctx.booleanValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.SystemDisk.DeleteWithInstance")); + launchTemplateData.setSystemDiskCategory(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.SystemDisk.Category")); + launchTemplateData.setAutoReleaseTime(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.AutoReleaseTime")); + launchTemplateData.setSystemDiskDescription(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.SystemDisk.Description")); + launchTemplateData.setImageOwnerAlias(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.ImageOwnerAlias")); + launchTemplateData.setHostName(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.HostName")); + launchTemplateData.setSystemDiskIops(_ctx.integerValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.SystemDisk.Iops")); + launchTemplateData.setSystemDiskAutoSnapshotPolicyId(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.SystemDisk.AutoSnapshotPolicyId")); + launchTemplateData.setInternetMaxBandwidthOut(_ctx.integerValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.InternetMaxBandwidthOut")); + launchTemplateData.setInternetMaxBandwidthIn(_ctx.integerValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.InternetMaxBandwidthIn")); + launchTemplateData.setInstanceType(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.InstanceType")); + launchTemplateData.setPeriod(_ctx.integerValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.Period")); + launchTemplateData.setInstanceChargeType(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.InstanceChargeType")); + launchTemplateData.setIoOptimized(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.IoOptimized")); + launchTemplateData.setRamRoleName(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.RamRoleName")); + launchTemplateData.setVSwitchId(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.VSwitchId")); + launchTemplateData.setResourceGroupId(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.ResourceGroupId")); + launchTemplateData.setInternetChargeType(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.InternetChargeType")); + launchTemplateData.setZoneId(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.ZoneId")); + launchTemplateData.setIpv6AddressCount(_ctx.integerValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.Ipv6AddressCount")); + launchTemplateData.setSystemDiskProvisionedIops(_ctx.longValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.SystemDisk.ProvisionedIops")); + launchTemplateData.setSystemDiskBurstingEnabled(_ctx.booleanValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.SystemDisk.BurstingEnabled")); + launchTemplateData.setSystemDiskEncrypted(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.SystemDisk.Encrypted")); + + List securityGroupIds = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.SecurityGroupIds.Length"); j++) { + securityGroupIds.add(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.SecurityGroupIds["+ j +"]")); + } + launchTemplateData.setSecurityGroupIds(securityGroupIds); + + List dataDisks = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.DataDisks.Length"); j++) { + DataDisk dataDisk = new DataDisk(); + dataDisk.setPerformanceLevel(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.DataDisks["+ j +"].PerformanceLevel")); + dataDisk.setDescription(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.DataDisks["+ j +"].Description")); + dataDisk.setSnapshotId(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.DataDisks["+ j +"].SnapshotId")); + dataDisk.setDevice(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.DataDisks["+ j +"].Device")); + dataDisk.setSize(_ctx.integerValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.DataDisks["+ j +"].Size")); + dataDisk.setDiskName(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.DataDisks["+ j +"].DiskName")); + dataDisk.setCategory(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.DataDisks["+ j +"].Category")); + dataDisk.setDeleteWithInstance(_ctx.booleanValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.DataDisks["+ j +"].DeleteWithInstance")); + dataDisk.setEncrypted(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.DataDisks["+ j +"].Encrypted")); + dataDisk.setProvisionedIops(_ctx.longValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.DataDisks["+ j +"].ProvisionedIops")); + dataDisk.setBurstingEnabled(_ctx.booleanValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.DataDisks["+ j +"].BurstingEnabled")); + dataDisk.setAutoSnapshotPolicyId(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.DataDisks["+ j +"].AutoSnapshotPolicyId")); + + dataDisks.add(dataDisk); + } + launchTemplateData.setDataDisks(dataDisks); + + List networkInterfaces = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.NetworkInterfaces.Length"); j++) { + NetworkInterface networkInterface = new NetworkInterface(); + networkInterface.setNetworkInterfaceName(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.NetworkInterfaces["+ j +"].NetworkInterfaceName")); + networkInterface.setVSwitchId(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.NetworkInterfaces["+ j +"].VSwitchId")); + networkInterface.setDescription(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.NetworkInterfaces["+ j +"].Description")); + networkInterface.setPrimaryIpAddress(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.NetworkInterfaces["+ j +"].PrimaryIpAddress")); + networkInterface.setSecurityGroupId(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.NetworkInterfaces["+ j +"].SecurityGroupId")); + networkInterface.setInstanceType(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.NetworkInterfaces["+ j +"].InstanceType")); + networkInterface.setNetworkInterfaceTrafficMode(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.NetworkInterfaces["+ j +"].NetworkInterfaceTrafficMode")); + + List securityGroupIds1 = new ArrayList(); + for (int k = 0; k < _ctx.lengthValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.NetworkInterfaces["+ j +"].SecurityGroupIds.Length"); k++) { + securityGroupIds1.add(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.NetworkInterfaces["+ j +"].SecurityGroupIds["+ k +"]")); + } + networkInterface.setSecurityGroupIds1(securityGroupIds1); + + networkInterfaces.add(networkInterface); + } + launchTemplateData.setNetworkInterfaces(networkInterfaces); + + List tags = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.Tags.Length"); j++) { + InstanceTag instanceTag = new InstanceTag(); + instanceTag.setKey(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.Tags["+ j +"].Key")); + instanceTag.setValue(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.Tags["+ j +"].Value")); + + tags.add(instanceTag); + } + launchTemplateData.setTags(tags); + launchTemplateVersionSet.setLaunchTemplateData(launchTemplateData); + + launchTemplateVersionSets.add(launchTemplateVersionSet); + } + describeLaunchTemplateVersionsResponse.setLaunchTemplateVersionSets(launchTemplateVersionSets); + + return describeLaunchTemplateVersionsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeLaunchTemplatesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeLaunchTemplatesResponseUnmarshaller.java new file mode 100644 index 0000000000..4e0e313030 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeLaunchTemplatesResponseUnmarshaller.java @@ -0,0 +1,63 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeLaunchTemplatesResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeLaunchTemplatesResponse.LaunchTemplateSet; +import com.aliyuncs.ecs.model.v20140526.DescribeLaunchTemplatesResponse.LaunchTemplateSet.Tag; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeLaunchTemplatesResponseUnmarshaller { + + public static DescribeLaunchTemplatesResponse unmarshall(DescribeLaunchTemplatesResponse describeLaunchTemplatesResponse, UnmarshallerContext _ctx) { + + describeLaunchTemplatesResponse.setRequestId(_ctx.stringValue("DescribeLaunchTemplatesResponse.RequestId")); + describeLaunchTemplatesResponse.setPageSize(_ctx.integerValue("DescribeLaunchTemplatesResponse.PageSize")); + describeLaunchTemplatesResponse.setPageNumber(_ctx.integerValue("DescribeLaunchTemplatesResponse.PageNumber")); + describeLaunchTemplatesResponse.setTotalCount(_ctx.integerValue("DescribeLaunchTemplatesResponse.TotalCount")); + + List launchTemplateSets = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeLaunchTemplatesResponse.LaunchTemplateSets.Length"); i++) { + LaunchTemplateSet launchTemplateSet = new LaunchTemplateSet(); + launchTemplateSet.setLaunchTemplateName(_ctx.stringValue("DescribeLaunchTemplatesResponse.LaunchTemplateSets["+ i +"].LaunchTemplateName")); + launchTemplateSet.setDefaultVersionNumber(_ctx.longValue("DescribeLaunchTemplatesResponse.LaunchTemplateSets["+ i +"].DefaultVersionNumber")); + launchTemplateSet.setModifiedTime(_ctx.stringValue("DescribeLaunchTemplatesResponse.LaunchTemplateSets["+ i +"].ModifiedTime")); + launchTemplateSet.setLaunchTemplateId(_ctx.stringValue("DescribeLaunchTemplatesResponse.LaunchTemplateSets["+ i +"].LaunchTemplateId")); + launchTemplateSet.setCreateTime(_ctx.stringValue("DescribeLaunchTemplatesResponse.LaunchTemplateSets["+ i +"].CreateTime")); + launchTemplateSet.setResourceGroupId(_ctx.stringValue("DescribeLaunchTemplatesResponse.LaunchTemplateSets["+ i +"].ResourceGroupId")); + launchTemplateSet.setCreatedBy(_ctx.stringValue("DescribeLaunchTemplatesResponse.LaunchTemplateSets["+ i +"].CreatedBy")); + launchTemplateSet.setLatestVersionNumber(_ctx.longValue("DescribeLaunchTemplatesResponse.LaunchTemplateSets["+ i +"].LatestVersionNumber")); + + List tags = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeLaunchTemplatesResponse.LaunchTemplateSets["+ i +"].Tags.Length"); j++) { + Tag tag = new Tag(); + tag.setTagValue(_ctx.stringValue("DescribeLaunchTemplatesResponse.LaunchTemplateSets["+ i +"].Tags["+ j +"].TagValue")); + tag.setTagKey(_ctx.stringValue("DescribeLaunchTemplatesResponse.LaunchTemplateSets["+ i +"].Tags["+ j +"].TagKey")); + + tags.add(tag); + } + launchTemplateSet.setTags(tags); + + launchTemplateSets.add(launchTemplateSet); + } + describeLaunchTemplatesResponse.setLaunchTemplateSets(launchTemplateSets); + + return describeLaunchTemplatesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeLimitationResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeLimitationResponseUnmarshaller.java new file mode 100644 index 0000000000..4c2e99ac21 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeLimitationResponseUnmarshaller.java @@ -0,0 +1,31 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DescribeLimitationResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeLimitationResponseUnmarshaller { + + public static DescribeLimitationResponse unmarshall(DescribeLimitationResponse describeLimitationResponse, UnmarshallerContext _ctx) { + + describeLimitationResponse.setRequestId(_ctx.stringValue("DescribeLimitationResponse.RequestId")); + describeLimitationResponse.setLimitation(_ctx.stringValue("DescribeLimitationResponse.Limitation")); + describeLimitationResponse.setValue(_ctx.stringValue("DescribeLimitationResponse.Value")); + + return describeLimitationResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeManagedInstancesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeManagedInstancesResponseUnmarshaller.java new file mode 100644 index 0000000000..09ecf0cf1b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeManagedInstancesResponseUnmarshaller.java @@ -0,0 +1,69 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeManagedInstancesResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeManagedInstancesResponse.Instance; +import com.aliyuncs.ecs.model.v20140526.DescribeManagedInstancesResponse.Instance.Tag; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeManagedInstancesResponseUnmarshaller { + + public static DescribeManagedInstancesResponse unmarshall(DescribeManagedInstancesResponse describeManagedInstancesResponse, UnmarshallerContext _ctx) { + + describeManagedInstancesResponse.setRequestId(_ctx.stringValue("DescribeManagedInstancesResponse.RequestId")); + describeManagedInstancesResponse.setPageSize(_ctx.longValue("DescribeManagedInstancesResponse.PageSize")); + describeManagedInstancesResponse.setPageNumber(_ctx.longValue("DescribeManagedInstancesResponse.PageNumber")); + describeManagedInstancesResponse.setTotalCount(_ctx.longValue("DescribeManagedInstancesResponse.TotalCount")); + + List instances = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeManagedInstancesResponse.Instances.Length"); i++) { + Instance instance = new Instance(); + instance.setLastInvokedTime(_ctx.stringValue("DescribeManagedInstancesResponse.Instances["+ i +"].LastInvokedTime")); + instance.setConnected(_ctx.booleanValue("DescribeManagedInstancesResponse.Instances["+ i +"].Connected")); + instance.setInternetIp(_ctx.stringValue("DescribeManagedInstancesResponse.Instances["+ i +"].InternetIp")); + instance.setHostname(_ctx.stringValue("DescribeManagedInstancesResponse.Instances["+ i +"].Hostname")); + instance.setInstanceId(_ctx.stringValue("DescribeManagedInstancesResponse.Instances["+ i +"].InstanceId")); + instance.setActivationId(_ctx.stringValue("DescribeManagedInstancesResponse.Instances["+ i +"].ActivationId")); + instance.setIntranetIp(_ctx.stringValue("DescribeManagedInstancesResponse.Instances["+ i +"].IntranetIp")); + instance.setAgentVersion(_ctx.stringValue("DescribeManagedInstancesResponse.Instances["+ i +"].AgentVersion")); + instance.setRegistrationTime(_ctx.stringValue("DescribeManagedInstancesResponse.Instances["+ i +"].RegistrationTime")); + instance.setInstanceName(_ctx.stringValue("DescribeManagedInstancesResponse.Instances["+ i +"].InstanceName")); + instance.setOsType(_ctx.stringValue("DescribeManagedInstancesResponse.Instances["+ i +"].OsType")); + instance.setOsVersion(_ctx.stringValue("DescribeManagedInstancesResponse.Instances["+ i +"].OsVersion")); + instance.setInvocationCount(_ctx.longValue("DescribeManagedInstancesResponse.Instances["+ i +"].InvocationCount")); + instance.setMachineId(_ctx.stringValue("DescribeManagedInstancesResponse.Instances["+ i +"].MachineId")); + + List tags = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeManagedInstancesResponse.Instances["+ i +"].Tags.Length"); j++) { + Tag tag = new Tag(); + tag.setTagKey(_ctx.stringValue("DescribeManagedInstancesResponse.Instances["+ i +"].Tags["+ j +"].TagKey")); + tag.setTagValue(_ctx.stringValue("DescribeManagedInstancesResponse.Instances["+ i +"].Tags["+ j +"].TagValue")); + + tags.add(tag); + } + instance.setTags(tags); + + instances.add(instance); + } + describeManagedInstancesResponse.setInstances(instances); + + return describeManagedInstancesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeNatGatewaysResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeNatGatewaysResponseUnmarshaller.java new file mode 100644 index 0000000000..d45f33d520 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeNatGatewaysResponseUnmarshaller.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeNatGatewaysResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeNatGatewaysResponse.NatGateway; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeNatGatewaysResponseUnmarshaller { + + public static DescribeNatGatewaysResponse unmarshall(DescribeNatGatewaysResponse describeNatGatewaysResponse, UnmarshallerContext _ctx) { + + describeNatGatewaysResponse.setRequestId(_ctx.stringValue("DescribeNatGatewaysResponse.RequestId")); + describeNatGatewaysResponse.setPageSize(_ctx.integerValue("DescribeNatGatewaysResponse.PageSize")); + describeNatGatewaysResponse.setPageNumber(_ctx.integerValue("DescribeNatGatewaysResponse.PageNumber")); + describeNatGatewaysResponse.setTotalCount(_ctx.integerValue("DescribeNatGatewaysResponse.TotalCount")); + + List natGateways = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeNatGatewaysResponse.NatGateways.Length"); i++) { + NatGateway natGateway = new NatGateway(); + natGateway.setStatus(_ctx.stringValue("DescribeNatGatewaysResponse.NatGateways["+ i +"].Status")); + natGateway.setCreationTime(_ctx.stringValue("DescribeNatGatewaysResponse.NatGateways["+ i +"].CreationTime")); + natGateway.setVpcId(_ctx.stringValue("DescribeNatGatewaysResponse.NatGateways["+ i +"].VpcId")); + natGateway.setSpec(_ctx.stringValue("DescribeNatGatewaysResponse.NatGateways["+ i +"].Spec")); + natGateway.setDescription(_ctx.stringValue("DescribeNatGatewaysResponse.NatGateways["+ i +"].Description")); + natGateway.setNatGatewayId(_ctx.stringValue("DescribeNatGatewaysResponse.NatGateways["+ i +"].NatGatewayId")); + natGateway.setBusinessStatus(_ctx.stringValue("DescribeNatGatewaysResponse.NatGateways["+ i +"].BusinessStatus")); + natGateway.setName(_ctx.stringValue("DescribeNatGatewaysResponse.NatGateways["+ i +"].Name")); + natGateway.setInstanceChargeType(_ctx.stringValue("DescribeNatGatewaysResponse.NatGateways["+ i +"].InstanceChargeType")); + natGateway.setRegionId(_ctx.stringValue("DescribeNatGatewaysResponse.NatGateways["+ i +"].RegionId")); + + List forwardTableIds = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeNatGatewaysResponse.NatGateways["+ i +"].ForwardTableIds.Length"); j++) { + forwardTableIds.add(_ctx.stringValue("DescribeNatGatewaysResponse.NatGateways["+ i +"].ForwardTableIds["+ j +"]")); + } + natGateway.setForwardTableIds(forwardTableIds); + + List bandwidthPackageIds = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeNatGatewaysResponse.NatGateways["+ i +"].BandwidthPackageIds.Length"); j++) { + bandwidthPackageIds.add(_ctx.stringValue("DescribeNatGatewaysResponse.NatGateways["+ i +"].BandwidthPackageIds["+ j +"]")); + } + natGateway.setBandwidthPackageIds(bandwidthPackageIds); + + natGateways.add(natGateway); + } + describeNatGatewaysResponse.setNatGateways(natGateways); + + return describeNatGatewaysResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeNetworkInterfaceAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeNetworkInterfaceAttributeResponseUnmarshaller.java new file mode 100644 index 0000000000..80cbdc0add --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeNetworkInterfaceAttributeResponseUnmarshaller.java @@ -0,0 +1,159 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeNetworkInterfaceAttributeResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeNetworkInterfaceAttributeResponse.AssociatedPublicIp; +import com.aliyuncs.ecs.model.v20140526.DescribeNetworkInterfaceAttributeResponse.Attachment; +import com.aliyuncs.ecs.model.v20140526.DescribeNetworkInterfaceAttributeResponse.BondInterfaceSpecification; +import com.aliyuncs.ecs.model.v20140526.DescribeNetworkInterfaceAttributeResponse.BondInterfaceSpecification.SlaveInterfaceSpecificationSet; +import com.aliyuncs.ecs.model.v20140526.DescribeNetworkInterfaceAttributeResponse.Ipv4PrefixSet; +import com.aliyuncs.ecs.model.v20140526.DescribeNetworkInterfaceAttributeResponse.Ipv6PrefixSet; +import com.aliyuncs.ecs.model.v20140526.DescribeNetworkInterfaceAttributeResponse.Ipv6Set; +import com.aliyuncs.ecs.model.v20140526.DescribeNetworkInterfaceAttributeResponse.PrivateIpSet; +import com.aliyuncs.ecs.model.v20140526.DescribeNetworkInterfaceAttributeResponse.PrivateIpSet.AssociatedPublicIp1; +import com.aliyuncs.ecs.model.v20140526.DescribeNetworkInterfaceAttributeResponse.SlaveInterfaceSpecification; +import com.aliyuncs.ecs.model.v20140526.DescribeNetworkInterfaceAttributeResponse.Tag; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeNetworkInterfaceAttributeResponseUnmarshaller { + + public static DescribeNetworkInterfaceAttributeResponse unmarshall(DescribeNetworkInterfaceAttributeResponse describeNetworkInterfaceAttributeResponse, UnmarshallerContext _ctx) { + + describeNetworkInterfaceAttributeResponse.setRequestId(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.RequestId")); + describeNetworkInterfaceAttributeResponse.setCreationTime(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.CreationTime")); + describeNetworkInterfaceAttributeResponse.setVpcId(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.VpcId")); + describeNetworkInterfaceAttributeResponse.setType(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.Type")); + describeNetworkInterfaceAttributeResponse.setStatus(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.Status")); + describeNetworkInterfaceAttributeResponse.setNetworkInterfaceTrafficMode(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.NetworkInterfaceTrafficMode")); + describeNetworkInterfaceAttributeResponse.setNetworkInterfaceName(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.NetworkInterfaceName")); + describeNetworkInterfaceAttributeResponse.setMacAddress(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.MacAddress")); + describeNetworkInterfaceAttributeResponse.setQueuePairNumber(_ctx.integerValue("DescribeNetworkInterfaceAttributeResponse.QueuePairNumber")); + describeNetworkInterfaceAttributeResponse.setNetworkInterfaceId(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.NetworkInterfaceId")); + describeNetworkInterfaceAttributeResponse.setServiceID(_ctx.longValue("DescribeNetworkInterfaceAttributeResponse.ServiceID")); + describeNetworkInterfaceAttributeResponse.setInstanceId(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.InstanceId")); + describeNetworkInterfaceAttributeResponse.setOwnerId(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.OwnerId")); + describeNetworkInterfaceAttributeResponse.setServiceManaged(_ctx.booleanValue("DescribeNetworkInterfaceAttributeResponse.ServiceManaged")); + describeNetworkInterfaceAttributeResponse.setVSwitchId(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.VSwitchId")); + describeNetworkInterfaceAttributeResponse.setDescription(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.Description")); + describeNetworkInterfaceAttributeResponse.setResourceGroupId(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.ResourceGroupId")); + describeNetworkInterfaceAttributeResponse.setZoneId(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.ZoneId")); + describeNetworkInterfaceAttributeResponse.setPrivateIpAddress(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.PrivateIpAddress")); + describeNetworkInterfaceAttributeResponse.setQueueNumber(_ctx.integerValue("DescribeNetworkInterfaceAttributeResponse.QueueNumber")); + + List securityGroupIds = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeNetworkInterfaceAttributeResponse.SecurityGroupIds.Length"); i++) { + securityGroupIds.add(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.SecurityGroupIds["+ i +"]")); + } + describeNetworkInterfaceAttributeResponse.setSecurityGroupIds(securityGroupIds); + + AssociatedPublicIp associatedPublicIp = new AssociatedPublicIp(); + associatedPublicIp.setPublicIpAddress(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.AssociatedPublicIp.PublicIpAddress")); + associatedPublicIp.setAllocationId(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.AssociatedPublicIp.AllocationId")); + describeNetworkInterfaceAttributeResponse.setAssociatedPublicIp(associatedPublicIp); + + Attachment attachment = new Attachment(); + attachment.setDeviceIndex(_ctx.integerValue("DescribeNetworkInterfaceAttributeResponse.Attachment.DeviceIndex")); + attachment.setInstanceId(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.Attachment.InstanceId")); + attachment.setTrunkNetworkInterfaceId(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.Attachment.TrunkNetworkInterfaceId")); + attachment.setNetworkCardIndex(_ctx.integerValue("DescribeNetworkInterfaceAttributeResponse.Attachment.NetworkCardIndex")); + + List memberNetworkInterfaceIds = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeNetworkInterfaceAttributeResponse.Attachment.MemberNetworkInterfaceIds.Length"); i++) { + memberNetworkInterfaceIds.add(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.Attachment.MemberNetworkInterfaceIds["+ i +"]")); + } + attachment.setMemberNetworkInterfaceIds(memberNetworkInterfaceIds); + describeNetworkInterfaceAttributeResponse.setAttachment(attachment); + + BondInterfaceSpecification bondInterfaceSpecification = new BondInterfaceSpecification(); + bondInterfaceSpecification.setBondMode(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.BondInterfaceSpecification.BondMode")); + + List slaveInterfaceSpecification2 = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeNetworkInterfaceAttributeResponse.BondInterfaceSpecification.SlaveInterfaceSpecification.Length"); i++) { + SlaveInterfaceSpecificationSet slaveInterfaceSpecificationSet = new SlaveInterfaceSpecificationSet(); + slaveInterfaceSpecificationSet.setSlaveNetworkInterfaceId(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.BondInterfaceSpecification.SlaveInterfaceSpecification["+ i +"].SlaveNetworkInterfaceId")); + slaveInterfaceSpecificationSet.setWorkState(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.BondInterfaceSpecification.SlaveInterfaceSpecification["+ i +"].WorkState")); + slaveInterfaceSpecificationSet.setBondNetworkInterfaceId(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.BondInterfaceSpecification.SlaveInterfaceSpecification["+ i +"].BondNetworkInterfaceId")); + + slaveInterfaceSpecification2.add(slaveInterfaceSpecificationSet); + } + bondInterfaceSpecification.setSlaveInterfaceSpecification2(slaveInterfaceSpecification2); + describeNetworkInterfaceAttributeResponse.setBondInterfaceSpecification(bondInterfaceSpecification); + + SlaveInterfaceSpecification slaveInterfaceSpecification = new SlaveInterfaceSpecification(); + slaveInterfaceSpecification.setSlaveNetworkInterfaceId(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.SlaveInterfaceSpecification.SlaveNetworkInterfaceId")); + slaveInterfaceSpecification.setWorkState(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.SlaveInterfaceSpecification.WorkState")); + slaveInterfaceSpecification.setBondNetworkInterfaceId(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.SlaveInterfaceSpecification.BondNetworkInterfaceId")); + describeNetworkInterfaceAttributeResponse.setSlaveInterfaceSpecification(slaveInterfaceSpecification); + + List privateIpSets = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeNetworkInterfaceAttributeResponse.PrivateIpSets.Length"); i++) { + PrivateIpSet privateIpSet = new PrivateIpSet(); + privateIpSet.setPrivateIpAddress(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.PrivateIpSets["+ i +"].PrivateIpAddress")); + privateIpSet.setPrimary(_ctx.booleanValue("DescribeNetworkInterfaceAttributeResponse.PrivateIpSets["+ i +"].Primary")); + + AssociatedPublicIp1 associatedPublicIp1 = new AssociatedPublicIp1(); + associatedPublicIp1.setPublicIpAddress(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.PrivateIpSets["+ i +"].AssociatedPublicIp.PublicIpAddress")); + associatedPublicIp1.setAllocationId(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.PrivateIpSets["+ i +"].AssociatedPublicIp.AllocationId")); + privateIpSet.setAssociatedPublicIp1(associatedPublicIp1); + + privateIpSets.add(privateIpSet); + } + describeNetworkInterfaceAttributeResponse.setPrivateIpSets(privateIpSets); + + List ipv6Sets = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeNetworkInterfaceAttributeResponse.Ipv6Sets.Length"); i++) { + Ipv6Set ipv6Set = new Ipv6Set(); + ipv6Set.setIpv6Address(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.Ipv6Sets["+ i +"].Ipv6Address")); + + ipv6Sets.add(ipv6Set); + } + describeNetworkInterfaceAttributeResponse.setIpv6Sets(ipv6Sets); + + List ipv4PrefixSets = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeNetworkInterfaceAttributeResponse.Ipv4PrefixSets.Length"); i++) { + Ipv4PrefixSet ipv4PrefixSet = new Ipv4PrefixSet(); + ipv4PrefixSet.setIpv4Prefix(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.Ipv4PrefixSets["+ i +"].Ipv4Prefix")); + + ipv4PrefixSets.add(ipv4PrefixSet); + } + describeNetworkInterfaceAttributeResponse.setIpv4PrefixSets(ipv4PrefixSets); + + List ipv6PrefixSets = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeNetworkInterfaceAttributeResponse.Ipv6PrefixSets.Length"); i++) { + Ipv6PrefixSet ipv6PrefixSet = new Ipv6PrefixSet(); + ipv6PrefixSet.setIpv6Prefix(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.Ipv6PrefixSets["+ i +"].Ipv6Prefix")); + + ipv6PrefixSets.add(ipv6PrefixSet); + } + describeNetworkInterfaceAttributeResponse.setIpv6PrefixSets(ipv6PrefixSets); + + List tags = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeNetworkInterfaceAttributeResponse.Tags.Length"); i++) { + Tag tag = new Tag(); + tag.setTagValue(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.Tags["+ i +"].TagValue")); + tag.setTagKey(_ctx.stringValue("DescribeNetworkInterfaceAttributeResponse.Tags["+ i +"].TagKey")); + + tags.add(tag); + } + describeNetworkInterfaceAttributeResponse.setTags(tags); + + return describeNetworkInterfaceAttributeResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeNetworkInterfacePermissionsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeNetworkInterfacePermissionsResponseUnmarshaller.java new file mode 100644 index 0000000000..fd98f160d1 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeNetworkInterfacePermissionsResponseUnmarshaller.java @@ -0,0 +1,50 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeNetworkInterfacePermissionsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeNetworkInterfacePermissionsResponse.NetworkInterfacePermission; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeNetworkInterfacePermissionsResponseUnmarshaller { + + public static DescribeNetworkInterfacePermissionsResponse unmarshall(DescribeNetworkInterfacePermissionsResponse describeNetworkInterfacePermissionsResponse, UnmarshallerContext _ctx) { + + describeNetworkInterfacePermissionsResponse.setRequestId(_ctx.stringValue("DescribeNetworkInterfacePermissionsResponse.RequestId")); + describeNetworkInterfacePermissionsResponse.setPageSize(_ctx.integerValue("DescribeNetworkInterfacePermissionsResponse.PageSize")); + describeNetworkInterfacePermissionsResponse.setPageNumber(_ctx.integerValue("DescribeNetworkInterfacePermissionsResponse.PageNumber")); + describeNetworkInterfacePermissionsResponse.setTotalCount(_ctx.integerValue("DescribeNetworkInterfacePermissionsResponse.TotalCount")); + + List networkInterfacePermissions = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeNetworkInterfacePermissionsResponse.NetworkInterfacePermissions.Length"); i++) { + NetworkInterfacePermission networkInterfacePermission = new NetworkInterfacePermission(); + networkInterfacePermission.setPermission(_ctx.stringValue("DescribeNetworkInterfacePermissionsResponse.NetworkInterfacePermissions["+ i +"].Permission")); + networkInterfacePermission.setNetworkInterfaceId(_ctx.stringValue("DescribeNetworkInterfacePermissionsResponse.NetworkInterfacePermissions["+ i +"].NetworkInterfaceId")); + networkInterfacePermission.setAccountId(_ctx.longValue("DescribeNetworkInterfacePermissionsResponse.NetworkInterfacePermissions["+ i +"].AccountId")); + networkInterfacePermission.setNetworkInterfacePermissionId(_ctx.stringValue("DescribeNetworkInterfacePermissionsResponse.NetworkInterfacePermissions["+ i +"].NetworkInterfacePermissionId")); + networkInterfacePermission.setServiceName(_ctx.stringValue("DescribeNetworkInterfacePermissionsResponse.NetworkInterfacePermissions["+ i +"].ServiceName")); + networkInterfacePermission.setPermissionState(_ctx.stringValue("DescribeNetworkInterfacePermissionsResponse.NetworkInterfacePermissions["+ i +"].PermissionState")); + + networkInterfacePermissions.add(networkInterfacePermission); + } + describeNetworkInterfacePermissionsResponse.setNetworkInterfacePermissions(networkInterfacePermissions); + + return describeNetworkInterfacePermissionsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeNetworkInterfacesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeNetworkInterfacesResponseUnmarshaller.java new file mode 100644 index 0000000000..b5b4f9141e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeNetworkInterfacesResponseUnmarshaller.java @@ -0,0 +1,142 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeNetworkInterfacesResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeNetworkInterfacesResponse.NetworkInterfaceSet; +import com.aliyuncs.ecs.model.v20140526.DescribeNetworkInterfacesResponse.NetworkInterfaceSet.AssociatedPublicIp; +import com.aliyuncs.ecs.model.v20140526.DescribeNetworkInterfacesResponse.NetworkInterfaceSet.Attachment; +import com.aliyuncs.ecs.model.v20140526.DescribeNetworkInterfacesResponse.NetworkInterfaceSet.Ipv4PrefixSet; +import com.aliyuncs.ecs.model.v20140526.DescribeNetworkInterfacesResponse.NetworkInterfaceSet.Ipv6PrefixSet; +import com.aliyuncs.ecs.model.v20140526.DescribeNetworkInterfacesResponse.NetworkInterfaceSet.Ipv6Set; +import com.aliyuncs.ecs.model.v20140526.DescribeNetworkInterfacesResponse.NetworkInterfaceSet.PrivateIpSet; +import com.aliyuncs.ecs.model.v20140526.DescribeNetworkInterfacesResponse.NetworkInterfaceSet.PrivateIpSet.AssociatedPublicIp1; +import com.aliyuncs.ecs.model.v20140526.DescribeNetworkInterfacesResponse.NetworkInterfaceSet.Tag; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeNetworkInterfacesResponseUnmarshaller { + + public static DescribeNetworkInterfacesResponse unmarshall(DescribeNetworkInterfacesResponse describeNetworkInterfacesResponse, UnmarshallerContext _ctx) { + + describeNetworkInterfacesResponse.setRequestId(_ctx.stringValue("DescribeNetworkInterfacesResponse.RequestId")); + describeNetworkInterfacesResponse.setNextToken(_ctx.stringValue("DescribeNetworkInterfacesResponse.NextToken")); + describeNetworkInterfacesResponse.setPageSize(_ctx.integerValue("DescribeNetworkInterfacesResponse.PageSize")); + describeNetworkInterfacesResponse.setPageNumber(_ctx.integerValue("DescribeNetworkInterfacesResponse.PageNumber")); + describeNetworkInterfacesResponse.setTotalCount(_ctx.integerValue("DescribeNetworkInterfacesResponse.TotalCount")); + + List networkInterfaceSets = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets.Length"); i++) { + NetworkInterfaceSet networkInterfaceSet = new NetworkInterfaceSet(); + networkInterfaceSet.setCreationTime(_ctx.stringValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].CreationTime")); + networkInterfaceSet.setVpcId(_ctx.stringValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].VpcId")); + networkInterfaceSet.setType(_ctx.stringValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].Type")); + networkInterfaceSet.setStatus(_ctx.stringValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].Status")); + networkInterfaceSet.setNetworkInterfaceTrafficMode(_ctx.stringValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].NetworkInterfaceTrafficMode")); + networkInterfaceSet.setNetworkInterfaceName(_ctx.stringValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].NetworkInterfaceName")); + networkInterfaceSet.setMacAddress(_ctx.stringValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].MacAddress")); + networkInterfaceSet.setQueuePairNumber(_ctx.integerValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].QueuePairNumber")); + networkInterfaceSet.setNetworkInterfaceId(_ctx.stringValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].NetworkInterfaceId")); + networkInterfaceSet.setServiceID(_ctx.longValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].ServiceID")); + networkInterfaceSet.setInstanceId(_ctx.stringValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].InstanceId")); + networkInterfaceSet.setOwnerId(_ctx.stringValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].OwnerId")); + networkInterfaceSet.setServiceManaged(_ctx.booleanValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].ServiceManaged")); + networkInterfaceSet.setVSwitchId(_ctx.stringValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].VSwitchId")); + networkInterfaceSet.setDescription(_ctx.stringValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].Description")); + networkInterfaceSet.setResourceGroupId(_ctx.stringValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].ResourceGroupId")); + networkInterfaceSet.setZoneId(_ctx.stringValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].ZoneId")); + networkInterfaceSet.setPrivateIpAddress(_ctx.stringValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].PrivateIpAddress")); + networkInterfaceSet.setQueueNumber(_ctx.integerValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].QueueNumber")); + + List securityGroupIds = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].SecurityGroupIds.Length"); j++) { + securityGroupIds.add(_ctx.stringValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].SecurityGroupIds["+ j +"]")); + } + networkInterfaceSet.setSecurityGroupIds(securityGroupIds); + + AssociatedPublicIp associatedPublicIp = new AssociatedPublicIp(); + associatedPublicIp.setPublicIpAddress(_ctx.stringValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].AssociatedPublicIp.PublicIpAddress")); + associatedPublicIp.setAllocationId(_ctx.stringValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].AssociatedPublicIp.AllocationId")); + networkInterfaceSet.setAssociatedPublicIp(associatedPublicIp); + + Attachment attachment = new Attachment(); + attachment.setDeviceIndex(_ctx.integerValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].Attachment.DeviceIndex")); + attachment.setInstanceId(_ctx.stringValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].Attachment.InstanceId")); + attachment.setTrunkNetworkInterfaceId(_ctx.stringValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].Attachment.TrunkNetworkInterfaceId")); + attachment.setNetworkCardIndex(_ctx.integerValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].Attachment.NetworkCardIndex")); + networkInterfaceSet.setAttachment(attachment); + + List privateIpSets = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].PrivateIpSets.Length"); j++) { + PrivateIpSet privateIpSet = new PrivateIpSet(); + privateIpSet.setPrivateIpAddress(_ctx.stringValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].PrivateIpSets["+ j +"].PrivateIpAddress")); + privateIpSet.setPrimary(_ctx.booleanValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].PrivateIpSets["+ j +"].Primary")); + + AssociatedPublicIp1 associatedPublicIp1 = new AssociatedPublicIp1(); + associatedPublicIp1.setPublicIpAddress(_ctx.stringValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].PrivateIpSets["+ j +"].AssociatedPublicIp.PublicIpAddress")); + associatedPublicIp1.setAllocationId(_ctx.stringValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].PrivateIpSets["+ j +"].AssociatedPublicIp.AllocationId")); + privateIpSet.setAssociatedPublicIp1(associatedPublicIp1); + + privateIpSets.add(privateIpSet); + } + networkInterfaceSet.setPrivateIpSets(privateIpSets); + + List ipv6Sets = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].Ipv6Sets.Length"); j++) { + Ipv6Set ipv6Set = new Ipv6Set(); + ipv6Set.setIpv6Address(_ctx.stringValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].Ipv6Sets["+ j +"].Ipv6Address")); + + ipv6Sets.add(ipv6Set); + } + networkInterfaceSet.setIpv6Sets(ipv6Sets); + + List ipv4PrefixSets = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].Ipv4PrefixSets.Length"); j++) { + Ipv4PrefixSet ipv4PrefixSet = new Ipv4PrefixSet(); + ipv4PrefixSet.setIpv4Prefix(_ctx.stringValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].Ipv4PrefixSets["+ j +"].Ipv4Prefix")); + + ipv4PrefixSets.add(ipv4PrefixSet); + } + networkInterfaceSet.setIpv4PrefixSets(ipv4PrefixSets); + + List ipv6PrefixSets = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].Ipv6PrefixSets.Length"); j++) { + Ipv6PrefixSet ipv6PrefixSet = new Ipv6PrefixSet(); + ipv6PrefixSet.setIpv6Prefix(_ctx.stringValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].Ipv6PrefixSets["+ j +"].Ipv6Prefix")); + + ipv6PrefixSets.add(ipv6PrefixSet); + } + networkInterfaceSet.setIpv6PrefixSets(ipv6PrefixSets); + + List tags = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].Tags.Length"); j++) { + Tag tag = new Tag(); + tag.setTagValue(_ctx.stringValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].Tags["+ j +"].TagValue")); + tag.setTagKey(_ctx.stringValue("DescribeNetworkInterfacesResponse.NetworkInterfaceSets["+ i +"].Tags["+ j +"].TagKey")); + + tags.add(tag); + } + networkInterfaceSet.setTags(tags); + + networkInterfaceSets.add(networkInterfaceSet); + } + describeNetworkInterfacesResponse.setNetworkInterfaceSets(networkInterfaceSets); + + return describeNetworkInterfacesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeNewProjectEipMonitorDataResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeNewProjectEipMonitorDataResponseUnmarshaller.java new file mode 100644 index 0000000000..5982ccc692 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeNewProjectEipMonitorDataResponseUnmarshaller.java @@ -0,0 +1,47 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeNewProjectEipMonitorDataResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeNewProjectEipMonitorDataResponse.EipMonitorData; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeNewProjectEipMonitorDataResponseUnmarshaller { + + public static DescribeNewProjectEipMonitorDataResponse unmarshall(DescribeNewProjectEipMonitorDataResponse describeNewProjectEipMonitorDataResponse, UnmarshallerContext _ctx) { + + describeNewProjectEipMonitorDataResponse.setRequestId(_ctx.stringValue("DescribeNewProjectEipMonitorDataResponse.RequestId")); + + List eipMonitorDatas = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeNewProjectEipMonitorDataResponse.EipMonitorDatas.Length"); i++) { + EipMonitorData eipMonitorData = new EipMonitorData(); + eipMonitorData.setEipTX(_ctx.integerValue("DescribeNewProjectEipMonitorDataResponse.EipMonitorDatas["+ i +"].EipTX")); + eipMonitorData.setEipPackets(_ctx.integerValue("DescribeNewProjectEipMonitorDataResponse.EipMonitorDatas["+ i +"].EipPackets")); + eipMonitorData.setEipBandwidth(_ctx.integerValue("DescribeNewProjectEipMonitorDataResponse.EipMonitorDatas["+ i +"].EipBandwidth")); + eipMonitorData.setTimeStamp(_ctx.stringValue("DescribeNewProjectEipMonitorDataResponse.EipMonitorDatas["+ i +"].TimeStamp")); + eipMonitorData.setEipFlow(_ctx.integerValue("DescribeNewProjectEipMonitorDataResponse.EipMonitorDatas["+ i +"].EipFlow")); + eipMonitorData.setEipRX(_ctx.integerValue("DescribeNewProjectEipMonitorDataResponse.EipMonitorDatas["+ i +"].EipRX")); + + eipMonitorDatas.add(eipMonitorData); + } + describeNewProjectEipMonitorDataResponse.setEipMonitorDatas(eipMonitorDatas); + + return describeNewProjectEipMonitorDataResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribePhysicalConnectionsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribePhysicalConnectionsResponseUnmarshaller.java new file mode 100644 index 0000000000..0cb2b15007 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribePhysicalConnectionsResponseUnmarshaller.java @@ -0,0 +1,62 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribePhysicalConnectionsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribePhysicalConnectionsResponse.PhysicalConnectionType; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribePhysicalConnectionsResponseUnmarshaller { + + public static DescribePhysicalConnectionsResponse unmarshall(DescribePhysicalConnectionsResponse describePhysicalConnectionsResponse, UnmarshallerContext _ctx) { + + describePhysicalConnectionsResponse.setRequestId(_ctx.stringValue("DescribePhysicalConnectionsResponse.RequestId")); + describePhysicalConnectionsResponse.setPageNumber(_ctx.integerValue("DescribePhysicalConnectionsResponse.PageNumber")); + describePhysicalConnectionsResponse.setPageSize(_ctx.integerValue("DescribePhysicalConnectionsResponse.PageSize")); + describePhysicalConnectionsResponse.setTotalCount(_ctx.integerValue("DescribePhysicalConnectionsResponse.TotalCount")); + + List physicalConnectionSet = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet.Length"); i++) { + PhysicalConnectionType physicalConnectionType = new PhysicalConnectionType(); + physicalConnectionType.setAdLocation(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet["+ i +"].AdLocation")); + physicalConnectionType.setCreationTime(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet["+ i +"].CreationTime")); + physicalConnectionType.setStatus(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet["+ i +"].Status")); + physicalConnectionType.setType(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet["+ i +"].Type")); + physicalConnectionType.setPortNumber(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet["+ i +"].PortNumber")); + physicalConnectionType.setCircuitCode(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet["+ i +"].CircuitCode")); + physicalConnectionType.setSpec(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet["+ i +"].Spec")); + physicalConnectionType.setBandwidth(_ctx.longValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet["+ i +"].Bandwidth")); + physicalConnectionType.setDescription(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet["+ i +"].Description")); + physicalConnectionType.setPortType(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet["+ i +"].PortType")); + physicalConnectionType.setEnabledTime(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet["+ i +"].EnabledTime")); + physicalConnectionType.setBusinessStatus(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet["+ i +"].BusinessStatus")); + physicalConnectionType.setLineOperator(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet["+ i +"].LineOperator")); + physicalConnectionType.setName(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet["+ i +"].Name")); + physicalConnectionType.setRedundantPhysicalConnectionId(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet["+ i +"].RedundantPhysicalConnectionId")); + physicalConnectionType.setPeerLocation(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet["+ i +"].PeerLocation")); + physicalConnectionType.setAccessPointId(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet["+ i +"].AccessPointId")); + physicalConnectionType.setPhysicalConnectionId(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet["+ i +"].PhysicalConnectionId")); + + physicalConnectionSet.add(physicalConnectionType); + } + describePhysicalConnectionsResponse.setPhysicalConnectionSet(physicalConnectionSet); + + return describePhysicalConnectionsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribePrefixListAssociationsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribePrefixListAssociationsResponseUnmarshaller.java new file mode 100644 index 0000000000..89fec6abac --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribePrefixListAssociationsResponseUnmarshaller.java @@ -0,0 +1,44 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribePrefixListAssociationsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribePrefixListAssociationsResponse.PrefixListAssociation; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribePrefixListAssociationsResponseUnmarshaller { + + public static DescribePrefixListAssociationsResponse unmarshall(DescribePrefixListAssociationsResponse describePrefixListAssociationsResponse, UnmarshallerContext _ctx) { + + describePrefixListAssociationsResponse.setRequestId(_ctx.stringValue("DescribePrefixListAssociationsResponse.RequestId")); + describePrefixListAssociationsResponse.setNextToken(_ctx.stringValue("DescribePrefixListAssociationsResponse.NextToken")); + + List prefixListAssociations = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribePrefixListAssociationsResponse.PrefixListAssociations.Length"); i++) { + PrefixListAssociation prefixListAssociation = new PrefixListAssociation(); + prefixListAssociation.setResourceId(_ctx.stringValue("DescribePrefixListAssociationsResponse.PrefixListAssociations["+ i +"].ResourceId")); + prefixListAssociation.setResourceType(_ctx.stringValue("DescribePrefixListAssociationsResponse.PrefixListAssociations["+ i +"].ResourceType")); + + prefixListAssociations.add(prefixListAssociation); + } + describePrefixListAssociationsResponse.setPrefixListAssociations(prefixListAssociations); + + return describePrefixListAssociationsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribePrefixListAttributesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribePrefixListAttributesResponseUnmarshaller.java new file mode 100644 index 0000000000..e18e703d73 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribePrefixListAttributesResponseUnmarshaller.java @@ -0,0 +1,49 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribePrefixListAttributesResponse; +import com.aliyuncs.ecs.model.v20140526.DescribePrefixListAttributesResponse.Entry; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribePrefixListAttributesResponseUnmarshaller { + + public static DescribePrefixListAttributesResponse unmarshall(DescribePrefixListAttributesResponse describePrefixListAttributesResponse, UnmarshallerContext _ctx) { + + describePrefixListAttributesResponse.setRequestId(_ctx.stringValue("DescribePrefixListAttributesResponse.RequestId")); + describePrefixListAttributesResponse.setCreationTime(_ctx.stringValue("DescribePrefixListAttributesResponse.CreationTime")); + describePrefixListAttributesResponse.setMaxEntries(_ctx.integerValue("DescribePrefixListAttributesResponse.MaxEntries")); + describePrefixListAttributesResponse.setDescription(_ctx.stringValue("DescribePrefixListAttributesResponse.Description")); + describePrefixListAttributesResponse.setAddressFamily(_ctx.stringValue("DescribePrefixListAttributesResponse.AddressFamily")); + describePrefixListAttributesResponse.setPrefixListName(_ctx.stringValue("DescribePrefixListAttributesResponse.PrefixListName")); + describePrefixListAttributesResponse.setPrefixListId(_ctx.stringValue("DescribePrefixListAttributesResponse.PrefixListId")); + + List entries = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribePrefixListAttributesResponse.Entries.Length"); i++) { + Entry entry = new Entry(); + entry.setDescription(_ctx.stringValue("DescribePrefixListAttributesResponse.Entries["+ i +"].Description")); + entry.setCidr(_ctx.stringValue("DescribePrefixListAttributesResponse.Entries["+ i +"].Cidr")); + + entries.add(entry); + } + describePrefixListAttributesResponse.setEntries(entries); + + return describePrefixListAttributesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribePrefixListsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribePrefixListsResponseUnmarshaller.java new file mode 100644 index 0000000000..19d188194c --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribePrefixListsResponseUnmarshaller.java @@ -0,0 +1,49 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribePrefixListsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribePrefixListsResponse.PrefixList; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribePrefixListsResponseUnmarshaller { + + public static DescribePrefixListsResponse unmarshall(DescribePrefixListsResponse describePrefixListsResponse, UnmarshallerContext _ctx) { + + describePrefixListsResponse.setRequestId(_ctx.stringValue("DescribePrefixListsResponse.RequestId")); + describePrefixListsResponse.setNextToken(_ctx.stringValue("DescribePrefixListsResponse.NextToken")); + + List prefixLists = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribePrefixListsResponse.PrefixLists.Length"); i++) { + PrefixList prefixList = new PrefixList(); + prefixList.setCreationTime(_ctx.stringValue("DescribePrefixListsResponse.PrefixLists["+ i +"].CreationTime")); + prefixList.setAssociationCount(_ctx.integerValue("DescribePrefixListsResponse.PrefixLists["+ i +"].AssociationCount")); + prefixList.setMaxEntries(_ctx.integerValue("DescribePrefixListsResponse.PrefixLists["+ i +"].MaxEntries")); + prefixList.setDescription(_ctx.stringValue("DescribePrefixListsResponse.PrefixLists["+ i +"].Description")); + prefixList.setAddressFamily(_ctx.stringValue("DescribePrefixListsResponse.PrefixLists["+ i +"].AddressFamily")); + prefixList.setPrefixListName(_ctx.stringValue("DescribePrefixListsResponse.PrefixLists["+ i +"].PrefixListName")); + prefixList.setPrefixListId(_ctx.stringValue("DescribePrefixListsResponse.PrefixLists["+ i +"].PrefixListId")); + + prefixLists.add(prefixList); + } + describePrefixListsResponse.setPrefixLists(prefixLists); + + return describePrefixListsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribePriceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribePriceResponseUnmarshaller.java new file mode 100644 index 0000000000..d8d8d55cc6 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribePriceResponseUnmarshaller.java @@ -0,0 +1,80 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribePriceResponse; +import com.aliyuncs.ecs.model.v20140526.DescribePriceResponse.PriceInfo; +import com.aliyuncs.ecs.model.v20140526.DescribePriceResponse.PriceInfo.Price; +import com.aliyuncs.ecs.model.v20140526.DescribePriceResponse.PriceInfo.Price.ResourcePriceModel; +import com.aliyuncs.ecs.model.v20140526.DescribePriceResponse.PriceInfo.Price.ResourcePriceModel.Rule1; +import com.aliyuncs.ecs.model.v20140526.DescribePriceResponse.PriceInfo.Rule; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribePriceResponseUnmarshaller { + + public static DescribePriceResponse unmarshall(DescribePriceResponse describePriceResponse, UnmarshallerContext _ctx) { + + describePriceResponse.setRequestId(_ctx.stringValue("DescribePriceResponse.RequestId")); + + PriceInfo priceInfo = new PriceInfo(); + + Price price = new Price(); + price.setOriginalPrice(_ctx.floatValue("DescribePriceResponse.PriceInfo.Price.OriginalPrice")); + price.setReservedInstanceHourPrice(_ctx.floatValue("DescribePriceResponse.PriceInfo.Price.ReservedInstanceHourPrice")); + price.setDiscountPrice(_ctx.floatValue("DescribePriceResponse.PriceInfo.Price.DiscountPrice")); + price.setCurrency(_ctx.stringValue("DescribePriceResponse.PriceInfo.Price.Currency")); + price.setTradePrice(_ctx.floatValue("DescribePriceResponse.PriceInfo.Price.TradePrice")); + + List detailInfos = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribePriceResponse.PriceInfo.Price.DetailInfos.Length"); i++) { + ResourcePriceModel resourcePriceModel = new ResourcePriceModel(); + resourcePriceModel.setResource(_ctx.stringValue("DescribePriceResponse.PriceInfo.Price.DetailInfos["+ i +"].Resource")); + resourcePriceModel.setOriginalPrice(_ctx.floatValue("DescribePriceResponse.PriceInfo.Price.DetailInfos["+ i +"].OriginalPrice")); + resourcePriceModel.setDiscountPrice(_ctx.floatValue("DescribePriceResponse.PriceInfo.Price.DetailInfos["+ i +"].DiscountPrice")); + resourcePriceModel.setTradePrice(_ctx.floatValue("DescribePriceResponse.PriceInfo.Price.DetailInfos["+ i +"].TradePrice")); + + List subRules = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribePriceResponse.PriceInfo.Price.DetailInfos["+ i +"].SubRules.Length"); j++) { + Rule1 rule1 = new Rule1(); + rule1.setDescription(_ctx.stringValue("DescribePriceResponse.PriceInfo.Price.DetailInfos["+ i +"].SubRules["+ j +"].Description")); + rule1.setRuleId(_ctx.longValue("DescribePriceResponse.PriceInfo.Price.DetailInfos["+ i +"].SubRules["+ j +"].RuleId")); + + subRules.add(rule1); + } + resourcePriceModel.setSubRules(subRules); + + detailInfos.add(resourcePriceModel); + } + price.setDetailInfos(detailInfos); + priceInfo.setPrice(price); + + List rules = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribePriceResponse.PriceInfo.Rules.Length"); i++) { + Rule rule = new Rule(); + rule.setDescription(_ctx.stringValue("DescribePriceResponse.PriceInfo.Rules["+ i +"].Description")); + rule.setRuleId(_ctx.longValue("DescribePriceResponse.PriceInfo.Rules["+ i +"].RuleId")); + + rules.add(rule); + } + priceInfo.setRules(rules); + describePriceResponse.setPriceInfo(priceInfo); + + return describePriceResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeRecommendInstanceTypeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeRecommendInstanceTypeResponseUnmarshaller.java new file mode 100644 index 0000000000..d1dc922d55 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeRecommendInstanceTypeResponseUnmarshaller.java @@ -0,0 +1,75 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeRecommendInstanceTypeResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeRecommendInstanceTypeResponse.RecommendInstanceType; +import com.aliyuncs.ecs.model.v20140526.DescribeRecommendInstanceTypeResponse.RecommendInstanceType.InstanceType; +import com.aliyuncs.ecs.model.v20140526.DescribeRecommendInstanceTypeResponse.RecommendInstanceType.Zone; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeRecommendInstanceTypeResponseUnmarshaller { + + public static DescribeRecommendInstanceTypeResponse unmarshall(DescribeRecommendInstanceTypeResponse describeRecommendInstanceTypeResponse, UnmarshallerContext _ctx) { + + describeRecommendInstanceTypeResponse.setRequestId(_ctx.stringValue("DescribeRecommendInstanceTypeResponse.RequestId")); + + List data = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeRecommendInstanceTypeResponse.Data.Length"); i++) { + RecommendInstanceType recommendInstanceType = new RecommendInstanceType(); + recommendInstanceType.setCommodityCode(_ctx.stringValue("DescribeRecommendInstanceTypeResponse.Data["+ i +"].CommodityCode")); + recommendInstanceType.setZoneId(_ctx.stringValue("DescribeRecommendInstanceTypeResponse.Data["+ i +"].ZoneId")); + recommendInstanceType.setPriority(_ctx.integerValue("DescribeRecommendInstanceTypeResponse.Data["+ i +"].Priority")); + recommendInstanceType.setNetworkType(_ctx.stringValue("DescribeRecommendInstanceTypeResponse.Data["+ i +"].NetworkType")); + recommendInstanceType.setScene(_ctx.stringValue("DescribeRecommendInstanceTypeResponse.Data["+ i +"].Scene")); + recommendInstanceType.setSpotStrategy(_ctx.stringValue("DescribeRecommendInstanceTypeResponse.Data["+ i +"].SpotStrategy")); + recommendInstanceType.setRegionId(_ctx.stringValue("DescribeRecommendInstanceTypeResponse.Data["+ i +"].RegionId")); + recommendInstanceType.setInstanceChargeType(_ctx.stringValue("DescribeRecommendInstanceTypeResponse.Data["+ i +"].InstanceChargeType")); + + InstanceType instanceType = new InstanceType(); + instanceType.setSupportIoOptimized(_ctx.stringValue("DescribeRecommendInstanceTypeResponse.Data["+ i +"].InstanceType.SupportIoOptimized")); + instanceType.setCores(_ctx.integerValue("DescribeRecommendInstanceTypeResponse.Data["+ i +"].InstanceType.Cores")); + instanceType.setMemory(_ctx.integerValue("DescribeRecommendInstanceTypeResponse.Data["+ i +"].InstanceType.Memory")); + instanceType.setInstanceType(_ctx.stringValue("DescribeRecommendInstanceTypeResponse.Data["+ i +"].InstanceType.InstanceType")); + instanceType.setInstanceTypeFamily(_ctx.stringValue("DescribeRecommendInstanceTypeResponse.Data["+ i +"].InstanceType.InstanceTypeFamily")); + instanceType.setGeneration(_ctx.stringValue("DescribeRecommendInstanceTypeResponse.Data["+ i +"].InstanceType.Generation")); + recommendInstanceType.setInstanceType(instanceType); + + List zones = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeRecommendInstanceTypeResponse.Data["+ i +"].Zones.Length"); j++) { + Zone zone = new Zone(); + zone.setZoneNo(_ctx.stringValue("DescribeRecommendInstanceTypeResponse.Data["+ i +"].Zones["+ j +"].ZoneNo")); + + List networkTypes = new ArrayList(); + for (int k = 0; k < _ctx.lengthValue("DescribeRecommendInstanceTypeResponse.Data["+ i +"].Zones["+ j +"].NetworkTypes.Length"); k++) { + networkTypes.add(_ctx.stringValue("DescribeRecommendInstanceTypeResponse.Data["+ i +"].Zones["+ j +"].NetworkTypes["+ k +"]")); + } + zone.setNetworkTypes(networkTypes); + + zones.add(zone); + } + recommendInstanceType.setZones(zones); + + data.add(recommendInstanceType); + } + describeRecommendInstanceTypeResponse.setData(data); + + return describeRecommendInstanceTypeResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeRegionsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeRegionsResponseUnmarshaller.java new file mode 100644 index 0000000000..630994de3f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeRegionsResponseUnmarshaller.java @@ -0,0 +1,45 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeRegionsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeRegionsResponse.Region; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeRegionsResponseUnmarshaller { + + public static DescribeRegionsResponse unmarshall(DescribeRegionsResponse describeRegionsResponse, UnmarshallerContext _ctx) { + + describeRegionsResponse.setRequestId(_ctx.stringValue("DescribeRegionsResponse.RequestId")); + + List regions = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeRegionsResponse.Regions.Length"); i++) { + Region region = new Region(); + region.setStatus(_ctx.stringValue("DescribeRegionsResponse.Regions["+ i +"].Status")); + region.setRegionEndpoint(_ctx.stringValue("DescribeRegionsResponse.Regions["+ i +"].RegionEndpoint")); + region.setLocalName(_ctx.stringValue("DescribeRegionsResponse.Regions["+ i +"].LocalName")); + region.setRegionId(_ctx.stringValue("DescribeRegionsResponse.Regions["+ i +"].RegionId")); + + regions.add(region); + } + describeRegionsResponse.setRegions(regions); + + return describeRegionsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeRenewalPriceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeRenewalPriceResponseUnmarshaller.java new file mode 100644 index 0000000000..cc5171f524 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeRenewalPriceResponseUnmarshaller.java @@ -0,0 +1,79 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeRenewalPriceResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeRenewalPriceResponse.PriceInfo; +import com.aliyuncs.ecs.model.v20140526.DescribeRenewalPriceResponse.PriceInfo.Price; +import com.aliyuncs.ecs.model.v20140526.DescribeRenewalPriceResponse.PriceInfo.Price.ResourcePriceModel; +import com.aliyuncs.ecs.model.v20140526.DescribeRenewalPriceResponse.PriceInfo.Price.ResourcePriceModel.Rule1; +import com.aliyuncs.ecs.model.v20140526.DescribeRenewalPriceResponse.PriceInfo.Rule; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeRenewalPriceResponseUnmarshaller { + + public static DescribeRenewalPriceResponse unmarshall(DescribeRenewalPriceResponse describeRenewalPriceResponse, UnmarshallerContext _ctx) { + + describeRenewalPriceResponse.setRequestId(_ctx.stringValue("DescribeRenewalPriceResponse.RequestId")); + + PriceInfo priceInfo = new PriceInfo(); + + Price price = new Price(); + price.setOriginalPrice(_ctx.floatValue("DescribeRenewalPriceResponse.PriceInfo.Price.OriginalPrice")); + price.setDiscountPrice(_ctx.floatValue("DescribeRenewalPriceResponse.PriceInfo.Price.DiscountPrice")); + price.setCurrency(_ctx.stringValue("DescribeRenewalPriceResponse.PriceInfo.Price.Currency")); + price.setTradePrice(_ctx.floatValue("DescribeRenewalPriceResponse.PriceInfo.Price.TradePrice")); + + List detailInfos = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeRenewalPriceResponse.PriceInfo.Price.DetailInfos.Length"); i++) { + ResourcePriceModel resourcePriceModel = new ResourcePriceModel(); + resourcePriceModel.setResource(_ctx.stringValue("DescribeRenewalPriceResponse.PriceInfo.Price.DetailInfos["+ i +"].Resource")); + resourcePriceModel.setOriginalPrice(_ctx.floatValue("DescribeRenewalPriceResponse.PriceInfo.Price.DetailInfos["+ i +"].OriginalPrice")); + resourcePriceModel.setDiscountPrice(_ctx.floatValue("DescribeRenewalPriceResponse.PriceInfo.Price.DetailInfos["+ i +"].DiscountPrice")); + resourcePriceModel.setTradePrice(_ctx.floatValue("DescribeRenewalPriceResponse.PriceInfo.Price.DetailInfos["+ i +"].TradePrice")); + + List subRules = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeRenewalPriceResponse.PriceInfo.Price.DetailInfos["+ i +"].SubRules.Length"); j++) { + Rule1 rule1 = new Rule1(); + rule1.setDescription(_ctx.stringValue("DescribeRenewalPriceResponse.PriceInfo.Price.DetailInfos["+ i +"].SubRules["+ j +"].Description")); + rule1.setRuleId(_ctx.longValue("DescribeRenewalPriceResponse.PriceInfo.Price.DetailInfos["+ i +"].SubRules["+ j +"].RuleId")); + + subRules.add(rule1); + } + resourcePriceModel.setSubRules(subRules); + + detailInfos.add(resourcePriceModel); + } + price.setDetailInfos(detailInfos); + priceInfo.setPrice(price); + + List rules = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeRenewalPriceResponse.PriceInfo.Rules.Length"); i++) { + Rule rule = new Rule(); + rule.setDescription(_ctx.stringValue("DescribeRenewalPriceResponse.PriceInfo.Rules["+ i +"].Description")); + rule.setRuleId(_ctx.longValue("DescribeRenewalPriceResponse.PriceInfo.Rules["+ i +"].RuleId")); + + rules.add(rule); + } + priceInfo.setRules(rules); + describeRenewalPriceResponse.setPriceInfo(priceInfo); + + return describeRenewalPriceResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeReservedInstanceAutoRenewAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeReservedInstanceAutoRenewAttributeResponseUnmarshaller.java new file mode 100644 index 0000000000..5c703f3803 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeReservedInstanceAutoRenewAttributeResponseUnmarshaller.java @@ -0,0 +1,45 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeReservedInstanceAutoRenewAttributeResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeReservedInstanceAutoRenewAttributeResponse.ReservedInstanceRenewAttribute; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeReservedInstanceAutoRenewAttributeResponseUnmarshaller { + + public static DescribeReservedInstanceAutoRenewAttributeResponse unmarshall(DescribeReservedInstanceAutoRenewAttributeResponse describeReservedInstanceAutoRenewAttributeResponse, UnmarshallerContext _ctx) { + + describeReservedInstanceAutoRenewAttributeResponse.setRequestId(_ctx.stringValue("DescribeReservedInstanceAutoRenewAttributeResponse.RequestId")); + + List reservedInstanceRenewAttributes = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeReservedInstanceAutoRenewAttributeResponse.ReservedInstanceRenewAttributes.Length"); i++) { + ReservedInstanceRenewAttribute reservedInstanceRenewAttribute = new ReservedInstanceRenewAttribute(); + reservedInstanceRenewAttribute.setPeriodUnit(_ctx.stringValue("DescribeReservedInstanceAutoRenewAttributeResponse.ReservedInstanceRenewAttributes["+ i +"].PeriodUnit")); + reservedInstanceRenewAttribute.setDuration(_ctx.integerValue("DescribeReservedInstanceAutoRenewAttributeResponse.ReservedInstanceRenewAttributes["+ i +"].Duration")); + reservedInstanceRenewAttribute.setReservedInstanceId(_ctx.stringValue("DescribeReservedInstanceAutoRenewAttributeResponse.ReservedInstanceRenewAttributes["+ i +"].ReservedInstanceId")); + reservedInstanceRenewAttribute.setRenewalStatus(_ctx.stringValue("DescribeReservedInstanceAutoRenewAttributeResponse.ReservedInstanceRenewAttributes["+ i +"].RenewalStatus")); + + reservedInstanceRenewAttributes.add(reservedInstanceRenewAttribute); + } + describeReservedInstanceAutoRenewAttributeResponse.setReservedInstanceRenewAttributes(reservedInstanceRenewAttributes); + + return describeReservedInstanceAutoRenewAttributeResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeReservedInstancesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeReservedInstancesResponseUnmarshaller.java similarity index 93% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeReservedInstancesResponseUnmarshaller.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeReservedInstancesResponseUnmarshaller.java index bb9e14ebf7..c9e239ca41 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeReservedInstancesResponseUnmarshaller.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeReservedInstancesResponseUnmarshaller.java @@ -12,15 +12,15 @@ * limitations under the License. */ -package com.aliyuncs.ecs.transform.v20160314; +package com.aliyuncs.ecs.transform.v20140526; import java.util.ArrayList; import java.util.List; -import com.aliyuncs.ecs.model.v20160314.DescribeReservedInstancesResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeReservedInstancesResponse.ReservedInstance; -import com.aliyuncs.ecs.model.v20160314.DescribeReservedInstancesResponse.ReservedInstance.OperationLock; -import com.aliyuncs.ecs.model.v20160314.DescribeReservedInstancesResponse.ReservedInstance.Tag; +import com.aliyuncs.ecs.model.v20140526.DescribeReservedInstancesResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeReservedInstancesResponse.ReservedInstance; +import com.aliyuncs.ecs.model.v20140526.DescribeReservedInstancesResponse.ReservedInstance.OperationLock; +import com.aliyuncs.ecs.model.v20140526.DescribeReservedInstancesResponse.ReservedInstance.Tag; import com.aliyuncs.transform.UnmarshallerContext; diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeResourceByTagsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeResourceByTagsResponseUnmarshaller.java new file mode 100644 index 0000000000..a917af117b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeResourceByTagsResponseUnmarshaller.java @@ -0,0 +1,47 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeResourceByTagsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeResourceByTagsResponse.Resource; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeResourceByTagsResponseUnmarshaller { + + public static DescribeResourceByTagsResponse unmarshall(DescribeResourceByTagsResponse describeResourceByTagsResponse, UnmarshallerContext _ctx) { + + describeResourceByTagsResponse.setRequestId(_ctx.stringValue("DescribeResourceByTagsResponse.RequestId")); + describeResourceByTagsResponse.setPageSize(_ctx.integerValue("DescribeResourceByTagsResponse.PageSize")); + describeResourceByTagsResponse.setPageNumber(_ctx.integerValue("DescribeResourceByTagsResponse.PageNumber")); + describeResourceByTagsResponse.setTotalCount(_ctx.integerValue("DescribeResourceByTagsResponse.TotalCount")); + + List resources = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeResourceByTagsResponse.Resources.Length"); i++) { + Resource resource = new Resource(); + resource.setResourceType(_ctx.stringValue("DescribeResourceByTagsResponse.Resources["+ i +"].ResourceType")); + resource.setResourceId(_ctx.stringValue("DescribeResourceByTagsResponse.Resources["+ i +"].ResourceId")); + resource.setRegionId(_ctx.stringValue("DescribeResourceByTagsResponse.Resources["+ i +"].RegionId")); + + resources.add(resource); + } + describeResourceByTagsResponse.setResources(resources); + + return describeResourceByTagsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeResourcesModificationResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeResourcesModificationResponseUnmarshaller.java new file mode 100644 index 0000000000..8dc43a51a8 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeResourcesModificationResponseUnmarshaller.java @@ -0,0 +1,95 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeResourcesModificationResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeResourcesModificationResponse.AvailableZone; +import com.aliyuncs.ecs.model.v20140526.DescribeResourcesModificationResponse.AvailableZone.AvailableResource; +import com.aliyuncs.ecs.model.v20140526.DescribeResourcesModificationResponse.AvailableZone.AvailableResource.ConditionSupportedResource; +import com.aliyuncs.ecs.model.v20140526.DescribeResourcesModificationResponse.AvailableZone.AvailableResource.ConditionSupportedResource.Condition; +import com.aliyuncs.ecs.model.v20140526.DescribeResourcesModificationResponse.AvailableZone.AvailableResource.SupportedResource; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeResourcesModificationResponseUnmarshaller { + + public static DescribeResourcesModificationResponse unmarshall(DescribeResourcesModificationResponse describeResourcesModificationResponse, UnmarshallerContext _ctx) { + + describeResourcesModificationResponse.setRequestId(_ctx.stringValue("DescribeResourcesModificationResponse.RequestId")); + + List availableZones = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeResourcesModificationResponse.AvailableZones.Length"); i++) { + AvailableZone availableZone = new AvailableZone(); + availableZone.setZoneId(_ctx.stringValue("DescribeResourcesModificationResponse.AvailableZones["+ i +"].ZoneId")); + availableZone.setStatus(_ctx.stringValue("DescribeResourcesModificationResponse.AvailableZones["+ i +"].Status")); + availableZone.setStatusCategory(_ctx.stringValue("DescribeResourcesModificationResponse.AvailableZones["+ i +"].StatusCategory")); + availableZone.setRegionId(_ctx.stringValue("DescribeResourcesModificationResponse.AvailableZones["+ i +"].RegionId")); + + List availableResources = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeResourcesModificationResponse.AvailableZones["+ i +"].AvailableResources.Length"); j++) { + AvailableResource availableResource = new AvailableResource(); + availableResource.setType(_ctx.stringValue("DescribeResourcesModificationResponse.AvailableZones["+ i +"].AvailableResources["+ j +"].Type")); + + List supportedResources = new ArrayList(); + for (int k = 0; k < _ctx.lengthValue("DescribeResourcesModificationResponse.AvailableZones["+ i +"].AvailableResources["+ j +"].SupportedResources.Length"); k++) { + SupportedResource supportedResource = new SupportedResource(); + supportedResource.setStatus(_ctx.stringValue("DescribeResourcesModificationResponse.AvailableZones["+ i +"].AvailableResources["+ j +"].SupportedResources["+ k +"].Status")); + supportedResource.setValue(_ctx.stringValue("DescribeResourcesModificationResponse.AvailableZones["+ i +"].AvailableResources["+ j +"].SupportedResources["+ k +"].Value")); + supportedResource.setMax(_ctx.integerValue("DescribeResourcesModificationResponse.AvailableZones["+ i +"].AvailableResources["+ j +"].SupportedResources["+ k +"].Max")); + supportedResource.setUnit(_ctx.stringValue("DescribeResourcesModificationResponse.AvailableZones["+ i +"].AvailableResources["+ j +"].SupportedResources["+ k +"].Unit")); + supportedResource.setStatusCategory(_ctx.stringValue("DescribeResourcesModificationResponse.AvailableZones["+ i +"].AvailableResources["+ j +"].SupportedResources["+ k +"].StatusCategory")); + supportedResource.setMin(_ctx.integerValue("DescribeResourcesModificationResponse.AvailableZones["+ i +"].AvailableResources["+ j +"].SupportedResources["+ k +"].Min")); + + supportedResources.add(supportedResource); + } + availableResource.setSupportedResources(supportedResources); + + List conditionSupportedResources = new ArrayList(); + for (int k = 0; k < _ctx.lengthValue("DescribeResourcesModificationResponse.AvailableZones["+ i +"].AvailableResources["+ j +"].ConditionSupportedResources.Length"); k++) { + ConditionSupportedResource conditionSupportedResource = new ConditionSupportedResource(); + conditionSupportedResource.setStatus(_ctx.stringValue("DescribeResourcesModificationResponse.AvailableZones["+ i +"].AvailableResources["+ j +"].ConditionSupportedResources["+ k +"].Status")); + conditionSupportedResource.setValue(_ctx.stringValue("DescribeResourcesModificationResponse.AvailableZones["+ i +"].AvailableResources["+ j +"].ConditionSupportedResources["+ k +"].Value")); + conditionSupportedResource.setMax(_ctx.integerValue("DescribeResourcesModificationResponse.AvailableZones["+ i +"].AvailableResources["+ j +"].ConditionSupportedResources["+ k +"].Max")); + conditionSupportedResource.setUnit(_ctx.stringValue("DescribeResourcesModificationResponse.AvailableZones["+ i +"].AvailableResources["+ j +"].ConditionSupportedResources["+ k +"].Unit")); + conditionSupportedResource.setStatusCategory(_ctx.stringValue("DescribeResourcesModificationResponse.AvailableZones["+ i +"].AvailableResources["+ j +"].ConditionSupportedResources["+ k +"].StatusCategory")); + conditionSupportedResource.setMin(_ctx.integerValue("DescribeResourcesModificationResponse.AvailableZones["+ i +"].AvailableResources["+ j +"].ConditionSupportedResources["+ k +"].Min")); + + List conditions = new ArrayList(); + for (int l = 0; l < _ctx.lengthValue("DescribeResourcesModificationResponse.AvailableZones["+ i +"].AvailableResources["+ j +"].ConditionSupportedResources["+ k +"].Conditions.Length"); l++) { + Condition condition = new Condition(); + condition.setKey(_ctx.stringValue("DescribeResourcesModificationResponse.AvailableZones["+ i +"].AvailableResources["+ j +"].ConditionSupportedResources["+ k +"].Conditions["+ l +"].Key")); + + conditions.add(condition); + } + conditionSupportedResource.setConditions(conditions); + + conditionSupportedResources.add(conditionSupportedResource); + } + availableResource.setConditionSupportedResources(conditionSupportedResources); + + availableResources.add(availableResource); + } + availableZone.setAvailableResources(availableResources); + + availableZones.add(availableZone); + } + describeResourcesModificationResponse.setAvailableZones(availableZones); + + return describeResourcesModificationResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeRouteTablesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeRouteTablesResponseUnmarshaller.java new file mode 100644 index 0000000000..253304c9bb --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeRouteTablesResponseUnmarshaller.java @@ -0,0 +1,77 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeRouteTablesResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeRouteTablesResponse.RouteTable; +import com.aliyuncs.ecs.model.v20140526.DescribeRouteTablesResponse.RouteTable.RouteEntry; +import com.aliyuncs.ecs.model.v20140526.DescribeRouteTablesResponse.RouteTable.RouteEntry.NextHop; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeRouteTablesResponseUnmarshaller { + + public static DescribeRouteTablesResponse unmarshall(DescribeRouteTablesResponse describeRouteTablesResponse, UnmarshallerContext _ctx) { + + describeRouteTablesResponse.setRequestId(_ctx.stringValue("DescribeRouteTablesResponse.RequestId")); + describeRouteTablesResponse.setPageSize(_ctx.integerValue("DescribeRouteTablesResponse.PageSize")); + describeRouteTablesResponse.setPageNumber(_ctx.integerValue("DescribeRouteTablesResponse.PageNumber")); + describeRouteTablesResponse.setTotalCount(_ctx.integerValue("DescribeRouteTablesResponse.TotalCount")); + + List routeTables = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeRouteTablesResponse.RouteTables.Length"); i++) { + RouteTable routeTable = new RouteTable(); + routeTable.setCreationTime(_ctx.stringValue("DescribeRouteTablesResponse.RouteTables["+ i +"].CreationTime")); + routeTable.setVRouterId(_ctx.stringValue("DescribeRouteTablesResponse.RouteTables["+ i +"].VRouterId")); + routeTable.setRouteTableId(_ctx.stringValue("DescribeRouteTablesResponse.RouteTables["+ i +"].RouteTableId")); + routeTable.setResourceGroupId(_ctx.stringValue("DescribeRouteTablesResponse.RouteTables["+ i +"].ResourceGroupId")); + routeTable.setRouteTableType(_ctx.stringValue("DescribeRouteTablesResponse.RouteTables["+ i +"].RouteTableType")); + + List routeEntrys = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeRouteTablesResponse.RouteTables["+ i +"].RouteEntrys.Length"); j++) { + RouteEntry routeEntry = new RouteEntry(); + routeEntry.setType(_ctx.stringValue("DescribeRouteTablesResponse.RouteTables["+ i +"].RouteEntrys["+ j +"].Type")); + routeEntry.setStatus(_ctx.stringValue("DescribeRouteTablesResponse.RouteTables["+ i +"].RouteEntrys["+ j +"].Status")); + routeEntry.setNextHopType(_ctx.stringValue("DescribeRouteTablesResponse.RouteTables["+ i +"].RouteEntrys["+ j +"].NextHopType")); + routeEntry.setDestinationCidrBlock(_ctx.stringValue("DescribeRouteTablesResponse.RouteTables["+ i +"].RouteEntrys["+ j +"].DestinationCidrBlock")); + routeEntry.setInstanceId(_ctx.stringValue("DescribeRouteTablesResponse.RouteTables["+ i +"].RouteEntrys["+ j +"].InstanceId")); + routeEntry.setRouteTableId(_ctx.stringValue("DescribeRouteTablesResponse.RouteTables["+ i +"].RouteEntrys["+ j +"].RouteTableId")); + + List nextHops = new ArrayList(); + for (int k = 0; k < _ctx.lengthValue("DescribeRouteTablesResponse.RouteTables["+ i +"].RouteEntrys["+ j +"].NextHops.Length"); k++) { + NextHop nextHop = new NextHop(); + nextHop.setWeight(_ctx.integerValue("DescribeRouteTablesResponse.RouteTables["+ i +"].RouteEntrys["+ j +"].NextHops["+ k +"].Weight")); + nextHop.setNextHopId(_ctx.stringValue("DescribeRouteTablesResponse.RouteTables["+ i +"].RouteEntrys["+ j +"].NextHops["+ k +"].NextHopId")); + nextHop.setNextHopType(_ctx.stringValue("DescribeRouteTablesResponse.RouteTables["+ i +"].RouteEntrys["+ j +"].NextHops["+ k +"].NextHopType")); + nextHop.setEnabled(_ctx.integerValue("DescribeRouteTablesResponse.RouteTables["+ i +"].RouteEntrys["+ j +"].NextHops["+ k +"].Enabled")); + + nextHops.add(nextHop); + } + routeEntry.setNextHops(nextHops); + + routeEntrys.add(routeEntry); + } + routeTable.setRouteEntrys(routeEntrys); + + routeTables.add(routeTable); + } + describeRouteTablesResponse.setRouteTables(routeTables); + + return describeRouteTablesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeRouterInterfacesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeRouterInterfacesResponseUnmarshaller.java new file mode 100644 index 0000000000..0ecf02187e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeRouterInterfacesResponseUnmarshaller.java @@ -0,0 +1,69 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeRouterInterfacesResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeRouterInterfacesResponse.RouterInterfaceType; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeRouterInterfacesResponseUnmarshaller { + + public static DescribeRouterInterfacesResponse unmarshall(DescribeRouterInterfacesResponse describeRouterInterfacesResponse, UnmarshallerContext _ctx) { + + describeRouterInterfacesResponse.setRequestId(_ctx.stringValue("DescribeRouterInterfacesResponse.RequestId")); + describeRouterInterfacesResponse.setPageNumber(_ctx.integerValue("DescribeRouterInterfacesResponse.PageNumber")); + describeRouterInterfacesResponse.setPageSize(_ctx.integerValue("DescribeRouterInterfacesResponse.PageSize")); + describeRouterInterfacesResponse.setTotalCount(_ctx.integerValue("DescribeRouterInterfacesResponse.TotalCount")); + + List routerInterfaceSet = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeRouterInterfacesResponse.RouterInterfaceSet.Length"); i++) { + RouterInterfaceType routerInterfaceType = new RouterInterfaceType(); + routerInterfaceType.setHealthCheckTargetIp(_ctx.stringValue("DescribeRouterInterfacesResponse.RouterInterfaceSet["+ i +"].HealthCheckTargetIp")); + routerInterfaceType.setCreationTime(_ctx.stringValue("DescribeRouterInterfacesResponse.RouterInterfaceSet["+ i +"].CreationTime")); + routerInterfaceType.setStatus(_ctx.stringValue("DescribeRouterInterfacesResponse.RouterInterfaceSet["+ i +"].Status")); + routerInterfaceType.setSpec(_ctx.stringValue("DescribeRouterInterfacesResponse.RouterInterfaceSet["+ i +"].Spec")); + routerInterfaceType.setOppositeInterfaceId(_ctx.stringValue("DescribeRouterInterfacesResponse.RouterInterfaceSet["+ i +"].OppositeInterfaceId")); + routerInterfaceType.setRouterInterfaceId(_ctx.stringValue("DescribeRouterInterfacesResponse.RouterInterfaceSet["+ i +"].RouterInterfaceId")); + routerInterfaceType.setChargeType(_ctx.stringValue("DescribeRouterInterfacesResponse.RouterInterfaceSet["+ i +"].ChargeType")); + routerInterfaceType.setOppositeRouterType(_ctx.stringValue("DescribeRouterInterfacesResponse.RouterInterfaceSet["+ i +"].OppositeRouterType")); + routerInterfaceType.setOppositeInterfaceOwnerId(_ctx.stringValue("DescribeRouterInterfacesResponse.RouterInterfaceSet["+ i +"].OppositeInterfaceOwnerId")); + routerInterfaceType.setDescription(_ctx.stringValue("DescribeRouterInterfacesResponse.RouterInterfaceSet["+ i +"].Description")); + routerInterfaceType.setName(_ctx.stringValue("DescribeRouterInterfacesResponse.RouterInterfaceSet["+ i +"].Name")); + routerInterfaceType.setOppositeRouterId(_ctx.stringValue("DescribeRouterInterfacesResponse.RouterInterfaceSet["+ i +"].OppositeRouterId")); + routerInterfaceType.setOppositeInterfaceSpec(_ctx.stringValue("DescribeRouterInterfacesResponse.RouterInterfaceSet["+ i +"].OppositeInterfaceSpec")); + routerInterfaceType.setRouterId(_ctx.stringValue("DescribeRouterInterfacesResponse.RouterInterfaceSet["+ i +"].RouterId")); + routerInterfaceType.setOppositeInterfaceBusinessStatus(_ctx.stringValue("DescribeRouterInterfacesResponse.RouterInterfaceSet["+ i +"].OppositeInterfaceBusinessStatus")); + routerInterfaceType.setConnectedTime(_ctx.stringValue("DescribeRouterInterfacesResponse.RouterInterfaceSet["+ i +"].ConnectedTime")); + routerInterfaceType.setOppositeInterfaceStatus(_ctx.stringValue("DescribeRouterInterfacesResponse.RouterInterfaceSet["+ i +"].OppositeInterfaceStatus")); + routerInterfaceType.setHealthCheckSourceIp(_ctx.stringValue("DescribeRouterInterfacesResponse.RouterInterfaceSet["+ i +"].HealthCheckSourceIp")); + routerInterfaceType.setEndTime(_ctx.stringValue("DescribeRouterInterfacesResponse.RouterInterfaceSet["+ i +"].EndTime")); + routerInterfaceType.setOppositeRegionId(_ctx.stringValue("DescribeRouterInterfacesResponse.RouterInterfaceSet["+ i +"].OppositeRegionId")); + routerInterfaceType.setOppositeAccessPointId(_ctx.stringValue("DescribeRouterInterfacesResponse.RouterInterfaceSet["+ i +"].OppositeAccessPointId")); + routerInterfaceType.setBusinessStatus(_ctx.stringValue("DescribeRouterInterfacesResponse.RouterInterfaceSet["+ i +"].BusinessStatus")); + routerInterfaceType.setRole(_ctx.stringValue("DescribeRouterInterfacesResponse.RouterInterfaceSet["+ i +"].Role")); + routerInterfaceType.setRouterType(_ctx.stringValue("DescribeRouterInterfacesResponse.RouterInterfaceSet["+ i +"].RouterType")); + routerInterfaceType.setAccessPointId(_ctx.stringValue("DescribeRouterInterfacesResponse.RouterInterfaceSet["+ i +"].AccessPointId")); + + routerInterfaceSet.add(routerInterfaceType); + } + describeRouterInterfacesResponse.setRouterInterfaceSet(routerInterfaceSet); + + return describeRouterInterfacesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSecurityGroupAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSecurityGroupAttributeResponseUnmarshaller.java new file mode 100644 index 0000000000..3d838b21a3 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSecurityGroupAttributeResponseUnmarshaller.java @@ -0,0 +1,71 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeSecurityGroupAttributeResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeSecurityGroupAttributeResponse.Permission; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeSecurityGroupAttributeResponseUnmarshaller { + + public static DescribeSecurityGroupAttributeResponse unmarshall(DescribeSecurityGroupAttributeResponse describeSecurityGroupAttributeResponse, UnmarshallerContext _ctx) { + + describeSecurityGroupAttributeResponse.setRequestId(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.RequestId")); + describeSecurityGroupAttributeResponse.setVpcId(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.VpcId")); + describeSecurityGroupAttributeResponse.setInnerAccessPolicy(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.InnerAccessPolicy")); + describeSecurityGroupAttributeResponse.setDescription(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.Description")); + describeSecurityGroupAttributeResponse.setSecurityGroupId(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.SecurityGroupId")); + describeSecurityGroupAttributeResponse.setSecurityGroupName(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.SecurityGroupName")); + describeSecurityGroupAttributeResponse.setRegionId(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.RegionId")); + + List permissions = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeSecurityGroupAttributeResponse.Permissions.Length"); i++) { + Permission permission = new Permission(); + permission.setSecurityGroupRuleId(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.Permissions["+ i +"].SecurityGroupRuleId")); + permission.setDirection(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.Permissions["+ i +"].Direction")); + permission.setSourceGroupId(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.Permissions["+ i +"].SourceGroupId")); + permission.setDestGroupOwnerAccount(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.Permissions["+ i +"].DestGroupOwnerAccount")); + permission.setDestPrefixListId(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.Permissions["+ i +"].DestPrefixListId")); + permission.setDestPrefixListName(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.Permissions["+ i +"].DestPrefixListName")); + permission.setSourceCidrIp(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.Permissions["+ i +"].SourceCidrIp")); + permission.setIpv6DestCidrIp(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.Permissions["+ i +"].Ipv6DestCidrIp")); + permission.setCreateTime(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.Permissions["+ i +"].CreateTime")); + permission.setIpv6SourceCidrIp(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.Permissions["+ i +"].Ipv6SourceCidrIp")); + permission.setDestGroupId(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.Permissions["+ i +"].DestGroupId")); + permission.setDestCidrIp(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.Permissions["+ i +"].DestCidrIp")); + permission.setIpProtocol(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.Permissions["+ i +"].IpProtocol")); + permission.setPriority(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.Permissions["+ i +"].Priority")); + permission.setDestGroupName(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.Permissions["+ i +"].DestGroupName")); + permission.setNicType(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.Permissions["+ i +"].NicType")); + permission.setPolicy(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.Permissions["+ i +"].Policy")); + permission.setDescription(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.Permissions["+ i +"].Description")); + permission.setPortRange(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.Permissions["+ i +"].PortRange")); + permission.setSourcePrefixListName(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.Permissions["+ i +"].SourcePrefixListName")); + permission.setSourcePrefixListId(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.Permissions["+ i +"].SourcePrefixListId")); + permission.setSourceGroupOwnerAccount(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.Permissions["+ i +"].SourceGroupOwnerAccount")); + permission.setSourceGroupName(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.Permissions["+ i +"].SourceGroupName")); + permission.setSourcePortRange(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.Permissions["+ i +"].SourcePortRange")); + + permissions.add(permission); + } + describeSecurityGroupAttributeResponse.setPermissions(permissions); + + return describeSecurityGroupAttributeResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSecurityGroupReferencesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSecurityGroupReferencesResponseUnmarshaller.java new file mode 100644 index 0000000000..4dc317716e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSecurityGroupReferencesResponseUnmarshaller.java @@ -0,0 +1,53 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeSecurityGroupReferencesResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeSecurityGroupReferencesResponse.SecurityGroupReference; +import com.aliyuncs.ecs.model.v20140526.DescribeSecurityGroupReferencesResponse.SecurityGroupReference.ReferencingSecurityGroup; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeSecurityGroupReferencesResponseUnmarshaller { + + public static DescribeSecurityGroupReferencesResponse unmarshall(DescribeSecurityGroupReferencesResponse describeSecurityGroupReferencesResponse, UnmarshallerContext _ctx) { + + describeSecurityGroupReferencesResponse.setRequestId(_ctx.stringValue("DescribeSecurityGroupReferencesResponse.RequestId")); + + List securityGroupReferences = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeSecurityGroupReferencesResponse.SecurityGroupReferences.Length"); i++) { + SecurityGroupReference securityGroupReference = new SecurityGroupReference(); + securityGroupReference.setSecurityGroupId(_ctx.stringValue("DescribeSecurityGroupReferencesResponse.SecurityGroupReferences["+ i +"].SecurityGroupId")); + + List referencingSecurityGroups = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeSecurityGroupReferencesResponse.SecurityGroupReferences["+ i +"].ReferencingSecurityGroups.Length"); j++) { + ReferencingSecurityGroup referencingSecurityGroup = new ReferencingSecurityGroup(); + referencingSecurityGroup.setSecurityGroupId(_ctx.stringValue("DescribeSecurityGroupReferencesResponse.SecurityGroupReferences["+ i +"].ReferencingSecurityGroups["+ j +"].SecurityGroupId")); + referencingSecurityGroup.setAliUid(_ctx.stringValue("DescribeSecurityGroupReferencesResponse.SecurityGroupReferences["+ i +"].ReferencingSecurityGroups["+ j +"].AliUid")); + + referencingSecurityGroups.add(referencingSecurityGroup); + } + securityGroupReference.setReferencingSecurityGroups(referencingSecurityGroups); + + securityGroupReferences.add(securityGroupReference); + } + describeSecurityGroupReferencesResponse.setSecurityGroupReferences(securityGroupReferences); + + return describeSecurityGroupReferencesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSecurityGroupsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSecurityGroupsResponseUnmarshaller.java new file mode 100644 index 0000000000..d605a8314f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSecurityGroupsResponseUnmarshaller.java @@ -0,0 +1,68 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeSecurityGroupsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeSecurityGroupsResponse.SecurityGroup; +import com.aliyuncs.ecs.model.v20140526.DescribeSecurityGroupsResponse.SecurityGroup.Tag; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeSecurityGroupsResponseUnmarshaller { + + public static DescribeSecurityGroupsResponse unmarshall(DescribeSecurityGroupsResponse describeSecurityGroupsResponse, UnmarshallerContext _ctx) { + + describeSecurityGroupsResponse.setRequestId(_ctx.stringValue("DescribeSecurityGroupsResponse.RequestId")); + describeSecurityGroupsResponse.setRegionId(_ctx.stringValue("DescribeSecurityGroupsResponse.RegionId")); + describeSecurityGroupsResponse.setNextToken(_ctx.stringValue("DescribeSecurityGroupsResponse.NextToken")); + describeSecurityGroupsResponse.setTotalCount(_ctx.integerValue("DescribeSecurityGroupsResponse.TotalCount")); + describeSecurityGroupsResponse.setPageNumber(_ctx.integerValue("DescribeSecurityGroupsResponse.PageNumber")); + describeSecurityGroupsResponse.setPageSize(_ctx.integerValue("DescribeSecurityGroupsResponse.PageSize")); + + List securityGroups = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeSecurityGroupsResponse.SecurityGroups.Length"); i++) { + SecurityGroup securityGroup = new SecurityGroup(); + securityGroup.setSecurityGroupId(_ctx.stringValue("DescribeSecurityGroupsResponse.SecurityGroups["+ i +"].SecurityGroupId")); + securityGroup.setSecurityGroupName(_ctx.stringValue("DescribeSecurityGroupsResponse.SecurityGroups["+ i +"].SecurityGroupName")); + securityGroup.setDescription(_ctx.stringValue("DescribeSecurityGroupsResponse.SecurityGroups["+ i +"].Description")); + securityGroup.setSecurityGroupType(_ctx.stringValue("DescribeSecurityGroupsResponse.SecurityGroups["+ i +"].SecurityGroupType")); + securityGroup.setVpcId(_ctx.stringValue("DescribeSecurityGroupsResponse.SecurityGroups["+ i +"].VpcId")); + securityGroup.setCreationTime(_ctx.stringValue("DescribeSecurityGroupsResponse.SecurityGroups["+ i +"].CreationTime")); + securityGroup.setEcsCount(_ctx.integerValue("DescribeSecurityGroupsResponse.SecurityGroups["+ i +"].EcsCount")); + securityGroup.setAvailableInstanceAmount(_ctx.integerValue("DescribeSecurityGroupsResponse.SecurityGroups["+ i +"].AvailableInstanceAmount")); + securityGroup.setResourceGroupId(_ctx.stringValue("DescribeSecurityGroupsResponse.SecurityGroups["+ i +"].ResourceGroupId")); + securityGroup.setServiceManaged(_ctx.booleanValue("DescribeSecurityGroupsResponse.SecurityGroups["+ i +"].ServiceManaged")); + securityGroup.setServiceID(_ctx.longValue("DescribeSecurityGroupsResponse.SecurityGroups["+ i +"].ServiceID")); + + List tags = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeSecurityGroupsResponse.SecurityGroups["+ i +"].Tags.Length"); j++) { + Tag tag = new Tag(); + tag.setTagValue(_ctx.stringValue("DescribeSecurityGroupsResponse.SecurityGroups["+ i +"].Tags["+ j +"].TagValue")); + tag.setTagKey(_ctx.stringValue("DescribeSecurityGroupsResponse.SecurityGroups["+ i +"].Tags["+ j +"].TagKey")); + + tags.add(tag); + } + securityGroup.setTags(tags); + + securityGroups.add(securityGroup); + } + describeSecurityGroupsResponse.setSecurityGroups(securityGroups); + + return describeSecurityGroupsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSendFileResultsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSendFileResultsResponseUnmarshaller.java new file mode 100644 index 0000000000..3594708952 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSendFileResultsResponseUnmarshaller.java @@ -0,0 +1,85 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeSendFileResultsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeSendFileResultsResponse.Invocation; +import com.aliyuncs.ecs.model.v20140526.DescribeSendFileResultsResponse.Invocation.InvokeInstance; +import com.aliyuncs.ecs.model.v20140526.DescribeSendFileResultsResponse.Invocation.Tag; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeSendFileResultsResponseUnmarshaller { + + public static DescribeSendFileResultsResponse unmarshall(DescribeSendFileResultsResponse describeSendFileResultsResponse, UnmarshallerContext _ctx) { + + describeSendFileResultsResponse.setRequestId(_ctx.stringValue("DescribeSendFileResultsResponse.RequestId")); + describeSendFileResultsResponse.setPageSize(_ctx.longValue("DescribeSendFileResultsResponse.PageSize")); + describeSendFileResultsResponse.setPageNumber(_ctx.longValue("DescribeSendFileResultsResponse.PageNumber")); + describeSendFileResultsResponse.setTotalCount(_ctx.longValue("DescribeSendFileResultsResponse.TotalCount")); + + List invocations = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeSendFileResultsResponse.Invocations.Length"); i++) { + Invocation invocation = new Invocation(); + invocation.setCreationTime(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].CreationTime")); + invocation.setInvocationStatus(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].InvocationStatus")); + invocation.setContentType(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].ContentType")); + invocation.setTargetDir(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].TargetDir")); + invocation.setFileOwner(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].FileOwner")); + invocation.setDescription(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].Description")); + invocation.setVmCount(_ctx.integerValue("DescribeSendFileResultsResponse.Invocations["+ i +"].VmCount")); + invocation.setFileMode(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].FileMode")); + invocation.setFileGroup(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].FileGroup")); + invocation.setInvokeId(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].InvokeId")); + invocation.setName(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].Name")); + invocation.setContent(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].Content")); + invocation.setOverwrite(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].Overwrite")); + + List invokeInstances = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeSendFileResultsResponse.Invocations["+ i +"].InvokeInstances.Length"); j++) { + InvokeInstance invokeInstance = new InvokeInstance(); + invokeInstance.setCreationTime(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].InvokeInstances["+ j +"].CreationTime")); + invokeInstance.setStartTime(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].InvokeInstances["+ j +"].StartTime")); + invokeInstance.setInvocationStatus(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].InvokeInstances["+ j +"].InvocationStatus")); + invokeInstance.setFinishTime(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].InvokeInstances["+ j +"].FinishTime")); + invokeInstance.setUpdateTime(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].InvokeInstances["+ j +"].UpdateTime")); + invokeInstance.setErrorInfo(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].InvokeInstances["+ j +"].ErrorInfo")); + invokeInstance.setErrorCode(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].InvokeInstances["+ j +"].ErrorCode")); + invokeInstance.setInstanceId(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].InvokeInstances["+ j +"].InstanceId")); + + invokeInstances.add(invokeInstance); + } + invocation.setInvokeInstances(invokeInstances); + + List tags = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeSendFileResultsResponse.Invocations["+ i +"].Tags.Length"); j++) { + Tag tag = new Tag(); + tag.setTagKey(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].Tags["+ j +"].TagKey")); + tag.setTagValue(_ctx.stringValue("DescribeSendFileResultsResponse.Invocations["+ i +"].Tags["+ j +"].TagValue")); + + tags.add(tag); + } + invocation.setTags(tags); + + invocations.add(invocation); + } + describeSendFileResultsResponse.setInvocations(invocations); + + return describeSendFileResultsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSnapshotGroupsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSnapshotGroupsResponseUnmarshaller.java new file mode 100644 index 0000000000..95e29f4f41 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSnapshotGroupsResponseUnmarshaller.java @@ -0,0 +1,87 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeSnapshotGroupsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeSnapshotGroupsResponse.SnapshotGroup; +import com.aliyuncs.ecs.model.v20140526.DescribeSnapshotGroupsResponse.SnapshotGroup.Snapshot; +import com.aliyuncs.ecs.model.v20140526.DescribeSnapshotGroupsResponse.SnapshotGroup.Snapshot.Tag2; +import com.aliyuncs.ecs.model.v20140526.DescribeSnapshotGroupsResponse.SnapshotGroup.Tag; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeSnapshotGroupsResponseUnmarshaller { + + public static DescribeSnapshotGroupsResponse unmarshall(DescribeSnapshotGroupsResponse describeSnapshotGroupsResponse, UnmarshallerContext _ctx) { + + describeSnapshotGroupsResponse.setRequestId(_ctx.stringValue("DescribeSnapshotGroupsResponse.RequestId")); + describeSnapshotGroupsResponse.setNextToken(_ctx.stringValue("DescribeSnapshotGroupsResponse.NextToken")); + + List snapshotGroups = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeSnapshotGroupsResponse.SnapshotGroups.Length"); i++) { + SnapshotGroup snapshotGroup = new SnapshotGroup(); + snapshotGroup.setStatus(_ctx.stringValue("DescribeSnapshotGroupsResponse.SnapshotGroups["+ i +"].Status")); + snapshotGroup.setCreationTime(_ctx.stringValue("DescribeSnapshotGroupsResponse.SnapshotGroups["+ i +"].CreationTime")); + snapshotGroup.setDescription(_ctx.stringValue("DescribeSnapshotGroupsResponse.SnapshotGroups["+ i +"].Description")); + snapshotGroup.setProgressStatus(_ctx.stringValue("DescribeSnapshotGroupsResponse.SnapshotGroups["+ i +"].ProgressStatus")); + snapshotGroup.setSnapshotGroupId(_ctx.stringValue("DescribeSnapshotGroupsResponse.SnapshotGroups["+ i +"].SnapshotGroupId")); + snapshotGroup.setInstanceId(_ctx.stringValue("DescribeSnapshotGroupsResponse.SnapshotGroups["+ i +"].InstanceId")); + snapshotGroup.setName(_ctx.stringValue("DescribeSnapshotGroupsResponse.SnapshotGroups["+ i +"].Name")); + snapshotGroup.setResourceGroupId(_ctx.stringValue("DescribeSnapshotGroupsResponse.SnapshotGroups["+ i +"].ResourceGroupId")); + + List tags = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeSnapshotGroupsResponse.SnapshotGroups["+ i +"].Tags.Length"); j++) { + Tag tag = new Tag(); + tag.setKey(_ctx.stringValue("DescribeSnapshotGroupsResponse.SnapshotGroups["+ i +"].Tags["+ j +"].Key")); + tag.setValue(_ctx.stringValue("DescribeSnapshotGroupsResponse.SnapshotGroups["+ i +"].Tags["+ j +"].Value")); + + tags.add(tag); + } + snapshotGroup.setTags(tags); + + List snapshots = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeSnapshotGroupsResponse.SnapshotGroups["+ i +"].Snapshots.Length"); j++) { + Snapshot snapshot = new Snapshot(); + snapshot.setSourceDiskId(_ctx.stringValue("DescribeSnapshotGroupsResponse.SnapshotGroups["+ i +"].Snapshots["+ j +"].SourceDiskId")); + snapshot.setProgress(_ctx.stringValue("DescribeSnapshotGroupsResponse.SnapshotGroups["+ i +"].Snapshots["+ j +"].Progress")); + snapshot.setInstantAccessRetentionDays(_ctx.integerValue("DescribeSnapshotGroupsResponse.SnapshotGroups["+ i +"].Snapshots["+ j +"].InstantAccessRetentionDays")); + snapshot.setSnapshotId(_ctx.stringValue("DescribeSnapshotGroupsResponse.SnapshotGroups["+ i +"].Snapshots["+ j +"].SnapshotId")); + snapshot.setInstantAccess(_ctx.booleanValue("DescribeSnapshotGroupsResponse.SnapshotGroups["+ i +"].Snapshots["+ j +"].InstantAccess")); + snapshot.setSourceDiskType(_ctx.stringValue("DescribeSnapshotGroupsResponse.SnapshotGroups["+ i +"].Snapshots["+ j +"].SourceDiskType")); + + List tags1 = new ArrayList(); + for (int k = 0; k < _ctx.lengthValue("DescribeSnapshotGroupsResponse.SnapshotGroups["+ i +"].Snapshots["+ j +"].Tags.Length"); k++) { + Tag2 tag2 = new Tag2(); + tag2.setKey(_ctx.stringValue("DescribeSnapshotGroupsResponse.SnapshotGroups["+ i +"].Snapshots["+ j +"].Tags["+ k +"].Key")); + tag2.setValue(_ctx.stringValue("DescribeSnapshotGroupsResponse.SnapshotGroups["+ i +"].Snapshots["+ j +"].Tags["+ k +"].Value")); + + tags1.add(tag2); + } + snapshot.setTags1(tags1); + + snapshots.add(snapshot); + } + snapshotGroup.setSnapshots(snapshots); + + snapshotGroups.add(snapshotGroup); + } + describeSnapshotGroupsResponse.setSnapshotGroups(snapshotGroups); + + return describeSnapshotGroupsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSnapshotLinksResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSnapshotLinksResponseUnmarshaller.java new file mode 100644 index 0000000000..9b740bb4e0 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSnapshotLinksResponseUnmarshaller.java @@ -0,0 +1,56 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeSnapshotLinksResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeSnapshotLinksResponse.SnapshotLink; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeSnapshotLinksResponseUnmarshaller { + + public static DescribeSnapshotLinksResponse unmarshall(DescribeSnapshotLinksResponse describeSnapshotLinksResponse, UnmarshallerContext _ctx) { + + describeSnapshotLinksResponse.setRequestId(_ctx.stringValue("DescribeSnapshotLinksResponse.RequestId")); + describeSnapshotLinksResponse.setPageSize(_ctx.integerValue("DescribeSnapshotLinksResponse.PageSize")); + describeSnapshotLinksResponse.setPageNumber(_ctx.integerValue("DescribeSnapshotLinksResponse.PageNumber")); + describeSnapshotLinksResponse.setTotalCount(_ctx.integerValue("DescribeSnapshotLinksResponse.TotalCount")); + + List snapshotLinks = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeSnapshotLinksResponse.SnapshotLinks.Length"); i++) { + SnapshotLink snapshotLink = new SnapshotLink(); + snapshotLink.setInstantAccess(_ctx.booleanValue("DescribeSnapshotLinksResponse.SnapshotLinks["+ i +"].InstantAccess")); + snapshotLink.setTotalSize(_ctx.longValue("DescribeSnapshotLinksResponse.SnapshotLinks["+ i +"].TotalSize")); + snapshotLink.setSourceDiskName(_ctx.stringValue("DescribeSnapshotLinksResponse.SnapshotLinks["+ i +"].SourceDiskName")); + snapshotLink.setSourceDiskSize(_ctx.integerValue("DescribeSnapshotLinksResponse.SnapshotLinks["+ i +"].SourceDiskSize")); + snapshotLink.setSourceDiskType(_ctx.stringValue("DescribeSnapshotLinksResponse.SnapshotLinks["+ i +"].SourceDiskType")); + snapshotLink.setInstanceId(_ctx.stringValue("DescribeSnapshotLinksResponse.SnapshotLinks["+ i +"].InstanceId")); + snapshotLink.setSnapshotLinkId(_ctx.stringValue("DescribeSnapshotLinksResponse.SnapshotLinks["+ i +"].SnapshotLinkId")); + snapshotLink.setTotalCount(_ctx.integerValue("DescribeSnapshotLinksResponse.SnapshotLinks["+ i +"].TotalCount")); + snapshotLink.setRegionId(_ctx.stringValue("DescribeSnapshotLinksResponse.SnapshotLinks["+ i +"].RegionId")); + snapshotLink.setSourceDiskId(_ctx.stringValue("DescribeSnapshotLinksResponse.SnapshotLinks["+ i +"].SourceDiskId")); + snapshotLink.setInstanceName(_ctx.stringValue("DescribeSnapshotLinksResponse.SnapshotLinks["+ i +"].InstanceName")); + snapshotLink.setCategory(_ctx.stringValue("DescribeSnapshotLinksResponse.SnapshotLinks["+ i +"].Category")); + + snapshotLinks.add(snapshotLink); + } + describeSnapshotLinksResponse.setSnapshotLinks(snapshotLinks); + + return describeSnapshotLinksResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSnapshotMonitorDataResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSnapshotMonitorDataResponseUnmarshaller.java new file mode 100644 index 0000000000..80e14e89a0 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSnapshotMonitorDataResponseUnmarshaller.java @@ -0,0 +1,43 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeSnapshotMonitorDataResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeSnapshotMonitorDataResponse.DataPoint; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeSnapshotMonitorDataResponseUnmarshaller { + + public static DescribeSnapshotMonitorDataResponse unmarshall(DescribeSnapshotMonitorDataResponse describeSnapshotMonitorDataResponse, UnmarshallerContext _ctx) { + + describeSnapshotMonitorDataResponse.setRequestId(_ctx.stringValue("DescribeSnapshotMonitorDataResponse.RequestId")); + + List monitorData = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeSnapshotMonitorDataResponse.MonitorData.Length"); i++) { + DataPoint dataPoint = new DataPoint(); + dataPoint.setSize(_ctx.longValue("DescribeSnapshotMonitorDataResponse.MonitorData["+ i +"].Size")); + dataPoint.setTimeStamp(_ctx.stringValue("DescribeSnapshotMonitorDataResponse.MonitorData["+ i +"].TimeStamp")); + + monitorData.add(dataPoint); + } + describeSnapshotMonitorDataResponse.setMonitorData(monitorData); + + return describeSnapshotMonitorDataResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSnapshotPackageResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSnapshotPackageResponseUnmarshaller.java new file mode 100644 index 0000000000..cbe422570a --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSnapshotPackageResponseUnmarshaller.java @@ -0,0 +1,48 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeSnapshotPackageResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeSnapshotPackageResponse.SnapshotPackage; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeSnapshotPackageResponseUnmarshaller { + + public static DescribeSnapshotPackageResponse unmarshall(DescribeSnapshotPackageResponse describeSnapshotPackageResponse, UnmarshallerContext _ctx) { + + describeSnapshotPackageResponse.setRequestId(_ctx.stringValue("DescribeSnapshotPackageResponse.RequestId")); + describeSnapshotPackageResponse.setPageSize(_ctx.integerValue("DescribeSnapshotPackageResponse.PageSize")); + describeSnapshotPackageResponse.setPageNumber(_ctx.integerValue("DescribeSnapshotPackageResponse.PageNumber")); + describeSnapshotPackageResponse.setTotalCount(_ctx.integerValue("DescribeSnapshotPackageResponse.TotalCount")); + + List snapshotPackages = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeSnapshotPackageResponse.SnapshotPackages.Length"); i++) { + SnapshotPackage snapshotPackage = new SnapshotPackage(); + snapshotPackage.setDisplayName(_ctx.stringValue("DescribeSnapshotPackageResponse.SnapshotPackages["+ i +"].DisplayName")); + snapshotPackage.setEndTime(_ctx.stringValue("DescribeSnapshotPackageResponse.SnapshotPackages["+ i +"].EndTime")); + snapshotPackage.setStartTime(_ctx.stringValue("DescribeSnapshotPackageResponse.SnapshotPackages["+ i +"].StartTime")); + snapshotPackage.setInitCapacity(_ctx.longValue("DescribeSnapshotPackageResponse.SnapshotPackages["+ i +"].InitCapacity")); + + snapshotPackages.add(snapshotPackage); + } + describeSnapshotPackageResponse.setSnapshotPackages(snapshotPackages); + + return describeSnapshotPackageResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSnapshotsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSnapshotsResponseUnmarshaller.java new file mode 100644 index 0000000000..5716558540 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSnapshotsResponseUnmarshaller.java @@ -0,0 +1,81 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeSnapshotsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeSnapshotsResponse.Snapshot; +import com.aliyuncs.ecs.model.v20140526.DescribeSnapshotsResponse.Snapshot.Tag; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeSnapshotsResponseUnmarshaller { + + public static DescribeSnapshotsResponse unmarshall(DescribeSnapshotsResponse describeSnapshotsResponse, UnmarshallerContext _ctx) { + + describeSnapshotsResponse.setRequestId(_ctx.stringValue("DescribeSnapshotsResponse.RequestId")); + describeSnapshotsResponse.setNextToken(_ctx.stringValue("DescribeSnapshotsResponse.NextToken")); + describeSnapshotsResponse.setPageSize(_ctx.integerValue("DescribeSnapshotsResponse.PageSize")); + describeSnapshotsResponse.setPageNumber(_ctx.integerValue("DescribeSnapshotsResponse.PageNumber")); + describeSnapshotsResponse.setTotalCount(_ctx.integerValue("DescribeSnapshotsResponse.TotalCount")); + + List snapshots = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeSnapshotsResponse.Snapshots.Length"); i++) { + Snapshot snapshot = new Snapshot(); + snapshot.setStatus(_ctx.stringValue("DescribeSnapshotsResponse.Snapshots["+ i +"].Status")); + snapshot.setCreationTime(_ctx.stringValue("DescribeSnapshotsResponse.Snapshots["+ i +"].CreationTime")); + snapshot.setProgress(_ctx.stringValue("DescribeSnapshotsResponse.Snapshots["+ i +"].Progress")); + snapshot.setInstantAccess(_ctx.booleanValue("DescribeSnapshotsResponse.Snapshots["+ i +"].InstantAccess")); + snapshot.setRemainTime(_ctx.integerValue("DescribeSnapshotsResponse.Snapshots["+ i +"].RemainTime")); + snapshot.setSourceDiskSize(_ctx.stringValue("DescribeSnapshotsResponse.Snapshots["+ i +"].SourceDiskSize")); + snapshot.setRetentionDays(_ctx.integerValue("DescribeSnapshotsResponse.Snapshots["+ i +"].RetentionDays")); + snapshot.setSourceDiskType(_ctx.stringValue("DescribeSnapshotsResponse.Snapshots["+ i +"].SourceDiskType")); + snapshot.setSourceStorageType(_ctx.stringValue("DescribeSnapshotsResponse.Snapshots["+ i +"].SourceStorageType")); + snapshot.setUsage(_ctx.stringValue("DescribeSnapshotsResponse.Snapshots["+ i +"].Usage")); + snapshot.setLastModifiedTime(_ctx.stringValue("DescribeSnapshotsResponse.Snapshots["+ i +"].LastModifiedTime")); + snapshot.setEncrypted(_ctx.booleanValue("DescribeSnapshotsResponse.Snapshots["+ i +"].Encrypted")); + snapshot.setSnapshotType(_ctx.stringValue("DescribeSnapshotsResponse.Snapshots["+ i +"].SnapshotType")); + snapshot.setSourceDiskId(_ctx.stringValue("DescribeSnapshotsResponse.Snapshots["+ i +"].SourceDiskId")); + snapshot.setSnapshotName(_ctx.stringValue("DescribeSnapshotsResponse.Snapshots["+ i +"].SnapshotName")); + snapshot.setInstantAccessRetentionDays(_ctx.integerValue("DescribeSnapshotsResponse.Snapshots["+ i +"].InstantAccessRetentionDays")); + snapshot.setDescription(_ctx.stringValue("DescribeSnapshotsResponse.Snapshots["+ i +"].Description")); + snapshot.setSnapshotId(_ctx.stringValue("DescribeSnapshotsResponse.Snapshots["+ i +"].SnapshotId")); + snapshot.setResourceGroupId(_ctx.stringValue("DescribeSnapshotsResponse.Snapshots["+ i +"].ResourceGroupId")); + snapshot.setCategory(_ctx.stringValue("DescribeSnapshotsResponse.Snapshots["+ i +"].Category")); + snapshot.setKMSKeyId(_ctx.stringValue("DescribeSnapshotsResponse.Snapshots["+ i +"].KMSKeyId")); + snapshot.setSnapshotSN(_ctx.stringValue("DescribeSnapshotsResponse.Snapshots["+ i +"].SnapshotSN")); + snapshot.setProductCode(_ctx.stringValue("DescribeSnapshotsResponse.Snapshots["+ i +"].ProductCode")); + snapshot.setSourceSnapshotId(_ctx.stringValue("DescribeSnapshotsResponse.Snapshots["+ i +"].SourceSnapshotId")); + snapshot.setSourceRegionId(_ctx.stringValue("DescribeSnapshotsResponse.Snapshots["+ i +"].SourceRegionId")); + + List tags = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeSnapshotsResponse.Snapshots["+ i +"].Tags.Length"); j++) { + Tag tag = new Tag(); + tag.setTagValue(_ctx.stringValue("DescribeSnapshotsResponse.Snapshots["+ i +"].Tags["+ j +"].TagValue")); + tag.setTagKey(_ctx.stringValue("DescribeSnapshotsResponse.Snapshots["+ i +"].Tags["+ j +"].TagKey")); + + tags.add(tag); + } + snapshot.setTags(tags); + + snapshots.add(snapshot); + } + describeSnapshotsResponse.setSnapshots(snapshots); + + return describeSnapshotsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSnapshotsUsageResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSnapshotsUsageResponseUnmarshaller.java new file mode 100644 index 0000000000..4a14513695 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSnapshotsUsageResponseUnmarshaller.java @@ -0,0 +1,31 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DescribeSnapshotsUsageResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeSnapshotsUsageResponseUnmarshaller { + + public static DescribeSnapshotsUsageResponse unmarshall(DescribeSnapshotsUsageResponse describeSnapshotsUsageResponse, UnmarshallerContext _ctx) { + + describeSnapshotsUsageResponse.setRequestId(_ctx.stringValue("DescribeSnapshotsUsageResponse.RequestId")); + describeSnapshotsUsageResponse.setSnapshotSize(_ctx.longValue("DescribeSnapshotsUsageResponse.SnapshotSize")); + describeSnapshotsUsageResponse.setSnapshotCount(_ctx.integerValue("DescribeSnapshotsUsageResponse.SnapshotCount")); + + return describeSnapshotsUsageResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSpotAdviceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSpotAdviceResponseUnmarshaller.java new file mode 100644 index 0000000000..0de266c14f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSpotAdviceResponseUnmarshaller.java @@ -0,0 +1,56 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeSpotAdviceResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeSpotAdviceResponse.AvailableSpotZone; +import com.aliyuncs.ecs.model.v20140526.DescribeSpotAdviceResponse.AvailableSpotZone.AvailableSpotResource; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeSpotAdviceResponseUnmarshaller { + + public static DescribeSpotAdviceResponse unmarshall(DescribeSpotAdviceResponse describeSpotAdviceResponse, UnmarshallerContext _ctx) { + + describeSpotAdviceResponse.setRequestId(_ctx.stringValue("DescribeSpotAdviceResponse.RequestId")); + describeSpotAdviceResponse.setRegionId(_ctx.stringValue("DescribeSpotAdviceResponse.RegionId")); + + List availableSpotZones = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeSpotAdviceResponse.AvailableSpotZones.Length"); i++) { + AvailableSpotZone availableSpotZone = new AvailableSpotZone(); + availableSpotZone.setZoneId(_ctx.stringValue("DescribeSpotAdviceResponse.AvailableSpotZones["+ i +"].ZoneId")); + + List availableSpotResources = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeSpotAdviceResponse.AvailableSpotZones["+ i +"].AvailableSpotResources.Length"); j++) { + AvailableSpotResource availableSpotResource = new AvailableSpotResource(); + availableSpotResource.setInterruptRateDesc(_ctx.stringValue("DescribeSpotAdviceResponse.AvailableSpotZones["+ i +"].AvailableSpotResources["+ j +"].InterruptRateDesc")); + availableSpotResource.setAverageSpotDiscount(_ctx.integerValue("DescribeSpotAdviceResponse.AvailableSpotZones["+ i +"].AvailableSpotResources["+ j +"].AverageSpotDiscount")); + availableSpotResource.setInstanceType(_ctx.stringValue("DescribeSpotAdviceResponse.AvailableSpotZones["+ i +"].AvailableSpotResources["+ j +"].InstanceType")); + availableSpotResource.setInterruptionRate(_ctx.floatValue("DescribeSpotAdviceResponse.AvailableSpotZones["+ i +"].AvailableSpotResources["+ j +"].InterruptionRate")); + + availableSpotResources.add(availableSpotResource); + } + availableSpotZone.setAvailableSpotResources(availableSpotResources); + + availableSpotZones.add(availableSpotZone); + } + describeSpotAdviceResponse.setAvailableSpotZones(availableSpotZones); + + return describeSpotAdviceResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSpotPriceHistoryResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSpotPriceHistoryResponseUnmarshaller.java new file mode 100644 index 0000000000..094e79da0d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeSpotPriceHistoryResponseUnmarshaller.java @@ -0,0 +1,50 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeSpotPriceHistoryResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeSpotPriceHistoryResponse.SpotPriceType; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeSpotPriceHistoryResponseUnmarshaller { + + public static DescribeSpotPriceHistoryResponse unmarshall(DescribeSpotPriceHistoryResponse describeSpotPriceHistoryResponse, UnmarshallerContext _ctx) { + + describeSpotPriceHistoryResponse.setRequestId(_ctx.stringValue("DescribeSpotPriceHistoryResponse.RequestId")); + describeSpotPriceHistoryResponse.setCurrency(_ctx.stringValue("DescribeSpotPriceHistoryResponse.Currency")); + describeSpotPriceHistoryResponse.setNextOffset(_ctx.integerValue("DescribeSpotPriceHistoryResponse.NextOffset")); + + List spotPrices = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeSpotPriceHistoryResponse.SpotPrices.Length"); i++) { + SpotPriceType spotPriceType = new SpotPriceType(); + spotPriceType.setIoOptimized(_ctx.stringValue("DescribeSpotPriceHistoryResponse.SpotPrices["+ i +"].IoOptimized")); + spotPriceType.setZoneId(_ctx.stringValue("DescribeSpotPriceHistoryResponse.SpotPrices["+ i +"].ZoneId")); + spotPriceType.setSpotPrice(_ctx.floatValue("DescribeSpotPriceHistoryResponse.SpotPrices["+ i +"].SpotPrice")); + spotPriceType.setTimestamp(_ctx.stringValue("DescribeSpotPriceHistoryResponse.SpotPrices["+ i +"].Timestamp")); + spotPriceType.setNetworkType(_ctx.stringValue("DescribeSpotPriceHistoryResponse.SpotPrices["+ i +"].NetworkType")); + spotPriceType.setInstanceType(_ctx.stringValue("DescribeSpotPriceHistoryResponse.SpotPrices["+ i +"].InstanceType")); + spotPriceType.setOriginPrice(_ctx.floatValue("DescribeSpotPriceHistoryResponse.SpotPrices["+ i +"].OriginPrice")); + + spotPrices.add(spotPriceType); + } + describeSpotPriceHistoryResponse.setSpotPrices(spotPrices); + + return describeSpotPriceHistoryResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeStorageCapacityUnitsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeStorageCapacityUnitsResponseUnmarshaller.java new file mode 100644 index 0000000000..18e53cac44 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeStorageCapacityUnitsResponseUnmarshaller.java @@ -0,0 +1,65 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeStorageCapacityUnitsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeStorageCapacityUnitsResponse.StorageCapacityUnit; +import com.aliyuncs.ecs.model.v20140526.DescribeStorageCapacityUnitsResponse.StorageCapacityUnit.Tag; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeStorageCapacityUnitsResponseUnmarshaller { + + public static DescribeStorageCapacityUnitsResponse unmarshall(DescribeStorageCapacityUnitsResponse describeStorageCapacityUnitsResponse, UnmarshallerContext _ctx) { + + describeStorageCapacityUnitsResponse.setRequestId(_ctx.stringValue("DescribeStorageCapacityUnitsResponse.RequestId")); + describeStorageCapacityUnitsResponse.setPageSize(_ctx.integerValue("DescribeStorageCapacityUnitsResponse.PageSize")); + describeStorageCapacityUnitsResponse.setPageNumber(_ctx.integerValue("DescribeStorageCapacityUnitsResponse.PageNumber")); + describeStorageCapacityUnitsResponse.setTotalCount(_ctx.integerValue("DescribeStorageCapacityUnitsResponse.TotalCount")); + + List storageCapacityUnits = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeStorageCapacityUnitsResponse.StorageCapacityUnits.Length"); i++) { + StorageCapacityUnit storageCapacityUnit = new StorageCapacityUnit(); + storageCapacityUnit.setCreationTime(_ctx.stringValue("DescribeStorageCapacityUnitsResponse.StorageCapacityUnits["+ i +"].CreationTime")); + storageCapacityUnit.setStatus(_ctx.stringValue("DescribeStorageCapacityUnitsResponse.StorageCapacityUnits["+ i +"].Status")); + storageCapacityUnit.setStartTime(_ctx.stringValue("DescribeStorageCapacityUnitsResponse.StorageCapacityUnits["+ i +"].StartTime")); + storageCapacityUnit.setCapacity(_ctx.integerValue("DescribeStorageCapacityUnitsResponse.StorageCapacityUnits["+ i +"].Capacity")); + storageCapacityUnit.setDescription(_ctx.stringValue("DescribeStorageCapacityUnitsResponse.StorageCapacityUnits["+ i +"].Description")); + storageCapacityUnit.setAllocationStatus(_ctx.stringValue("DescribeStorageCapacityUnitsResponse.StorageCapacityUnits["+ i +"].AllocationStatus")); + storageCapacityUnit.setExpiredTime(_ctx.stringValue("DescribeStorageCapacityUnitsResponse.StorageCapacityUnits["+ i +"].ExpiredTime")); + storageCapacityUnit.setStorageCapacityUnitId(_ctx.stringValue("DescribeStorageCapacityUnitsResponse.StorageCapacityUnits["+ i +"].StorageCapacityUnitId")); + storageCapacityUnit.setName(_ctx.stringValue("DescribeStorageCapacityUnitsResponse.StorageCapacityUnits["+ i +"].Name")); + storageCapacityUnit.setRegionId(_ctx.stringValue("DescribeStorageCapacityUnitsResponse.StorageCapacityUnits["+ i +"].RegionId")); + + List tags = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeStorageCapacityUnitsResponse.StorageCapacityUnits["+ i +"].Tags.Length"); j++) { + Tag tag = new Tag(); + tag.setTagValue(_ctx.stringValue("DescribeStorageCapacityUnitsResponse.StorageCapacityUnits["+ i +"].Tags["+ j +"].TagValue")); + tag.setTagKey(_ctx.stringValue("DescribeStorageCapacityUnitsResponse.StorageCapacityUnits["+ i +"].Tags["+ j +"].TagKey")); + + tags.add(tag); + } + storageCapacityUnit.setTags(tags); + + storageCapacityUnits.add(storageCapacityUnit); + } + describeStorageCapacityUnitsResponse.setStorageCapacityUnits(storageCapacityUnits); + + return describeStorageCapacityUnitsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeStorageSetDetailsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeStorageSetDetailsResponseUnmarshaller.java similarity index 92% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeStorageSetDetailsResponseUnmarshaller.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeStorageSetDetailsResponseUnmarshaller.java index 303e581ae5..945c32fbdf 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeStorageSetDetailsResponseUnmarshaller.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeStorageSetDetailsResponseUnmarshaller.java @@ -12,13 +12,13 @@ * limitations under the License. */ -package com.aliyuncs.ecs.transform.v20160314; +package com.aliyuncs.ecs.transform.v20140526; import java.util.ArrayList; import java.util.List; -import com.aliyuncs.ecs.model.v20160314.DescribeStorageSetDetailsResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeStorageSetDetailsResponse.Disk; +import com.aliyuncs.ecs.model.v20140526.DescribeStorageSetDetailsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeStorageSetDetailsResponse.Disk; import com.aliyuncs.transform.UnmarshallerContext; diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeStorageSetsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeStorageSetsResponseUnmarshaller.java similarity index 92% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeStorageSetsResponseUnmarshaller.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeStorageSetsResponseUnmarshaller.java index c577e31793..c8106d5eb8 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeStorageSetsResponseUnmarshaller.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeStorageSetsResponseUnmarshaller.java @@ -12,13 +12,13 @@ * limitations under the License. */ -package com.aliyuncs.ecs.transform.v20160314; +package com.aliyuncs.ecs.transform.v20140526; import java.util.ArrayList; import java.util.List; -import com.aliyuncs.ecs.model.v20160314.DescribeStorageSetsResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeStorageSetsResponse.StorageSet; +import com.aliyuncs.ecs.model.v20140526.DescribeStorageSetsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeStorageSetsResponse.StorageSet; import com.aliyuncs.transform.UnmarshallerContext; diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeTagsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeTagsResponseUnmarshaller.java new file mode 100644 index 0000000000..1c3b5e9bd0 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeTagsResponseUnmarshaller.java @@ -0,0 +1,62 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeTagsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeTagsResponse.Tag; +import com.aliyuncs.ecs.model.v20140526.DescribeTagsResponse.Tag.ResourceTypeCount; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeTagsResponseUnmarshaller { + + public static DescribeTagsResponse unmarshall(DescribeTagsResponse describeTagsResponse, UnmarshallerContext _ctx) { + + describeTagsResponse.setRequestId(_ctx.stringValue("DescribeTagsResponse.RequestId")); + describeTagsResponse.setPageSize(_ctx.integerValue("DescribeTagsResponse.PageSize")); + describeTagsResponse.setPageNumber(_ctx.integerValue("DescribeTagsResponse.PageNumber")); + describeTagsResponse.setTotalCount(_ctx.integerValue("DescribeTagsResponse.TotalCount")); + + List tags = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeTagsResponse.Tags.Length"); i++) { + Tag tag = new Tag(); + tag.setTagValue(_ctx.stringValue("DescribeTagsResponse.Tags["+ i +"].TagValue")); + tag.setTagKey(_ctx.stringValue("DescribeTagsResponse.Tags["+ i +"].TagKey")); + + ResourceTypeCount resourceTypeCount = new ResourceTypeCount(); + resourceTypeCount.setInstance(_ctx.integerValue("DescribeTagsResponse.Tags["+ i +"].ResourceTypeCount.Instance")); + resourceTypeCount.setImage(_ctx.integerValue("DescribeTagsResponse.Tags["+ i +"].ResourceTypeCount.Image")); + resourceTypeCount.setDdh(_ctx.integerValue("DescribeTagsResponse.Tags["+ i +"].ResourceTypeCount.Ddh")); + resourceTypeCount.setSnapshotPolicy(_ctx.integerValue("DescribeTagsResponse.Tags["+ i +"].ResourceTypeCount.SnapshotPolicy")); + resourceTypeCount.setSecuritygroup(_ctx.integerValue("DescribeTagsResponse.Tags["+ i +"].ResourceTypeCount.Securitygroup")); + resourceTypeCount.setSnapshot(_ctx.integerValue("DescribeTagsResponse.Tags["+ i +"].ResourceTypeCount.Snapshot")); + resourceTypeCount.setReservedInstance(_ctx.integerValue("DescribeTagsResponse.Tags["+ i +"].ResourceTypeCount.ReservedInstance")); + resourceTypeCount.setLaunchTemplate(_ctx.integerValue("DescribeTagsResponse.Tags["+ i +"].ResourceTypeCount.LaunchTemplate")); + resourceTypeCount.setEni(_ctx.integerValue("DescribeTagsResponse.Tags["+ i +"].ResourceTypeCount.Eni")); + resourceTypeCount.setDisk(_ctx.integerValue("DescribeTagsResponse.Tags["+ i +"].ResourceTypeCount.Disk")); + resourceTypeCount.setKeyPair(_ctx.integerValue("DescribeTagsResponse.Tags["+ i +"].ResourceTypeCount.KeyPair")); + resourceTypeCount.setVolume(_ctx.integerValue("DescribeTagsResponse.Tags["+ i +"].ResourceTypeCount.Volume")); + tag.setResourceTypeCount(resourceTypeCount); + + tags.add(tag); + } + describeTagsResponse.setTags(tags); + + return describeTagsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeTaskAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeTaskAttributeResponseUnmarshaller.java new file mode 100644 index 0000000000..48ff8c23a7 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeTaskAttributeResponseUnmarshaller.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeTaskAttributeResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeTaskAttributeResponse.OperationProgress; +import com.aliyuncs.ecs.model.v20140526.DescribeTaskAttributeResponse.OperationProgress.RelatedItem; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeTaskAttributeResponseUnmarshaller { + + public static DescribeTaskAttributeResponse unmarshall(DescribeTaskAttributeResponse describeTaskAttributeResponse, UnmarshallerContext _ctx) { + + describeTaskAttributeResponse.setRequestId(_ctx.stringValue("DescribeTaskAttributeResponse.RequestId")); + describeTaskAttributeResponse.setCreationTime(_ctx.stringValue("DescribeTaskAttributeResponse.CreationTime")); + describeTaskAttributeResponse.setSupportCancel(_ctx.stringValue("DescribeTaskAttributeResponse.SupportCancel")); + describeTaskAttributeResponse.setTotalCount(_ctx.integerValue("DescribeTaskAttributeResponse.TotalCount")); + describeTaskAttributeResponse.setSuccessCount(_ctx.integerValue("DescribeTaskAttributeResponse.SuccessCount")); + describeTaskAttributeResponse.setRegionId(_ctx.stringValue("DescribeTaskAttributeResponse.RegionId")); + describeTaskAttributeResponse.setTaskAction(_ctx.stringValue("DescribeTaskAttributeResponse.TaskAction")); + describeTaskAttributeResponse.setFailedCount(_ctx.integerValue("DescribeTaskAttributeResponse.FailedCount")); + describeTaskAttributeResponse.setTaskStatus(_ctx.stringValue("DescribeTaskAttributeResponse.TaskStatus")); + describeTaskAttributeResponse.setTaskProcess(_ctx.stringValue("DescribeTaskAttributeResponse.TaskProcess")); + describeTaskAttributeResponse.setFinishedTime(_ctx.stringValue("DescribeTaskAttributeResponse.FinishedTime")); + describeTaskAttributeResponse.setTaskId(_ctx.stringValue("DescribeTaskAttributeResponse.TaskId")); + + List operationProgressSet = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeTaskAttributeResponse.OperationProgressSet.Length"); i++) { + OperationProgress operationProgress = new OperationProgress(); + operationProgress.setErrorMsg(_ctx.stringValue("DescribeTaskAttributeResponse.OperationProgressSet["+ i +"].ErrorMsg")); + operationProgress.setErrorCode(_ctx.stringValue("DescribeTaskAttributeResponse.OperationProgressSet["+ i +"].ErrorCode")); + operationProgress.setOperationStatus(_ctx.stringValue("DescribeTaskAttributeResponse.OperationProgressSet["+ i +"].OperationStatus")); + + List relatedItemSet = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeTaskAttributeResponse.OperationProgressSet["+ i +"].RelatedItemSet.Length"); j++) { + RelatedItem relatedItem = new RelatedItem(); + relatedItem.setName(_ctx.stringValue("DescribeTaskAttributeResponse.OperationProgressSet["+ i +"].RelatedItemSet["+ j +"].Name")); + relatedItem.setValue(_ctx.stringValue("DescribeTaskAttributeResponse.OperationProgressSet["+ i +"].RelatedItemSet["+ j +"].Value")); + + relatedItemSet.add(relatedItem); + } + operationProgress.setRelatedItemSet(relatedItemSet); + + operationProgressSet.add(operationProgress); + } + describeTaskAttributeResponse.setOperationProgressSet(operationProgressSet); + + return describeTaskAttributeResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeTasksResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeTasksResponseUnmarshaller.java new file mode 100644 index 0000000000..e70a30df65 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeTasksResponseUnmarshaller.java @@ -0,0 +1,52 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeTasksResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeTasksResponse.Task; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeTasksResponseUnmarshaller { + + public static DescribeTasksResponse unmarshall(DescribeTasksResponse describeTasksResponse, UnmarshallerContext _ctx) { + + describeTasksResponse.setRequestId(_ctx.stringValue("DescribeTasksResponse.RequestId")); + describeTasksResponse.setPageSize(_ctx.integerValue("DescribeTasksResponse.PageSize")); + describeTasksResponse.setPageNumber(_ctx.integerValue("DescribeTasksResponse.PageNumber")); + describeTasksResponse.setTotalCount(_ctx.integerValue("DescribeTasksResponse.TotalCount")); + describeTasksResponse.setRegionId(_ctx.stringValue("DescribeTasksResponse.RegionId")); + + List taskSet = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeTasksResponse.TaskSet.Length"); i++) { + Task task = new Task(); + task.setCreationTime(_ctx.stringValue("DescribeTasksResponse.TaskSet["+ i +"].CreationTime")); + task.setTaskStatus(_ctx.stringValue("DescribeTasksResponse.TaskSet["+ i +"].TaskStatus")); + task.setFinishedTime(_ctx.stringValue("DescribeTasksResponse.TaskSet["+ i +"].FinishedTime")); + task.setSupportCancel(_ctx.stringValue("DescribeTasksResponse.TaskSet["+ i +"].SupportCancel")); + task.setTaskId(_ctx.stringValue("DescribeTasksResponse.TaskSet["+ i +"].TaskId")); + task.setTaskAction(_ctx.stringValue("DescribeTasksResponse.TaskSet["+ i +"].TaskAction")); + task.setResourceId(_ctx.stringValue("DescribeTasksResponse.TaskSet["+ i +"].ResourceId")); + + taskSet.add(task); + } + describeTasksResponse.setTaskSet(taskSet); + + return describeTasksResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeUserBusinessBehaviorResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeUserBusinessBehaviorResponseUnmarshaller.java new file mode 100644 index 0000000000..3ccb930658 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeUserBusinessBehaviorResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DescribeUserBusinessBehaviorResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeUserBusinessBehaviorResponseUnmarshaller { + + public static DescribeUserBusinessBehaviorResponse unmarshall(DescribeUserBusinessBehaviorResponse describeUserBusinessBehaviorResponse, UnmarshallerContext _ctx) { + + describeUserBusinessBehaviorResponse.setRequestId(_ctx.stringValue("DescribeUserBusinessBehaviorResponse.RequestId")); + describeUserBusinessBehaviorResponse.setStatusValue(_ctx.stringValue("DescribeUserBusinessBehaviorResponse.StatusValue")); + + return describeUserBusinessBehaviorResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeUserDataResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeUserDataResponseUnmarshaller.java new file mode 100644 index 0000000000..837b4edab6 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeUserDataResponseUnmarshaller.java @@ -0,0 +1,32 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DescribeUserDataResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeUserDataResponseUnmarshaller { + + public static DescribeUserDataResponse unmarshall(DescribeUserDataResponse describeUserDataResponse, UnmarshallerContext _ctx) { + + describeUserDataResponse.setRequestId(_ctx.stringValue("DescribeUserDataResponse.RequestId")); + describeUserDataResponse.setInstanceId(_ctx.stringValue("DescribeUserDataResponse.InstanceId")); + describeUserDataResponse.setUserData(_ctx.stringValue("DescribeUserDataResponse.UserData")); + describeUserDataResponse.setRegionId(_ctx.stringValue("DescribeUserDataResponse.RegionId")); + + return describeUserDataResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeVRoutersResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeVRoutersResponseUnmarshaller.java new file mode 100644 index 0000000000..f015efebd0 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeVRoutersResponseUnmarshaller.java @@ -0,0 +1,56 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeVRoutersResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeVRoutersResponse.VRouter; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeVRoutersResponseUnmarshaller { + + public static DescribeVRoutersResponse unmarshall(DescribeVRoutersResponse describeVRoutersResponse, UnmarshallerContext _ctx) { + + describeVRoutersResponse.setRequestId(_ctx.stringValue("DescribeVRoutersResponse.RequestId")); + describeVRoutersResponse.setPageSize(_ctx.integerValue("DescribeVRoutersResponse.PageSize")); + describeVRoutersResponse.setPageNumber(_ctx.integerValue("DescribeVRoutersResponse.PageNumber")); + describeVRoutersResponse.setTotalCount(_ctx.integerValue("DescribeVRoutersResponse.TotalCount")); + + List vRouters = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeVRoutersResponse.VRouters.Length"); i++) { + VRouter vRouter = new VRouter(); + vRouter.setVpcId(_ctx.stringValue("DescribeVRoutersResponse.VRouters["+ i +"].VpcId")); + vRouter.setCreationTime(_ctx.stringValue("DescribeVRoutersResponse.VRouters["+ i +"].CreationTime")); + vRouter.setVRouterId(_ctx.stringValue("DescribeVRoutersResponse.VRouters["+ i +"].VRouterId")); + vRouter.setDescription(_ctx.stringValue("DescribeVRoutersResponse.VRouters["+ i +"].Description")); + vRouter.setVRouterName(_ctx.stringValue("DescribeVRoutersResponse.VRouters["+ i +"].VRouterName")); + vRouter.setRegionId(_ctx.stringValue("DescribeVRoutersResponse.VRouters["+ i +"].RegionId")); + + List routeTableIds = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeVRoutersResponse.VRouters["+ i +"].RouteTableIds.Length"); j++) { + routeTableIds.add(_ctx.stringValue("DescribeVRoutersResponse.VRouters["+ i +"].RouteTableIds["+ j +"]")); + } + vRouter.setRouteTableIds(routeTableIds); + + vRouters.add(vRouter); + } + describeVRoutersResponse.setVRouters(vRouters); + + return describeVRoutersResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeVSwitchesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeVSwitchesResponseUnmarshaller.java new file mode 100644 index 0000000000..87632a7193 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeVSwitchesResponseUnmarshaller.java @@ -0,0 +1,55 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeVSwitchesResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeVSwitchesResponse.VSwitch; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeVSwitchesResponseUnmarshaller { + + public static DescribeVSwitchesResponse unmarshall(DescribeVSwitchesResponse describeVSwitchesResponse, UnmarshallerContext _ctx) { + + describeVSwitchesResponse.setRequestId(_ctx.stringValue("DescribeVSwitchesResponse.RequestId")); + describeVSwitchesResponse.setPageSize(_ctx.integerValue("DescribeVSwitchesResponse.PageSize")); + describeVSwitchesResponse.setPageNumber(_ctx.integerValue("DescribeVSwitchesResponse.PageNumber")); + describeVSwitchesResponse.setTotalCount(_ctx.integerValue("DescribeVSwitchesResponse.TotalCount")); + + List vSwitches = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeVSwitchesResponse.VSwitches.Length"); i++) { + VSwitch vSwitch = new VSwitch(); + vSwitch.setCreationTime(_ctx.stringValue("DescribeVSwitchesResponse.VSwitches["+ i +"].CreationTime")); + vSwitch.setStatus(_ctx.stringValue("DescribeVSwitchesResponse.VSwitches["+ i +"].Status")); + vSwitch.setVpcId(_ctx.stringValue("DescribeVSwitchesResponse.VSwitches["+ i +"].VpcId")); + vSwitch.setIsDefault(_ctx.booleanValue("DescribeVSwitchesResponse.VSwitches["+ i +"].IsDefault")); + vSwitch.setVSwitchId(_ctx.stringValue("DescribeVSwitchesResponse.VSwitches["+ i +"].VSwitchId")); + vSwitch.setCidrBlock(_ctx.stringValue("DescribeVSwitchesResponse.VSwitches["+ i +"].CidrBlock")); + vSwitch.setDescription(_ctx.stringValue("DescribeVSwitchesResponse.VSwitches["+ i +"].Description")); + vSwitch.setAvailableIpAddressCount(_ctx.longValue("DescribeVSwitchesResponse.VSwitches["+ i +"].AvailableIpAddressCount")); + vSwitch.setResourceGroupId(_ctx.stringValue("DescribeVSwitchesResponse.VSwitches["+ i +"].ResourceGroupId")); + vSwitch.setZoneId(_ctx.stringValue("DescribeVSwitchesResponse.VSwitches["+ i +"].ZoneId")); + vSwitch.setVSwitchName(_ctx.stringValue("DescribeVSwitchesResponse.VSwitches["+ i +"].VSwitchName")); + + vSwitches.add(vSwitch); + } + describeVSwitchesResponse.setVSwitches(vSwitches); + + return describeVSwitchesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeVirtualBorderRoutersForPhysicalConnectionResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeVirtualBorderRoutersForPhysicalConnectionResponseUnmarshaller.java new file mode 100644 index 0000000000..4c7fa84d34 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeVirtualBorderRoutersForPhysicalConnectionResponseUnmarshaller.java @@ -0,0 +1,52 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeVirtualBorderRoutersForPhysicalConnectionResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeVirtualBorderRoutersForPhysicalConnectionResponse.VirtualBorderRouterForPhysicalConnectionType; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeVirtualBorderRoutersForPhysicalConnectionResponseUnmarshaller { + + public static DescribeVirtualBorderRoutersForPhysicalConnectionResponse unmarshall(DescribeVirtualBorderRoutersForPhysicalConnectionResponse describeVirtualBorderRoutersForPhysicalConnectionResponse, UnmarshallerContext _ctx) { + + describeVirtualBorderRoutersForPhysicalConnectionResponse.setRequestId(_ctx.stringValue("DescribeVirtualBorderRoutersForPhysicalConnectionResponse.RequestId")); + describeVirtualBorderRoutersForPhysicalConnectionResponse.setPageNumber(_ctx.integerValue("DescribeVirtualBorderRoutersForPhysicalConnectionResponse.PageNumber")); + describeVirtualBorderRoutersForPhysicalConnectionResponse.setPageSize(_ctx.integerValue("DescribeVirtualBorderRoutersForPhysicalConnectionResponse.PageSize")); + describeVirtualBorderRoutersForPhysicalConnectionResponse.setTotalCount(_ctx.integerValue("DescribeVirtualBorderRoutersForPhysicalConnectionResponse.TotalCount")); + + List virtualBorderRouterForPhysicalConnectionSet = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeVirtualBorderRoutersForPhysicalConnectionResponse.VirtualBorderRouterForPhysicalConnectionSet.Length"); i++) { + VirtualBorderRouterForPhysicalConnectionType virtualBorderRouterForPhysicalConnectionType = new VirtualBorderRouterForPhysicalConnectionType(); + virtualBorderRouterForPhysicalConnectionType.setCreationTime(_ctx.stringValue("DescribeVirtualBorderRoutersForPhysicalConnectionResponse.VirtualBorderRouterForPhysicalConnectionSet["+ i +"].CreationTime")); + virtualBorderRouterForPhysicalConnectionType.setCircuitCode(_ctx.stringValue("DescribeVirtualBorderRoutersForPhysicalConnectionResponse.VirtualBorderRouterForPhysicalConnectionSet["+ i +"].CircuitCode")); + virtualBorderRouterForPhysicalConnectionType.setRecoveryTime(_ctx.stringValue("DescribeVirtualBorderRoutersForPhysicalConnectionResponse.VirtualBorderRouterForPhysicalConnectionSet["+ i +"].RecoveryTime")); + virtualBorderRouterForPhysicalConnectionType.setTerminationTime(_ctx.stringValue("DescribeVirtualBorderRoutersForPhysicalConnectionResponse.VirtualBorderRouterForPhysicalConnectionSet["+ i +"].TerminationTime")); + virtualBorderRouterForPhysicalConnectionType.setActivationTime(_ctx.stringValue("DescribeVirtualBorderRoutersForPhysicalConnectionResponse.VirtualBorderRouterForPhysicalConnectionSet["+ i +"].ActivationTime")); + virtualBorderRouterForPhysicalConnectionType.setVbrOwnerUid(_ctx.longValue("DescribeVirtualBorderRoutersForPhysicalConnectionResponse.VirtualBorderRouterForPhysicalConnectionSet["+ i +"].VbrOwnerUid")); + virtualBorderRouterForPhysicalConnectionType.setVbrId(_ctx.stringValue("DescribeVirtualBorderRoutersForPhysicalConnectionResponse.VirtualBorderRouterForPhysicalConnectionSet["+ i +"].VbrId")); + virtualBorderRouterForPhysicalConnectionType.setVlanId(_ctx.integerValue("DescribeVirtualBorderRoutersForPhysicalConnectionResponse.VirtualBorderRouterForPhysicalConnectionSet["+ i +"].VlanId")); + + virtualBorderRouterForPhysicalConnectionSet.add(virtualBorderRouterForPhysicalConnectionType); + } + describeVirtualBorderRoutersForPhysicalConnectionResponse.setVirtualBorderRouterForPhysicalConnectionSet(virtualBorderRouterForPhysicalConnectionSet); + + return describeVirtualBorderRoutersForPhysicalConnectionResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeVirtualBorderRoutersResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeVirtualBorderRoutersResponseUnmarshaller.java new file mode 100644 index 0000000000..65481812cf --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeVirtualBorderRoutersResponseUnmarshaller.java @@ -0,0 +1,64 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeVirtualBorderRoutersResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeVirtualBorderRoutersResponse.VirtualBorderRouterType; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeVirtualBorderRoutersResponseUnmarshaller { + + public static DescribeVirtualBorderRoutersResponse unmarshall(DescribeVirtualBorderRoutersResponse describeVirtualBorderRoutersResponse, UnmarshallerContext _ctx) { + + describeVirtualBorderRoutersResponse.setRequestId(_ctx.stringValue("DescribeVirtualBorderRoutersResponse.RequestId")); + describeVirtualBorderRoutersResponse.setPageNumber(_ctx.integerValue("DescribeVirtualBorderRoutersResponse.PageNumber")); + describeVirtualBorderRoutersResponse.setPageSize(_ctx.integerValue("DescribeVirtualBorderRoutersResponse.PageSize")); + describeVirtualBorderRoutersResponse.setTotalCount(_ctx.integerValue("DescribeVirtualBorderRoutersResponse.TotalCount")); + + List virtualBorderRouterSet = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeVirtualBorderRoutersResponse.VirtualBorderRouterSet.Length"); i++) { + VirtualBorderRouterType virtualBorderRouterType = new VirtualBorderRouterType(); + virtualBorderRouterType.setVlanInterfaceId(_ctx.stringValue("DescribeVirtualBorderRoutersResponse.VirtualBorderRouterSet["+ i +"].VlanInterfaceId")); + virtualBorderRouterType.setStatus(_ctx.stringValue("DescribeVirtualBorderRoutersResponse.VirtualBorderRouterSet["+ i +"].Status")); + virtualBorderRouterType.setCreationTime(_ctx.stringValue("DescribeVirtualBorderRoutersResponse.VirtualBorderRouterSet["+ i +"].CreationTime")); + virtualBorderRouterType.setCircuitCode(_ctx.stringValue("DescribeVirtualBorderRoutersResponse.VirtualBorderRouterSet["+ i +"].CircuitCode")); + virtualBorderRouterType.setPhysicalConnectionOwnerUid(_ctx.stringValue("DescribeVirtualBorderRoutersResponse.VirtualBorderRouterSet["+ i +"].PhysicalConnectionOwnerUid")); + virtualBorderRouterType.setLocalGatewayIp(_ctx.stringValue("DescribeVirtualBorderRoutersResponse.VirtualBorderRouterSet["+ i +"].LocalGatewayIp")); + virtualBorderRouterType.setActivationTime(_ctx.stringValue("DescribeVirtualBorderRoutersResponse.VirtualBorderRouterSet["+ i +"].ActivationTime")); + virtualBorderRouterType.setPhysicalConnectionBusinessStatus(_ctx.stringValue("DescribeVirtualBorderRoutersResponse.VirtualBorderRouterSet["+ i +"].PhysicalConnectionBusinessStatus")); + virtualBorderRouterType.setPeeringSubnetMask(_ctx.stringValue("DescribeVirtualBorderRoutersResponse.VirtualBorderRouterSet["+ i +"].PeeringSubnetMask")); + virtualBorderRouterType.setRouteTableId(_ctx.stringValue("DescribeVirtualBorderRoutersResponse.VirtualBorderRouterSet["+ i +"].RouteTableId")); + virtualBorderRouterType.setDescription(_ctx.stringValue("DescribeVirtualBorderRoutersResponse.VirtualBorderRouterSet["+ i +"].Description")); + virtualBorderRouterType.setPhysicalConnectionStatus(_ctx.stringValue("DescribeVirtualBorderRoutersResponse.VirtualBorderRouterSet["+ i +"].PhysicalConnectionStatus")); + virtualBorderRouterType.setRecoveryTime(_ctx.stringValue("DescribeVirtualBorderRoutersResponse.VirtualBorderRouterSet["+ i +"].RecoveryTime")); + virtualBorderRouterType.setTerminationTime(_ctx.stringValue("DescribeVirtualBorderRoutersResponse.VirtualBorderRouterSet["+ i +"].TerminationTime")); + virtualBorderRouterType.setPeerGatewayIp(_ctx.stringValue("DescribeVirtualBorderRoutersResponse.VirtualBorderRouterSet["+ i +"].PeerGatewayIp")); + virtualBorderRouterType.setName(_ctx.stringValue("DescribeVirtualBorderRoutersResponse.VirtualBorderRouterSet["+ i +"].Name")); + virtualBorderRouterType.setAccessPointId(_ctx.stringValue("DescribeVirtualBorderRoutersResponse.VirtualBorderRouterSet["+ i +"].AccessPointId")); + virtualBorderRouterType.setVbrId(_ctx.stringValue("DescribeVirtualBorderRoutersResponse.VirtualBorderRouterSet["+ i +"].VbrId")); + virtualBorderRouterType.setPhysicalConnectionId(_ctx.stringValue("DescribeVirtualBorderRoutersResponse.VirtualBorderRouterSet["+ i +"].PhysicalConnectionId")); + virtualBorderRouterType.setVlanId(_ctx.integerValue("DescribeVirtualBorderRoutersResponse.VirtualBorderRouterSet["+ i +"].VlanId")); + + virtualBorderRouterSet.add(virtualBorderRouterType); + } + describeVirtualBorderRoutersResponse.setVirtualBorderRouterSet(virtualBorderRouterSet); + + return describeVirtualBorderRoutersResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeVpcsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeVpcsResponseUnmarshaller.java new file mode 100644 index 0000000000..701e4f8d5b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeVpcsResponseUnmarshaller.java @@ -0,0 +1,65 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeVpcsResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeVpcsResponse.Vpc; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeVpcsResponseUnmarshaller { + + public static DescribeVpcsResponse unmarshall(DescribeVpcsResponse describeVpcsResponse, UnmarshallerContext _ctx) { + + describeVpcsResponse.setRequestId(_ctx.stringValue("DescribeVpcsResponse.RequestId")); + describeVpcsResponse.setPageSize(_ctx.integerValue("DescribeVpcsResponse.PageSize")); + describeVpcsResponse.setPageNumber(_ctx.integerValue("DescribeVpcsResponse.PageNumber")); + describeVpcsResponse.setTotalCount(_ctx.integerValue("DescribeVpcsResponse.TotalCount")); + + List vpcs = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeVpcsResponse.Vpcs.Length"); i++) { + Vpc vpc = new Vpc(); + vpc.setCreationTime(_ctx.stringValue("DescribeVpcsResponse.Vpcs["+ i +"].CreationTime")); + vpc.setVpcName(_ctx.stringValue("DescribeVpcsResponse.Vpcs["+ i +"].VpcName")); + vpc.setStatus(_ctx.stringValue("DescribeVpcsResponse.Vpcs["+ i +"].Status")); + vpc.setVpcId(_ctx.stringValue("DescribeVpcsResponse.Vpcs["+ i +"].VpcId")); + vpc.setVRouterId(_ctx.stringValue("DescribeVpcsResponse.Vpcs["+ i +"].VRouterId")); + vpc.setIsDefault(_ctx.booleanValue("DescribeVpcsResponse.Vpcs["+ i +"].IsDefault")); + vpc.setCidrBlock(_ctx.stringValue("DescribeVpcsResponse.Vpcs["+ i +"].CidrBlock")); + vpc.setDescription(_ctx.stringValue("DescribeVpcsResponse.Vpcs["+ i +"].Description")); + vpc.setRegionId(_ctx.stringValue("DescribeVpcsResponse.Vpcs["+ i +"].RegionId")); + + List vSwitchIds = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeVpcsResponse.Vpcs["+ i +"].VSwitchIds.Length"); j++) { + vSwitchIds.add(_ctx.stringValue("DescribeVpcsResponse.Vpcs["+ i +"].VSwitchIds["+ j +"]")); + } + vpc.setVSwitchIds(vSwitchIds); + + List userCidrs = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeVpcsResponse.Vpcs["+ i +"].UserCidrs.Length"); j++) { + userCidrs.add(_ctx.stringValue("DescribeVpcsResponse.Vpcs["+ i +"].UserCidrs["+ j +"]")); + } + vpc.setUserCidrs(userCidrs); + + vpcs.add(vpc); + } + describeVpcsResponse.setVpcs(vpcs); + + return describeVpcsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeZonesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeZonesResponseUnmarshaller.java new file mode 100644 index 0000000000..e27ff762a9 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeZonesResponseUnmarshaller.java @@ -0,0 +1,126 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DescribeZonesResponse; +import com.aliyuncs.ecs.model.v20140526.DescribeZonesResponse.Zone; +import com.aliyuncs.ecs.model.v20140526.DescribeZonesResponse.Zone.ResourcesInfo; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeZonesResponseUnmarshaller { + + public static DescribeZonesResponse unmarshall(DescribeZonesResponse describeZonesResponse, UnmarshallerContext _ctx) { + + describeZonesResponse.setRequestId(_ctx.stringValue("DescribeZonesResponse.RequestId")); + + List zones = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeZonesResponse.Zones.Length"); i++) { + Zone zone = new Zone(); + zone.setZoneId(_ctx.stringValue("DescribeZonesResponse.Zones["+ i +"].ZoneId")); + zone.setZoneType(_ctx.stringValue("DescribeZonesResponse.Zones["+ i +"].ZoneType")); + zone.setLocalName(_ctx.stringValue("DescribeZonesResponse.Zones["+ i +"].LocalName")); + + List availableResourceCreation = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeZonesResponse.Zones["+ i +"].AvailableResourceCreation.Length"); j++) { + availableResourceCreation.add(_ctx.stringValue("DescribeZonesResponse.Zones["+ i +"].AvailableResourceCreation["+ j +"]")); + } + zone.setAvailableResourceCreation(availableResourceCreation); + + List dedicatedHostGenerations = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeZonesResponse.Zones["+ i +"].DedicatedHostGenerations.Length"); j++) { + dedicatedHostGenerations.add(_ctx.stringValue("DescribeZonesResponse.Zones["+ i +"].DedicatedHostGenerations["+ j +"]")); + } + zone.setDedicatedHostGenerations(dedicatedHostGenerations); + + List availableInstanceTypes = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeZonesResponse.Zones["+ i +"].AvailableInstanceTypes.Length"); j++) { + availableInstanceTypes.add(_ctx.stringValue("DescribeZonesResponse.Zones["+ i +"].AvailableInstanceTypes["+ j +"]")); + } + zone.setAvailableInstanceTypes(availableInstanceTypes); + + List availableDiskCategories = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeZonesResponse.Zones["+ i +"].AvailableDiskCategories.Length"); j++) { + availableDiskCategories.add(_ctx.stringValue("DescribeZonesResponse.Zones["+ i +"].AvailableDiskCategories["+ j +"]")); + } + zone.setAvailableDiskCategories(availableDiskCategories); + + List availableDedicatedHostTypes = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeZonesResponse.Zones["+ i +"].AvailableDedicatedHostTypes.Length"); j++) { + availableDedicatedHostTypes.add(_ctx.stringValue("DescribeZonesResponse.Zones["+ i +"].AvailableDedicatedHostTypes["+ j +"]")); + } + zone.setAvailableDedicatedHostTypes(availableDedicatedHostTypes); + + List availableVolumeCategories = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeZonesResponse.Zones["+ i +"].AvailableVolumeCategories.Length"); j++) { + availableVolumeCategories.add(_ctx.stringValue("DescribeZonesResponse.Zones["+ i +"].AvailableVolumeCategories["+ j +"]")); + } + zone.setAvailableVolumeCategories(availableVolumeCategories); + + List availableResources = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeZonesResponse.Zones["+ i +"].AvailableResources.Length"); j++) { + ResourcesInfo resourcesInfo = new ResourcesInfo(); + resourcesInfo.setIoOptimized(_ctx.booleanValue("DescribeZonesResponse.Zones["+ i +"].AvailableResources["+ j +"].IoOptimized")); + + List systemDiskCategories = new ArrayList(); + for (int k = 0; k < _ctx.lengthValue("DescribeZonesResponse.Zones["+ i +"].AvailableResources["+ j +"].SystemDiskCategories.Length"); k++) { + systemDiskCategories.add(_ctx.stringValue("DescribeZonesResponse.Zones["+ i +"].AvailableResources["+ j +"].SystemDiskCategories["+ k +"]")); + } + resourcesInfo.setSystemDiskCategories(systemDiskCategories); + + List instanceGenerations = new ArrayList(); + for (int k = 0; k < _ctx.lengthValue("DescribeZonesResponse.Zones["+ i +"].AvailableResources["+ j +"].InstanceGenerations.Length"); k++) { + instanceGenerations.add(_ctx.stringValue("DescribeZonesResponse.Zones["+ i +"].AvailableResources["+ j +"].InstanceGenerations["+ k +"]")); + } + resourcesInfo.setInstanceGenerations(instanceGenerations); + + List dataDiskCategories = new ArrayList(); + for (int k = 0; k < _ctx.lengthValue("DescribeZonesResponse.Zones["+ i +"].AvailableResources["+ j +"].DataDiskCategories.Length"); k++) { + dataDiskCategories.add(_ctx.stringValue("DescribeZonesResponse.Zones["+ i +"].AvailableResources["+ j +"].DataDiskCategories["+ k +"]")); + } + resourcesInfo.setDataDiskCategories(dataDiskCategories); + + List instanceTypes = new ArrayList(); + for (int k = 0; k < _ctx.lengthValue("DescribeZonesResponse.Zones["+ i +"].AvailableResources["+ j +"].InstanceTypes.Length"); k++) { + instanceTypes.add(_ctx.stringValue("DescribeZonesResponse.Zones["+ i +"].AvailableResources["+ j +"].InstanceTypes["+ k +"]")); + } + resourcesInfo.setInstanceTypes(instanceTypes); + + List instanceTypeFamilies = new ArrayList(); + for (int k = 0; k < _ctx.lengthValue("DescribeZonesResponse.Zones["+ i +"].AvailableResources["+ j +"].InstanceTypeFamilies.Length"); k++) { + instanceTypeFamilies.add(_ctx.stringValue("DescribeZonesResponse.Zones["+ i +"].AvailableResources["+ j +"].InstanceTypeFamilies["+ k +"]")); + } + resourcesInfo.setInstanceTypeFamilies(instanceTypeFamilies); + + List networkTypes = new ArrayList(); + for (int k = 0; k < _ctx.lengthValue("DescribeZonesResponse.Zones["+ i +"].AvailableResources["+ j +"].NetworkTypes.Length"); k++) { + networkTypes.add(_ctx.stringValue("DescribeZonesResponse.Zones["+ i +"].AvailableResources["+ j +"].NetworkTypes["+ k +"]")); + } + resourcesInfo.setNetworkTypes(networkTypes); + + availableResources.add(resourcesInfo); + } + zone.setAvailableResources(availableResources); + + zones.add(zone); + } + describeZonesResponse.setZones(zones); + + return describeZonesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DetachClassicLinkVpcResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DetachClassicLinkVpcResponseUnmarshaller.java new file mode 100644 index 0000000000..d887c6a55a --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DetachClassicLinkVpcResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DetachClassicLinkVpcResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DetachClassicLinkVpcResponseUnmarshaller { + + public static DetachClassicLinkVpcResponse unmarshall(DetachClassicLinkVpcResponse detachClassicLinkVpcResponse, UnmarshallerContext _ctx) { + + detachClassicLinkVpcResponse.setRequestId(_ctx.stringValue("DetachClassicLinkVpcResponse.RequestId")); + + return detachClassicLinkVpcResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DetachDiskResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DetachDiskResponseUnmarshaller.java new file mode 100644 index 0000000000..c953e59366 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DetachDiskResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DetachDiskResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DetachDiskResponseUnmarshaller { + + public static DetachDiskResponse unmarshall(DetachDiskResponse detachDiskResponse, UnmarshallerContext _ctx) { + + detachDiskResponse.setRequestId(_ctx.stringValue("DetachDiskResponse.RequestId")); + + return detachDiskResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DetachInstanceRamRoleResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DetachInstanceRamRoleResponseUnmarshaller.java new file mode 100644 index 0000000000..0159ec3ca4 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DetachInstanceRamRoleResponseUnmarshaller.java @@ -0,0 +1,59 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DetachInstanceRamRoleResponse; +import com.aliyuncs.ecs.model.v20140526.DetachInstanceRamRoleResponse.DetachInstanceRamRoleResult; +import com.aliyuncs.ecs.model.v20140526.DetachInstanceRamRoleResponse.DetachInstanceRamRoleResult.InstanceRamRoleSet; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DetachInstanceRamRoleResponseUnmarshaller { + + public static DetachInstanceRamRoleResponse unmarshall(DetachInstanceRamRoleResponse detachInstanceRamRoleResponse, UnmarshallerContext _ctx) { + + detachInstanceRamRoleResponse.setRequestId(_ctx.stringValue("DetachInstanceRamRoleResponse.RequestId")); + detachInstanceRamRoleResponse.setRamRoleName(_ctx.stringValue("DetachInstanceRamRoleResponse.RamRoleName")); + detachInstanceRamRoleResponse.setTotalCount(_ctx.integerValue("DetachInstanceRamRoleResponse.TotalCount")); + detachInstanceRamRoleResponse.setFailCount(_ctx.integerValue("DetachInstanceRamRoleResponse.FailCount")); + + List detachInstanceRamRoleResults = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DetachInstanceRamRoleResponse.DetachInstanceRamRoleResults.Length"); i++) { + DetachInstanceRamRoleResult detachInstanceRamRoleResult = new DetachInstanceRamRoleResult(); + detachInstanceRamRoleResult.setCode(_ctx.stringValue("DetachInstanceRamRoleResponse.DetachInstanceRamRoleResults["+ i +"].Code")); + detachInstanceRamRoleResult.setMessage(_ctx.stringValue("DetachInstanceRamRoleResponse.DetachInstanceRamRoleResults["+ i +"].Message")); + detachInstanceRamRoleResult.setInstanceId(_ctx.stringValue("DetachInstanceRamRoleResponse.DetachInstanceRamRoleResults["+ i +"].InstanceId")); + detachInstanceRamRoleResult.setSuccess(_ctx.booleanValue("DetachInstanceRamRoleResponse.DetachInstanceRamRoleResults["+ i +"].Success")); + + List instanceRamRoleSets = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DetachInstanceRamRoleResponse.DetachInstanceRamRoleResults["+ i +"].InstanceRamRoleSets.Length"); j++) { + InstanceRamRoleSet instanceRamRoleSet = new InstanceRamRoleSet(); + instanceRamRoleSet.setRamRoleName(_ctx.stringValue("DetachInstanceRamRoleResponse.DetachInstanceRamRoleResults["+ i +"].InstanceRamRoleSets["+ j +"].RamRoleName")); + instanceRamRoleSet.setInstanceId(_ctx.stringValue("DetachInstanceRamRoleResponse.DetachInstanceRamRoleResults["+ i +"].InstanceRamRoleSets["+ j +"].InstanceId")); + + instanceRamRoleSets.add(instanceRamRoleSet); + } + detachInstanceRamRoleResult.setInstanceRamRoleSets(instanceRamRoleSets); + + detachInstanceRamRoleResults.add(detachInstanceRamRoleResult); + } + detachInstanceRamRoleResponse.setDetachInstanceRamRoleResults(detachInstanceRamRoleResults); + + return detachInstanceRamRoleResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DetachKeyPairResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DetachKeyPairResponseUnmarshaller.java new file mode 100644 index 0000000000..f927654e07 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DetachKeyPairResponseUnmarshaller.java @@ -0,0 +1,48 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.DetachKeyPairResponse; +import com.aliyuncs.ecs.model.v20140526.DetachKeyPairResponse.Result; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DetachKeyPairResponseUnmarshaller { + + public static DetachKeyPairResponse unmarshall(DetachKeyPairResponse detachKeyPairResponse, UnmarshallerContext _ctx) { + + detachKeyPairResponse.setRequestId(_ctx.stringValue("DetachKeyPairResponse.RequestId")); + detachKeyPairResponse.setKeyPairName(_ctx.stringValue("DetachKeyPairResponse.KeyPairName")); + detachKeyPairResponse.setTotalCount(_ctx.stringValue("DetachKeyPairResponse.TotalCount")); + detachKeyPairResponse.setFailCount(_ctx.stringValue("DetachKeyPairResponse.FailCount")); + + List results = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DetachKeyPairResponse.Results.Length"); i++) { + Result result = new Result(); + result.setCode(_ctx.stringValue("DetachKeyPairResponse.Results["+ i +"].Code")); + result.setMessage(_ctx.stringValue("DetachKeyPairResponse.Results["+ i +"].Message")); + result.setInstanceId(_ctx.stringValue("DetachKeyPairResponse.Results["+ i +"].InstanceId")); + result.setSuccess(_ctx.stringValue("DetachKeyPairResponse.Results["+ i +"].Success")); + + results.add(result); + } + detachKeyPairResponse.setResults(results); + + return detachKeyPairResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DetachNetworkInterfaceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DetachNetworkInterfaceResponseUnmarshaller.java new file mode 100644 index 0000000000..b3734ba1e6 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DetachNetworkInterfaceResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DetachNetworkInterfaceResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DetachNetworkInterfaceResponseUnmarshaller { + + public static DetachNetworkInterfaceResponse unmarshall(DetachNetworkInterfaceResponse detachNetworkInterfaceResponse, UnmarshallerContext _ctx) { + + detachNetworkInterfaceResponse.setRequestId(_ctx.stringValue("DetachNetworkInterfaceResponse.RequestId")); + + return detachNetworkInterfaceResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DisableActivationResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DisableActivationResponseUnmarshaller.java new file mode 100644 index 0000000000..b788998b6f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DisableActivationResponseUnmarshaller.java @@ -0,0 +1,43 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.DisableActivationResponse; +import com.aliyuncs.ecs.model.v20140526.DisableActivationResponse.Activation; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DisableActivationResponseUnmarshaller { + + public static DisableActivationResponse unmarshall(DisableActivationResponse disableActivationResponse, UnmarshallerContext _ctx) { + + disableActivationResponse.setRequestId(_ctx.stringValue("DisableActivationResponse.RequestId")); + + Activation activation = new Activation(); + activation.setCreationTime(_ctx.stringValue("DisableActivationResponse.Activation.CreationTime")); + activation.setDeregisteredCount(_ctx.integerValue("DisableActivationResponse.Activation.DeregisteredCount")); + activation.setInstanceCount(_ctx.integerValue("DisableActivationResponse.Activation.InstanceCount")); + activation.setDescription(_ctx.stringValue("DisableActivationResponse.Activation.Description")); + activation.setRegisteredCount(_ctx.integerValue("DisableActivationResponse.Activation.RegisteredCount")); + activation.setInstanceName(_ctx.stringValue("DisableActivationResponse.Activation.InstanceName")); + activation.setDisabled(_ctx.booleanValue("DisableActivationResponse.Activation.Disabled")); + activation.setIpAddressRange(_ctx.stringValue("DisableActivationResponse.Activation.IpAddressRange")); + activation.setTimeToLiveInHours(_ctx.longValue("DisableActivationResponse.Activation.TimeToLiveInHours")); + activation.setActivationId(_ctx.stringValue("DisableActivationResponse.Activation.ActivationId")); + disableActivationResponse.setActivation(activation); + + return disableActivationResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/EipFillParamsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/EipFillParamsResponseUnmarshaller.java new file mode 100644 index 0000000000..ce8d08f22b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/EipFillParamsResponseUnmarshaller.java @@ -0,0 +1,33 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.EipFillParamsResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class EipFillParamsResponseUnmarshaller { + + public static EipFillParamsResponse unmarshall(EipFillParamsResponse eipFillParamsResponse, UnmarshallerContext _ctx) { + + eipFillParamsResponse.setCode(_ctx.stringValue("EipFillParamsResponse.code")); + eipFillParamsResponse.setSuccess(_ctx.booleanValue("EipFillParamsResponse.success")); + eipFillParamsResponse.setMessage(_ctx.stringValue("EipFillParamsResponse.message")); + eipFillParamsResponse.setData(_ctx.stringValue("EipFillParamsResponse.data")); + eipFillParamsResponse.setRequestId(_ctx.stringValue("EipFillParamsResponse.requestId")); + + return eipFillParamsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/EipFillProductResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/EipFillProductResponseUnmarshaller.java new file mode 100644 index 0000000000..6940c10733 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/EipFillProductResponseUnmarshaller.java @@ -0,0 +1,33 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.EipFillProductResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class EipFillProductResponseUnmarshaller { + + public static EipFillProductResponse unmarshall(EipFillProductResponse eipFillProductResponse, UnmarshallerContext _ctx) { + + eipFillProductResponse.setCode(_ctx.stringValue("EipFillProductResponse.code")); + eipFillProductResponse.setSuccess(_ctx.booleanValue("EipFillProductResponse.success")); + eipFillProductResponse.setMessage(_ctx.stringValue("EipFillProductResponse.message")); + eipFillProductResponse.setData(_ctx.stringValue("EipFillProductResponse.data")); + eipFillProductResponse.setRequestId(_ctx.stringValue("EipFillProductResponse.requestId")); + + return eipFillProductResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/EipNotifyPaidResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/EipNotifyPaidResponseUnmarshaller.java new file mode 100644 index 0000000000..b80a288c5a --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/EipNotifyPaidResponseUnmarshaller.java @@ -0,0 +1,33 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.EipNotifyPaidResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class EipNotifyPaidResponseUnmarshaller { + + public static EipNotifyPaidResponse unmarshall(EipNotifyPaidResponse eipNotifyPaidResponse, UnmarshallerContext _ctx) { + + eipNotifyPaidResponse.setCode(_ctx.stringValue("EipNotifyPaidResponse.code")); + eipNotifyPaidResponse.setSuccess(_ctx.booleanValue("EipNotifyPaidResponse.success")); + eipNotifyPaidResponse.setMessage(_ctx.stringValue("EipNotifyPaidResponse.message")); + eipNotifyPaidResponse.setData(_ctx.stringValue("EipNotifyPaidResponse.data")); + eipNotifyPaidResponse.setRequestId(_ctx.stringValue("EipNotifyPaidResponse.requestId")); + + return eipNotifyPaidResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/EnablePhysicalConnectionResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/EnablePhysicalConnectionResponseUnmarshaller.java new file mode 100644 index 0000000000..f7fc733743 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/EnablePhysicalConnectionResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.EnablePhysicalConnectionResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class EnablePhysicalConnectionResponseUnmarshaller { + + public static EnablePhysicalConnectionResponse unmarshall(EnablePhysicalConnectionResponse enablePhysicalConnectionResponse, UnmarshallerContext _ctx) { + + enablePhysicalConnectionResponse.setRequestId(_ctx.stringValue("EnablePhysicalConnectionResponse.RequestId")); + + return enablePhysicalConnectionResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ExportImageResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ExportImageResponseUnmarshaller.java new file mode 100644 index 0000000000..837613f7fa --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ExportImageResponseUnmarshaller.java @@ -0,0 +1,31 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ExportImageResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ExportImageResponseUnmarshaller { + + public static ExportImageResponse unmarshall(ExportImageResponse exportImageResponse, UnmarshallerContext _ctx) { + + exportImageResponse.setRequestId(_ctx.stringValue("ExportImageResponse.RequestId")); + exportImageResponse.setTaskId(_ctx.stringValue("ExportImageResponse.TaskId")); + exportImageResponse.setRegionId(_ctx.stringValue("ExportImageResponse.RegionId")); + + return exportImageResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ExportSnapshotResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ExportSnapshotResponseUnmarshaller.java new file mode 100644 index 0000000000..8fe1695490 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ExportSnapshotResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ExportSnapshotResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ExportSnapshotResponseUnmarshaller { + + public static ExportSnapshotResponse unmarshall(ExportSnapshotResponse exportSnapshotResponse, UnmarshallerContext _ctx) { + + exportSnapshotResponse.setRequestId(_ctx.stringValue("ExportSnapshotResponse.RequestId")); + exportSnapshotResponse.setTaskId(_ctx.stringValue("ExportSnapshotResponse.TaskId")); + + return exportSnapshotResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/GetInstanceConsoleOutputResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/GetInstanceConsoleOutputResponseUnmarshaller.java new file mode 100644 index 0000000000..a174db9ce5 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/GetInstanceConsoleOutputResponseUnmarshaller.java @@ -0,0 +1,32 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.GetInstanceConsoleOutputResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class GetInstanceConsoleOutputResponseUnmarshaller { + + public static GetInstanceConsoleOutputResponse unmarshall(GetInstanceConsoleOutputResponse getInstanceConsoleOutputResponse, UnmarshallerContext _ctx) { + + getInstanceConsoleOutputResponse.setRequestId(_ctx.stringValue("GetInstanceConsoleOutputResponse.RequestId")); + getInstanceConsoleOutputResponse.setLastUpdateTime(_ctx.stringValue("GetInstanceConsoleOutputResponse.LastUpdateTime")); + getInstanceConsoleOutputResponse.setInstanceId(_ctx.stringValue("GetInstanceConsoleOutputResponse.InstanceId")); + getInstanceConsoleOutputResponse.setConsoleOutput(_ctx.stringValue("GetInstanceConsoleOutputResponse.ConsoleOutput")); + + return getInstanceConsoleOutputResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/GetInstanceScreenshotResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/GetInstanceScreenshotResponseUnmarshaller.java new file mode 100644 index 0000000000..470365f590 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/GetInstanceScreenshotResponseUnmarshaller.java @@ -0,0 +1,31 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.GetInstanceScreenshotResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class GetInstanceScreenshotResponseUnmarshaller { + + public static GetInstanceScreenshotResponse unmarshall(GetInstanceScreenshotResponse getInstanceScreenshotResponse, UnmarshallerContext _ctx) { + + getInstanceScreenshotResponse.setRequestId(_ctx.stringValue("GetInstanceScreenshotResponse.RequestId")); + getInstanceScreenshotResponse.setInstanceId(_ctx.stringValue("GetInstanceScreenshotResponse.InstanceId")); + getInstanceScreenshotResponse.setScreenshot(_ctx.stringValue("GetInstanceScreenshotResponse.Screenshot")); + + return getInstanceScreenshotResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ImportImageResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ImportImageResponseUnmarshaller.java new file mode 100644 index 0000000000..dff609efdf --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ImportImageResponseUnmarshaller.java @@ -0,0 +1,32 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ImportImageResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ImportImageResponseUnmarshaller { + + public static ImportImageResponse unmarshall(ImportImageResponse importImageResponse, UnmarshallerContext _ctx) { + + importImageResponse.setRequestId(_ctx.stringValue("ImportImageResponse.RequestId")); + importImageResponse.setImageId(_ctx.stringValue("ImportImageResponse.ImageId")); + importImageResponse.setTaskId(_ctx.stringValue("ImportImageResponse.TaskId")); + importImageResponse.setRegionId(_ctx.stringValue("ImportImageResponse.RegionId")); + + return importImageResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ImportKeyPairResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ImportKeyPairResponseUnmarshaller.java new file mode 100644 index 0000000000..cc45a65a31 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ImportKeyPairResponseUnmarshaller.java @@ -0,0 +1,31 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ImportKeyPairResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ImportKeyPairResponseUnmarshaller { + + public static ImportKeyPairResponse unmarshall(ImportKeyPairResponse importKeyPairResponse, UnmarshallerContext _ctx) { + + importKeyPairResponse.setRequestId(_ctx.stringValue("ImportKeyPairResponse.RequestId")); + importKeyPairResponse.setKeyPairName(_ctx.stringValue("ImportKeyPairResponse.KeyPairName")); + importKeyPairResponse.setKeyPairFingerPrint(_ctx.stringValue("ImportKeyPairResponse.KeyPairFingerPrint")); + + return importKeyPairResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ImportSnapshotResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ImportSnapshotResponseUnmarshaller.java new file mode 100644 index 0000000000..6d9431c20b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ImportSnapshotResponseUnmarshaller.java @@ -0,0 +1,31 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ImportSnapshotResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ImportSnapshotResponseUnmarshaller { + + public static ImportSnapshotResponse unmarshall(ImportSnapshotResponse importSnapshotResponse, UnmarshallerContext _ctx) { + + importSnapshotResponse.setRequestId(_ctx.stringValue("ImportSnapshotResponse.RequestId")); + importSnapshotResponse.setTaskId(_ctx.stringValue("ImportSnapshotResponse.TaskId")); + importSnapshotResponse.setSnapshotId(_ctx.stringValue("ImportSnapshotResponse.SnapshotId")); + + return importSnapshotResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/InstallCloudAssistantResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/InstallCloudAssistantResponseUnmarshaller.java new file mode 100644 index 0000000000..efc2121c54 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/InstallCloudAssistantResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.InstallCloudAssistantResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class InstallCloudAssistantResponseUnmarshaller { + + public static InstallCloudAssistantResponse unmarshall(InstallCloudAssistantResponse installCloudAssistantResponse, UnmarshallerContext _ctx) { + + installCloudAssistantResponse.setRequestId(_ctx.stringValue("InstallCloudAssistantResponse.RequestId")); + + return installCloudAssistantResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/InvokeCommandResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/InvokeCommandResponseUnmarshaller.java new file mode 100644 index 0000000000..f5993c5555 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/InvokeCommandResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.InvokeCommandResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class InvokeCommandResponseUnmarshaller { + + public static InvokeCommandResponse unmarshall(InvokeCommandResponse invokeCommandResponse, UnmarshallerContext _ctx) { + + invokeCommandResponse.setRequestId(_ctx.stringValue("InvokeCommandResponse.RequestId")); + invokeCommandResponse.setInvokeId(_ctx.stringValue("InvokeCommandResponse.InvokeId")); + + return invokeCommandResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/JoinResourceGroupResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/JoinResourceGroupResponseUnmarshaller.java new file mode 100644 index 0000000000..9b75187c2c --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/JoinResourceGroupResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.JoinResourceGroupResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class JoinResourceGroupResponseUnmarshaller { + + public static JoinResourceGroupResponse unmarshall(JoinResourceGroupResponse joinResourceGroupResponse, UnmarshallerContext _ctx) { + + joinResourceGroupResponse.setRequestId(_ctx.stringValue("JoinResourceGroupResponse.RequestId")); + + return joinResourceGroupResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/JoinSecurityGroupResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/JoinSecurityGroupResponseUnmarshaller.java new file mode 100644 index 0000000000..3386428cf1 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/JoinSecurityGroupResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.JoinSecurityGroupResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class JoinSecurityGroupResponseUnmarshaller { + + public static JoinSecurityGroupResponse unmarshall(JoinSecurityGroupResponse joinSecurityGroupResponse, UnmarshallerContext _ctx) { + + joinSecurityGroupResponse.setRequestId(_ctx.stringValue("JoinSecurityGroupResponse.RequestId")); + + return joinSecurityGroupResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/LeaveSecurityGroupResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/LeaveSecurityGroupResponseUnmarshaller.java new file mode 100644 index 0000000000..201bd461e3 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/LeaveSecurityGroupResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.LeaveSecurityGroupResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class LeaveSecurityGroupResponseUnmarshaller { + + public static LeaveSecurityGroupResponse unmarshall(LeaveSecurityGroupResponse leaveSecurityGroupResponse, UnmarshallerContext _ctx) { + + leaveSecurityGroupResponse.setRequestId(_ctx.stringValue("LeaveSecurityGroupResponse.RequestId")); + + return leaveSecurityGroupResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ListPluginStatusResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ListPluginStatusResponseUnmarshaller.java new file mode 100644 index 0000000000..cae0bc972f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ListPluginStatusResponseUnmarshaller.java @@ -0,0 +1,59 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.ListPluginStatusResponse; +import com.aliyuncs.ecs.model.v20140526.ListPluginStatusResponse.InstancePluginStatus; +import com.aliyuncs.ecs.model.v20140526.ListPluginStatusResponse.InstancePluginStatus.PluginStatus; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ListPluginStatusResponseUnmarshaller { + + public static ListPluginStatusResponse unmarshall(ListPluginStatusResponse listPluginStatusResponse, UnmarshallerContext _ctx) { + + listPluginStatusResponse.setRequestId(_ctx.stringValue("ListPluginStatusResponse.RequestId")); + listPluginStatusResponse.setPageSize(_ctx.longValue("ListPluginStatusResponse.PageSize")); + listPluginStatusResponse.setPageNumber(_ctx.longValue("ListPluginStatusResponse.PageNumber")); + listPluginStatusResponse.setTotalCount(_ctx.longValue("ListPluginStatusResponse.TotalCount")); + + List instancePluginStatusSet = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("ListPluginStatusResponse.InstancePluginStatusSet.Length"); i++) { + InstancePluginStatus instancePluginStatus = new InstancePluginStatus(); + instancePluginStatus.setInstanceId(_ctx.stringValue("ListPluginStatusResponse.InstancePluginStatusSet["+ i +"].InstanceId")); + + List pluginStatusSet = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("ListPluginStatusResponse.InstancePluginStatusSet["+ i +"].PluginStatusSet.Length"); j++) { + PluginStatus pluginStatus = new PluginStatus(); + pluginStatus.setPluginVersion(_ctx.stringValue("ListPluginStatusResponse.InstancePluginStatusSet["+ i +"].PluginStatusSet["+ j +"].PluginVersion")); + pluginStatus.setPluginName(_ctx.stringValue("ListPluginStatusResponse.InstancePluginStatusSet["+ i +"].PluginStatusSet["+ j +"].PluginName")); + pluginStatus.setFirstHeartbeatTime(_ctx.stringValue("ListPluginStatusResponse.InstancePluginStatusSet["+ i +"].PluginStatusSet["+ j +"].FirstHeartbeatTime")); + pluginStatus.setLastHeartbeatTime(_ctx.stringValue("ListPluginStatusResponse.InstancePluginStatusSet["+ i +"].PluginStatusSet["+ j +"].LastHeartbeatTime")); + pluginStatus.setPluginStatus(_ctx.stringValue("ListPluginStatusResponse.InstancePluginStatusSet["+ i +"].PluginStatusSet["+ j +"].PluginStatus")); + + pluginStatusSet.add(pluginStatus); + } + instancePluginStatus.setPluginStatusSet(pluginStatusSet); + + instancePluginStatusSet.add(instancePluginStatus); + } + listPluginStatusResponse.setInstancePluginStatusSet(instancePluginStatusSet); + + return listPluginStatusResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ListTagResourcesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ListTagResourcesResponseUnmarshaller.java new file mode 100644 index 0000000000..b5d7c0f16c --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ListTagResourcesResponseUnmarshaller.java @@ -0,0 +1,46 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.ListTagResourcesResponse; +import com.aliyuncs.ecs.model.v20140526.ListTagResourcesResponse.TagResource; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ListTagResourcesResponseUnmarshaller { + + public static ListTagResourcesResponse unmarshall(ListTagResourcesResponse listTagResourcesResponse, UnmarshallerContext _ctx) { + + listTagResourcesResponse.setRequestId(_ctx.stringValue("ListTagResourcesResponse.RequestId")); + listTagResourcesResponse.setNextToken(_ctx.stringValue("ListTagResourcesResponse.NextToken")); + + List tagResources = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("ListTagResourcesResponse.TagResources.Length"); i++) { + TagResource tagResource = new TagResource(); + tagResource.setTagValue(_ctx.stringValue("ListTagResourcesResponse.TagResources["+ i +"].TagValue")); + tagResource.setResourceType(_ctx.stringValue("ListTagResourcesResponse.TagResources["+ i +"].ResourceType")); + tagResource.setResourceId(_ctx.stringValue("ListTagResourcesResponse.TagResources["+ i +"].ResourceId")); + tagResource.setTagKey(_ctx.stringValue("ListTagResourcesResponse.TagResources["+ i +"].TagKey")); + + tagResources.add(tagResource); + } + listTagResourcesResponse.setTagResources(tagResources); + + return listTagResourcesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyAutoProvisioningGroupResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyAutoProvisioningGroupResponseUnmarshaller.java new file mode 100644 index 0000000000..af75b7910d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyAutoProvisioningGroupResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyAutoProvisioningGroupResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyAutoProvisioningGroupResponseUnmarshaller { + + public static ModifyAutoProvisioningGroupResponse unmarshall(ModifyAutoProvisioningGroupResponse modifyAutoProvisioningGroupResponse, UnmarshallerContext _ctx) { + + modifyAutoProvisioningGroupResponse.setRequestId(_ctx.stringValue("ModifyAutoProvisioningGroupResponse.RequestId")); + + return modifyAutoProvisioningGroupResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyAutoSnapshotPolicyExResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyAutoSnapshotPolicyExResponseUnmarshaller.java new file mode 100644 index 0000000000..dbe4750619 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyAutoSnapshotPolicyExResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyAutoSnapshotPolicyExResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyAutoSnapshotPolicyExResponseUnmarshaller { + + public static ModifyAutoSnapshotPolicyExResponse unmarshall(ModifyAutoSnapshotPolicyExResponse modifyAutoSnapshotPolicyExResponse, UnmarshallerContext _ctx) { + + modifyAutoSnapshotPolicyExResponse.setRequestId(_ctx.stringValue("ModifyAutoSnapshotPolicyExResponse.RequestId")); + + return modifyAutoSnapshotPolicyExResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyAutoSnapshotPolicyResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyAutoSnapshotPolicyResponseUnmarshaller.java new file mode 100644 index 0000000000..20f379c306 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyAutoSnapshotPolicyResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyAutoSnapshotPolicyResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyAutoSnapshotPolicyResponseUnmarshaller { + + public static ModifyAutoSnapshotPolicyResponse unmarshall(ModifyAutoSnapshotPolicyResponse modifyAutoSnapshotPolicyResponse, UnmarshallerContext _ctx) { + + modifyAutoSnapshotPolicyResponse.setRequestId(_ctx.stringValue("ModifyAutoSnapshotPolicyResponse.RequestId")); + + return modifyAutoSnapshotPolicyResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyBandwidthPackageSpecResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyBandwidthPackageSpecResponseUnmarshaller.java new file mode 100644 index 0000000000..9c2a1df8c5 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyBandwidthPackageSpecResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyBandwidthPackageSpecResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyBandwidthPackageSpecResponseUnmarshaller { + + public static ModifyBandwidthPackageSpecResponse unmarshall(ModifyBandwidthPackageSpecResponse modifyBandwidthPackageSpecResponse, UnmarshallerContext _ctx) { + + modifyBandwidthPackageSpecResponse.setRequestId(_ctx.stringValue("ModifyBandwidthPackageSpecResponse.RequestId")); + + return modifyBandwidthPackageSpecResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyCapacityReservationResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyCapacityReservationResponseUnmarshaller.java similarity index 89% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyCapacityReservationResponseUnmarshaller.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyCapacityReservationResponseUnmarshaller.java index f4e63312c2..de2a8f1e99 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyCapacityReservationResponseUnmarshaller.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyCapacityReservationResponseUnmarshaller.java @@ -12,9 +12,9 @@ * limitations under the License. */ -package com.aliyuncs.ecs.transform.v20160314; +package com.aliyuncs.ecs.transform.v20140526; -import com.aliyuncs.ecs.model.v20160314.ModifyCapacityReservationResponse; +import com.aliyuncs.ecs.model.v20140526.ModifyCapacityReservationResponse; import com.aliyuncs.transform.UnmarshallerContext; diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyCommandResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyCommandResponseUnmarshaller.java new file mode 100644 index 0000000000..5b9b5a3edf --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyCommandResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyCommandResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyCommandResponseUnmarshaller { + + public static ModifyCommandResponse unmarshall(ModifyCommandResponse modifyCommandResponse, UnmarshallerContext _ctx) { + + modifyCommandResponse.setRequestId(_ctx.stringValue("ModifyCommandResponse.RequestId")); + + return modifyCommandResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyDedicatedHostAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDedicatedHostAttributeResponseUnmarshaller.java similarity index 90% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyDedicatedHostAttributeResponseUnmarshaller.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDedicatedHostAttributeResponseUnmarshaller.java index 539f9aa69a..8e924366cf 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyDedicatedHostAttributeResponseUnmarshaller.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDedicatedHostAttributeResponseUnmarshaller.java @@ -12,9 +12,9 @@ * limitations under the License. */ -package com.aliyuncs.ecs.transform.v20160314; +package com.aliyuncs.ecs.transform.v20140526; -import com.aliyuncs.ecs.model.v20160314.ModifyDedicatedHostAttributeResponse; +import com.aliyuncs.ecs.model.v20140526.ModifyDedicatedHostAttributeResponse; import com.aliyuncs.transform.UnmarshallerContext; diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyDedicatedHostAutoReleaseTimeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDedicatedHostAutoReleaseTimeResponseUnmarshaller.java similarity index 90% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyDedicatedHostAutoReleaseTimeResponseUnmarshaller.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDedicatedHostAutoReleaseTimeResponseUnmarshaller.java index f03efa3a30..0b5fcd3ae3 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyDedicatedHostAutoReleaseTimeResponseUnmarshaller.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDedicatedHostAutoReleaseTimeResponseUnmarshaller.java @@ -12,9 +12,9 @@ * limitations under the License. */ -package com.aliyuncs.ecs.transform.v20160314; +package com.aliyuncs.ecs.transform.v20140526; -import com.aliyuncs.ecs.model.v20160314.ModifyDedicatedHostAutoReleaseTimeResponse; +import com.aliyuncs.ecs.model.v20140526.ModifyDedicatedHostAutoReleaseTimeResponse; import com.aliyuncs.transform.UnmarshallerContext; diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyDedicatedHostAutoRenewAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDedicatedHostAutoRenewAttributeResponseUnmarshaller.java similarity index 90% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyDedicatedHostAutoRenewAttributeResponseUnmarshaller.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDedicatedHostAutoRenewAttributeResponseUnmarshaller.java index 25a773fce9..a7ded4bc37 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyDedicatedHostAutoRenewAttributeResponseUnmarshaller.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDedicatedHostAutoRenewAttributeResponseUnmarshaller.java @@ -12,9 +12,9 @@ * limitations under the License. */ -package com.aliyuncs.ecs.transform.v20160314; +package com.aliyuncs.ecs.transform.v20140526; -import com.aliyuncs.ecs.model.v20160314.ModifyDedicatedHostAutoRenewAttributeResponse; +import com.aliyuncs.ecs.model.v20140526.ModifyDedicatedHostAutoRenewAttributeResponse; import com.aliyuncs.transform.UnmarshallerContext; diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyDedicatedHostClusterAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDedicatedHostClusterAttributeResponseUnmarshaller.java similarity index 90% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyDedicatedHostClusterAttributeResponseUnmarshaller.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDedicatedHostClusterAttributeResponseUnmarshaller.java index 39bf609053..db582fcd5a 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyDedicatedHostClusterAttributeResponseUnmarshaller.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDedicatedHostClusterAttributeResponseUnmarshaller.java @@ -12,9 +12,9 @@ * limitations under the License. */ -package com.aliyuncs.ecs.transform.v20160314; +package com.aliyuncs.ecs.transform.v20140526; -import com.aliyuncs.ecs.model.v20160314.ModifyDedicatedHostClusterAttributeResponse; +import com.aliyuncs.ecs.model.v20140526.ModifyDedicatedHostClusterAttributeResponse; import com.aliyuncs.transform.UnmarshallerContext; diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDedicatedHostsChargeTypeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDedicatedHostsChargeTypeResponseUnmarshaller.java new file mode 100644 index 0000000000..d32ac595e0 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDedicatedHostsChargeTypeResponseUnmarshaller.java @@ -0,0 +1,45 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.ModifyDedicatedHostsChargeTypeResponse; +import com.aliyuncs.ecs.model.v20140526.ModifyDedicatedHostsChargeTypeResponse.FeeOfInstance; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyDedicatedHostsChargeTypeResponseUnmarshaller { + + public static ModifyDedicatedHostsChargeTypeResponse unmarshall(ModifyDedicatedHostsChargeTypeResponse modifyDedicatedHostsChargeTypeResponse, UnmarshallerContext _ctx) { + + modifyDedicatedHostsChargeTypeResponse.setRequestId(_ctx.stringValue("ModifyDedicatedHostsChargeTypeResponse.RequestId")); + modifyDedicatedHostsChargeTypeResponse.setOrderId(_ctx.stringValue("ModifyDedicatedHostsChargeTypeResponse.OrderId")); + + List feeOfInstances = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("ModifyDedicatedHostsChargeTypeResponse.FeeOfInstances.Length"); i++) { + FeeOfInstance feeOfInstance = new FeeOfInstance(); + feeOfInstance.setInstanceId(_ctx.stringValue("ModifyDedicatedHostsChargeTypeResponse.FeeOfInstances["+ i +"].InstanceId")); + feeOfInstance.setCurrency(_ctx.stringValue("ModifyDedicatedHostsChargeTypeResponse.FeeOfInstances["+ i +"].Currency")); + feeOfInstance.setFee(_ctx.stringValue("ModifyDedicatedHostsChargeTypeResponse.FeeOfInstances["+ i +"].Fee")); + + feeOfInstances.add(feeOfInstance); + } + modifyDedicatedHostsChargeTypeResponse.setFeeOfInstances(feeOfInstances); + + return modifyDedicatedHostsChargeTypeResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDemandResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDemandResponseUnmarshaller.java new file mode 100644 index 0000000000..55b1a2d96e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDemandResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyDemandResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyDemandResponseUnmarshaller { + + public static ModifyDemandResponse unmarshall(ModifyDemandResponse modifyDemandResponse, UnmarshallerContext _ctx) { + + modifyDemandResponse.setRequestId(_ctx.stringValue("ModifyDemandResponse.RequestId")); + + return modifyDemandResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDeploymentSetAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDeploymentSetAttributeResponseUnmarshaller.java new file mode 100644 index 0000000000..ee41eb8d8f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDeploymentSetAttributeResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyDeploymentSetAttributeResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyDeploymentSetAttributeResponseUnmarshaller { + + public static ModifyDeploymentSetAttributeResponse unmarshall(ModifyDeploymentSetAttributeResponse modifyDeploymentSetAttributeResponse, UnmarshallerContext _ctx) { + + modifyDeploymentSetAttributeResponse.setRequestId(_ctx.stringValue("ModifyDeploymentSetAttributeResponse.RequestId")); + + return modifyDeploymentSetAttributeResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDiagnosticMetricSetResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDiagnosticMetricSetResponseUnmarshaller.java new file mode 100644 index 0000000000..a4ede3d458 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDiagnosticMetricSetResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyDiagnosticMetricSetResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyDiagnosticMetricSetResponseUnmarshaller { + + public static ModifyDiagnosticMetricSetResponse unmarshall(ModifyDiagnosticMetricSetResponse modifyDiagnosticMetricSetResponse, UnmarshallerContext _ctx) { + + modifyDiagnosticMetricSetResponse.setRequestId(_ctx.stringValue("ModifyDiagnosticMetricSetResponse.RequestId")); + + return modifyDiagnosticMetricSetResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDiskAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDiskAttributeResponseUnmarshaller.java new file mode 100644 index 0000000000..eace472e25 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDiskAttributeResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyDiskAttributeResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyDiskAttributeResponseUnmarshaller { + + public static ModifyDiskAttributeResponse unmarshall(ModifyDiskAttributeResponse modifyDiskAttributeResponse, UnmarshallerContext _ctx) { + + modifyDiskAttributeResponse.setRequestId(_ctx.stringValue("ModifyDiskAttributeResponse.RequestId")); + + return modifyDiskAttributeResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDiskChargeTypeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDiskChargeTypeResponseUnmarshaller.java new file mode 100644 index 0000000000..2c5017b661 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDiskChargeTypeResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyDiskChargeTypeResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyDiskChargeTypeResponseUnmarshaller { + + public static ModifyDiskChargeTypeResponse unmarshall(ModifyDiskChargeTypeResponse modifyDiskChargeTypeResponse, UnmarshallerContext _ctx) { + + modifyDiskChargeTypeResponse.setRequestId(_ctx.stringValue("ModifyDiskChargeTypeResponse.RequestId")); + modifyDiskChargeTypeResponse.setOrderId(_ctx.stringValue("ModifyDiskChargeTypeResponse.OrderId")); + + return modifyDiskChargeTypeResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDiskDeploymentResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDiskDeploymentResponseUnmarshaller.java new file mode 100644 index 0000000000..ccd24a1529 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDiskDeploymentResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyDiskDeploymentResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyDiskDeploymentResponseUnmarshaller { + + public static ModifyDiskDeploymentResponse unmarshall(ModifyDiskDeploymentResponse modifyDiskDeploymentResponse, UnmarshallerContext _ctx) { + + modifyDiskDeploymentResponse.setRequestId(_ctx.stringValue("ModifyDiskDeploymentResponse.RequestId")); + modifyDiskDeploymentResponse.setTaskId(_ctx.stringValue("ModifyDiskDeploymentResponse.TaskId")); + + return modifyDiskDeploymentResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyDiskSpecResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDiskSpecResponseUnmarshaller.java similarity index 83% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyDiskSpecResponseUnmarshaller.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDiskSpecResponseUnmarshaller.java index e3dd755f76..ada1199eec 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyDiskSpecResponseUnmarshaller.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyDiskSpecResponseUnmarshaller.java @@ -12,9 +12,9 @@ * limitations under the License. */ -package com.aliyuncs.ecs.transform.v20160314; +package com.aliyuncs.ecs.transform.v20140526; -import com.aliyuncs.ecs.model.v20160314.ModifyDiskSpecResponse; +import com.aliyuncs.ecs.model.v20140526.ModifyDiskSpecResponse; import com.aliyuncs.transform.UnmarshallerContext; @@ -23,6 +23,7 @@ public class ModifyDiskSpecResponseUnmarshaller { public static ModifyDiskSpecResponse unmarshall(ModifyDiskSpecResponse modifyDiskSpecResponse, UnmarshallerContext _ctx) { modifyDiskSpecResponse.setRequestId(_ctx.stringValue("ModifyDiskSpecResponse.RequestId")); + modifyDiskSpecResponse.setTaskId(_ctx.stringValue("ModifyDiskSpecResponse.TaskId")); modifyDiskSpecResponse.setOrderId(_ctx.stringValue("ModifyDiskSpecResponse.OrderId")); return modifyDiskSpecResponse; diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyEipAddressAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyEipAddressAttributeResponseUnmarshaller.java new file mode 100644 index 0000000000..0801b77200 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyEipAddressAttributeResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyEipAddressAttributeResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyEipAddressAttributeResponseUnmarshaller { + + public static ModifyEipAddressAttributeResponse unmarshall(ModifyEipAddressAttributeResponse modifyEipAddressAttributeResponse, UnmarshallerContext _ctx) { + + modifyEipAddressAttributeResponse.setRequestId(_ctx.stringValue("ModifyEipAddressAttributeResponse.RequestId")); + + return modifyEipAddressAttributeResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyElasticityAssuranceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyElasticityAssuranceResponseUnmarshaller.java new file mode 100644 index 0000000000..b1ff9f6167 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyElasticityAssuranceResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyElasticityAssuranceResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyElasticityAssuranceResponseUnmarshaller { + + public static ModifyElasticityAssuranceResponse unmarshall(ModifyElasticityAssuranceResponse modifyElasticityAssuranceResponse, UnmarshallerContext _ctx) { + + modifyElasticityAssuranceResponse.setRequestId(_ctx.stringValue("ModifyElasticityAssuranceResponse.RequestId")); + + return modifyElasticityAssuranceResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyForwardEntryResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyForwardEntryResponseUnmarshaller.java new file mode 100644 index 0000000000..5d981839b5 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyForwardEntryResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyForwardEntryResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyForwardEntryResponseUnmarshaller { + + public static ModifyForwardEntryResponse unmarshall(ModifyForwardEntryResponse modifyForwardEntryResponse, UnmarshallerContext _ctx) { + + modifyForwardEntryResponse.setRequestId(_ctx.stringValue("ModifyForwardEntryResponse.RequestId")); + + return modifyForwardEntryResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyHaVipAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyHaVipAttributeResponseUnmarshaller.java new file mode 100644 index 0000000000..4134c49eb4 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyHaVipAttributeResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyHaVipAttributeResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyHaVipAttributeResponseUnmarshaller { + + public static ModifyHaVipAttributeResponse unmarshall(ModifyHaVipAttributeResponse modifyHaVipAttributeResponse, UnmarshallerContext _ctx) { + + modifyHaVipAttributeResponse.setRequestId(_ctx.stringValue("ModifyHaVipAttributeResponse.RequestId")); + + return modifyHaVipAttributeResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyHpcClusterAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyHpcClusterAttributeResponseUnmarshaller.java new file mode 100644 index 0000000000..fc35282f14 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyHpcClusterAttributeResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyHpcClusterAttributeResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyHpcClusterAttributeResponseUnmarshaller { + + public static ModifyHpcClusterAttributeResponse unmarshall(ModifyHpcClusterAttributeResponse modifyHpcClusterAttributeResponse, UnmarshallerContext _ctx) { + + modifyHpcClusterAttributeResponse.setRequestId(_ctx.stringValue("ModifyHpcClusterAttributeResponse.RequestId")); + + return modifyHpcClusterAttributeResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyImageAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyImageAttributeResponseUnmarshaller.java new file mode 100644 index 0000000000..77da34911c --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyImageAttributeResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyImageAttributeResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyImageAttributeResponseUnmarshaller { + + public static ModifyImageAttributeResponse unmarshall(ModifyImageAttributeResponse modifyImageAttributeResponse, UnmarshallerContext _ctx) { + + modifyImageAttributeResponse.setRequestId(_ctx.stringValue("ModifyImageAttributeResponse.RequestId")); + + return modifyImageAttributeResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyImageShareGroupPermissionResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyImageShareGroupPermissionResponseUnmarshaller.java new file mode 100644 index 0000000000..05fe4947d7 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyImageShareGroupPermissionResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyImageShareGroupPermissionResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyImageShareGroupPermissionResponseUnmarshaller { + + public static ModifyImageShareGroupPermissionResponse unmarshall(ModifyImageShareGroupPermissionResponse modifyImageShareGroupPermissionResponse, UnmarshallerContext _ctx) { + + modifyImageShareGroupPermissionResponse.setRequestId(_ctx.stringValue("ModifyImageShareGroupPermissionResponse.RequestId")); + + return modifyImageShareGroupPermissionResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyImageSharePermissionResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyImageSharePermissionResponseUnmarshaller.java new file mode 100644 index 0000000000..6f128feba7 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyImageSharePermissionResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyImageSharePermissionResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyImageSharePermissionResponseUnmarshaller { + + public static ModifyImageSharePermissionResponse unmarshall(ModifyImageSharePermissionResponse modifyImageSharePermissionResponse, UnmarshallerContext _ctx) { + + modifyImageSharePermissionResponse.setRequestId(_ctx.stringValue("ModifyImageSharePermissionResponse.RequestId")); + + return modifyImageSharePermissionResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceAttachmentAttributesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceAttachmentAttributesResponseUnmarshaller.java new file mode 100644 index 0000000000..d285cee7e3 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceAttachmentAttributesResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyInstanceAttachmentAttributesResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyInstanceAttachmentAttributesResponseUnmarshaller { + + public static ModifyInstanceAttachmentAttributesResponse unmarshall(ModifyInstanceAttachmentAttributesResponse modifyInstanceAttachmentAttributesResponse, UnmarshallerContext _ctx) { + + modifyInstanceAttachmentAttributesResponse.setRequestId(_ctx.stringValue("ModifyInstanceAttachmentAttributesResponse.RequestId")); + + return modifyInstanceAttachmentAttributesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceAttributeResponseUnmarshaller.java new file mode 100644 index 0000000000..e46fca71a4 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceAttributeResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyInstanceAttributeResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyInstanceAttributeResponseUnmarshaller { + + public static ModifyInstanceAttributeResponse unmarshall(ModifyInstanceAttributeResponse modifyInstanceAttributeResponse, UnmarshallerContext _ctx) { + + modifyInstanceAttributeResponse.setRequestId(_ctx.stringValue("ModifyInstanceAttributeResponse.RequestId")); + + return modifyInstanceAttributeResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceAutoReleaseTimeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceAutoReleaseTimeResponseUnmarshaller.java new file mode 100644 index 0000000000..bf56f1d1a3 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceAutoReleaseTimeResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyInstanceAutoReleaseTimeResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyInstanceAutoReleaseTimeResponseUnmarshaller { + + public static ModifyInstanceAutoReleaseTimeResponse unmarshall(ModifyInstanceAutoReleaseTimeResponse modifyInstanceAutoReleaseTimeResponse, UnmarshallerContext _ctx) { + + modifyInstanceAutoReleaseTimeResponse.setRequestId(_ctx.stringValue("ModifyInstanceAutoReleaseTimeResponse.RequestId")); + + return modifyInstanceAutoReleaseTimeResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceAutoRenewAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceAutoRenewAttributeResponseUnmarshaller.java new file mode 100644 index 0000000000..406cf0fd99 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceAutoRenewAttributeResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyInstanceAutoRenewAttributeResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyInstanceAutoRenewAttributeResponseUnmarshaller { + + public static ModifyInstanceAutoRenewAttributeResponse unmarshall(ModifyInstanceAutoRenewAttributeResponse modifyInstanceAutoRenewAttributeResponse, UnmarshallerContext _ctx) { + + modifyInstanceAutoRenewAttributeResponse.setRequestId(_ctx.stringValue("ModifyInstanceAutoRenewAttributeResponse.RequestId")); + + return modifyInstanceAutoRenewAttributeResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyInstanceChargeTypeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceChargeTypeResponseUnmarshaller.java similarity index 90% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyInstanceChargeTypeResponseUnmarshaller.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceChargeTypeResponseUnmarshaller.java index 2959c06ef4..5901768e8a 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyInstanceChargeTypeResponseUnmarshaller.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceChargeTypeResponseUnmarshaller.java @@ -12,13 +12,13 @@ * limitations under the License. */ -package com.aliyuncs.ecs.transform.v20160314; +package com.aliyuncs.ecs.transform.v20140526; import java.util.ArrayList; import java.util.List; -import com.aliyuncs.ecs.model.v20160314.ModifyInstanceChargeTypeResponse; -import com.aliyuncs.ecs.model.v20160314.ModifyInstanceChargeTypeResponse.FeeOfInstance; +import com.aliyuncs.ecs.model.v20140526.ModifyInstanceChargeTypeResponse; +import com.aliyuncs.ecs.model.v20140526.ModifyInstanceChargeTypeResponse.FeeOfInstance; import com.aliyuncs.transform.UnmarshallerContext; diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyInstanceDeploymentResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceDeploymentResponseUnmarshaller.java similarity index 89% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyInstanceDeploymentResponseUnmarshaller.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceDeploymentResponseUnmarshaller.java index 9039084fba..c1bb43b96b 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyInstanceDeploymentResponseUnmarshaller.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceDeploymentResponseUnmarshaller.java @@ -12,9 +12,9 @@ * limitations under the License. */ -package com.aliyuncs.ecs.transform.v20160314; +package com.aliyuncs.ecs.transform.v20140526; -import com.aliyuncs.ecs.model.v20160314.ModifyInstanceDeploymentResponse; +import com.aliyuncs.ecs.model.v20140526.ModifyInstanceDeploymentResponse; import com.aliyuncs.transform.UnmarshallerContext; diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyInstanceMaintenanceAttributesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceMaintenanceAttributesResponseUnmarshaller.java similarity index 90% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyInstanceMaintenanceAttributesResponseUnmarshaller.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceMaintenanceAttributesResponseUnmarshaller.java index ca6b1b8a36..c23ce33c94 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyInstanceMaintenanceAttributesResponseUnmarshaller.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceMaintenanceAttributesResponseUnmarshaller.java @@ -12,9 +12,9 @@ * limitations under the License. */ -package com.aliyuncs.ecs.transform.v20160314; +package com.aliyuncs.ecs.transform.v20140526; -import com.aliyuncs.ecs.model.v20160314.ModifyInstanceMaintenanceAttributesResponse; +import com.aliyuncs.ecs.model.v20140526.ModifyInstanceMaintenanceAttributesResponse; import com.aliyuncs.transform.UnmarshallerContext; diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceMetadataOptionsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceMetadataOptionsResponseUnmarshaller.java new file mode 100644 index 0000000000..131a376d16 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceMetadataOptionsResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyInstanceMetadataOptionsResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyInstanceMetadataOptionsResponseUnmarshaller { + + public static ModifyInstanceMetadataOptionsResponse unmarshall(ModifyInstanceMetadataOptionsResponse modifyInstanceMetadataOptionsResponse, UnmarshallerContext _ctx) { + + modifyInstanceMetadataOptionsResponse.setRequestId(_ctx.stringValue("ModifyInstanceMetadataOptionsResponse.RequestId")); + + return modifyInstanceMetadataOptionsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceNetworkSpecResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceNetworkSpecResponseUnmarshaller.java new file mode 100644 index 0000000000..4b8c6dc2a4 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceNetworkSpecResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyInstanceNetworkSpecResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyInstanceNetworkSpecResponseUnmarshaller { + + public static ModifyInstanceNetworkSpecResponse unmarshall(ModifyInstanceNetworkSpecResponse modifyInstanceNetworkSpecResponse, UnmarshallerContext _ctx) { + + modifyInstanceNetworkSpecResponse.setRequestId(_ctx.stringValue("ModifyInstanceNetworkSpecResponse.RequestId")); + modifyInstanceNetworkSpecResponse.setOrderId(_ctx.stringValue("ModifyInstanceNetworkSpecResponse.OrderId")); + + return modifyInstanceNetworkSpecResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceSpecResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceSpecResponseUnmarshaller.java new file mode 100644 index 0000000000..6e10271836 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceSpecResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyInstanceSpecResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyInstanceSpecResponseUnmarshaller { + + public static ModifyInstanceSpecResponse unmarshall(ModifyInstanceSpecResponse modifyInstanceSpecResponse, UnmarshallerContext _ctx) { + + modifyInstanceSpecResponse.setRequestId(_ctx.stringValue("ModifyInstanceSpecResponse.RequestId")); + + return modifyInstanceSpecResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceVncPasswdResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceVncPasswdResponseUnmarshaller.java new file mode 100644 index 0000000000..9fb2e7e3f2 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceVncPasswdResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyInstanceVncPasswdResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyInstanceVncPasswdResponseUnmarshaller { + + public static ModifyInstanceVncPasswdResponse unmarshall(ModifyInstanceVncPasswdResponse modifyInstanceVncPasswdResponse, UnmarshallerContext _ctx) { + + modifyInstanceVncPasswdResponse.setRequestId(_ctx.stringValue("ModifyInstanceVncPasswdResponse.RequestId")); + + return modifyInstanceVncPasswdResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceVpcAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceVpcAttributeResponseUnmarshaller.java new file mode 100644 index 0000000000..e225d34f1d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyInstanceVpcAttributeResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyInstanceVpcAttributeResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyInstanceVpcAttributeResponseUnmarshaller { + + public static ModifyInstanceVpcAttributeResponse unmarshall(ModifyInstanceVpcAttributeResponse modifyInstanceVpcAttributeResponse, UnmarshallerContext _ctx) { + + modifyInstanceVpcAttributeResponse.setRequestId(_ctx.stringValue("ModifyInstanceVpcAttributeResponse.RequestId")); + + return modifyInstanceVpcAttributeResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyLaunchTemplateDefaultVersionResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyLaunchTemplateDefaultVersionResponseUnmarshaller.java new file mode 100644 index 0000000000..afe27a7f30 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyLaunchTemplateDefaultVersionResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyLaunchTemplateDefaultVersionResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyLaunchTemplateDefaultVersionResponseUnmarshaller { + + public static ModifyLaunchTemplateDefaultVersionResponse unmarshall(ModifyLaunchTemplateDefaultVersionResponse modifyLaunchTemplateDefaultVersionResponse, UnmarshallerContext _ctx) { + + modifyLaunchTemplateDefaultVersionResponse.setRequestId(_ctx.stringValue("ModifyLaunchTemplateDefaultVersionResponse.RequestId")); + modifyLaunchTemplateDefaultVersionResponse.setLaunchTemplateId(_ctx.stringValue("ModifyLaunchTemplateDefaultVersionResponse.LaunchTemplateId")); + + return modifyLaunchTemplateDefaultVersionResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyManagedInstanceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyManagedInstanceResponseUnmarshaller.java new file mode 100644 index 0000000000..49728f52ac --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyManagedInstanceResponseUnmarshaller.java @@ -0,0 +1,35 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyManagedInstanceResponse; +import com.aliyuncs.ecs.model.v20140526.ModifyManagedInstanceResponse.Instance; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyManagedInstanceResponseUnmarshaller { + + public static ModifyManagedInstanceResponse unmarshall(ModifyManagedInstanceResponse modifyManagedInstanceResponse, UnmarshallerContext _ctx) { + + modifyManagedInstanceResponse.setRequestId(_ctx.stringValue("ModifyManagedInstanceResponse.RequestId")); + + Instance instance = new Instance(); + instance.setInstanceName(_ctx.stringValue("ModifyManagedInstanceResponse.Instance.InstanceName")); + instance.setInstanceId(_ctx.stringValue("ModifyManagedInstanceResponse.Instance.InstanceId")); + modifyManagedInstanceResponse.setInstance(instance); + + return modifyManagedInstanceResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyNetworkInterfaceAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyNetworkInterfaceAttributeResponseUnmarshaller.java new file mode 100644 index 0000000000..9129a4d002 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyNetworkInterfaceAttributeResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyNetworkInterfaceAttributeResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyNetworkInterfaceAttributeResponseUnmarshaller { + + public static ModifyNetworkInterfaceAttributeResponse unmarshall(ModifyNetworkInterfaceAttributeResponse modifyNetworkInterfaceAttributeResponse, UnmarshallerContext _ctx) { + + modifyNetworkInterfaceAttributeResponse.setRequestId(_ctx.stringValue("ModifyNetworkInterfaceAttributeResponse.RequestId")); + + return modifyNetworkInterfaceAttributeResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyPhysicalConnectionAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyPhysicalConnectionAttributeResponseUnmarshaller.java new file mode 100644 index 0000000000..371426d682 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyPhysicalConnectionAttributeResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyPhysicalConnectionAttributeResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyPhysicalConnectionAttributeResponseUnmarshaller { + + public static ModifyPhysicalConnectionAttributeResponse unmarshall(ModifyPhysicalConnectionAttributeResponse modifyPhysicalConnectionAttributeResponse, UnmarshallerContext _ctx) { + + modifyPhysicalConnectionAttributeResponse.setRequestId(_ctx.stringValue("ModifyPhysicalConnectionAttributeResponse.RequestId")); + + return modifyPhysicalConnectionAttributeResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyPrefixListResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyPrefixListResponseUnmarshaller.java new file mode 100644 index 0000000000..c5c8428ae6 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyPrefixListResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyPrefixListResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyPrefixListResponseUnmarshaller { + + public static ModifyPrefixListResponse unmarshall(ModifyPrefixListResponse modifyPrefixListResponse, UnmarshallerContext _ctx) { + + modifyPrefixListResponse.setRequestId(_ctx.stringValue("ModifyPrefixListResponse.RequestId")); + + return modifyPrefixListResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyPrepayInstanceSpecResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyPrepayInstanceSpecResponseUnmarshaller.java new file mode 100644 index 0000000000..962d545287 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyPrepayInstanceSpecResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyPrepayInstanceSpecResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyPrepayInstanceSpecResponseUnmarshaller { + + public static ModifyPrepayInstanceSpecResponse unmarshall(ModifyPrepayInstanceSpecResponse modifyPrepayInstanceSpecResponse, UnmarshallerContext _ctx) { + + modifyPrepayInstanceSpecResponse.setRequestId(_ctx.stringValue("ModifyPrepayInstanceSpecResponse.RequestId")); + modifyPrepayInstanceSpecResponse.setOrderId(_ctx.stringValue("ModifyPrepayInstanceSpecResponse.OrderId")); + + return modifyPrepayInstanceSpecResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyReservedInstanceAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyReservedInstanceAttributeResponseUnmarshaller.java similarity index 92% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyReservedInstanceAttributeResponseUnmarshaller.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyReservedInstanceAttributeResponseUnmarshaller.java index da246854f1..13eb8fe673 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyReservedInstanceAttributeResponseUnmarshaller.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyReservedInstanceAttributeResponseUnmarshaller.java @@ -12,9 +12,9 @@ * limitations under the License. */ -package com.aliyuncs.ecs.transform.v20160314; +package com.aliyuncs.ecs.transform.v20140526; -import com.aliyuncs.ecs.model.v20160314.ModifyReservedInstanceAttributeResponse; +import com.aliyuncs.ecs.model.v20140526.ModifyReservedInstanceAttributeResponse; import com.aliyuncs.transform.UnmarshallerContext; diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyReservedInstanceAutoRenewAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyReservedInstanceAutoRenewAttributeResponseUnmarshaller.java new file mode 100644 index 0000000000..561c90bb1f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyReservedInstanceAutoRenewAttributeResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyReservedInstanceAutoRenewAttributeResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyReservedInstanceAutoRenewAttributeResponseUnmarshaller { + + public static ModifyReservedInstanceAutoRenewAttributeResponse unmarshall(ModifyReservedInstanceAutoRenewAttributeResponse modifyReservedInstanceAutoRenewAttributeResponse, UnmarshallerContext _ctx) { + + modifyReservedInstanceAutoRenewAttributeResponse.setRequestId(_ctx.stringValue("ModifyReservedInstanceAutoRenewAttributeResponse.RequestId")); + + return modifyReservedInstanceAutoRenewAttributeResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyReservedInstancesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyReservedInstancesResponseUnmarshaller.java similarity index 86% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyReservedInstancesResponseUnmarshaller.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyReservedInstancesResponseUnmarshaller.java index 0d29474305..52b087f98d 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyReservedInstancesResponseUnmarshaller.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyReservedInstancesResponseUnmarshaller.java @@ -12,12 +12,12 @@ * limitations under the License. */ -package com.aliyuncs.ecs.transform.v20160314; +package com.aliyuncs.ecs.transform.v20140526; import java.util.ArrayList; import java.util.List; -import com.aliyuncs.ecs.model.v20160314.ModifyReservedInstancesResponse; +import com.aliyuncs.ecs.model.v20140526.ModifyReservedInstancesResponse; import com.aliyuncs.transform.UnmarshallerContext; @@ -26,7 +26,6 @@ public class ModifyReservedInstancesResponseUnmarshaller { public static ModifyReservedInstancesResponse unmarshall(ModifyReservedInstancesResponse modifyReservedInstancesResponse, UnmarshallerContext _ctx) { modifyReservedInstancesResponse.setRequestId(_ctx.stringValue("ModifyReservedInstancesResponse.RequestId")); - modifyReservedInstancesResponse.setOrderId(_ctx.stringValue("ModifyReservedInstancesResponse.OrderId")); List reservedInstanceIdSets = new ArrayList(); for (int i = 0; i < _ctx.lengthValue("ModifyReservedInstancesResponse.ReservedInstanceIdSets.Length"); i++) { diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyRouterInterfaceAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyRouterInterfaceAttributeResponseUnmarshaller.java new file mode 100644 index 0000000000..61b82476f7 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyRouterInterfaceAttributeResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyRouterInterfaceAttributeResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyRouterInterfaceAttributeResponseUnmarshaller { + + public static ModifyRouterInterfaceAttributeResponse unmarshall(ModifyRouterInterfaceAttributeResponse modifyRouterInterfaceAttributeResponse, UnmarshallerContext _ctx) { + + modifyRouterInterfaceAttributeResponse.setRequestId(_ctx.stringValue("ModifyRouterInterfaceAttributeResponse.RequestId")); + + return modifyRouterInterfaceAttributeResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyRouterInterfaceSpecResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyRouterInterfaceSpecResponseUnmarshaller.java new file mode 100644 index 0000000000..ab7a3cd602 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyRouterInterfaceSpecResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyRouterInterfaceSpecResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyRouterInterfaceSpecResponseUnmarshaller { + + public static ModifyRouterInterfaceSpecResponse unmarshall(ModifyRouterInterfaceSpecResponse modifyRouterInterfaceSpecResponse, UnmarshallerContext _ctx) { + + modifyRouterInterfaceSpecResponse.setRequestId(_ctx.stringValue("ModifyRouterInterfaceSpecResponse.RequestId")); + modifyRouterInterfaceSpecResponse.setSpec(_ctx.stringValue("ModifyRouterInterfaceSpecResponse.Spec")); + + return modifyRouterInterfaceSpecResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifySecurityGroupAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifySecurityGroupAttributeResponseUnmarshaller.java new file mode 100644 index 0000000000..9b4d4c3eb3 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifySecurityGroupAttributeResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifySecurityGroupAttributeResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifySecurityGroupAttributeResponseUnmarshaller { + + public static ModifySecurityGroupAttributeResponse unmarshall(ModifySecurityGroupAttributeResponse modifySecurityGroupAttributeResponse, UnmarshallerContext _ctx) { + + modifySecurityGroupAttributeResponse.setRequestId(_ctx.stringValue("ModifySecurityGroupAttributeResponse.RequestId")); + + return modifySecurityGroupAttributeResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifySecurityGroupEgressRuleResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifySecurityGroupEgressRuleResponseUnmarshaller.java new file mode 100644 index 0000000000..01b0d9a29d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifySecurityGroupEgressRuleResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifySecurityGroupEgressRuleResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifySecurityGroupEgressRuleResponseUnmarshaller { + + public static ModifySecurityGroupEgressRuleResponse unmarshall(ModifySecurityGroupEgressRuleResponse modifySecurityGroupEgressRuleResponse, UnmarshallerContext _ctx) { + + modifySecurityGroupEgressRuleResponse.setRequestId(_ctx.stringValue("ModifySecurityGroupEgressRuleResponse.RequestId")); + + return modifySecurityGroupEgressRuleResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifySecurityGroupPolicyResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifySecurityGroupPolicyResponseUnmarshaller.java new file mode 100644 index 0000000000..764f9330b1 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifySecurityGroupPolicyResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifySecurityGroupPolicyResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifySecurityGroupPolicyResponseUnmarshaller { + + public static ModifySecurityGroupPolicyResponse unmarshall(ModifySecurityGroupPolicyResponse modifySecurityGroupPolicyResponse, UnmarshallerContext _ctx) { + + modifySecurityGroupPolicyResponse.setRequestId(_ctx.stringValue("ModifySecurityGroupPolicyResponse.RequestId")); + + return modifySecurityGroupPolicyResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifySecurityGroupRuleResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifySecurityGroupRuleResponseUnmarshaller.java new file mode 100644 index 0000000000..396ab9fdbb --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifySecurityGroupRuleResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifySecurityGroupRuleResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifySecurityGroupRuleResponseUnmarshaller { + + public static ModifySecurityGroupRuleResponse unmarshall(ModifySecurityGroupRuleResponse modifySecurityGroupRuleResponse, UnmarshallerContext _ctx) { + + modifySecurityGroupRuleResponse.setRequestId(_ctx.stringValue("ModifySecurityGroupRuleResponse.RequestId")); + + return modifySecurityGroupRuleResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifySnapshotAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifySnapshotAttributeResponseUnmarshaller.java new file mode 100644 index 0000000000..1ba7802831 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifySnapshotAttributeResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifySnapshotAttributeResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifySnapshotAttributeResponseUnmarshaller { + + public static ModifySnapshotAttributeResponse unmarshall(ModifySnapshotAttributeResponse modifySnapshotAttributeResponse, UnmarshallerContext _ctx) { + + modifySnapshotAttributeResponse.setRequestId(_ctx.stringValue("ModifySnapshotAttributeResponse.RequestId")); + + return modifySnapshotAttributeResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifySnapshotGroupResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifySnapshotGroupResponseUnmarshaller.java new file mode 100644 index 0000000000..3509715b34 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifySnapshotGroupResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifySnapshotGroupResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifySnapshotGroupResponseUnmarshaller { + + public static ModifySnapshotGroupResponse unmarshall(ModifySnapshotGroupResponse modifySnapshotGroupResponse, UnmarshallerContext _ctx) { + + modifySnapshotGroupResponse.setRequestId(_ctx.stringValue("ModifySnapshotGroupResponse.RequestId")); + + return modifySnapshotGroupResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyStorageCapacityUnitAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyStorageCapacityUnitAttributeResponseUnmarshaller.java new file mode 100644 index 0000000000..39c66cae0f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyStorageCapacityUnitAttributeResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyStorageCapacityUnitAttributeResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyStorageCapacityUnitAttributeResponseUnmarshaller { + + public static ModifyStorageCapacityUnitAttributeResponse unmarshall(ModifyStorageCapacityUnitAttributeResponse modifyStorageCapacityUnitAttributeResponse, UnmarshallerContext _ctx) { + + modifyStorageCapacityUnitAttributeResponse.setRequestId(_ctx.stringValue("ModifyStorageCapacityUnitAttributeResponse.RequestId")); + + return modifyStorageCapacityUnitAttributeResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyStorageSetAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyStorageSetAttributeResponseUnmarshaller.java similarity index 89% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyStorageSetAttributeResponseUnmarshaller.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyStorageSetAttributeResponseUnmarshaller.java index 65c6507ac8..6fdc7be8c7 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyStorageSetAttributeResponseUnmarshaller.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyStorageSetAttributeResponseUnmarshaller.java @@ -12,9 +12,9 @@ * limitations under the License. */ -package com.aliyuncs.ecs.transform.v20160314; +package com.aliyuncs.ecs.transform.v20140526; -import com.aliyuncs.ecs.model.v20160314.ModifyStorageSetAttributeResponse; +import com.aliyuncs.ecs.model.v20140526.ModifyStorageSetAttributeResponse; import com.aliyuncs.transform.UnmarshallerContext; diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyUserBusinessBehaviorResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyUserBusinessBehaviorResponseUnmarshaller.java new file mode 100644 index 0000000000..156735e1aa --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyUserBusinessBehaviorResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyUserBusinessBehaviorResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyUserBusinessBehaviorResponseUnmarshaller { + + public static ModifyUserBusinessBehaviorResponse unmarshall(ModifyUserBusinessBehaviorResponse modifyUserBusinessBehaviorResponse, UnmarshallerContext _ctx) { + + modifyUserBusinessBehaviorResponse.setRequestId(_ctx.stringValue("ModifyUserBusinessBehaviorResponse.RequestId")); + + return modifyUserBusinessBehaviorResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyVRouterAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyVRouterAttributeResponseUnmarshaller.java new file mode 100644 index 0000000000..ad147f0383 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyVRouterAttributeResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyVRouterAttributeResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyVRouterAttributeResponseUnmarshaller { + + public static ModifyVRouterAttributeResponse unmarshall(ModifyVRouterAttributeResponse modifyVRouterAttributeResponse, UnmarshallerContext _ctx) { + + modifyVRouterAttributeResponse.setRequestId(_ctx.stringValue("ModifyVRouterAttributeResponse.RequestId")); + + return modifyVRouterAttributeResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyVSwitchAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyVSwitchAttributeResponseUnmarshaller.java new file mode 100644 index 0000000000..e9a46b8e86 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyVSwitchAttributeResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyVSwitchAttributeResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyVSwitchAttributeResponseUnmarshaller { + + public static ModifyVSwitchAttributeResponse unmarshall(ModifyVSwitchAttributeResponse modifyVSwitchAttributeResponse, UnmarshallerContext _ctx) { + + modifyVSwitchAttributeResponse.setRequestId(_ctx.stringValue("ModifyVSwitchAttributeResponse.RequestId")); + + return modifyVSwitchAttributeResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyVirtualBorderRouterAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyVirtualBorderRouterAttributeResponseUnmarshaller.java new file mode 100644 index 0000000000..5c8c78e771 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyVirtualBorderRouterAttributeResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyVirtualBorderRouterAttributeResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyVirtualBorderRouterAttributeResponseUnmarshaller { + + public static ModifyVirtualBorderRouterAttributeResponse unmarshall(ModifyVirtualBorderRouterAttributeResponse modifyVirtualBorderRouterAttributeResponse, UnmarshallerContext _ctx) { + + modifyVirtualBorderRouterAttributeResponse.setRequestId(_ctx.stringValue("ModifyVirtualBorderRouterAttributeResponse.RequestId")); + + return modifyVirtualBorderRouterAttributeResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyVpcAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyVpcAttributeResponseUnmarshaller.java new file mode 100644 index 0000000000..a1d2b869e1 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ModifyVpcAttributeResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ModifyVpcAttributeResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyVpcAttributeResponseUnmarshaller { + + public static ModifyVpcAttributeResponse unmarshall(ModifyVpcAttributeResponse modifyVpcAttributeResponse, UnmarshallerContext _ctx) { + + modifyVpcAttributeResponse.setRequestId(_ctx.stringValue("ModifyVpcAttributeResponse.RequestId")); + + return modifyVpcAttributeResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/PurchaseReservedInstancesOfferingResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/PurchaseReservedInstancesOfferingResponseUnmarshaller.java similarity index 86% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/PurchaseReservedInstancesOfferingResponseUnmarshaller.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/PurchaseReservedInstancesOfferingResponseUnmarshaller.java index fa68f78cc2..583ea3f416 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/PurchaseReservedInstancesOfferingResponseUnmarshaller.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/PurchaseReservedInstancesOfferingResponseUnmarshaller.java @@ -12,12 +12,12 @@ * limitations under the License. */ -package com.aliyuncs.ecs.transform.v20160314; +package com.aliyuncs.ecs.transform.v20140526; import java.util.ArrayList; import java.util.List; -import com.aliyuncs.ecs.model.v20160314.PurchaseReservedInstancesOfferingResponse; +import com.aliyuncs.ecs.model.v20140526.PurchaseReservedInstancesOfferingResponse; import com.aliyuncs.transform.UnmarshallerContext; @@ -26,7 +26,6 @@ public class PurchaseReservedInstancesOfferingResponseUnmarshaller { public static PurchaseReservedInstancesOfferingResponse unmarshall(PurchaseReservedInstancesOfferingResponse purchaseReservedInstancesOfferingResponse, UnmarshallerContext _ctx) { purchaseReservedInstancesOfferingResponse.setRequestId(_ctx.stringValue("PurchaseReservedInstancesOfferingResponse.RequestId")); - purchaseReservedInstancesOfferingResponse.setOrderId(_ctx.stringValue("PurchaseReservedInstancesOfferingResponse.OrderId")); List reservedInstanceIdSets = new ArrayList(); for (int i = 0; i < _ctx.lengthValue("PurchaseReservedInstancesOfferingResponse.ReservedInstanceIdSets.Length"); i++) { diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/PurchaseStorageCapacityUnitResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/PurchaseStorageCapacityUnitResponseUnmarshaller.java similarity index 92% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/PurchaseStorageCapacityUnitResponseUnmarshaller.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/PurchaseStorageCapacityUnitResponseUnmarshaller.java index 2d3ddfcdb5..68f4bd606c 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/PurchaseStorageCapacityUnitResponseUnmarshaller.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/PurchaseStorageCapacityUnitResponseUnmarshaller.java @@ -12,12 +12,12 @@ * limitations under the License. */ -package com.aliyuncs.ecs.transform.v20160314; +package com.aliyuncs.ecs.transform.v20140526; import java.util.ArrayList; import java.util.List; -import com.aliyuncs.ecs.model.v20160314.PurchaseStorageCapacityUnitResponse; +import com.aliyuncs.ecs.model.v20140526.PurchaseStorageCapacityUnitResponse; import com.aliyuncs.transform.UnmarshallerContext; diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ReActivateInstancesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ReActivateInstancesResponseUnmarshaller.java new file mode 100644 index 0000000000..d6885ce13c --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ReActivateInstancesResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ReActivateInstancesResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ReActivateInstancesResponseUnmarshaller { + + public static ReActivateInstancesResponse unmarshall(ReActivateInstancesResponse reActivateInstancesResponse, UnmarshallerContext _ctx) { + + reActivateInstancesResponse.setRequestId(_ctx.stringValue("ReActivateInstancesResponse.RequestId")); + + return reActivateInstancesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ReInitDiskResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ReInitDiskResponseUnmarshaller.java new file mode 100644 index 0000000000..ddecc87100 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ReInitDiskResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ReInitDiskResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ReInitDiskResponseUnmarshaller { + + public static ReInitDiskResponse unmarshall(ReInitDiskResponse reInitDiskResponse, UnmarshallerContext _ctx) { + + reInitDiskResponse.setRequestId(_ctx.stringValue("ReInitDiskResponse.RequestId")); + + return reInitDiskResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RebootInstanceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RebootInstanceResponseUnmarshaller.java new file mode 100644 index 0000000000..56278ceb73 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RebootInstanceResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.RebootInstanceResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class RebootInstanceResponseUnmarshaller { + + public static RebootInstanceResponse unmarshall(RebootInstanceResponse rebootInstanceResponse, UnmarshallerContext _ctx) { + + rebootInstanceResponse.setRequestId(_ctx.stringValue("RebootInstanceResponse.RequestId")); + + return rebootInstanceResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RebootInstancesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RebootInstancesResponseUnmarshaller.java new file mode 100644 index 0000000000..282e9048c5 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RebootInstancesResponseUnmarshaller.java @@ -0,0 +1,46 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.RebootInstancesResponse; +import com.aliyuncs.ecs.model.v20140526.RebootInstancesResponse.InstanceResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class RebootInstancesResponseUnmarshaller { + + public static RebootInstancesResponse unmarshall(RebootInstancesResponse rebootInstancesResponse, UnmarshallerContext _ctx) { + + rebootInstancesResponse.setRequestId(_ctx.stringValue("RebootInstancesResponse.RequestId")); + + List instanceResponses = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("RebootInstancesResponse.InstanceResponses.Length"); i++) { + InstanceResponse instanceResponse = new InstanceResponse(); + instanceResponse.setCode(_ctx.stringValue("RebootInstancesResponse.InstanceResponses["+ i +"].Code")); + instanceResponse.setMessage(_ctx.stringValue("RebootInstancesResponse.InstanceResponses["+ i +"].Message")); + instanceResponse.setInstanceId(_ctx.stringValue("RebootInstancesResponse.InstanceResponses["+ i +"].InstanceId")); + instanceResponse.setCurrentStatus(_ctx.stringValue("RebootInstancesResponse.InstanceResponses["+ i +"].CurrentStatus")); + instanceResponse.setPreviousStatus(_ctx.stringValue("RebootInstancesResponse.InstanceResponses["+ i +"].PreviousStatus")); + + instanceResponses.add(instanceResponse); + } + rebootInstancesResponse.setInstanceResponses(instanceResponses); + + return rebootInstancesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RecoverVirtualBorderRouterResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RecoverVirtualBorderRouterResponseUnmarshaller.java new file mode 100644 index 0000000000..9dc1b3bd79 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RecoverVirtualBorderRouterResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.RecoverVirtualBorderRouterResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class RecoverVirtualBorderRouterResponseUnmarshaller { + + public static RecoverVirtualBorderRouterResponse unmarshall(RecoverVirtualBorderRouterResponse recoverVirtualBorderRouterResponse, UnmarshallerContext _ctx) { + + recoverVirtualBorderRouterResponse.setRequestId(_ctx.stringValue("RecoverVirtualBorderRouterResponse.RequestId")); + + return recoverVirtualBorderRouterResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RedeployDedicatedHostResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RedeployDedicatedHostResponseUnmarshaller.java new file mode 100644 index 0000000000..a4bca4b75f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RedeployDedicatedHostResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.RedeployDedicatedHostResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class RedeployDedicatedHostResponseUnmarshaller { + + public static RedeployDedicatedHostResponse unmarshall(RedeployDedicatedHostResponse redeployDedicatedHostResponse, UnmarshallerContext _ctx) { + + redeployDedicatedHostResponse.setRequestId(_ctx.stringValue("RedeployDedicatedHostResponse.RequestId")); + + return redeployDedicatedHostResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RedeployInstanceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RedeployInstanceResponseUnmarshaller.java new file mode 100644 index 0000000000..f8c773493d --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RedeployInstanceResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.RedeployInstanceResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class RedeployInstanceResponseUnmarshaller { + + public static RedeployInstanceResponse unmarshall(RedeployInstanceResponse redeployInstanceResponse, UnmarshallerContext _ctx) { + + redeployInstanceResponse.setRequestId(_ctx.stringValue("RedeployInstanceResponse.RequestId")); + redeployInstanceResponse.setTaskId(_ctx.stringValue("RedeployInstanceResponse.TaskId")); + + return redeployInstanceResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ReleaseCapacityReservationResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ReleaseCapacityReservationResponseUnmarshaller.java similarity index 90% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ReleaseCapacityReservationResponseUnmarshaller.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ReleaseCapacityReservationResponseUnmarshaller.java index 421a1a2d48..b41b3ab4d5 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ReleaseCapacityReservationResponseUnmarshaller.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ReleaseCapacityReservationResponseUnmarshaller.java @@ -12,9 +12,9 @@ * limitations under the License. */ -package com.aliyuncs.ecs.transform.v20160314; +package com.aliyuncs.ecs.transform.v20140526; -import com.aliyuncs.ecs.model.v20160314.ReleaseCapacityReservationResponse; +import com.aliyuncs.ecs.model.v20140526.ReleaseCapacityReservationResponse; import com.aliyuncs.transform.UnmarshallerContext; diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ReleaseDedicatedHostResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ReleaseDedicatedHostResponseUnmarshaller.java similarity index 89% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ReleaseDedicatedHostResponseUnmarshaller.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ReleaseDedicatedHostResponseUnmarshaller.java index be1bdad9f2..3ee5562dd0 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ReleaseDedicatedHostResponseUnmarshaller.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ReleaseDedicatedHostResponseUnmarshaller.java @@ -12,9 +12,9 @@ * limitations under the License. */ -package com.aliyuncs.ecs.transform.v20160314; +package com.aliyuncs.ecs.transform.v20140526; -import com.aliyuncs.ecs.model.v20160314.ReleaseDedicatedHostResponse; +import com.aliyuncs.ecs.model.v20140526.ReleaseDedicatedHostResponse; import com.aliyuncs.transform.UnmarshallerContext; diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ReleaseEipAddressResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ReleaseEipAddressResponseUnmarshaller.java new file mode 100644 index 0000000000..a78606e7e3 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ReleaseEipAddressResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ReleaseEipAddressResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ReleaseEipAddressResponseUnmarshaller { + + public static ReleaseEipAddressResponse unmarshall(ReleaseEipAddressResponse releaseEipAddressResponse, UnmarshallerContext _ctx) { + + releaseEipAddressResponse.setRequestId(_ctx.stringValue("ReleaseEipAddressResponse.RequestId")); + + return releaseEipAddressResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ReleasePublicIpAddressResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ReleasePublicIpAddressResponseUnmarshaller.java new file mode 100644 index 0000000000..391f589125 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ReleasePublicIpAddressResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ReleasePublicIpAddressResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ReleasePublicIpAddressResponseUnmarshaller { + + public static ReleasePublicIpAddressResponse unmarshall(ReleasePublicIpAddressResponse releasePublicIpAddressResponse, UnmarshallerContext _ctx) { + + releasePublicIpAddressResponse.setRequestId(_ctx.stringValue("ReleasePublicIpAddressResponse.RequestId")); + releasePublicIpAddressResponse.setRemainTimes(_ctx.stringValue("ReleasePublicIpAddressResponse.RemainTimes")); + + return releasePublicIpAddressResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RemoveBandwidthPackageIpsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RemoveBandwidthPackageIpsResponseUnmarshaller.java new file mode 100644 index 0000000000..1922d47e5c --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RemoveBandwidthPackageIpsResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.RemoveBandwidthPackageIpsResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class RemoveBandwidthPackageIpsResponseUnmarshaller { + + public static RemoveBandwidthPackageIpsResponse unmarshall(RemoveBandwidthPackageIpsResponse removeBandwidthPackageIpsResponse, UnmarshallerContext _ctx) { + + removeBandwidthPackageIpsResponse.setRequestId(_ctx.stringValue("RemoveBandwidthPackageIpsResponse.RequestId")); + + return removeBandwidthPackageIpsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RemoveTagsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RemoveTagsResponseUnmarshaller.java new file mode 100644 index 0000000000..af70e15806 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RemoveTagsResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.RemoveTagsResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class RemoveTagsResponseUnmarshaller { + + public static RemoveTagsResponse unmarshall(RemoveTagsResponse removeTagsResponse, UnmarshallerContext _ctx) { + + removeTagsResponse.setRequestId(_ctx.stringValue("RemoveTagsResponse.RequestId")); + + return removeTagsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RenewDedicatedHostsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RenewDedicatedHostsResponseUnmarshaller.java new file mode 100644 index 0000000000..e22ba33bfd --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RenewDedicatedHostsResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.RenewDedicatedHostsResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class RenewDedicatedHostsResponseUnmarshaller { + + public static RenewDedicatedHostsResponse unmarshall(RenewDedicatedHostsResponse renewDedicatedHostsResponse, UnmarshallerContext _ctx) { + + renewDedicatedHostsResponse.setRequestId(_ctx.stringValue("RenewDedicatedHostsResponse.RequestId")); + + return renewDedicatedHostsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RenewInstanceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RenewInstanceResponseUnmarshaller.java new file mode 100644 index 0000000000..b920066d82 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RenewInstanceResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.RenewInstanceResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class RenewInstanceResponseUnmarshaller { + + public static RenewInstanceResponse unmarshall(RenewInstanceResponse renewInstanceResponse, UnmarshallerContext _ctx) { + + renewInstanceResponse.setRequestId(_ctx.stringValue("RenewInstanceResponse.RequestId")); + renewInstanceResponse.setOrderId(_ctx.stringValue("RenewInstanceResponse.OrderId")); + + return renewInstanceResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RenewReservedInstancesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RenewReservedInstancesResponseUnmarshaller.java new file mode 100644 index 0000000000..5c155b0e4b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RenewReservedInstancesResponseUnmarshaller.java @@ -0,0 +1,39 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.RenewReservedInstancesResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class RenewReservedInstancesResponseUnmarshaller { + + public static RenewReservedInstancesResponse unmarshall(RenewReservedInstancesResponse renewReservedInstancesResponse, UnmarshallerContext _ctx) { + + renewReservedInstancesResponse.setRequestId(_ctx.stringValue("RenewReservedInstancesResponse.RequestId")); + renewReservedInstancesResponse.setOrderId(_ctx.stringValue("RenewReservedInstancesResponse.OrderId")); + + List reservedInstanceIdSets = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("RenewReservedInstancesResponse.ReservedInstanceIdSets.Length"); i++) { + reservedInstanceIdSets.add(_ctx.stringValue("RenewReservedInstancesResponse.ReservedInstanceIdSets["+ i +"]")); + } + renewReservedInstancesResponse.setReservedInstanceIdSets(reservedInstanceIdSets); + + return renewReservedInstancesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ReplaceSystemDiskResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ReplaceSystemDiskResponseUnmarshaller.java new file mode 100644 index 0000000000..966db2ba85 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ReplaceSystemDiskResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ReplaceSystemDiskResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ReplaceSystemDiskResponseUnmarshaller { + + public static ReplaceSystemDiskResponse unmarshall(ReplaceSystemDiskResponse replaceSystemDiskResponse, UnmarshallerContext _ctx) { + + replaceSystemDiskResponse.setRequestId(_ctx.stringValue("ReplaceSystemDiskResponse.RequestId")); + replaceSystemDiskResponse.setDiskId(_ctx.stringValue("ReplaceSystemDiskResponse.DiskId")); + + return replaceSystemDiskResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ReportInstancesStatusResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ReportInstancesStatusResponseUnmarshaller.java new file mode 100644 index 0000000000..7679da069e --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ReportInstancesStatusResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ReportInstancesStatusResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ReportInstancesStatusResponseUnmarshaller { + + public static ReportInstancesStatusResponse unmarshall(ReportInstancesStatusResponse reportInstancesStatusResponse, UnmarshallerContext _ctx) { + + reportInstancesStatusResponse.setRequestId(_ctx.stringValue("ReportInstancesStatusResponse.RequestId")); + + return reportInstancesStatusResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ResetDiskResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ResetDiskResponseUnmarshaller.java new file mode 100644 index 0000000000..f0d83d417c --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ResetDiskResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ResetDiskResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ResetDiskResponseUnmarshaller { + + public static ResetDiskResponse unmarshall(ResetDiskResponse resetDiskResponse, UnmarshallerContext _ctx) { + + resetDiskResponse.setRequestId(_ctx.stringValue("ResetDiskResponse.RequestId")); + + return resetDiskResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ResetDisksResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ResetDisksResponseUnmarshaller.java new file mode 100644 index 0000000000..9530c5309f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ResetDisksResponseUnmarshaller.java @@ -0,0 +1,55 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.ResetDisksResponse; +import com.aliyuncs.ecs.model.v20140526.ResetDisksResponse.OperationProgress; +import com.aliyuncs.ecs.model.v20140526.ResetDisksResponse.OperationProgress.RelatedItem; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ResetDisksResponseUnmarshaller { + + public static ResetDisksResponse unmarshall(ResetDisksResponse resetDisksResponse, UnmarshallerContext _ctx) { + + resetDisksResponse.setRequestId(_ctx.stringValue("ResetDisksResponse.RequestId")); + + List operationProgressSet = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("ResetDisksResponse.OperationProgressSet.Length"); i++) { + OperationProgress operationProgress = new OperationProgress(); + operationProgress.setErrorMsg(_ctx.stringValue("ResetDisksResponse.OperationProgressSet["+ i +"].ErrorMsg")); + operationProgress.setErrorCode(_ctx.stringValue("ResetDisksResponse.OperationProgressSet["+ i +"].ErrorCode")); + operationProgress.setOperationStatus(_ctx.stringValue("ResetDisksResponse.OperationProgressSet["+ i +"].OperationStatus")); + + List relatedItemSet = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("ResetDisksResponse.OperationProgressSet["+ i +"].RelatedItemSet.Length"); j++) { + RelatedItem relatedItem = new RelatedItem(); + relatedItem.setName(_ctx.stringValue("ResetDisksResponse.OperationProgressSet["+ i +"].RelatedItemSet["+ j +"].Name")); + relatedItem.setValue(_ctx.stringValue("ResetDisksResponse.OperationProgressSet["+ i +"].RelatedItemSet["+ j +"].Value")); + + relatedItemSet.add(relatedItem); + } + operationProgress.setRelatedItemSet(relatedItemSet); + + operationProgressSet.add(operationProgress); + } + resetDisksResponse.setOperationProgressSet(operationProgressSet); + + return resetDisksResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ResizeDiskResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ResizeDiskResponseUnmarshaller.java new file mode 100644 index 0000000000..040c97f81f --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/ResizeDiskResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.ResizeDiskResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ResizeDiskResponseUnmarshaller { + + public static ResizeDiskResponse unmarshall(ResizeDiskResponse resizeDiskResponse, UnmarshallerContext _ctx) { + + resizeDiskResponse.setRequestId(_ctx.stringValue("ResizeDiskResponse.RequestId")); + resizeDiskResponse.setOrderId(_ctx.stringValue("ResizeDiskResponse.OrderId")); + + return resizeDiskResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RevokeSecurityGroupEgressResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RevokeSecurityGroupEgressResponseUnmarshaller.java new file mode 100644 index 0000000000..6a7bd18d2b --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RevokeSecurityGroupEgressResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.RevokeSecurityGroupEgressResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class RevokeSecurityGroupEgressResponseUnmarshaller { + + public static RevokeSecurityGroupEgressResponse unmarshall(RevokeSecurityGroupEgressResponse revokeSecurityGroupEgressResponse, UnmarshallerContext _ctx) { + + revokeSecurityGroupEgressResponse.setRequestId(_ctx.stringValue("RevokeSecurityGroupEgressResponse.RequestId")); + + return revokeSecurityGroupEgressResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RevokeSecurityGroupResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RevokeSecurityGroupResponseUnmarshaller.java new file mode 100644 index 0000000000..939d629a36 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RevokeSecurityGroupResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.RevokeSecurityGroupResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class RevokeSecurityGroupResponseUnmarshaller { + + public static RevokeSecurityGroupResponse unmarshall(RevokeSecurityGroupResponse revokeSecurityGroupResponse, UnmarshallerContext _ctx) { + + revokeSecurityGroupResponse.setRequestId(_ctx.stringValue("RevokeSecurityGroupResponse.RequestId")); + + return revokeSecurityGroupResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RunCommandResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RunCommandResponseUnmarshaller.java new file mode 100644 index 0000000000..c6d788e555 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RunCommandResponseUnmarshaller.java @@ -0,0 +1,31 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.RunCommandResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class RunCommandResponseUnmarshaller { + + public static RunCommandResponse unmarshall(RunCommandResponse runCommandResponse, UnmarshallerContext _ctx) { + + runCommandResponse.setRequestId(_ctx.stringValue("RunCommandResponse.RequestId")); + runCommandResponse.setCommandId(_ctx.stringValue("RunCommandResponse.CommandId")); + runCommandResponse.setInvokeId(_ctx.stringValue("RunCommandResponse.InvokeId")); + + return runCommandResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/RunInstancesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RunInstancesResponseUnmarshaller.java similarity index 80% rename from aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/RunInstancesResponseUnmarshaller.java rename to aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RunInstancesResponseUnmarshaller.java index 890ddcd7f2..1343b2ae45 100644 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/RunInstancesResponseUnmarshaller.java +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/RunInstancesResponseUnmarshaller.java @@ -12,12 +12,12 @@ * limitations under the License. */ -package com.aliyuncs.ecs.transform.v20160314; +package com.aliyuncs.ecs.transform.v20140526; import java.util.ArrayList; import java.util.List; -import com.aliyuncs.ecs.model.v20160314.RunInstancesResponse; +import com.aliyuncs.ecs.model.v20140526.RunInstancesResponse; import com.aliyuncs.transform.UnmarshallerContext; @@ -26,7 +26,8 @@ public class RunInstancesResponseUnmarshaller { public static RunInstancesResponse unmarshall(RunInstancesResponse runInstancesResponse, UnmarshallerContext _ctx) { runInstancesResponse.setRequestId(_ctx.stringValue("RunInstancesResponse.RequestId")); - runInstancesResponse.setTaskId(_ctx.stringValue("RunInstancesResponse.TaskId")); + runInstancesResponse.setOrderId(_ctx.stringValue("RunInstancesResponse.OrderId")); + runInstancesResponse.setTradePrice(_ctx.floatValue("RunInstancesResponse.TradePrice")); List instanceIdSets = new ArrayList(); for (int i = 0; i < _ctx.lengthValue("RunInstancesResponse.InstanceIdSets.Length"); i++) { diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/SendFileResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/SendFileResponseUnmarshaller.java new file mode 100644 index 0000000000..9df96e942c --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/SendFileResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.SendFileResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class SendFileResponseUnmarshaller { + + public static SendFileResponse unmarshall(SendFileResponse sendFileResponse, UnmarshallerContext _ctx) { + + sendFileResponse.setRequestId(_ctx.stringValue("SendFileResponse.RequestId")); + sendFileResponse.setInvokeId(_ctx.stringValue("SendFileResponse.InvokeId")); + + return sendFileResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/StartElasticityAssuranceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/StartElasticityAssuranceResponseUnmarshaller.java new file mode 100644 index 0000000000..2cd54f25d8 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/StartElasticityAssuranceResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.StartElasticityAssuranceResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class StartElasticityAssuranceResponseUnmarshaller { + + public static StartElasticityAssuranceResponse unmarshall(StartElasticityAssuranceResponse startElasticityAssuranceResponse, UnmarshallerContext _ctx) { + + startElasticityAssuranceResponse.setRequestId(_ctx.stringValue("StartElasticityAssuranceResponse.RequestId")); + + return startElasticityAssuranceResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/StartImagePipelineExecutionResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/StartImagePipelineExecutionResponseUnmarshaller.java new file mode 100644 index 0000000000..2d74115009 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/StartImagePipelineExecutionResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.StartImagePipelineExecutionResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class StartImagePipelineExecutionResponseUnmarshaller { + + public static StartImagePipelineExecutionResponse unmarshall(StartImagePipelineExecutionResponse startImagePipelineExecutionResponse, UnmarshallerContext _ctx) { + + startImagePipelineExecutionResponse.setRequestId(_ctx.stringValue("StartImagePipelineExecutionResponse.RequestId")); + startImagePipelineExecutionResponse.setExecutionId(_ctx.stringValue("StartImagePipelineExecutionResponse.ExecutionId")); + + return startImagePipelineExecutionResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/StartInstanceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/StartInstanceResponseUnmarshaller.java new file mode 100644 index 0000000000..1f90825c74 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/StartInstanceResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.StartInstanceResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class StartInstanceResponseUnmarshaller { + + public static StartInstanceResponse unmarshall(StartInstanceResponse startInstanceResponse, UnmarshallerContext _ctx) { + + startInstanceResponse.setRequestId(_ctx.stringValue("StartInstanceResponse.RequestId")); + + return startInstanceResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/StartInstancesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/StartInstancesResponseUnmarshaller.java new file mode 100644 index 0000000000..ca1884e318 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/StartInstancesResponseUnmarshaller.java @@ -0,0 +1,46 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.StartInstancesResponse; +import com.aliyuncs.ecs.model.v20140526.StartInstancesResponse.InstanceResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class StartInstancesResponseUnmarshaller { + + public static StartInstancesResponse unmarshall(StartInstancesResponse startInstancesResponse, UnmarshallerContext _ctx) { + + startInstancesResponse.setRequestId(_ctx.stringValue("StartInstancesResponse.RequestId")); + + List instanceResponses = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("StartInstancesResponse.InstanceResponses.Length"); i++) { + InstanceResponse instanceResponse = new InstanceResponse(); + instanceResponse.setCode(_ctx.stringValue("StartInstancesResponse.InstanceResponses["+ i +"].Code")); + instanceResponse.setMessage(_ctx.stringValue("StartInstancesResponse.InstanceResponses["+ i +"].Message")); + instanceResponse.setInstanceId(_ctx.stringValue("StartInstancesResponse.InstanceResponses["+ i +"].InstanceId")); + instanceResponse.setCurrentStatus(_ctx.stringValue("StartInstancesResponse.InstanceResponses["+ i +"].CurrentStatus")); + instanceResponse.setPreviousStatus(_ctx.stringValue("StartInstancesResponse.InstanceResponses["+ i +"].PreviousStatus")); + + instanceResponses.add(instanceResponse); + } + startInstancesResponse.setInstanceResponses(instanceResponses); + + return startInstancesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/StartTerminalSessionResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/StartTerminalSessionResponseUnmarshaller.java new file mode 100644 index 0000000000..837bd66780 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/StartTerminalSessionResponseUnmarshaller.java @@ -0,0 +1,32 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.StartTerminalSessionResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class StartTerminalSessionResponseUnmarshaller { + + public static StartTerminalSessionResponse unmarshall(StartTerminalSessionResponse startTerminalSessionResponse, UnmarshallerContext _ctx) { + + startTerminalSessionResponse.setRequestId(_ctx.stringValue("StartTerminalSessionResponse.RequestId")); + startTerminalSessionResponse.setSessionId(_ctx.stringValue("StartTerminalSessionResponse.SessionId")); + startTerminalSessionResponse.setSecurityToken(_ctx.stringValue("StartTerminalSessionResponse.SecurityToken")); + startTerminalSessionResponse.setWebSocketUrl(_ctx.stringValue("StartTerminalSessionResponse.WebSocketUrl")); + + return startTerminalSessionResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/StopInstanceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/StopInstanceResponseUnmarshaller.java new file mode 100644 index 0000000000..d3ba24cf63 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/StopInstanceResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.StopInstanceResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class StopInstanceResponseUnmarshaller { + + public static StopInstanceResponse unmarshall(StopInstanceResponse stopInstanceResponse, UnmarshallerContext _ctx) { + + stopInstanceResponse.setRequestId(_ctx.stringValue("StopInstanceResponse.RequestId")); + + return stopInstanceResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/StopInstancesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/StopInstancesResponseUnmarshaller.java new file mode 100644 index 0000000000..07bf0533b5 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/StopInstancesResponseUnmarshaller.java @@ -0,0 +1,46 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ecs.model.v20140526.StopInstancesResponse; +import com.aliyuncs.ecs.model.v20140526.StopInstancesResponse.InstanceResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class StopInstancesResponseUnmarshaller { + + public static StopInstancesResponse unmarshall(StopInstancesResponse stopInstancesResponse, UnmarshallerContext _ctx) { + + stopInstancesResponse.setRequestId(_ctx.stringValue("StopInstancesResponse.RequestId")); + + List instanceResponses = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("StopInstancesResponse.InstanceResponses.Length"); i++) { + InstanceResponse instanceResponse = new InstanceResponse(); + instanceResponse.setCode(_ctx.stringValue("StopInstancesResponse.InstanceResponses["+ i +"].Code")); + instanceResponse.setMessage(_ctx.stringValue("StopInstancesResponse.InstanceResponses["+ i +"].Message")); + instanceResponse.setInstanceId(_ctx.stringValue("StopInstancesResponse.InstanceResponses["+ i +"].InstanceId")); + instanceResponse.setCurrentStatus(_ctx.stringValue("StopInstancesResponse.InstanceResponses["+ i +"].CurrentStatus")); + instanceResponse.setPreviousStatus(_ctx.stringValue("StopInstancesResponse.InstanceResponses["+ i +"].PreviousStatus")); + + instanceResponses.add(instanceResponse); + } + stopInstancesResponse.setInstanceResponses(instanceResponses); + + return stopInstancesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/StopInvocationResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/StopInvocationResponseUnmarshaller.java new file mode 100644 index 0000000000..5cf41dcd48 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/StopInvocationResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.StopInvocationResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class StopInvocationResponseUnmarshaller { + + public static StopInvocationResponse unmarshall(StopInvocationResponse stopInvocationResponse, UnmarshallerContext _ctx) { + + stopInvocationResponse.setRequestId(_ctx.stringValue("StopInvocationResponse.RequestId")); + + return stopInvocationResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/TagResourcesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/TagResourcesResponseUnmarshaller.java new file mode 100644 index 0000000000..0e9f687830 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/TagResourcesResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.TagResourcesResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class TagResourcesResponseUnmarshaller { + + public static TagResourcesResponse unmarshall(TagResourcesResponse tagResourcesResponse, UnmarshallerContext _ctx) { + + tagResourcesResponse.setRequestId(_ctx.stringValue("TagResourcesResponse.RequestId")); + + return tagResourcesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/TerminatePhysicalConnectionResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/TerminatePhysicalConnectionResponseUnmarshaller.java new file mode 100644 index 0000000000..b954652230 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/TerminatePhysicalConnectionResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.TerminatePhysicalConnectionResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class TerminatePhysicalConnectionResponseUnmarshaller { + + public static TerminatePhysicalConnectionResponse unmarshall(TerminatePhysicalConnectionResponse terminatePhysicalConnectionResponse, UnmarshallerContext _ctx) { + + terminatePhysicalConnectionResponse.setRequestId(_ctx.stringValue("TerminatePhysicalConnectionResponse.RequestId")); + + return terminatePhysicalConnectionResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/TerminateVirtualBorderRouterResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/TerminateVirtualBorderRouterResponseUnmarshaller.java new file mode 100644 index 0000000000..3165951b89 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/TerminateVirtualBorderRouterResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.TerminateVirtualBorderRouterResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class TerminateVirtualBorderRouterResponseUnmarshaller { + + public static TerminateVirtualBorderRouterResponse unmarshall(TerminateVirtualBorderRouterResponse terminateVirtualBorderRouterResponse, UnmarshallerContext _ctx) { + + terminateVirtualBorderRouterResponse.setRequestId(_ctx.stringValue("TerminateVirtualBorderRouterResponse.RequestId")); + + return terminateVirtualBorderRouterResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/UnassignIpv6AddressesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/UnassignIpv6AddressesResponseUnmarshaller.java new file mode 100644 index 0000000000..284870d0ae --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/UnassignIpv6AddressesResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.UnassignIpv6AddressesResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class UnassignIpv6AddressesResponseUnmarshaller { + + public static UnassignIpv6AddressesResponse unmarshall(UnassignIpv6AddressesResponse unassignIpv6AddressesResponse, UnmarshallerContext _ctx) { + + unassignIpv6AddressesResponse.setRequestId(_ctx.stringValue("UnassignIpv6AddressesResponse.RequestId")); + + return unassignIpv6AddressesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/UnassignPrivateIpAddressesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/UnassignPrivateIpAddressesResponseUnmarshaller.java new file mode 100644 index 0000000000..3108fa45de --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/UnassignPrivateIpAddressesResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.UnassignPrivateIpAddressesResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class UnassignPrivateIpAddressesResponseUnmarshaller { + + public static UnassignPrivateIpAddressesResponse unmarshall(UnassignPrivateIpAddressesResponse unassignPrivateIpAddressesResponse, UnmarshallerContext _ctx) { + + unassignPrivateIpAddressesResponse.setRequestId(_ctx.stringValue("UnassignPrivateIpAddressesResponse.RequestId")); + + return unassignPrivateIpAddressesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/UnassociateEipAddressResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/UnassociateEipAddressResponseUnmarshaller.java new file mode 100644 index 0000000000..2435230025 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/UnassociateEipAddressResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.UnassociateEipAddressResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class UnassociateEipAddressResponseUnmarshaller { + + public static UnassociateEipAddressResponse unmarshall(UnassociateEipAddressResponse unassociateEipAddressResponse, UnmarshallerContext _ctx) { + + unassociateEipAddressResponse.setRequestId(_ctx.stringValue("UnassociateEipAddressResponse.RequestId")); + + return unassociateEipAddressResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/UnassociateHaVipResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/UnassociateHaVipResponseUnmarshaller.java new file mode 100644 index 0000000000..58cc3155d2 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/UnassociateHaVipResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.UnassociateHaVipResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class UnassociateHaVipResponseUnmarshaller { + + public static UnassociateHaVipResponse unmarshall(UnassociateHaVipResponse unassociateHaVipResponse, UnmarshallerContext _ctx) { + + unassociateHaVipResponse.setRequestId(_ctx.stringValue("UnassociateHaVipResponse.RequestId")); + + return unassociateHaVipResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/UntagResourcesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/UntagResourcesResponseUnmarshaller.java new file mode 100644 index 0000000000..1da5676c14 --- /dev/null +++ b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/UntagResourcesResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.ecs.transform.v20140526; + +import com.aliyuncs.ecs.model.v20140526.UntagResourcesResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class UntagResourcesResponseUnmarshaller { + + public static UntagResourcesResponse unmarshall(UntagResourcesResponse untagResourcesResponse, UnmarshallerContext _ctx) { + + untagResourcesResponse.setRequestId(_ctx.stringValue("UntagResourcesResponse.RequestId")); + + return untagResourcesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/AddMigratableInstancesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/AddMigratableInstancesResponseUnmarshaller.java deleted file mode 100644 index 323a32ec5d..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/AddMigratableInstancesResponseUnmarshaller.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.AddMigratableInstancesResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class AddMigratableInstancesResponseUnmarshaller { - - public static AddMigratableInstancesResponse unmarshall(AddMigratableInstancesResponse addMigratableInstancesResponse, UnmarshallerContext _ctx) { - - addMigratableInstancesResponse.setRequestId(_ctx.stringValue("AddMigratableInstancesResponse.RequestId")); - - return addMigratableInstancesResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CancelMigrationInstancesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CancelMigrationInstancesResponseUnmarshaller.java deleted file mode 100644 index 5864f987b1..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CancelMigrationInstancesResponseUnmarshaller.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.CancelMigrationInstancesResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class CancelMigrationInstancesResponseUnmarshaller { - - public static CancelMigrationInstancesResponse unmarshall(CancelMigrationInstancesResponse cancelMigrationInstancesResponse, UnmarshallerContext _ctx) { - - cancelMigrationInstancesResponse.setRequestId(_ctx.stringValue("CancelMigrationInstancesResponse.RequestId")); - - return cancelMigrationInstancesResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CancelMigrationPlanResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CancelMigrationPlanResponseUnmarshaller.java deleted file mode 100644 index 6b2ec5fa42..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CancelMigrationPlanResponseUnmarshaller.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.CancelMigrationPlanResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class CancelMigrationPlanResponseUnmarshaller { - - public static CancelMigrationPlanResponse unmarshall(CancelMigrationPlanResponse cancelMigrationPlanResponse, UnmarshallerContext _ctx) { - - cancelMigrationPlanResponse.setRequestId(_ctx.stringValue("CancelMigrationPlanResponse.RequestId")); - - return cancelMigrationPlanResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ConfigureSecurityGroupPermissionsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ConfigureSecurityGroupPermissionsResponseUnmarshaller.java deleted file mode 100644 index 9fdeec2612..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ConfigureSecurityGroupPermissionsResponseUnmarshaller.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.ConfigureSecurityGroupPermissionsResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class ConfigureSecurityGroupPermissionsResponseUnmarshaller { - - public static ConfigureSecurityGroupPermissionsResponse unmarshall(ConfigureSecurityGroupPermissionsResponse configureSecurityGroupPermissionsResponse, UnmarshallerContext _ctx) { - - configureSecurityGroupPermissionsResponse.setRequestId(_ctx.stringValue("ConfigureSecurityGroupPermissionsResponse.RequestId")); - - return configureSecurityGroupPermissionsResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ConfirmReservationDemandResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ConfirmReservationDemandResponseUnmarshaller.java deleted file mode 100644 index 03e203c214..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ConfirmReservationDemandResponseUnmarshaller.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.ConfirmReservationDemandResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class ConfirmReservationDemandResponseUnmarshaller { - - public static ConfirmReservationDemandResponse unmarshall(ConfirmReservationDemandResponse confirmReservationDemandResponse, UnmarshallerContext _ctx) { - - confirmReservationDemandResponse.setRequestId(_ctx.stringValue("ConfirmReservationDemandResponse.RequestId")); - - return confirmReservationDemandResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateDefaultAutoSnapshotPolicyResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateDefaultAutoSnapshotPolicyResponseUnmarshaller.java deleted file mode 100644 index 8db4e19178..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateDefaultAutoSnapshotPolicyResponseUnmarshaller.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.CreateDefaultAutoSnapshotPolicyResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class CreateDefaultAutoSnapshotPolicyResponseUnmarshaller { - - public static CreateDefaultAutoSnapshotPolicyResponse unmarshall(CreateDefaultAutoSnapshotPolicyResponse createDefaultAutoSnapshotPolicyResponse, UnmarshallerContext _ctx) { - - createDefaultAutoSnapshotPolicyResponse.setRequestId(_ctx.stringValue("CreateDefaultAutoSnapshotPolicyResponse.RequestId")); - createDefaultAutoSnapshotPolicyResponse.setTimePoints(_ctx.stringValue("CreateDefaultAutoSnapshotPolicyResponse.TimePoints")); - createDefaultAutoSnapshotPolicyResponse.setAutoSnapshotPolicyName(_ctx.stringValue("CreateDefaultAutoSnapshotPolicyResponse.AutoSnapshotPolicyName")); - createDefaultAutoSnapshotPolicyResponse.setRepeatWeekdays(_ctx.stringValue("CreateDefaultAutoSnapshotPolicyResponse.RepeatWeekdays")); - createDefaultAutoSnapshotPolicyResponse.setAutoSnapshotPolicyId(_ctx.stringValue("CreateDefaultAutoSnapshotPolicyResponse.AutoSnapshotPolicyId")); - createDefaultAutoSnapshotPolicyResponse.setRetentionDays(_ctx.integerValue("CreateDefaultAutoSnapshotPolicyResponse.RetentionDays")); - - return createDefaultAutoSnapshotPolicyResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateDiagnoseResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateDiagnoseResponseUnmarshaller.java deleted file mode 100644 index a6e967ccb6..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateDiagnoseResponseUnmarshaller.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.CreateDiagnoseResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class CreateDiagnoseResponseUnmarshaller { - - public static CreateDiagnoseResponse unmarshall(CreateDiagnoseResponse createDiagnoseResponse, UnmarshallerContext _ctx) { - - createDiagnoseResponse.setRequestId(_ctx.stringValue("CreateDiagnoseResponse.RequestId")); - createDiagnoseResponse.setStatus(_ctx.stringValue("CreateDiagnoseResponse.Status")); - createDiagnoseResponse.setDiagnoseId(_ctx.stringValue("CreateDiagnoseResponse.DiagnoseId")); - - return createDiagnoseResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateDiagnosisOperateRecordsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateDiagnosisOperateRecordsResponseUnmarshaller.java deleted file mode 100644 index 710c1d6118..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateDiagnosisOperateRecordsResponseUnmarshaller.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.CreateDiagnosisOperateRecordsResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class CreateDiagnosisOperateRecordsResponseUnmarshaller { - - public static CreateDiagnosisOperateRecordsResponse unmarshall(CreateDiagnosisOperateRecordsResponse createDiagnosisOperateRecordsResponse, UnmarshallerContext _ctx) { - - createDiagnosisOperateRecordsResponse.setRequestId(_ctx.stringValue("CreateDiagnosisOperateRecordsResponse.RequestId")); - - return createDiagnosisOperateRecordsResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateDiagnosticReportResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateDiagnosticReportResponseUnmarshaller.java deleted file mode 100644 index a922bdf24c..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateDiagnosticReportResponseUnmarshaller.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.CreateDiagnosticReportResponse; -import com.aliyuncs.ecs.model.v20160314.CreateDiagnosticReportResponse.InvokeResult; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class CreateDiagnosticReportResponseUnmarshaller { - - public static CreateDiagnosticReportResponse unmarshall(CreateDiagnosticReportResponse createDiagnosticReportResponse, UnmarshallerContext _ctx) { - - createDiagnosticReportResponse.setRequestId(_ctx.stringValue("CreateDiagnosticReportResponse.RequestId")); - createDiagnosticReportResponse.setStatus(_ctx.stringValue("CreateDiagnosticReportResponse.Status")); - createDiagnosticReportResponse.setReportId(_ctx.stringValue("CreateDiagnosticReportResponse.ReportId")); - createDiagnosticReportResponse.setCreateTime(_ctx.stringValue("CreateDiagnosticReportResponse.CreateTime")); - - List commandInvokeResults = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("CreateDiagnosticReportResponse.CommandInvokeResults.Length"); i++) { - InvokeResult invokeResult = new InvokeResult(); - invokeResult.setDataFileDir(_ctx.stringValue("CreateDiagnosticReportResponse.CommandInvokeResults["+ i +"].DataFileDir")); - invokeResult.setInvokeResult(_ctx.stringValue("CreateDiagnosticReportResponse.CommandInvokeResults["+ i +"].InvokeResult")); - invokeResult.setCommandName(_ctx.stringValue("CreateDiagnosticReportResponse.CommandInvokeResults["+ i +"].CommandName")); - - commandInvokeResults.add(invokeResult); - } - createDiagnosticReportResponse.setCommandInvokeResults(commandInvokeResults); - - return createDiagnosticReportResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateDisksResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateDisksResponseUnmarshaller.java deleted file mode 100644 index c1c8d80c8d..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateDisksResponseUnmarshaller.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.CreateDisksResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class CreateDisksResponseUnmarshaller { - - public static CreateDisksResponse unmarshall(CreateDisksResponse createDisksResponse, UnmarshallerContext _ctx) { - - createDisksResponse.setRequestId(_ctx.stringValue("CreateDisksResponse.RequestId")); - - List diskId = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("CreateDisksResponse.DiskId.Length"); i++) { - diskId.add(_ctx.stringValue("CreateDisksResponse.DiskId["+ i +"]")); - } - createDisksResponse.setDiskId(diskId); - - return createDisksResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateEniQosGroupResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateEniQosGroupResponseUnmarshaller.java deleted file mode 100644 index c6f406cc0d..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateEniQosGroupResponseUnmarshaller.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.CreateEniQosGroupResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class CreateEniQosGroupResponseUnmarshaller { - - public static CreateEniQosGroupResponse unmarshall(CreateEniQosGroupResponse createEniQosGroupResponse, UnmarshallerContext _ctx) { - - createEniQosGroupResponse.setRequestId(_ctx.stringValue("CreateEniQosGroupResponse.RequestId")); - createEniQosGroupResponse.setQosGroupName(_ctx.stringValue("CreateEniQosGroupResponse.QosGroupName")); - - return createEniQosGroupResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateFunctionFeedbackResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateFunctionFeedbackResponseUnmarshaller.java deleted file mode 100644 index 99466d3abc..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateFunctionFeedbackResponseUnmarshaller.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.CreateFunctionFeedbackResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class CreateFunctionFeedbackResponseUnmarshaller { - - public static CreateFunctionFeedbackResponse unmarshall(CreateFunctionFeedbackResponse createFunctionFeedbackResponse, UnmarshallerContext _ctx) { - - createFunctionFeedbackResponse.setRequestId(_ctx.stringValue("CreateFunctionFeedbackResponse.RequestId")); - - return createFunctionFeedbackResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateImageCacheResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateImageCacheResponseUnmarshaller.java deleted file mode 100644 index 242e49ce85..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateImageCacheResponseUnmarshaller.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.CreateImageCacheResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class CreateImageCacheResponseUnmarshaller { - - public static CreateImageCacheResponse unmarshall(CreateImageCacheResponse createImageCacheResponse, UnmarshallerContext _ctx) { - - createImageCacheResponse.setRequestId(_ctx.stringValue("CreateImageCacheResponse.RequestId")); - - return createImageCacheResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateIssueCategoryReportRelationResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateIssueCategoryReportRelationResponseUnmarshaller.java deleted file mode 100644 index 95b8a71870..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateIssueCategoryReportRelationResponseUnmarshaller.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.CreateIssueCategoryReportRelationResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class CreateIssueCategoryReportRelationResponseUnmarshaller { - - public static CreateIssueCategoryReportRelationResponse unmarshall(CreateIssueCategoryReportRelationResponse createIssueCategoryReportRelationResponse, UnmarshallerContext _ctx) { - - createIssueCategoryReportRelationResponse.setRequestId(_ctx.stringValue("CreateIssueCategoryReportRelationResponse.RequestId")); - createIssueCategoryReportRelationResponse.setStatus(_ctx.stringValue("CreateIssueCategoryReportRelationResponse.Status")); - - return createIssueCategoryReportRelationResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateMigrationPlanResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateMigrationPlanResponseUnmarshaller.java deleted file mode 100644 index e50cdc4e4d..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateMigrationPlanResponseUnmarshaller.java +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.CreateMigrationPlanResponse; -import com.aliyuncs.ecs.model.v20160314.CreateMigrationPlanResponse.InstancesFailModel; -import com.aliyuncs.ecs.model.v20160314.CreateMigrationPlanResponse.InstancesFailModel.FailModel; -import com.aliyuncs.ecs.model.v20160314.CreateMigrationPlanResponse.PlanFailModel; -import com.aliyuncs.ecs.model.v20160314.CreateMigrationPlanResponse.SgFailModel; -import com.aliyuncs.ecs.model.v20160314.CreateMigrationPlanResponse.SgFailModel.FailModel2; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class CreateMigrationPlanResponseUnmarshaller { - - public static CreateMigrationPlanResponse unmarshall(CreateMigrationPlanResponse createMigrationPlanResponse, UnmarshallerContext _ctx) { - - createMigrationPlanResponse.setRequestId(_ctx.stringValue("CreateMigrationPlanResponse.RequestId")); - createMigrationPlanResponse.setMigrationPlanId(_ctx.stringValue("CreateMigrationPlanResponse.MigrationPlanId")); - - List planFailModels = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("CreateMigrationPlanResponse.PlanFailModels.Length"); i++) { - PlanFailModel planFailModel = new PlanFailModel(); - planFailModel.setErrorCode(_ctx.stringValue("CreateMigrationPlanResponse.PlanFailModels["+ i +"].ErrorCode")); - planFailModel.setErrorMessage(_ctx.stringValue("CreateMigrationPlanResponse.PlanFailModels["+ i +"].ErrorMessage")); - - planFailModels.add(planFailModel); - } - createMigrationPlanResponse.setPlanFailModels(planFailModels); - - List instancesFailModels = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("CreateMigrationPlanResponse.InstancesFailModels.Length"); i++) { - InstancesFailModel instancesFailModel = new InstancesFailModel(); - instancesFailModel.setInstanceId(_ctx.stringValue("CreateMigrationPlanResponse.InstancesFailModels["+ i +"].InstanceId")); - - List failModels = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("CreateMigrationPlanResponse.InstancesFailModels["+ i +"].FailModels.Length"); j++) { - FailModel failModel = new FailModel(); - failModel.setErrorCode(_ctx.stringValue("CreateMigrationPlanResponse.InstancesFailModels["+ i +"].FailModels["+ j +"].ErrorCode")); - failModel.setErrorMessage(_ctx.stringValue("CreateMigrationPlanResponse.InstancesFailModels["+ i +"].FailModels["+ j +"].ErrorMessage")); - - failModels.add(failModel); - } - instancesFailModel.setFailModels(failModels); - - instancesFailModels.add(instancesFailModel); - } - createMigrationPlanResponse.setInstancesFailModels(instancesFailModels); - - List sgFailModels = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("CreateMigrationPlanResponse.SgFailModels.Length"); i++) { - SgFailModel sgFailModel = new SgFailModel(); - sgFailModel.setGroupNo(_ctx.stringValue("CreateMigrationPlanResponse.SgFailModels["+ i +"].GroupNo")); - - List failModels1 = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("CreateMigrationPlanResponse.SgFailModels["+ i +"].FailModels.Length"); j++) { - FailModel2 failModel2 = new FailModel2(); - failModel2.setErrorCode(_ctx.stringValue("CreateMigrationPlanResponse.SgFailModels["+ i +"].FailModels["+ j +"].ErrorCode")); - failModel2.setErrorMessage(_ctx.stringValue("CreateMigrationPlanResponse.SgFailModels["+ i +"].FailModels["+ j +"].ErrorMessage")); - - failModels1.add(failModel2); - } - sgFailModel.setFailModels1(failModels1); - - sgFailModels.add(sgFailModel); - } - createMigrationPlanResponse.setSgFailModels(sgFailModels); - - return createMigrationPlanResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateNetworkInsightsPathResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateNetworkInsightsPathResponseUnmarshaller.java deleted file mode 100644 index 83b2b0c23e..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateNetworkInsightsPathResponseUnmarshaller.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.CreateNetworkInsightsPathResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class CreateNetworkInsightsPathResponseUnmarshaller { - - public static CreateNetworkInsightsPathResponse unmarshall(CreateNetworkInsightsPathResponse createNetworkInsightsPathResponse, UnmarshallerContext _ctx) { - - createNetworkInsightsPathResponse.setRequestId(_ctx.stringValue("CreateNetworkInsightsPathResponse.RequestId")); - createNetworkInsightsPathResponse.setNetworkInsightsPathId(_ctx.stringValue("CreateNetworkInsightsPathResponse.NetworkInsightsPathId")); - createNetworkInsightsPathResponse.setNetworkInsightsAnalysisId(_ctx.stringValue("CreateNetworkInsightsPathResponse.NetworkInsightsAnalysisId")); - - return createNetworkInsightsPathResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateOrderResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateOrderResponseUnmarshaller.java deleted file mode 100644 index 5a7cf67598..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateOrderResponseUnmarshaller.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.CreateOrderResponse; -import com.aliyuncs.ecs.model.v20160314.CreateOrderResponse.RelatedOrderItemSet; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class CreateOrderResponseUnmarshaller { - - public static CreateOrderResponse unmarshall(CreateOrderResponse createOrderResponse, UnmarshallerContext _ctx) { - - createOrderResponse.setRequestId(_ctx.stringValue("CreateOrderResponse.RequestId")); - createOrderResponse.setTaskId(_ctx.stringValue("CreateOrderResponse.TaskId")); - createOrderResponse.setOrderId(_ctx.stringValue("CreateOrderResponse.OrderId")); - createOrderResponse.setTradePrice(_ctx.floatValue("CreateOrderResponse.TradePrice")); - - List orderParams = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("CreateOrderResponse.OrderParams.Length"); i++) { - orderParams.add(_ctx.stringValue("CreateOrderResponse.OrderParams["+ i +"]")); - } - createOrderResponse.setOrderParams(orderParams); - - List relatedOrderItemSets = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("CreateOrderResponse.RelatedOrderItemSets.Length"); i++) { - RelatedOrderItemSet relatedOrderItemSet = new RelatedOrderItemSet(); - - List relatedOrderIds = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("CreateOrderResponse.RelatedOrderItemSets["+ i +"].RelatedOrderIds.Length"); j++) { - relatedOrderIds.add(_ctx.stringValue("CreateOrderResponse.RelatedOrderItemSets["+ i +"].RelatedOrderIds["+ j +"]")); - } - relatedOrderItemSet.setRelatedOrderIds(relatedOrderIds); - - List instanceIdSet = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("CreateOrderResponse.RelatedOrderItemSets["+ i +"].InstanceIdSet.Length"); j++) { - instanceIdSet.add(_ctx.stringValue("CreateOrderResponse.RelatedOrderItemSets["+ i +"].InstanceIdSet["+ j +"]")); - } - relatedOrderItemSet.setInstanceIdSet(instanceIdSet); - - List diskIdSet = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("CreateOrderResponse.RelatedOrderItemSets["+ i +"].DiskIdSet.Length"); j++) { - diskIdSet.add(_ctx.stringValue("CreateOrderResponse.RelatedOrderItemSets["+ i +"].DiskIdSet["+ j +"]")); - } - relatedOrderItemSet.setDiskIdSet(diskIdSet); - - relatedOrderItemSets.add(relatedOrderItemSet); - } - createOrderResponse.setRelatedOrderItemSets(relatedOrderItemSets); - - return createOrderResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateReservationDemandResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateReservationDemandResponseUnmarshaller.java deleted file mode 100644 index cac289f9c2..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateReservationDemandResponseUnmarshaller.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.CreateReservationDemandResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class CreateReservationDemandResponseUnmarshaller { - - public static CreateReservationDemandResponse unmarshall(CreateReservationDemandResponse createReservationDemandResponse, UnmarshallerContext _ctx) { - - createReservationDemandResponse.setRequestId(_ctx.stringValue("CreateReservationDemandResponse.RequestId")); - createReservationDemandResponse.setDemandId(_ctx.stringValue("CreateReservationDemandResponse.DemandId")); - - return createReservationDemandResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateUserQuotaApplicationResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateUserQuotaApplicationResponseUnmarshaller.java deleted file mode 100644 index 3701db3b21..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateUserQuotaApplicationResponseUnmarshaller.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.CreateUserQuotaApplicationResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class CreateUserQuotaApplicationResponseUnmarshaller { - - public static CreateUserQuotaApplicationResponse unmarshall(CreateUserQuotaApplicationResponse createUserQuotaApplicationResponse, UnmarshallerContext _ctx) { - - createUserQuotaApplicationResponse.setRequestId(_ctx.stringValue("CreateUserQuotaApplicationResponse.RequestId")); - createUserQuotaApplicationResponse.setApplicationId(_ctx.stringValue("CreateUserQuotaApplicationResponse.ApplicationId")); - - return createUserQuotaApplicationResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateVolumesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateVolumesResponseUnmarshaller.java deleted file mode 100644 index d2934bb386..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateVolumesResponseUnmarshaller.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.CreateVolumesResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class CreateVolumesResponseUnmarshaller { - - public static CreateVolumesResponse unmarshall(CreateVolumesResponse createVolumesResponse, UnmarshallerContext _ctx) { - - createVolumesResponse.setRequestId(_ctx.stringValue("CreateVolumesResponse.RequestId")); - - List volumeIds = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("CreateVolumesResponse.VolumeIds.Length"); i++) { - volumeIds.add(_ctx.stringValue("CreateVolumesResponse.VolumeIds["+ i +"]")); - } - createVolumesResponse.setVolumeIds(volumeIds); - - return createVolumesResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateWaitingOrderResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateWaitingOrderResponseUnmarshaller.java deleted file mode 100644 index 5aa1d72535..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/CreateWaitingOrderResponseUnmarshaller.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.CreateWaitingOrderResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class CreateWaitingOrderResponseUnmarshaller { - - public static CreateWaitingOrderResponse unmarshall(CreateWaitingOrderResponse createWaitingOrderResponse, UnmarshallerContext _ctx) { - - createWaitingOrderResponse.setRequestId(_ctx.stringValue("CreateWaitingOrderResponse.RequestId")); - createWaitingOrderResponse.setDryRunResult(_ctx.stringValue("CreateWaitingOrderResponse.DryRunResult")); - createWaitingOrderResponse.setWaitTimeValue(_ctx.integerValue("CreateWaitingOrderResponse.WaitTimeValue")); - createWaitingOrderResponse.setWaitTimeCycle(_ctx.stringValue("CreateWaitingOrderResponse.WaitTimeCycle")); - createWaitingOrderResponse.setWaitingOrderId(_ctx.stringValue("CreateWaitingOrderResponse.WaitingOrderId")); - - return createWaitingOrderResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DeleteEniQosGroupResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DeleteEniQosGroupResponseUnmarshaller.java deleted file mode 100644 index ad854c93a3..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DeleteEniQosGroupResponseUnmarshaller.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.DeleteEniQosGroupResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DeleteEniQosGroupResponseUnmarshaller { - - public static DeleteEniQosGroupResponse unmarshall(DeleteEniQosGroupResponse deleteEniQosGroupResponse, UnmarshallerContext _ctx) { - - deleteEniQosGroupResponse.setRequestId(_ctx.stringValue("DeleteEniQosGroupResponse.RequestId")); - - return deleteEniQosGroupResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DeleteImageCacheResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DeleteImageCacheResponseUnmarshaller.java deleted file mode 100644 index 496e7ea9e6..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DeleteImageCacheResponseUnmarshaller.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.DeleteImageCacheResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DeleteImageCacheResponseUnmarshaller { - - public static DeleteImageCacheResponse unmarshall(DeleteImageCacheResponse deleteImageCacheResponse, UnmarshallerContext _ctx) { - - deleteImageCacheResponse.setRequestId(_ctx.stringValue("DeleteImageCacheResponse.RequestId")); - - return deleteImageCacheResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DeleteMigratableInstancesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DeleteMigratableInstancesResponseUnmarshaller.java deleted file mode 100644 index a6e3479e57..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DeleteMigratableInstancesResponseUnmarshaller.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.DeleteMigratableInstancesResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DeleteMigratableInstancesResponseUnmarshaller { - - public static DeleteMigratableInstancesResponse unmarshall(DeleteMigratableInstancesResponse deleteMigratableInstancesResponse, UnmarshallerContext _ctx) { - - deleteMigratableInstancesResponse.setRequestId(_ctx.stringValue("DeleteMigratableInstancesResponse.RequestId")); - - return deleteMigratableInstancesResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DeleteNetworkInsightsAnalysisResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DeleteNetworkInsightsAnalysisResponseUnmarshaller.java deleted file mode 100644 index f2e12c5c3b..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DeleteNetworkInsightsAnalysisResponseUnmarshaller.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.DeleteNetworkInsightsAnalysisResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DeleteNetworkInsightsAnalysisResponseUnmarshaller { - - public static DeleteNetworkInsightsAnalysisResponse unmarshall(DeleteNetworkInsightsAnalysisResponse deleteNetworkInsightsAnalysisResponse, UnmarshallerContext _ctx) { - - deleteNetworkInsightsAnalysisResponse.setRequestId(_ctx.stringValue("DeleteNetworkInsightsAnalysisResponse.RequestId")); - - return deleteNetworkInsightsAnalysisResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DeleteNetworkInsightsPathResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DeleteNetworkInsightsPathResponseUnmarshaller.java deleted file mode 100644 index 14bbfc9366..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DeleteNetworkInsightsPathResponseUnmarshaller.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.DeleteNetworkInsightsPathResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DeleteNetworkInsightsPathResponseUnmarshaller { - - public static DeleteNetworkInsightsPathResponse unmarshall(DeleteNetworkInsightsPathResponse deleteNetworkInsightsPathResponse, UnmarshallerContext _ctx) { - - deleteNetworkInsightsPathResponse.setRequestId(_ctx.stringValue("DeleteNetworkInsightsPathResponse.RequestId")); - - return deleteNetworkInsightsPathResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DeleteReservationDemandResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DeleteReservationDemandResponseUnmarshaller.java deleted file mode 100644 index c626d871bc..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DeleteReservationDemandResponseUnmarshaller.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.DeleteReservationDemandResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DeleteReservationDemandResponseUnmarshaller { - - public static DeleteReservationDemandResponse unmarshall(DeleteReservationDemandResponse deleteReservationDemandResponse, UnmarshallerContext _ctx) { - - deleteReservationDemandResponse.setRequestId(_ctx.stringValue("DeleteReservationDemandResponse.RequestId")); - - return deleteReservationDemandResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DeleteUserQuotaApplicationResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DeleteUserQuotaApplicationResponseUnmarshaller.java deleted file mode 100644 index d549e611db..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DeleteUserQuotaApplicationResponseUnmarshaller.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.DeleteUserQuotaApplicationResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DeleteUserQuotaApplicationResponseUnmarshaller { - - public static DeleteUserQuotaApplicationResponse unmarshall(DeleteUserQuotaApplicationResponse deleteUserQuotaApplicationResponse, UnmarshallerContext _ctx) { - - deleteUserQuotaApplicationResponse.setRequestId(_ctx.stringValue("DeleteUserQuotaApplicationResponse.RequestId")); - - return deleteUserQuotaApplicationResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DeleteWaitingOrdersResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DeleteWaitingOrdersResponseUnmarshaller.java deleted file mode 100644 index 17b993786e..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DeleteWaitingOrdersResponseUnmarshaller.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.DeleteWaitingOrdersResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DeleteWaitingOrdersResponseUnmarshaller { - - public static DeleteWaitingOrdersResponse unmarshall(DeleteWaitingOrdersResponse deleteWaitingOrdersResponse, UnmarshallerContext _ctx) { - - deleteWaitingOrdersResponse.setRequestId(_ctx.stringValue("DeleteWaitingOrdersResponse.RequestId")); - - return deleteWaitingOrdersResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeAccountLimitsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeAccountLimitsResponseUnmarshaller.java deleted file mode 100644 index 3fc1168119..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeAccountLimitsResponseUnmarshaller.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeAccountLimitsResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeAccountLimitsResponse.AccountLimit; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeAccountLimitsResponseUnmarshaller { - - public static DescribeAccountLimitsResponse unmarshall(DescribeAccountLimitsResponse describeAccountLimitsResponse, UnmarshallerContext _ctx) { - - describeAccountLimitsResponse.setRequestId(_ctx.stringValue("DescribeAccountLimitsResponse.RequestId")); - - List accountLimitTypeSet = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeAccountLimitsResponse.AccountLimitTypeSet.Length"); i++) { - AccountLimit accountLimit = new AccountLimit(); - accountLimit.setLimitName(_ctx.stringValue("DescribeAccountLimitsResponse.AccountLimitTypeSet["+ i +"].LimitName")); - - List limitValueSet = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeAccountLimitsResponse.AccountLimitTypeSet["+ i +"].LimitValueSet.Length"); j++) { - limitValueSet.add(_ctx.stringValue("DescribeAccountLimitsResponse.AccountLimitTypeSet["+ i +"].LimitValueSet["+ j +"]")); - } - accountLimit.setLimitValueSet(limitValueSet); - - accountLimitTypeSet.add(accountLimit); - } - describeAccountLimitsResponse.setAccountLimitTypeSet(accountLimitTypeSet); - - return describeAccountLimitsResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeAccountQuotaAttributesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeAccountQuotaAttributesResponseUnmarshaller.java deleted file mode 100644 index dd934efe6a..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeAccountQuotaAttributesResponseUnmarshaller.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.DescribeAccountQuotaAttributesResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeAccountQuotaAttributesResponse.QuotaAttributes; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeAccountQuotaAttributesResponseUnmarshaller { - - public static DescribeAccountQuotaAttributesResponse unmarshall(DescribeAccountQuotaAttributesResponse describeAccountQuotaAttributesResponse, UnmarshallerContext _ctx) { - - describeAccountQuotaAttributesResponse.setRequestId(_ctx.stringValue("DescribeAccountQuotaAttributesResponse.RequestId")); - - QuotaAttributes quotaAttributes = new QuotaAttributes(); - quotaAttributes.setEcsElasticQuotaEnable(_ctx.booleanValue("DescribeAccountQuotaAttributesResponse.QuotaAttributes.EcsElasticQuotaEnable")); - describeAccountQuotaAttributesResponse.setQuotaAttributes(quotaAttributes); - - return describeAccountQuotaAttributesResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeAutoProvisioningGroupCapacitiesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeAutoProvisioningGroupCapacitiesResponseUnmarshaller.java deleted file mode 100644 index 8760b479d9..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeAutoProvisioningGroupCapacitiesResponseUnmarshaller.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeAutoProvisioningGroupCapacitiesResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeAutoProvisioningGroupCapacitiesResponse.Capacity; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeAutoProvisioningGroupCapacitiesResponseUnmarshaller { - - public static DescribeAutoProvisioningGroupCapacitiesResponse unmarshall(DescribeAutoProvisioningGroupCapacitiesResponse describeAutoProvisioningGroupCapacitiesResponse, UnmarshallerContext _ctx) { - - describeAutoProvisioningGroupCapacitiesResponse.setRequestId(_ctx.stringValue("DescribeAutoProvisioningGroupCapacitiesResponse.RequestId")); - describeAutoProvisioningGroupCapacitiesResponse.setCode(_ctx.stringValue("DescribeAutoProvisioningGroupCapacitiesResponse.Code")); - describeAutoProvisioningGroupCapacitiesResponse.setMessage(_ctx.stringValue("DescribeAutoProvisioningGroupCapacitiesResponse.Message")); - describeAutoProvisioningGroupCapacitiesResponse.setSuccess(_ctx.booleanValue("DescribeAutoProvisioningGroupCapacitiesResponse.Success")); - - List capacities = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeAutoProvisioningGroupCapacitiesResponse.Capacities.Length"); i++) { - Capacity capacity = new Capacity(); - capacity.setSpotCapacity(_ctx.stringValue("DescribeAutoProvisioningGroupCapacitiesResponse.Capacities["+ i +"].SpotCapacity")); - capacity.setTotalCapacity(_ctx.stringValue("DescribeAutoProvisioningGroupCapacitiesResponse.Capacities["+ i +"].TotalCapacity")); - capacity.setAutoProvisioningGroupId(_ctx.stringValue("DescribeAutoProvisioningGroupCapacitiesResponse.Capacities["+ i +"].AutoProvisioningGroupId")); - capacity.setPayAsYouGoCapacity(_ctx.stringValue("DescribeAutoProvisioningGroupCapacitiesResponse.Capacities["+ i +"].PayAsYouGoCapacity")); - - capacities.add(capacity); - } - describeAutoProvisioningGroupCapacitiesResponse.setCapacities(capacities); - - return describeAutoProvisioningGroupCapacitiesResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeBandwidthPriceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeBandwidthPriceResponseUnmarshaller.java deleted file mode 100644 index efb58bcfc1..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeBandwidthPriceResponseUnmarshaller.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeBandwidthPriceResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeBandwidthPriceResponse.PriceInfo; -import com.aliyuncs.ecs.model.v20160314.DescribeBandwidthPriceResponse.PriceInfo.Order; -import com.aliyuncs.ecs.model.v20160314.DescribeBandwidthPriceResponse.PriceInfo.Rule; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeBandwidthPriceResponseUnmarshaller { - - public static DescribeBandwidthPriceResponse unmarshall(DescribeBandwidthPriceResponse describeBandwidthPriceResponse, UnmarshallerContext _ctx) { - - describeBandwidthPriceResponse.setRequestId(_ctx.stringValue("DescribeBandwidthPriceResponse.RequestId")); - - PriceInfo priceInfo = new PriceInfo(); - - Order order = new Order(); - order.setOriginalPrice(_ctx.floatValue("DescribeBandwidthPriceResponse.PriceInfo.Order.OriginalPrice")); - order.setDiscountPrice(_ctx.floatValue("DescribeBandwidthPriceResponse.PriceInfo.Order.DiscountPrice")); - order.setCurrency(_ctx.stringValue("DescribeBandwidthPriceResponse.PriceInfo.Order.Currency")); - order.setTradePrice(_ctx.floatValue("DescribeBandwidthPriceResponse.PriceInfo.Order.TradePrice")); - - List ruleIdSet = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeBandwidthPriceResponse.PriceInfo.Order.RuleIdSet.Length"); i++) { - ruleIdSet.add(_ctx.stringValue("DescribeBandwidthPriceResponse.PriceInfo.Order.RuleIdSet["+ i +"]")); - } - order.setRuleIdSet(ruleIdSet); - priceInfo.setOrder(order); - - List rules = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeBandwidthPriceResponse.PriceInfo.Rules.Length"); i++) { - Rule rule = new Rule(); - rule.setTitle(_ctx.stringValue("DescribeBandwidthPriceResponse.PriceInfo.Rules["+ i +"].Title")); - rule.setName(_ctx.stringValue("DescribeBandwidthPriceResponse.PriceInfo.Rules["+ i +"].Name")); - rule.setRuleId(_ctx.longValue("DescribeBandwidthPriceResponse.PriceInfo.Rules["+ i +"].RuleId")); - - rules.add(rule); - } - priceInfo.setRules(rules); - describeBandwidthPriceResponse.setPriceInfo(priceInfo); - - return describeBandwidthPriceResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeCapacityReservationsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeCapacityReservationsResponseUnmarshaller.java deleted file mode 100644 index 4c23e1e087..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeCapacityReservationsResponseUnmarshaller.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeCapacityReservationsResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeCapacityReservationsResponse.CapacityReservation; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeCapacityReservationsResponseUnmarshaller { - - public static DescribeCapacityReservationsResponse unmarshall(DescribeCapacityReservationsResponse describeCapacityReservationsResponse, UnmarshallerContext _ctx) { - - describeCapacityReservationsResponse.setRequestId(_ctx.stringValue("DescribeCapacityReservationsResponse.RequestId")); - describeCapacityReservationsResponse.setPageSize(_ctx.integerValue("DescribeCapacityReservationsResponse.PageSize")); - describeCapacityReservationsResponse.setPageNumber(_ctx.integerValue("DescribeCapacityReservationsResponse.PageNumber")); - describeCapacityReservationsResponse.setTotalCount(_ctx.integerValue("DescribeCapacityReservationsResponse.TotalCount")); - - List capacityReservations = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeCapacityReservationsResponse.CapacityReservations.Length"); i++) { - CapacityReservation capacityReservation = new CapacityReservation(); - capacityReservation.setStatus(_ctx.stringValue("DescribeCapacityReservationsResponse.CapacityReservations["+ i +"].Status")); - capacityReservation.setTotalInstanceCount(_ctx.integerValue("DescribeCapacityReservationsResponse.CapacityReservations["+ i +"].TotalInstanceCount")); - capacityReservation.setTimeSlot(_ctx.stringValue("DescribeCapacityReservationsResponse.CapacityReservations["+ i +"].TimeSlot")); - capacityReservation.setCapacityReservationName(_ctx.stringValue("DescribeCapacityReservationsResponse.CapacityReservations["+ i +"].CapacityReservationName")); - capacityReservation.setEndDateType(_ctx.stringValue("DescribeCapacityReservationsResponse.CapacityReservations["+ i +"].EndDateType")); - capacityReservation.setCapacityReservationId(_ctx.stringValue("DescribeCapacityReservationsResponse.CapacityReservations["+ i +"].CapacityReservationId")); - capacityReservation.setNetworkType(_ctx.stringValue("DescribeCapacityReservationsResponse.CapacityReservations["+ i +"].NetworkType")); - capacityReservation.setInstanceType(_ctx.stringValue("DescribeCapacityReservationsResponse.CapacityReservations["+ i +"].InstanceType")); - capacityReservation.setAvailableInstanceCount(_ctx.integerValue("DescribeCapacityReservationsResponse.CapacityReservations["+ i +"].AvailableInstanceCount")); - capacityReservation.setInstancePlatform(_ctx.stringValue("DescribeCapacityReservationsResponse.CapacityReservations["+ i +"].InstancePlatform")); - capacityReservation.setRegionId(_ctx.stringValue("DescribeCapacityReservationsResponse.CapacityReservations["+ i +"].RegionId")); - capacityReservation.setDescription(_ctx.stringValue("DescribeCapacityReservationsResponse.CapacityReservations["+ i +"].Description")); - capacityReservation.setInstanceMatchCriteria(_ctx.stringValue("DescribeCapacityReservationsResponse.CapacityReservations["+ i +"].InstanceMatchCriteria")); - capacityReservation.setZoneId(_ctx.stringValue("DescribeCapacityReservationsResponse.CapacityReservations["+ i +"].ZoneId")); - - capacityReservations.add(capacityReservation); - } - describeCapacityReservationsResponse.setCapacityReservations(capacityReservations); - - return describeCapacityReservationsResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeCustomerIssueCategoryResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeCustomerIssueCategoryResponseUnmarshaller.java deleted file mode 100644 index 5949c871e4..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeCustomerIssueCategoryResponseUnmarshaller.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeCustomerIssueCategoryResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeCustomerIssueCategoryResponse.IssueCategoryModelListItem; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeCustomerIssueCategoryResponseUnmarshaller { - - public static DescribeCustomerIssueCategoryResponse unmarshall(DescribeCustomerIssueCategoryResponse describeCustomerIssueCategoryResponse, UnmarshallerContext _ctx) { - - describeCustomerIssueCategoryResponse.setRequestId(_ctx.stringValue("DescribeCustomerIssueCategoryResponse.RequestId")); - - List issueCategoryModelList = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeCustomerIssueCategoryResponse.IssueCategoryModelList.Length"); i++) { - IssueCategoryModelListItem issueCategoryModelListItem = new IssueCategoryModelListItem(); - issueCategoryModelListItem.setIssueCategoryId(_ctx.longValue("DescribeCustomerIssueCategoryResponse.IssueCategoryModelList["+ i +"].IssueCategoryId")); - issueCategoryModelListItem.setIssueCategoryParentId(_ctx.longValue("DescribeCustomerIssueCategoryResponse.IssueCategoryModelList["+ i +"].IssueCategoryParentId")); - issueCategoryModelListItem.setIssueCategoryName(_ctx.stringValue("DescribeCustomerIssueCategoryResponse.IssueCategoryModelList["+ i +"].IssueCategoryName")); - issueCategoryModelListItem.setMappingTools(_ctx.stringValue("DescribeCustomerIssueCategoryResponse.IssueCategoryModelList["+ i +"].MappingTools")); - issueCategoryModelListItem.setLayer(_ctx.longValue("DescribeCustomerIssueCategoryResponse.IssueCategoryModelList["+ i +"].Layer")); - issueCategoryModelListItem.setResourceType(_ctx.stringValue("DescribeCustomerIssueCategoryResponse.IssueCategoryModelList["+ i +"].ResourceType")); - issueCategoryModelListItem.setMetricSetId(_ctx.stringValue("DescribeCustomerIssueCategoryResponse.IssueCategoryModelList["+ i +"].MetricSetId")); - - issueCategoryModelList.add(issueCategoryModelListItem); - } - describeCustomerIssueCategoryResponse.setIssueCategoryModelList(issueCategoryModelList); - - return describeCustomerIssueCategoryResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeDedicatedHostAutoRenewResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeDedicatedHostAutoRenewResponseUnmarshaller.java deleted file mode 100644 index 5999e30125..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeDedicatedHostAutoRenewResponseUnmarshaller.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeDedicatedHostAutoRenewResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeDedicatedHostAutoRenewResponse.InstanceRenewAttribute; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeDedicatedHostAutoRenewResponseUnmarshaller { - - public static DescribeDedicatedHostAutoRenewResponse unmarshall(DescribeDedicatedHostAutoRenewResponse describeDedicatedHostAutoRenewResponse, UnmarshallerContext _ctx) { - - describeDedicatedHostAutoRenewResponse.setRequestId(_ctx.stringValue("DescribeDedicatedHostAutoRenewResponse.RequestId")); - - List instanceRenewAttributes = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeDedicatedHostAutoRenewResponse.InstanceRenewAttributes.Length"); i++) { - InstanceRenewAttribute instanceRenewAttribute = new InstanceRenewAttribute(); - instanceRenewAttribute.setPeriodUnit(_ctx.stringValue("DescribeDedicatedHostAutoRenewResponse.InstanceRenewAttributes["+ i +"].PeriodUnit")); - instanceRenewAttribute.setDuration(_ctx.integerValue("DescribeDedicatedHostAutoRenewResponse.InstanceRenewAttributes["+ i +"].Duration")); - instanceRenewAttribute.setRenewalStatus(_ctx.stringValue("DescribeDedicatedHostAutoRenewResponse.InstanceRenewAttributes["+ i +"].RenewalStatus")); - instanceRenewAttribute.setInstanceId(_ctx.stringValue("DescribeDedicatedHostAutoRenewResponse.InstanceRenewAttributes["+ i +"].InstanceId")); - instanceRenewAttribute.setAutoRenewEnabled(_ctx.booleanValue("DescribeDedicatedHostAutoRenewResponse.InstanceRenewAttributes["+ i +"].AutoRenewEnabled")); - - instanceRenewAttributes.add(instanceRenewAttribute); - } - describeDedicatedHostAutoRenewResponse.setInstanceRenewAttributes(instanceRenewAttributes); - - return describeDedicatedHostAutoRenewResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeDedicatedHostTypesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeDedicatedHostTypesResponseUnmarshaller.java deleted file mode 100644 index 6195735bdb..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeDedicatedHostTypesResponseUnmarshaller.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeDedicatedHostTypesResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeDedicatedHostTypesResponse.DedicatedHostType; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeDedicatedHostTypesResponseUnmarshaller { - - public static DescribeDedicatedHostTypesResponse unmarshall(DescribeDedicatedHostTypesResponse describeDedicatedHostTypesResponse, UnmarshallerContext _ctx) { - - describeDedicatedHostTypesResponse.setRequestId(_ctx.stringValue("DescribeDedicatedHostTypesResponse.RequestId")); - - List dedicatedHostTypes = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes.Length"); i++) { - DedicatedHostType dedicatedHostType = new DedicatedHostType(); - dedicatedHostType.setLocalStorageCategory(_ctx.stringValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].LocalStorageCategory")); - dedicatedHostType.setGPUSpec(_ctx.stringValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].GPUSpec")); - dedicatedHostType.setTotalVcpus(_ctx.integerValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].TotalVcpus")); - dedicatedHostType.setCpuOverCommitRatioRange(_ctx.stringValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].CpuOverCommitRatioRange")); - dedicatedHostType.setPhysicalGpus(_ctx.integerValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].PhysicalGpus")); - dedicatedHostType.setMemorySize(_ctx.floatValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].MemorySize")); - dedicatedHostType.setTotalPhysicalCores(_ctx.integerValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].TotalPhysicalCores")); - dedicatedHostType.setSupportCpuOverCommitRatio(_ctx.booleanValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].SupportCpuOverCommitRatio")); - dedicatedHostType.setLocalStorageCapacity(_ctx.longValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].LocalStorageCapacity")); - dedicatedHostType.setDedicatedHostType(_ctx.stringValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].DedicatedHostType")); - dedicatedHostType.setLocalStorageAmount(_ctx.integerValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].LocalStorageAmount")); - dedicatedHostType.setTotalVgpus(_ctx.integerValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].TotalVgpus")); - dedicatedHostType.setTotalSockets(_ctx.integerValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].TotalSockets")); - dedicatedHostType.setGeneration(_ctx.stringValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].Generation")); - - List supportInstanceTypesList = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].SupportInstanceTypesList.Length"); j++) { - supportInstanceTypesList.add(_ctx.stringValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].SupportInstanceTypesList["+ j +"]")); - } - dedicatedHostType.setSupportInstanceTypesList(supportInstanceTypesList); - - List supportInstanceTypeFamilies = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].SupportInstanceTypeFamilies.Length"); j++) { - supportInstanceTypeFamilies.add(_ctx.stringValue("DescribeDedicatedHostTypesResponse.DedicatedHostTypes["+ i +"].SupportInstanceTypeFamilies["+ j +"]")); - } - dedicatedHostType.setSupportInstanceTypeFamilies(supportInstanceTypeFamilies); - - dedicatedHostTypes.add(dedicatedHostType); - } - describeDedicatedHostTypesResponse.setDedicatedHostTypes(dedicatedHostTypes); - - return describeDedicatedHostTypesResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeDedicatedHostsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeDedicatedHostsResponseUnmarshaller.java deleted file mode 100644 index 0bfe9cae97..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeDedicatedHostsResponseUnmarshaller.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeDedicatedHostsResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeDedicatedHostsResponse.DedicatedHost; -import com.aliyuncs.ecs.model.v20160314.DescribeDedicatedHostsResponse.DedicatedHost.Capacity; -import com.aliyuncs.ecs.model.v20160314.DescribeDedicatedHostsResponse.DedicatedHost.HostDetailInfo; -import com.aliyuncs.ecs.model.v20160314.DescribeDedicatedHostsResponse.DedicatedHost.Instance; -import com.aliyuncs.ecs.model.v20160314.DescribeDedicatedHostsResponse.DedicatedHost.NetworkAttributes; -import com.aliyuncs.ecs.model.v20160314.DescribeDedicatedHostsResponse.DedicatedHost.OperationLock; -import com.aliyuncs.ecs.model.v20160314.DescribeDedicatedHostsResponse.DedicatedHost.Tag; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeDedicatedHostsResponseUnmarshaller { - - public static DescribeDedicatedHostsResponse unmarshall(DescribeDedicatedHostsResponse describeDedicatedHostsResponse, UnmarshallerContext _ctx) { - - describeDedicatedHostsResponse.setRequestId(_ctx.stringValue("DescribeDedicatedHostsResponse.RequestId")); - describeDedicatedHostsResponse.setPageSize(_ctx.integerValue("DescribeDedicatedHostsResponse.PageSize")); - describeDedicatedHostsResponse.setPageNumber(_ctx.integerValue("DescribeDedicatedHostsResponse.PageNumber")); - describeDedicatedHostsResponse.setTotalCount(_ctx.integerValue("DescribeDedicatedHostsResponse.TotalCount")); - - List dedicatedHosts = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeDedicatedHostsResponse.DedicatedHosts.Length"); i++) { - DedicatedHost dedicatedHost = new DedicatedHost(); - dedicatedHost.setCreationTime(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].CreationTime")); - dedicatedHost.setSchedulerOptionsManagedPrivateSpaceId(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].SchedulerOptions.ManagedPrivateSpaceId")); - dedicatedHost.setStatus(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Status")); - dedicatedHost.setAutoPlacement(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].AutoPlacement")); - dedicatedHost.setGPUSpec(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].GPUSpec")); - dedicatedHost.setAutoReleaseTime(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].AutoReleaseTime")); - dedicatedHost.setChargeType(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].ChargeType")); - dedicatedHost.setCpuOverCommitRatio(_ctx.floatValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].CpuOverCommitRatio")); - dedicatedHost.setActionOnMaintenance(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].ActionOnMaintenance")); - dedicatedHost.setSaleCycle(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].SaleCycle")); - dedicatedHost.setPhysicalGpus(_ctx.integerValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].PhysicalGpus")); - dedicatedHost.setTotalPhysicalCores(_ctx.integerValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].TotalPhysicalCores")); - dedicatedHost.setRegionId(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].RegionId")); - dedicatedHost.setDedicatedHostName(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].DedicatedHostName")); - dedicatedHost.setDescription(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Description")); - dedicatedHost.setDedicatedHostClusterId(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].DedicatedHostClusterId")); - dedicatedHost.setExpiredTime(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].ExpiredTime")); - dedicatedHost.setDedicatedHostType(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].DedicatedHostType")); - dedicatedHost.setResourceGroupId(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].ResourceGroupId")); - dedicatedHost.setZoneId(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].ZoneId")); - dedicatedHost.setTotalSockets(_ctx.integerValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].TotalSockets")); - dedicatedHost.setDedicatedHostId(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].DedicatedHostId")); - dedicatedHost.setMachineId(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].MachineId")); - - List supportInstanceTypeFamilies = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].SupportInstanceTypeFamilies.Length"); j++) { - supportInstanceTypeFamilies.add(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].SupportInstanceTypeFamilies["+ j +"]")); - } - dedicatedHost.setSupportInstanceTypeFamilies(supportInstanceTypeFamilies); - - List supportInstanceTypesList = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].SupportInstanceTypesList.Length"); j++) { - supportInstanceTypesList.add(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].SupportInstanceTypesList["+ j +"]")); - } - dedicatedHost.setSupportInstanceTypesList(supportInstanceTypesList); - - List supportedCustomInstanceTypeFamilies = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].SupportedCustomInstanceTypeFamilies.Length"); j++) { - supportedCustomInstanceTypeFamilies.add(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].SupportedCustomInstanceTypeFamilies["+ j +"]")); - } - dedicatedHost.setSupportedCustomInstanceTypeFamilies(supportedCustomInstanceTypeFamilies); - - Capacity capacity = new Capacity(); - capacity.setAvailableMemory(_ctx.floatValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Capacity.AvailableMemory")); - capacity.setLocalStorageCategory(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Capacity.LocalStorageCategory")); - capacity.setTotalMemory(_ctx.floatValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Capacity.TotalMemory")); - capacity.setTotalLocalStorage(_ctx.integerValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Capacity.TotalLocalStorage")); - capacity.setTotalVcpus(_ctx.integerValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Capacity.TotalVcpus")); - capacity.setTotalVgpus(_ctx.integerValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Capacity.TotalVgpus")); - capacity.setAvailableLocalStorage(_ctx.integerValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Capacity.AvailableLocalStorage")); - capacity.setAvailableVcpus(_ctx.integerValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Capacity.AvailableVcpus")); - capacity.setAvailableVgpus(_ctx.integerValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Capacity.AvailableVgpus")); - dedicatedHost.setCapacity(capacity); - - NetworkAttributes networkAttributes = new NetworkAttributes(); - networkAttributes.setUdpTimeout(_ctx.integerValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].NetworkAttributes.UdpTimeout")); - networkAttributes.setSlbUdpTimeout(_ctx.integerValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].NetworkAttributes.SlbUdpTimeout")); - dedicatedHost.setNetworkAttributes(networkAttributes); - - HostDetailInfo hostDetailInfo = new HostDetailInfo(); - hostDetailInfo.setSerialNumber(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].HostDetailInfo.SerialNumber")); - dedicatedHost.setHostDetailInfo(hostDetailInfo); - - List instances = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Instances.Length"); j++) { - Instance instance = new Instance(); - instance.setInstanceType(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Instances["+ j +"].InstanceType")); - instance.setInstanceId(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Instances["+ j +"].InstanceId")); - - instances.add(instance); - } - dedicatedHost.setInstances(instances); - - List operationLocks = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].OperationLocks.Length"); j++) { - OperationLock operationLock = new OperationLock(); - operationLock.setLockReason(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].OperationLocks["+ j +"].LockReason")); - - operationLocks.add(operationLock); - } - dedicatedHost.setOperationLocks(operationLocks); - - List tags = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Tags.Length"); j++) { - Tag tag = new Tag(); - tag.setTagValue(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Tags["+ j +"].TagValue")); - tag.setTagKey(_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHosts["+ i +"].Tags["+ j +"].TagKey")); - - tags.add(tag); - } - dedicatedHost.setTags(tags); - - dedicatedHosts.add(dedicatedHost); - } - describeDedicatedHostsResponse.setDedicatedHosts(dedicatedHosts); - - return describeDedicatedHostsResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeDiagnoseResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeDiagnoseResponseUnmarshaller.java deleted file mode 100644 index ef1e7817b4..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeDiagnoseResponseUnmarshaller.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeDiagnoseResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeDiagnoseResponse.DiagnoseInstance; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeDiagnoseResponseUnmarshaller { - - public static DescribeDiagnoseResponse unmarshall(DescribeDiagnoseResponse describeDiagnoseResponse, UnmarshallerContext _ctx) { - - describeDiagnoseResponse.setRequestId(_ctx.stringValue("DescribeDiagnoseResponse.RequestId")); - describeDiagnoseResponse.setPageSize(_ctx.integerValue("DescribeDiagnoseResponse.PageSize")); - describeDiagnoseResponse.setPageNumber(_ctx.integerValue("DescribeDiagnoseResponse.PageNumber")); - describeDiagnoseResponse.setTotalCount(_ctx.integerValue("DescribeDiagnoseResponse.TotalCount")); - - List diagnoseInstances = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeDiagnoseResponse.DiagnoseInstances.Length"); i++) { - DiagnoseInstance diagnoseInstance = new DiagnoseInstance(); - diagnoseInstance.setStatus(_ctx.stringValue("DescribeDiagnoseResponse.DiagnoseInstances["+ i +"].Status")); - diagnoseInstance.setCreationTime(_ctx.stringValue("DescribeDiagnoseResponse.DiagnoseInstances["+ i +"].CreationTime")); - diagnoseInstance.setExpireTime(_ctx.stringValue("DescribeDiagnoseResponse.DiagnoseInstances["+ i +"].ExpireTime")); - diagnoseInstance.setDiagnoseId(_ctx.stringValue("DescribeDiagnoseResponse.DiagnoseInstances["+ i +"].DiagnoseId")); - diagnoseInstance.setProduct(_ctx.stringValue("DescribeDiagnoseResponse.DiagnoseInstances["+ i +"].Product")); - diagnoseInstance.setStar(_ctx.integerValue("DescribeDiagnoseResponse.DiagnoseInstances["+ i +"].Star")); - diagnoseInstance.setInstanceTypeName(_ctx.stringValue("DescribeDiagnoseResponse.DiagnoseInstances["+ i +"].InstanceTypeName")); - diagnoseInstance.setNetworkType(_ctx.stringValue("DescribeDiagnoseResponse.DiagnoseInstances["+ i +"].NetworkType")); - diagnoseInstance.setModificationTime(_ctx.stringValue("DescribeDiagnoseResponse.DiagnoseInstances["+ i +"].ModificationTime")); - diagnoseInstance.setPeriod(_ctx.integerValue("DescribeDiagnoseResponse.DiagnoseInstances["+ i +"].Period")); - diagnoseInstance.setInstanceChargeType(_ctx.stringValue("DescribeDiagnoseResponse.DiagnoseInstances["+ i +"].InstanceChargeType")); - diagnoseInstance.setRegionId(_ctx.stringValue("DescribeDiagnoseResponse.DiagnoseInstances["+ i +"].RegionId")); - diagnoseInstance.setAmount(_ctx.integerValue("DescribeDiagnoseResponse.DiagnoseInstances["+ i +"].Amount")); - diagnoseInstance.setDiskCategory(_ctx.stringValue("DescribeDiagnoseResponse.DiagnoseInstances["+ i +"].DiskCategory")); - diagnoseInstance.setErrorCode(_ctx.stringValue("DescribeDiagnoseResponse.DiagnoseInstances["+ i +"].ErrorCode")); - diagnoseInstance.setPeriodUnit(_ctx.stringValue("DescribeDiagnoseResponse.DiagnoseInstances["+ i +"].PeriodUnit")); - diagnoseInstance.setMark(_ctx.stringValue("DescribeDiagnoseResponse.DiagnoseInstances["+ i +"].Mark")); - diagnoseInstance.setDiagnoseRequestId(_ctx.stringValue("DescribeDiagnoseResponse.DiagnoseInstances["+ i +"].DiagnoseRequestId")); - diagnoseInstance.setIzNo(_ctx.stringValue("DescribeDiagnoseResponse.DiagnoseInstances["+ i +"].IzNo")); - diagnoseInstance.setSolutions(_ctx.stringValue("DescribeDiagnoseResponse.DiagnoseInstances["+ i +"].Solutions")); - diagnoseInstance.setDiagnoseAction(_ctx.stringValue("DescribeDiagnoseResponse.DiagnoseInstances["+ i +"].DiagnoseAction")); - - diagnoseInstances.add(diagnoseInstance); - } - describeDiagnoseResponse.setDiagnoseInstances(diagnoseInstances); - - return describeDiagnoseResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeDiagnosisOperateRecordsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeDiagnosisOperateRecordsResponseUnmarshaller.java deleted file mode 100644 index 9995e65abf..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeDiagnosisOperateRecordsResponseUnmarshaller.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeDiagnosisOperateRecordsResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeDiagnosisOperateRecordsResponse.DiagnosisOperateRecordModel; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeDiagnosisOperateRecordsResponseUnmarshaller { - - public static DescribeDiagnosisOperateRecordsResponse unmarshall(DescribeDiagnosisOperateRecordsResponse describeDiagnosisOperateRecordsResponse, UnmarshallerContext _ctx) { - - describeDiagnosisOperateRecordsResponse.setRequestId(_ctx.stringValue("DescribeDiagnosisOperateRecordsResponse.RequestId")); - describeDiagnosisOperateRecordsResponse.setPageSize(_ctx.integerValue("DescribeDiagnosisOperateRecordsResponse.PageSize")); - describeDiagnosisOperateRecordsResponse.setPageNumber(_ctx.integerValue("DescribeDiagnosisOperateRecordsResponse.PageNumber")); - describeDiagnosisOperateRecordsResponse.setTotalCount(_ctx.integerValue("DescribeDiagnosisOperateRecordsResponse.TotalCount")); - - List diagnosisOperateRecordModels = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeDiagnosisOperateRecordsResponse.DiagnosisOperateRecordModels.Length"); i++) { - DiagnosisOperateRecordModel diagnosisOperateRecordModel = new DiagnosisOperateRecordModel(); - diagnosisOperateRecordModel.setZoneId(_ctx.stringValue("DescribeDiagnosisOperateRecordsResponse.DiagnosisOperateRecordModels["+ i +"].ZoneId")); - diagnosisOperateRecordModel.setInstanceType(_ctx.stringValue("DescribeDiagnosisOperateRecordsResponse.DiagnosisOperateRecordModels["+ i +"].InstanceType")); - diagnosisOperateRecordModel.setOperateRecordType(_ctx.stringValue("DescribeDiagnosisOperateRecordsResponse.DiagnosisOperateRecordModels["+ i +"].OperateRecordType")); - diagnosisOperateRecordModel.setNewZoneId(_ctx.stringValue("DescribeDiagnosisOperateRecordsResponse.DiagnosisOperateRecordModels["+ i +"].NewZoneId")); - diagnosisOperateRecordModel.setNewInstanceType(_ctx.stringValue("DescribeDiagnosisOperateRecordsResponse.DiagnosisOperateRecordModels["+ i +"].NewInstanceType")); - diagnosisOperateRecordModel.setOperateDate(_ctx.stringValue("DescribeDiagnosisOperateRecordsResponse.DiagnosisOperateRecordModels["+ i +"].OperateDate")); - - diagnosisOperateRecordModels.add(diagnosisOperateRecordModel); - } - describeDiagnosisOperateRecordsResponse.setDiagnosisOperateRecordModels(diagnosisOperateRecordModels); - - return describeDiagnosisOperateRecordsResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeDiagnosticReportsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeDiagnosticReportsResponseUnmarshaller.java deleted file mode 100644 index f0f4263d2a..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeDiagnosticReportsResponseUnmarshaller.java +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeDiagnosticReportsResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeDiagnosticReportsResponse.Report; -import com.aliyuncs.ecs.model.v20160314.DescribeDiagnosticReportsResponse.Report.Issue; -import com.aliyuncs.ecs.model.v20160314.DescribeDiagnosticReportsResponse.Report.Issue.RecommendedAction; -import com.aliyuncs.ecs.model.v20160314.DescribeDiagnosticReportsResponse.Report.Issue.RecommendedAction.Parameter; -import com.aliyuncs.ecs.model.v20160314.DescribeDiagnosticReportsResponse.Report.Item; -import com.aliyuncs.ecs.model.v20160314.DescribeDiagnosticReportsResponse.Report.Item.ItemData; -import com.aliyuncs.ecs.model.v20160314.DescribeDiagnosticReportsResponse.Report.RecentEvent; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeDiagnosticReportsResponseUnmarshaller { - - public static DescribeDiagnosticReportsResponse unmarshall(DescribeDiagnosticReportsResponse describeDiagnosticReportsResponse, UnmarshallerContext _ctx) { - - describeDiagnosticReportsResponse.setRequestId(_ctx.stringValue("DescribeDiagnosticReportsResponse.RequestId")); - describeDiagnosticReportsResponse.setNextToken(_ctx.stringValue("DescribeDiagnosticReportsResponse.NextToken")); - describeDiagnosticReportsResponse.setMaxResults(_ctx.integerValue("DescribeDiagnosticReportsResponse.MaxResults")); - - List reports = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeDiagnosticReportsResponse.Reports.Length"); i++) { - Report report = new Report(); - report.setStatus(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].Status")); - report.setSeverity(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].Severity")); - report.setEndTime(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].EndTime")); - report.setCreationTime(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].CreationTime")); - report.setStartTime(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].StartTime")); - report.setResourceType(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].ResourceType")); - report.setFinishedTime(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].FinishedTime")); - report.setReportId(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].ReportId")); - report.setPePassword(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].PePassword")); - report.setResourceId(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].ResourceId")); - report.setInvokeSystem(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].InvokeSystem")); - report.setOfflineDiagReportStatus(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].OfflineDiagReportStatus")); - report.setDiagnosticCategory(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].DiagnosticCategory")); - report.setIssueCategoryId(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].IssueCategoryId")); - - List issues = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].Issues.Length"); j++) { - Issue issue = new Issue(); - issue.setSeverity(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].Issues["+ j +"].Severity")); - issue.setMessage(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].Issues["+ j +"].Message")); - issue.setOccurrenceTime(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].Issues["+ j +"].OccurrenceTime")); - issue.setIssueCode(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].Issues["+ j +"].IssueCode")); - issue.setIssueCategory(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].Issues["+ j +"].IssueCategory")); - - List recommendedActions = new ArrayList(); - for (int k = 0; k < _ctx.lengthValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].Issues["+ j +"].RecommendedActions.Length"); k++) { - RecommendedAction recommendedAction = new RecommendedAction(); - recommendedAction.setUrl(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].Issues["+ j +"].RecommendedActions["+ k +"].Url")); - recommendedAction.setActionCode(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].Issues["+ j +"].RecommendedActions["+ k +"].ActionCode")); - - List parameters = new ArrayList(); - for (int l = 0; l < _ctx.lengthValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].Issues["+ j +"].RecommendedActions["+ k +"].Parameters.Length"); l++) { - Parameter parameter = new Parameter(); - parameter.setKey(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].Issues["+ j +"].RecommendedActions["+ k +"].Parameters["+ l +"].Key")); - parameter.setValue(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].Issues["+ j +"].RecommendedActions["+ k +"].Parameters["+ l +"].Value")); - - parameters.add(parameter); - } - recommendedAction.setParameters(parameters); - - recommendedActions.add(recommendedAction); - } - issue.setRecommendedActions(recommendedActions); - - issues.add(issue); - } - report.setIssues(issues); - - List items = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].Items.Length"); j++) { - Item item = new Item(); - item.setStatus(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].Items["+ j +"].Status")); - item.setSeverity(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].Items["+ j +"].Severity")); - item.setItemCategory(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].Items["+ j +"].ItemCategory")); - item.setItemCode(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].Items["+ j +"].ItemCode")); - item.setOccurrenceTime(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].Items["+ j +"].OccurrenceTime")); - - List itemDatas = new ArrayList(); - for (int k = 0; k < _ctx.lengthValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].Items["+ j +"].ItemDatas.Length"); k++) { - ItemData itemData = new ItemData(); - itemData.setName(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].Items["+ j +"].ItemDatas["+ k +"].Name")); - itemData.setValue(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].Items["+ j +"].ItemDatas["+ k +"].Value")); - - itemDatas.add(itemData); - } - item.setItemDatas(itemDatas); - - items.add(item); - } - report.setItems(items); - - List recentEvents = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].RecentEvents.Length"); j++) { - RecentEvent recentEvent = new RecentEvent(); - recentEvent.setEventID(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].RecentEvents["+ j +"].EventID")); - recentEvent.setEventName(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].RecentEvents["+ j +"].EventName")); - recentEvent.setPublishTime(_ctx.stringValue("DescribeDiagnosticReportsResponse.Reports["+ i +"].RecentEvents["+ j +"].PublishTime")); - - recentEvents.add(recentEvent); - } - report.setRecentEvents(recentEvents); - - reports.add(report); - } - describeDiagnosticReportsResponse.setReports(reports); - - return describeDiagnosticReportsResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeDiskReplicaPairsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeDiskReplicaPairsResponseUnmarshaller.java deleted file mode 100644 index b2f681a6cf..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeDiskReplicaPairsResponseUnmarshaller.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeDiskReplicaPairsResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeDiskReplicaPairsResponse.DiskReplicaPair; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeDiskReplicaPairsResponseUnmarshaller { - - public static DescribeDiskReplicaPairsResponse unmarshall(DescribeDiskReplicaPairsResponse describeDiskReplicaPairsResponse, UnmarshallerContext _ctx) { - - describeDiskReplicaPairsResponse.setRequestId(_ctx.stringValue("DescribeDiskReplicaPairsResponse.RequestId")); - describeDiskReplicaPairsResponse.setNextToken(_ctx.stringValue("DescribeDiskReplicaPairsResponse.NextToken")); - - List diskReplicaPairs = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeDiskReplicaPairsResponse.DiskReplicaPairs.Length"); i++) { - DiskReplicaPair diskReplicaPair = new DiskReplicaPair(); - diskReplicaPair.setStatus(_ctx.stringValue("DescribeDiskReplicaPairsResponse.DiskReplicaPairs["+ i +"].Status")); - diskReplicaPair.setReplicaPairId(_ctx.stringValue("DescribeDiskReplicaPairsResponse.DiskReplicaPairs["+ i +"].ReplicaPairId")); - diskReplicaPair.setAsyncCycle(_ctx.integerValue("DescribeDiskReplicaPairsResponse.DiskReplicaPairs["+ i +"].AsyncCycle")); - diskReplicaPair.setTotalCopiedSize(_ctx.longValue("DescribeDiskReplicaPairsResponse.DiskReplicaPairs["+ i +"].TotalCopiedSize")); - diskReplicaPair.setHealthStatus(_ctx.stringValue("DescribeDiskReplicaPairsResponse.DiskReplicaPairs["+ i +"].HealthStatus")); - diskReplicaPair.setDestinationDiskId(_ctx.stringValue("DescribeDiskReplicaPairsResponse.DiskReplicaPairs["+ i +"].DestinationDiskId")); - diskReplicaPair.setSourceDiskId(_ctx.stringValue("DescribeDiskReplicaPairsResponse.DiskReplicaPairs["+ i +"].SourceDiskId")); - diskReplicaPair.setBandwidth(_ctx.integerValue("DescribeDiskReplicaPairsResponse.DiskReplicaPairs["+ i +"].Bandwidth")); - diskReplicaPair.setDescription(_ctx.stringValue("DescribeDiskReplicaPairsResponse.DiskReplicaPairs["+ i +"].Description")); - diskReplicaPair.setDestinationRegion(_ctx.stringValue("DescribeDiskReplicaPairsResponse.DiskReplicaPairs["+ i +"].DestinationRegion")); - diskReplicaPair.setPairName(_ctx.stringValue("DescribeDiskReplicaPairsResponse.DiskReplicaPairs["+ i +"].PairName")); - diskReplicaPair.setSourceRegion(_ctx.stringValue("DescribeDiskReplicaPairsResponse.DiskReplicaPairs["+ i +"].SourceRegion")); - diskReplicaPair.setRpoTime(_ctx.stringValue("DescribeDiskReplicaPairsResponse.DiskReplicaPairs["+ i +"].RpoTime")); - - diskReplicaPairs.add(diskReplicaPair); - } - describeDiskReplicaPairsResponse.setDiskReplicaPairs(diskReplicaPairs); - - return describeDiskReplicaPairsResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeEcsScenarioFacadeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeEcsScenarioFacadeResponseUnmarshaller.java deleted file mode 100644 index d57a85bdc5..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeEcsScenarioFacadeResponseUnmarshaller.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeEcsScenarioFacadeResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeEcsScenarioFacadeResponse.Scenario; -import com.aliyuncs.ecs.model.v20160314.DescribeEcsScenarioFacadeResponse.Scenario.Content; -import com.aliyuncs.ecs.model.v20160314.DescribeEcsScenarioFacadeResponse.Scenario.Content.EcsScenarioContent; -import java.util.Map; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeEcsScenarioFacadeResponseUnmarshaller { - - public static DescribeEcsScenarioFacadeResponse unmarshall(DescribeEcsScenarioFacadeResponse describeEcsScenarioFacadeResponse, UnmarshallerContext _ctx) { - - describeEcsScenarioFacadeResponse.setRequestId(_ctx.stringValue("DescribeEcsScenarioFacadeResponse.RequestId")); - - List scenarios = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeEcsScenarioFacadeResponse.Scenarios.Length"); i++) { - Scenario scenario = new Scenario(); - scenario.setScenario(_ctx.stringValue("DescribeEcsScenarioFacadeResponse.Scenarios["+ i +"].Scenario")); - - List contents = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeEcsScenarioFacadeResponse.Scenarios["+ i +"].Contents.Length"); j++) { - Content content = new Content(); - content.setAction(_ctx.mapValue("DescribeEcsScenarioFacadeResponse.Scenarios["+ i +"].Contents["+ j +"].Action")); - content.setTrack(_ctx.mapValue("DescribeEcsScenarioFacadeResponse.Scenarios["+ i +"].Contents["+ j +"].Track")); - content.setAttributes(_ctx.mapValue("DescribeEcsScenarioFacadeResponse.Scenarios["+ i +"].Contents["+ j +"].Attributes")); - content.setTitle(_ctx.stringValue("DescribeEcsScenarioFacadeResponse.Scenarios["+ i +"].Contents["+ j +"].Title")); - content.setDescription(_ctx.stringValue("DescribeEcsScenarioFacadeResponse.Scenarios["+ i +"].Contents["+ j +"].Description")); - content.setIcon(_ctx.stringValue("DescribeEcsScenarioFacadeResponse.Scenarios["+ i +"].Contents["+ j +"].Icon")); - content.setTips(_ctx.stringValue("DescribeEcsScenarioFacadeResponse.Scenarios["+ i +"].Contents["+ j +"].Tips")); - content.setColorLevel(_ctx.stringValue("DescribeEcsScenarioFacadeResponse.Scenarios["+ i +"].Contents["+ j +"].ColorLevel")); - content.setSupportCancel(_ctx.stringValue("DescribeEcsScenarioFacadeResponse.Scenarios["+ i +"].Contents["+ j +"].SupportCancel")); - - List ecsScenarioContentData = new ArrayList(); - for (int k = 0; k < _ctx.lengthValue("DescribeEcsScenarioFacadeResponse.Scenarios["+ i +"].Contents["+ j +"].EcsScenarioContentData.Length"); k++) { - EcsScenarioContent ecsScenarioContent = new EcsScenarioContent(); - ecsScenarioContent.setType(_ctx.stringValue("DescribeEcsScenarioFacadeResponse.Scenarios["+ i +"].Contents["+ j +"].EcsScenarioContentData["+ k +"].Type")); - - List values = new ArrayList(); - for (int l = 0; l < _ctx.lengthValue("DescribeEcsScenarioFacadeResponse.Scenarios["+ i +"].Contents["+ j +"].EcsScenarioContentData["+ k +"].Values.Length"); l++) { - values.add(_ctx.stringValue("DescribeEcsScenarioFacadeResponse.Scenarios["+ i +"].Contents["+ j +"].EcsScenarioContentData["+ k +"].Values["+ l +"]")); - } - ecsScenarioContent.setValues(values); - - ecsScenarioContentData.add(ecsScenarioContent); - } - content.setEcsScenarioContentData(ecsScenarioContentData); - - contents.add(content); - } - scenario.setContents(contents); - - scenarios.add(scenario); - } - describeEcsScenarioFacadeResponse.setScenarios(scenarios); - - return describeEcsScenarioFacadeResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeEniQosGroupInfoResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeEniQosGroupInfoResponseUnmarshaller.java deleted file mode 100644 index 3393e5e1a8..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeEniQosGroupInfoResponseUnmarshaller.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeEniQosGroupInfoResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeEniQosGroupInfoResponse.QosGroupInfo; -import com.aliyuncs.ecs.model.v20160314.DescribeEniQosGroupInfoResponse.QosGroupInfo.QosGroup; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeEniQosGroupInfoResponseUnmarshaller { - - public static DescribeEniQosGroupInfoResponse unmarshall(DescribeEniQosGroupInfoResponse describeEniQosGroupInfoResponse, UnmarshallerContext _ctx) { - - describeEniQosGroupInfoResponse.setRequestId(_ctx.stringValue("DescribeEniQosGroupInfoResponse.RequestId")); - - QosGroupInfo qosGroupInfo = new QosGroupInfo(); - qosGroupInfo.setInstanceId(_ctx.stringValue("DescribeEniQosGroupInfoResponse.QosGroupInfo.InstanceId")); - - List networkInterfaceIds = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeEniQosGroupInfoResponse.QosGroupInfo.NetworkInterfaceIds.Length"); i++) { - networkInterfaceIds.add(_ctx.stringValue("DescribeEniQosGroupInfoResponse.QosGroupInfo.NetworkInterfaceIds["+ i +"]")); - } - qosGroupInfo.setNetworkInterfaceIds(networkInterfaceIds); - - QosGroup qosGroup = new QosGroup(); - qosGroup.setType(_ctx.stringValue("DescribeEniQosGroupInfoResponse.QosGroupInfo.QosGroup.Type")); - qosGroup.setRx(_ctx.stringValue("DescribeEniQosGroupInfoResponse.QosGroupInfo.QosGroup.Rx")); - qosGroup.setGmtModify(_ctx.stringValue("DescribeEniQosGroupInfoResponse.QosGroupInfo.QosGroup.GmtModify")); - qosGroup.setQosGroupName(_ctx.stringValue("DescribeEniQosGroupInfoResponse.QosGroupInfo.QosGroup.QosGroupName")); - qosGroup.setTx(_ctx.stringValue("DescribeEniQosGroupInfoResponse.QosGroupInfo.QosGroup.Tx")); - qosGroup.setTxPps(_ctx.stringValue("DescribeEniQosGroupInfoResponse.QosGroupInfo.QosGroup.TxPps")); - qosGroup.setGmtCreate(_ctx.stringValue("DescribeEniQosGroupInfoResponse.QosGroupInfo.QosGroup.GmtCreate")); - qosGroup.setRxPps(_ctx.stringValue("DescribeEniQosGroupInfoResponse.QosGroupInfo.QosGroup.RxPps")); - qosGroupInfo.setQosGroup(qosGroup); - describeEniQosGroupInfoResponse.setQosGroupInfo(qosGroupInfo); - - return describeEniQosGroupInfoResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeFunctionFeedbackResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeFunctionFeedbackResponseUnmarshaller.java deleted file mode 100644 index 4d308eb020..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeFunctionFeedbackResponseUnmarshaller.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeFunctionFeedbackResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeFunctionFeedbackResponse.Feedback; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeFunctionFeedbackResponseUnmarshaller { - - public static DescribeFunctionFeedbackResponse unmarshall(DescribeFunctionFeedbackResponse describeFunctionFeedbackResponse, UnmarshallerContext _ctx) { - - describeFunctionFeedbackResponse.setRequestId(_ctx.stringValue("DescribeFunctionFeedbackResponse.RequestId")); - - List data = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeFunctionFeedbackResponse.Data.Length"); i++) { - Feedback feedback = new Feedback(); - feedback.setCreationTime(_ctx.stringValue("DescribeFunctionFeedbackResponse.Data["+ i +"].CreationTime")); - feedback.setSuggestion(_ctx.stringValue("DescribeFunctionFeedbackResponse.Data["+ i +"].Suggestion")); - feedback.setFunctionName(_ctx.stringValue("DescribeFunctionFeedbackResponse.Data["+ i +"].FunctionName")); - feedback.setFinishedTime(_ctx.stringValue("DescribeFunctionFeedbackResponse.Data["+ i +"].FinishedTime")); - feedback.setCategory(_ctx.stringValue("DescribeFunctionFeedbackResponse.Data["+ i +"].Category")); - feedback.setFeedback(_ctx.stringValue("DescribeFunctionFeedbackResponse.Data["+ i +"].Feedback")); - - data.add(feedback); - } - describeFunctionFeedbackResponse.setData(data); - - return describeFunctionFeedbackResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeHavsInstanceTypesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeHavsInstanceTypesResponseUnmarshaller.java deleted file mode 100644 index e076296af1..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeHavsInstanceTypesResponseUnmarshaller.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeHavsInstanceTypesResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeHavsInstanceTypesResponse.DescribeHavsInstanceTypesResponse1; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeHavsInstanceTypesResponseUnmarshaller { - - public static DescribeHavsInstanceTypesResponse unmarshall(DescribeHavsInstanceTypesResponse describeHavsInstanceTypesResponse, UnmarshallerContext _ctx) { - - describeHavsInstanceTypesResponse.setRequestId(_ctx.stringValue("DescribeHavsInstanceTypesResponse.RequestId")); - - DescribeHavsInstanceTypesResponse1 describeHavsInstanceTypesResponse1 = new DescribeHavsInstanceTypesResponse1(); - - List havsInstanceTypes = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeHavsInstanceTypesResponse.DescribeHavsInstanceTypesResponse.HavsInstanceTypes.Length"); i++) { - havsInstanceTypes.add(_ctx.stringValue("DescribeHavsInstanceTypesResponse.DescribeHavsInstanceTypesResponse.HavsInstanceTypes["+ i +"]")); - } - describeHavsInstanceTypesResponse1.setHavsInstanceTypes(havsInstanceTypes); - describeHavsInstanceTypesResponse.setDescribeHavsInstanceTypesResponse1(describeHavsInstanceTypesResponse1); - - return describeHavsInstanceTypesResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeImageAgreementResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeImageAgreementResponseUnmarshaller.java deleted file mode 100644 index 7fd1d3f1a3..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeImageAgreementResponseUnmarshaller.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.DescribeImageAgreementResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeImageAgreementResponseUnmarshaller { - - public static DescribeImageAgreementResponse unmarshall(DescribeImageAgreementResponse describeImageAgreementResponse, UnmarshallerContext _ctx) { - - describeImageAgreementResponse.setRequestId(_ctx.stringValue("DescribeImageAgreementResponse.RequestId")); - describeImageAgreementResponse.setStatus(_ctx.stringValue("DescribeImageAgreementResponse.Status")); - - return describeImageAgreementResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeImageCachesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeImageCachesResponseUnmarshaller.java deleted file mode 100644 index 0f32782835..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeImageCachesResponseUnmarshaller.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeImageCachesResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeImageCachesResponse.ImageCache; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeImageCachesResponseUnmarshaller { - - public static DescribeImageCachesResponse unmarshall(DescribeImageCachesResponse describeImageCachesResponse, UnmarshallerContext _ctx) { - - describeImageCachesResponse.setRequestId(_ctx.stringValue("DescribeImageCachesResponse.RequestId")); - describeImageCachesResponse.setNextToken(_ctx.stringValue("DescribeImageCachesResponse.NextToken")); - describeImageCachesResponse.setTotalCount(_ctx.integerValue("DescribeImageCachesResponse.TotalCount")); - - List imageCaches = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeImageCachesResponse.ImageCaches.Length"); i++) { - ImageCache imageCache = new ImageCache(); - imageCache.setImageId(_ctx.stringValue("DescribeImageCachesResponse.ImageCaches["+ i +"].ImageId")); - imageCache.setCreationTime(_ctx.stringValue("DescribeImageCachesResponse.ImageCaches["+ i +"].CreationTime")); - imageCache.setProgress(_ctx.stringValue("DescribeImageCachesResponse.ImageCaches["+ i +"].Progress")); - imageCache.setStatus(_ctx.stringValue("DescribeImageCachesResponse.ImageCaches["+ i +"].Status")); - - imageCaches.add(imageCache); - } - describeImageCachesResponse.setImageCaches(imageCaches); - - return describeImageCachesResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeImageFamiliesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeImageFamiliesResponseUnmarshaller.java deleted file mode 100644 index 97b147fe66..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeImageFamiliesResponseUnmarshaller.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeImageFamiliesResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeImageFamiliesResponseUnmarshaller { - - public static DescribeImageFamiliesResponse unmarshall(DescribeImageFamiliesResponse describeImageFamiliesResponse, UnmarshallerContext _ctx) { - - describeImageFamiliesResponse.setRequestId(_ctx.stringValue("DescribeImageFamiliesResponse.RequestId")); - describeImageFamiliesResponse.setPageSize(_ctx.integerValue("DescribeImageFamiliesResponse.PageSize")); - describeImageFamiliesResponse.setPageNumber(_ctx.integerValue("DescribeImageFamiliesResponse.PageNumber")); - describeImageFamiliesResponse.setTotalCount(_ctx.integerValue("DescribeImageFamiliesResponse.TotalCount")); - describeImageFamiliesResponse.setRegionId(_ctx.stringValue("DescribeImageFamiliesResponse.RegionId")); - - List imageFamilies = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeImageFamiliesResponse.ImageFamilies.Length"); i++) { - imageFamilies.add(_ctx.stringValue("DescribeImageFamiliesResponse.ImageFamilies["+ i +"]")); - } - describeImageFamiliesResponse.setImageFamilies(imageFamilies); - - return describeImageFamiliesResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeInstanceAutoRebootTimeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeInstanceAutoRebootTimeResponseUnmarshaller.java deleted file mode 100644 index 9361893104..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeInstanceAutoRebootTimeResponseUnmarshaller.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeInstanceAutoRebootTimeResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeInstanceAutoRebootTimeResponse.AutoRebootInfo; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeInstanceAutoRebootTimeResponseUnmarshaller { - - public static DescribeInstanceAutoRebootTimeResponse unmarshall(DescribeInstanceAutoRebootTimeResponse describeInstanceAutoRebootTimeResponse, UnmarshallerContext _ctx) { - - describeInstanceAutoRebootTimeResponse.setRequestId(_ctx.stringValue("DescribeInstanceAutoRebootTimeResponse.RequestId")); - - List autoRebootInfos = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeInstanceAutoRebootTimeResponse.AutoRebootInfos.Length"); i++) { - AutoRebootInfo autoRebootInfo = new AutoRebootInfo(); - autoRebootInfo.setLimitRebootTime(_ctx.stringValue("DescribeInstanceAutoRebootTimeResponse.AutoRebootInfos["+ i +"].LimitRebootTime")); - autoRebootInfo.setInstanceId(_ctx.stringValue("DescribeInstanceAutoRebootTimeResponse.AutoRebootInfos["+ i +"].InstanceId")); - autoRebootInfo.setOrderType(_ctx.stringValue("DescribeInstanceAutoRebootTimeResponse.AutoRebootInfos["+ i +"].OrderType")); - autoRebootInfo.setRebootTime(_ctx.stringValue("DescribeInstanceAutoRebootTimeResponse.AutoRebootInfos["+ i +"].RebootTime")); - - autoRebootInfos.add(autoRebootInfo); - } - describeInstanceAutoRebootTimeResponse.setAutoRebootInfos(autoRebootInfos); - - return describeInstanceAutoRebootTimeResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeInstanceHealthStatusResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeInstanceHealthStatusResponseUnmarshaller.java deleted file mode 100644 index 9802a8142a..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeInstanceHealthStatusResponseUnmarshaller.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeInstanceHealthStatusResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeInstanceHealthStatusResponse.HealthStatusModelItem; -import com.aliyuncs.ecs.model.v20160314.DescribeInstanceHealthStatusResponse.HealthStatusModelItem.HealthStatus; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeInstanceHealthStatusResponseUnmarshaller { - - public static DescribeInstanceHealthStatusResponse unmarshall(DescribeInstanceHealthStatusResponse describeInstanceHealthStatusResponse, UnmarshallerContext _ctx) { - - describeInstanceHealthStatusResponse.setRequestId(_ctx.stringValue("DescribeInstanceHealthStatusResponse.RequestId")); - - List healthStatusModel = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeInstanceHealthStatusResponse.HealthStatusModel.Length"); i++) { - HealthStatusModelItem healthStatusModelItem = new HealthStatusModelItem(); - healthStatusModelItem.setInstanceId(_ctx.stringValue("DescribeInstanceHealthStatusResponse.HealthStatusModel["+ i +"].InstanceId")); - - HealthStatus healthStatus = new HealthStatus(); - healthStatus.setCode(_ctx.stringValue("DescribeInstanceHealthStatusResponse.HealthStatusModel["+ i +"].HealthStatus.Code")); - healthStatus.setName(_ctx.stringValue("DescribeInstanceHealthStatusResponse.HealthStatusModel["+ i +"].HealthStatus.Name")); - healthStatusModelItem.setHealthStatus(healthStatus); - - healthStatusModel.add(healthStatusModelItem); - } - describeInstanceHealthStatusResponse.setHealthStatusModel(healthStatusModel); - - return describeInstanceHealthStatusResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeInstanceNeedRebootResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeInstanceNeedRebootResponseUnmarshaller.java deleted file mode 100644 index 0f3cf902bc..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeInstanceNeedRebootResponseUnmarshaller.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeInstanceNeedRebootResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeInstanceNeedRebootResponseUnmarshaller { - - public static DescribeInstanceNeedRebootResponse unmarshall(DescribeInstanceNeedRebootResponse describeInstanceNeedRebootResponse, UnmarshallerContext _ctx) { - - describeInstanceNeedRebootResponse.setRequestId(_ctx.stringValue("DescribeInstanceNeedRebootResponse.RequestId")); - describeInstanceNeedRebootResponse.setPageSize(_ctx.integerValue("DescribeInstanceNeedRebootResponse.PageSize")); - describeInstanceNeedRebootResponse.setPageNumber(_ctx.integerValue("DescribeInstanceNeedRebootResponse.PageNumber")); - describeInstanceNeedRebootResponse.setTotalCount(_ctx.integerValue("DescribeInstanceNeedRebootResponse.TotalCount")); - - List instanceInfo = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeInstanceNeedRebootResponse.InstanceInfo.Length"); i++) { - instanceInfo.add(_ctx.stringValue("DescribeInstanceNeedRebootResponse.InstanceInfo["+ i +"]")); - } - describeInstanceNeedRebootResponse.setInstanceInfo(instanceInfo); - - return describeInstanceNeedRebootResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeInstancePerformanceRestrictHistoryResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeInstancePerformanceRestrictHistoryResponseUnmarshaller.java deleted file mode 100644 index d45916db99..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeInstancePerformanceRestrictHistoryResponseUnmarshaller.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeInstancePerformanceRestrictHistoryResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeInstancePerformanceRestrictHistoryResponse.PerformanceRestrictHistory; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeInstancePerformanceRestrictHistoryResponseUnmarshaller { - - public static DescribeInstancePerformanceRestrictHistoryResponse unmarshall(DescribeInstancePerformanceRestrictHistoryResponse describeInstancePerformanceRestrictHistoryResponse, UnmarshallerContext _ctx) { - - describeInstancePerformanceRestrictHistoryResponse.setRequestId(_ctx.stringValue("DescribeInstancePerformanceRestrictHistoryResponse.RequestId")); - describeInstancePerformanceRestrictHistoryResponse.setPageSize(_ctx.integerValue("DescribeInstancePerformanceRestrictHistoryResponse.PageSize")); - describeInstancePerformanceRestrictHistoryResponse.setPageNumber(_ctx.integerValue("DescribeInstancePerformanceRestrictHistoryResponse.PageNumber")); - describeInstancePerformanceRestrictHistoryResponse.setTotalCount(_ctx.integerValue("DescribeInstancePerformanceRestrictHistoryResponse.TotalCount")); - - List performanceRestrictHistories = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeInstancePerformanceRestrictHistoryResponse.PerformanceRestrictHistories.Length"); i++) { - PerformanceRestrictHistory performanceRestrictHistory = new PerformanceRestrictHistory(); - performanceRestrictHistory.setInstanceId(_ctx.stringValue("DescribeInstancePerformanceRestrictHistoryResponse.PerformanceRestrictHistories["+ i +"].InstanceId")); - - List intervals = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeInstancePerformanceRestrictHistoryResponse.PerformanceRestrictHistories["+ i +"].Intervals.Length"); j++) { - intervals.add(_ctx.stringValue("DescribeInstancePerformanceRestrictHistoryResponse.PerformanceRestrictHistories["+ i +"].Intervals["+ j +"]")); - } - performanceRestrictHistory.setIntervals(intervals); - - performanceRestrictHistories.add(performanceRestrictHistory); - } - describeInstancePerformanceRestrictHistoryResponse.setPerformanceRestrictHistories(performanceRestrictHistories); - - return describeInstancePerformanceRestrictHistoryResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeInstanceTypeResourceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeInstanceTypeResourceResponseUnmarshaller.java deleted file mode 100644 index 8f0a4d9369..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeInstanceTypeResourceResponseUnmarshaller.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeInstanceTypeResourceResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeInstanceTypeResourceResponse.InstanceTypeResource; -import com.aliyuncs.ecs.model.v20160314.DescribeInstanceTypeResourceResponse.InstanceTypeResource.StockHealth; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeInstanceTypeResourceResponseUnmarshaller { - - public static DescribeInstanceTypeResourceResponse unmarshall(DescribeInstanceTypeResourceResponse describeInstanceTypeResourceResponse, UnmarshallerContext _ctx) { - - describeInstanceTypeResourceResponse.setRequestId(_ctx.stringValue("DescribeInstanceTypeResourceResponse.RequestId")); - describeInstanceTypeResourceResponse.setTotalCount(_ctx.integerValue("DescribeInstanceTypeResourceResponse.TotalCount")); - describeInstanceTypeResourceResponse.setPageSize(_ctx.integerValue("DescribeInstanceTypeResourceResponse.PageSize")); - describeInstanceTypeResourceResponse.setPageNumber(_ctx.integerValue("DescribeInstanceTypeResourceResponse.PageNumber")); - - List instanceTypeResources = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeInstanceTypeResourceResponse.InstanceTypeResources.Length"); i++) { - InstanceTypeResource instanceTypeResource = new InstanceTypeResource(); - instanceTypeResource.setRegionId(_ctx.stringValue("DescribeInstanceTypeResourceResponse.InstanceTypeResources["+ i +"].RegionId")); - instanceTypeResource.setZoneId(_ctx.stringValue("DescribeInstanceTypeResourceResponse.InstanceTypeResources["+ i +"].ZoneId")); - instanceTypeResource.setInstanceType(_ctx.stringValue("DescribeInstanceTypeResourceResponse.InstanceTypeResources["+ i +"].InstanceType")); - instanceTypeResource.setInstanceTypeFamily(_ctx.stringValue("DescribeInstanceTypeResourceResponse.InstanceTypeResources["+ i +"].InstanceTypeFamily")); - instanceTypeResource.setSearchType(_ctx.stringValue("DescribeInstanceTypeResourceResponse.InstanceTypeResources["+ i +"].SearchType")); - instanceTypeResource.setTotalQuota(_ctx.longValue("DescribeInstanceTypeResourceResponse.InstanceTypeResources["+ i +"].TotalQuota")); - - StockHealth stockHealth = new StockHealth(); - stockHealth.setHealthScore(_ctx.integerValue("DescribeInstanceTypeResourceResponse.InstanceTypeResources["+ i +"].StockHealth.HealthScore")); - stockHealth.setAdequacyScore(_ctx.integerValue("DescribeInstanceTypeResourceResponse.InstanceTypeResources["+ i +"].StockHealth.AdequacyScore")); - stockHealth.setSupplyScore(_ctx.integerValue("DescribeInstanceTypeResourceResponse.InstanceTypeResources["+ i +"].StockHealth.SupplyScore")); - stockHealth.setHotScore(_ctx.integerValue("DescribeInstanceTypeResourceResponse.InstanceTypeResources["+ i +"].StockHealth.HotScore")); - instanceTypeResource.setStockHealth(stockHealth); - - instanceTypeResources.add(instanceTypeResource); - } - describeInstanceTypeResourceResponse.setInstanceTypeResources(instanceTypeResources); - - return describeInstanceTypeResourceResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeKMSKeyAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeKMSKeyAttributeResponseUnmarshaller.java deleted file mode 100644 index ec23a4accf..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeKMSKeyAttributeResponseUnmarshaller.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.DescribeKMSKeyAttributeResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeKMSKeyAttributeResponseUnmarshaller { - - public static DescribeKMSKeyAttributeResponse unmarshall(DescribeKMSKeyAttributeResponse describeKMSKeyAttributeResponse, UnmarshallerContext _ctx) { - - describeKMSKeyAttributeResponse.setRequestId(_ctx.stringValue("DescribeKMSKeyAttributeResponse.RequestId")); - describeKMSKeyAttributeResponse.setStatus(_ctx.stringValue("DescribeKMSKeyAttributeResponse.Status")); - describeKMSKeyAttributeResponse.setEcsTagged(_ctx.booleanValue("DescribeKMSKeyAttributeResponse.EcsTagged")); - describeKMSKeyAttributeResponse.setKMSKeyId(_ctx.stringValue("DescribeKMSKeyAttributeResponse.KMSKeyId")); - describeKMSKeyAttributeResponse.setAlias(_ctx.stringValue("DescribeKMSKeyAttributeResponse.Alias")); - describeKMSKeyAttributeResponse.setCreator(_ctx.stringValue("DescribeKMSKeyAttributeResponse.Creator")); - - return describeKMSKeyAttributeResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeKMSKeysResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeKMSKeysResponseUnmarshaller.java deleted file mode 100644 index 88963436bd..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeKMSKeysResponseUnmarshaller.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeKMSKeysResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeKMSKeysResponseUnmarshaller { - - public static DescribeKMSKeysResponse unmarshall(DescribeKMSKeysResponse describeKMSKeysResponse, UnmarshallerContext _ctx) { - - describeKMSKeysResponse.setRequestId(_ctx.stringValue("DescribeKMSKeysResponse.RequestId")); - describeKMSKeysResponse.setPageNumber(_ctx.integerValue("DescribeKMSKeysResponse.PageNumber")); - describeKMSKeysResponse.setPageSize(_ctx.integerValue("DescribeKMSKeysResponse.PageSize")); - describeKMSKeysResponse.setTotalCount(_ctx.integerValue("DescribeKMSKeysResponse.TotalCount")); - - List kMSKeyIds = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeKMSKeysResponse.KMSKeyIds.Length"); i++) { - kMSKeyIds.add(_ctx.stringValue("DescribeKMSKeysResponse.KMSKeyIds["+ i +"]")); - } - describeKMSKeysResponse.setKMSKeyIds(kMSKeyIds); - - return describeKMSKeysResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeLinkedKMSKeysResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeLinkedKMSKeysResponseUnmarshaller.java deleted file mode 100644 index f42cc6bf20..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeLinkedKMSKeysResponseUnmarshaller.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeLinkedKMSKeysResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeLinkedKMSKeysResponse.KMSKey; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeLinkedKMSKeysResponseUnmarshaller { - - public static DescribeLinkedKMSKeysResponse unmarshall(DescribeLinkedKMSKeysResponse describeLinkedKMSKeysResponse, UnmarshallerContext _ctx) { - - describeLinkedKMSKeysResponse.setRequestId(_ctx.stringValue("DescribeLinkedKMSKeysResponse.RequestId")); - - List kMSKeys = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeLinkedKMSKeysResponse.KMSKeys.Length"); i++) { - KMSKey kMSKey = new KMSKey(); - kMSKey.setAlias(_ctx.stringValue("DescribeLinkedKMSKeysResponse.KMSKeys["+ i +"].Alias")); - kMSKey.setKMSKeyId(_ctx.stringValue("DescribeLinkedKMSKeysResponse.KMSKeys["+ i +"].KMSKeyId")); - - kMSKeys.add(kMSKey); - } - describeLinkedKMSKeysResponse.setKMSKeys(kMSKeys); - - return describeLinkedKMSKeysResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeLocalDiskRepairActivitiesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeLocalDiskRepairActivitiesResponseUnmarshaller.java deleted file mode 100644 index 866c45770e..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeLocalDiskRepairActivitiesResponseUnmarshaller.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeLocalDiskRepairActivitiesResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeLocalDiskRepairActivitiesResponse.LocalDiskRepairActivity; -import com.aliyuncs.ecs.model.v20160314.DescribeLocalDiskRepairActivitiesResponse.LocalDiskRepairActivity.DiskEvent; -import com.aliyuncs.ecs.model.v20160314.DescribeLocalDiskRepairActivitiesResponse.LocalDiskRepairActivity.DiskEvent.EventType1; -import com.aliyuncs.ecs.model.v20160314.DescribeLocalDiskRepairActivitiesResponse.LocalDiskRepairActivity.InstanceEvent; -import com.aliyuncs.ecs.model.v20160314.DescribeLocalDiskRepairActivitiesResponse.LocalDiskRepairActivity.InstanceEvent.EventCycleStatus; -import com.aliyuncs.ecs.model.v20160314.DescribeLocalDiskRepairActivitiesResponse.LocalDiskRepairActivity.InstanceEvent.EventType; -import com.aliyuncs.ecs.model.v20160314.DescribeLocalDiskRepairActivitiesResponse.LocalDiskRepairActivity.InstanceEvent.ExtendedAttribute; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeLocalDiskRepairActivitiesResponseUnmarshaller { - - public static DescribeLocalDiskRepairActivitiesResponse unmarshall(DescribeLocalDiskRepairActivitiesResponse describeLocalDiskRepairActivitiesResponse, UnmarshallerContext _ctx) { - - describeLocalDiskRepairActivitiesResponse.setRequestId(_ctx.stringValue("DescribeLocalDiskRepairActivitiesResponse.RequestId")); - describeLocalDiskRepairActivitiesResponse.setPageSize(_ctx.integerValue("DescribeLocalDiskRepairActivitiesResponse.PageSize")); - describeLocalDiskRepairActivitiesResponse.setPageNumber(_ctx.integerValue("DescribeLocalDiskRepairActivitiesResponse.PageNumber")); - describeLocalDiskRepairActivitiesResponse.setTotalCount(_ctx.integerValue("DescribeLocalDiskRepairActivitiesResponse.TotalCount")); - - List localDiskRepairActivities = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeLocalDiskRepairActivitiesResponse.LocalDiskRepairActivities.Length"); i++) { - LocalDiskRepairActivity localDiskRepairActivity = new LocalDiskRepairActivity(); - localDiskRepairActivity.setDiskId(_ctx.stringValue("DescribeLocalDiskRepairActivitiesResponse.LocalDiskRepairActivities["+ i +"].DiskId")); - localDiskRepairActivity.setInstanceId(_ctx.stringValue("DescribeLocalDiskRepairActivitiesResponse.LocalDiskRepairActivities["+ i +"].InstanceId")); - localDiskRepairActivity.setProgress(_ctx.stringValue("DescribeLocalDiskRepairActivitiesResponse.LocalDiskRepairActivities["+ i +"].Progress")); - - DiskEvent diskEvent = new DiskEvent(); - diskEvent.setEventId(_ctx.stringValue("DescribeLocalDiskRepairActivitiesResponse.LocalDiskRepairActivities["+ i +"].DiskEvent.EventId")); - diskEvent.setEventEndTime(_ctx.stringValue("DescribeLocalDiskRepairActivitiesResponse.LocalDiskRepairActivities["+ i +"].DiskEvent.EventEndTime")); - diskEvent.setEventTime(_ctx.stringValue("DescribeLocalDiskRepairActivitiesResponse.LocalDiskRepairActivities["+ i +"].DiskEvent.EventTime")); - - EventType1 eventType1 = new EventType1(); - eventType1.setName(_ctx.stringValue("DescribeLocalDiskRepairActivitiesResponse.LocalDiskRepairActivities["+ i +"].DiskEvent.EventType.Name")); - eventType1.setCode(_ctx.integerValue("DescribeLocalDiskRepairActivitiesResponse.LocalDiskRepairActivities["+ i +"].DiskEvent.EventType.Code")); - diskEvent.setEventType1(eventType1); - localDiskRepairActivity.setDiskEvent(diskEvent); - - List instanceEvents = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeLocalDiskRepairActivitiesResponse.LocalDiskRepairActivities["+ i +"].InstanceEvents.Length"); j++) { - InstanceEvent instanceEvent = new InstanceEvent(); - instanceEvent.setEventPublishTime(_ctx.stringValue("DescribeLocalDiskRepairActivitiesResponse.LocalDiskRepairActivities["+ i +"].InstanceEvents["+ j +"].EventPublishTime")); - instanceEvent.setEventId(_ctx.stringValue("DescribeLocalDiskRepairActivitiesResponse.LocalDiskRepairActivities["+ i +"].InstanceEvents["+ j +"].EventId")); - instanceEvent.setEventFinishTime(_ctx.stringValue("DescribeLocalDiskRepairActivitiesResponse.LocalDiskRepairActivities["+ i +"].InstanceEvents["+ j +"].EventFinishTime")); - instanceEvent.setInstanceId(_ctx.stringValue("DescribeLocalDiskRepairActivitiesResponse.LocalDiskRepairActivities["+ i +"].InstanceEvents["+ j +"].InstanceId")); - instanceEvent.setReason(_ctx.stringValue("DescribeLocalDiskRepairActivitiesResponse.LocalDiskRepairActivities["+ i +"].InstanceEvents["+ j +"].Reason")); - - EventType eventType = new EventType(); - eventType.setName(_ctx.stringValue("DescribeLocalDiskRepairActivitiesResponse.LocalDiskRepairActivities["+ i +"].InstanceEvents["+ j +"].EventType.Name")); - eventType.setCode(_ctx.integerValue("DescribeLocalDiskRepairActivitiesResponse.LocalDiskRepairActivities["+ i +"].InstanceEvents["+ j +"].EventType.Code")); - instanceEvent.setEventType(eventType); - - EventCycleStatus eventCycleStatus = new EventCycleStatus(); - eventCycleStatus.setName(_ctx.stringValue("DescribeLocalDiskRepairActivitiesResponse.LocalDiskRepairActivities["+ i +"].InstanceEvents["+ j +"].EventCycleStatus.Name")); - eventCycleStatus.setCode(_ctx.integerValue("DescribeLocalDiskRepairActivitiesResponse.LocalDiskRepairActivities["+ i +"].InstanceEvents["+ j +"].EventCycleStatus.Code")); - instanceEvent.setEventCycleStatus(eventCycleStatus); - - ExtendedAttribute extendedAttribute = new ExtendedAttribute(); - extendedAttribute.setDevice(_ctx.stringValue("DescribeLocalDiskRepairActivitiesResponse.LocalDiskRepairActivities["+ i +"].InstanceEvents["+ j +"].ExtendedAttribute.Device")); - extendedAttribute.setDiskId(_ctx.stringValue("DescribeLocalDiskRepairActivitiesResponse.LocalDiskRepairActivities["+ i +"].InstanceEvents["+ j +"].ExtendedAttribute.DiskId")); - extendedAttribute.setOnlineRepairPolicy(_ctx.stringValue("DescribeLocalDiskRepairActivitiesResponse.LocalDiskRepairActivities["+ i +"].InstanceEvents["+ j +"].ExtendedAttribute.OnlineRepairPolicy")); - instanceEvent.setExtendedAttribute(extendedAttribute); - - instanceEvents.add(instanceEvent); - } - localDiskRepairActivity.setInstanceEvents(instanceEvents); - - localDiskRepairActivities.add(localDiskRepairActivity); - } - describeLocalDiskRepairActivitiesResponse.setLocalDiskRepairActivities(localDiskRepairActivities); - - return describeLocalDiskRepairActivitiesResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeMigrationInstancesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeMigrationInstancesResponseUnmarshaller.java deleted file mode 100644 index fa2da610ec..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeMigrationInstancesResponseUnmarshaller.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeMigrationInstancesResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeMigrationInstancesResponse.MigrationInstance; -import com.aliyuncs.ecs.model.v20160314.DescribeMigrationInstancesResponse.MigrationInstance.Tag; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeMigrationInstancesResponseUnmarshaller { - - public static DescribeMigrationInstancesResponse unmarshall(DescribeMigrationInstancesResponse describeMigrationInstancesResponse, UnmarshallerContext _ctx) { - - describeMigrationInstancesResponse.setRequestId(_ctx.stringValue("DescribeMigrationInstancesResponse.RequestId")); - describeMigrationInstancesResponse.setPageNumber(_ctx.integerValue("DescribeMigrationInstancesResponse.PageNumber")); - describeMigrationInstancesResponse.setPageSize(_ctx.integerValue("DescribeMigrationInstancesResponse.PageSize")); - describeMigrationInstancesResponse.setTotalCount(_ctx.integerValue("DescribeMigrationInstancesResponse.TotalCount")); - - List migrationInstanceSet = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeMigrationInstancesResponse.MigrationInstanceSet.Length"); i++) { - MigrationInstance migrationInstance = new MigrationInstance(); - migrationInstance.setStatus(_ctx.stringValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].Status")); - migrationInstance.setFinishTime(_ctx.stringValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].FinishTime")); - migrationInstance.setTargetVpcId(_ctx.stringValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].TargetVpcId")); - migrationInstance.setInternetIp(_ctx.stringValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].InternetIp")); - migrationInstance.setTransitionTime(_ctx.stringValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].TransitionTime")); - migrationInstance.setBusinessMigrationType(_ctx.stringValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].BusinessMigrationType")); - migrationInstance.setIntranetIpAfterTransition(_ctx.stringValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].IntranetIpAfterTransition")); - migrationInstance.setPrivateMacAddress(_ctx.stringValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].PrivateMacAddress")); - migrationInstance.setMigrationPlanId(_ctx.stringValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].MigrationPlanId")); - migrationInstance.setMergeProgress(_ctx.stringValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].MergeProgress")); - migrationInstance.setNetworkMigrationType(_ctx.integerValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].NetworkMigrationType")); - migrationInstance.setMacAddressAfterTransition(_ctx.stringValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].MacAddressAfterTransition")); - migrationInstance.setName(_ctx.stringValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].Name")); - migrationInstance.setTargetVSwitchId(_ctx.stringValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].TargetVSwitchId")); - migrationInstance.setPublicMacAddress(_ctx.stringValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].PublicMacAddress")); - migrationInstance.setNetworkConnectivityStatus(_ctx.booleanValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].NetworkConnectivityStatus")); - migrationInstance.setMigrationStatus(_ctx.stringValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].MigrationStatus")); - migrationInstance.setTargetZoneId(_ctx.stringValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].TargetZoneId")); - migrationInstance.setInstanceId(_ctx.stringValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].InstanceId")); - migrationInstance.setInstanceType(_ctx.stringValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].InstanceType")); - migrationInstance.setIntranetIp(_ctx.stringValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].IntranetIp")); - migrationInstance.setRegionId(_ctx.stringValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].RegionId")); - migrationInstance.setInstanceChargeType(_ctx.stringValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].InstanceChargeType")); - migrationInstance.setResourceGroupId(_ctx.stringValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].ResourceGroupId")); - migrationInstance.setChangePublicIp(_ctx.booleanValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].ChangePublicIp")); - migrationInstance.setInternetIpAfterTransition(_ctx.stringValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].InternetIpAfterTransition")); - migrationInstance.setZoneId(_ctx.stringValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].ZoneId")); - migrationInstance.setBusinessStatus(_ctx.stringValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].BusinessStatus")); - migrationInstance.setHasLocalDisk(_ctx.booleanValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].HasLocalDisk")); - migrationInstance.setLoadProgress(_ctx.stringValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].LoadProgress")); - migrationInstance.setNonStandardInstanceType(_ctx.booleanValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].NonStandardInstanceType")); - migrationInstance.setTaskId(_ctx.stringValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].TaskId")); - - List securityGroupIdSets = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].SecurityGroupIdSets.Length"); j++) { - securityGroupIdSets.add(_ctx.stringValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].SecurityGroupIdSets["+ j +"]")); - } - migrationInstance.setSecurityGroupIdSets(securityGroupIdSets); - - List securityGroupIdSetsAfterTransition = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].SecurityGroupIdSetsAfterTransition.Length"); j++) { - securityGroupIdSetsAfterTransition.add(_ctx.stringValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].SecurityGroupIdSetsAfterTransition["+ j +"]")); - } - migrationInstance.setSecurityGroupIdSetsAfterTransition(securityGroupIdSetsAfterTransition); - - List tags = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].Tags.Length"); j++) { - Tag tag = new Tag(); - tag.setTagValue(_ctx.stringValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].Tags["+ j +"].TagValue")); - tag.setTagKey(_ctx.stringValue("DescribeMigrationInstancesResponse.MigrationInstanceSet["+ i +"].Tags["+ j +"].TagKey")); - - tags.add(tag); - } - migrationInstance.setTags(tags); - - migrationInstanceSet.add(migrationInstance); - } - describeMigrationInstancesResponse.setMigrationInstanceSet(migrationInstanceSet); - - return describeMigrationInstancesResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeMigrationPlansResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeMigrationPlansResponseUnmarshaller.java deleted file mode 100644 index 7643259918..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeMigrationPlansResponseUnmarshaller.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeMigrationPlansResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeMigrationPlansResponse.MigrationPlan; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeMigrationPlansResponseUnmarshaller { - - public static DescribeMigrationPlansResponse unmarshall(DescribeMigrationPlansResponse describeMigrationPlansResponse, UnmarshallerContext _ctx) { - - describeMigrationPlansResponse.setRequestId(_ctx.stringValue("DescribeMigrationPlansResponse.RequestId")); - describeMigrationPlansResponse.setPageNumber(_ctx.integerValue("DescribeMigrationPlansResponse.PageNumber")); - describeMigrationPlansResponse.setPageSize(_ctx.integerValue("DescribeMigrationPlansResponse.PageSize")); - describeMigrationPlansResponse.setTotalCount(_ctx.integerValue("DescribeMigrationPlansResponse.TotalCount")); - - List migrationPlanSet = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeMigrationPlansResponse.MigrationPlanSet.Length"); i++) { - MigrationPlan migrationPlan = new MigrationPlan(); - migrationPlan.setStatus(_ctx.stringValue("DescribeMigrationPlansResponse.MigrationPlanSet["+ i +"].Status")); - migrationPlan.setType(_ctx.stringValue("DescribeMigrationPlansResponse.MigrationPlanSet["+ i +"].Type")); - migrationPlan.setTotalInstanceCount(_ctx.integerValue("DescribeMigrationPlansResponse.MigrationPlanSet["+ i +"].TotalInstanceCount")); - migrationPlan.setTargetVpcId(_ctx.stringValue("DescribeMigrationPlansResponse.MigrationPlanSet["+ i +"].TargetVpcId")); - migrationPlan.setTargetVSwitchId(_ctx.stringValue("DescribeMigrationPlansResponse.MigrationPlanSet["+ i +"].TargetVSwitchId")); - migrationPlan.setCreateTime(_ctx.stringValue("DescribeMigrationPlansResponse.MigrationPlanSet["+ i +"].CreateTime")); - migrationPlan.setEnableNetworkConnectivity(_ctx.booleanValue("DescribeMigrationPlansResponse.MigrationPlanSet["+ i +"].EnableNetworkConnectivity")); - migrationPlan.setEnableAutoCreateVSwitch(_ctx.booleanValue("DescribeMigrationPlansResponse.MigrationPlanSet["+ i +"].EnableAutoCreateVSwitch")); - migrationPlan.setTargetZoneId(_ctx.stringValue("DescribeMigrationPlansResponse.MigrationPlanSet["+ i +"].TargetZoneId")); - migrationPlan.setRemainPrivateIp(_ctx.booleanValue("DescribeMigrationPlansResponse.MigrationPlanSet["+ i +"].RemainPrivateIp")); - migrationPlan.setMigrationPlanId(_ctx.stringValue("DescribeMigrationPlansResponse.MigrationPlanSet["+ i +"].MigrationPlanId")); - migrationPlan.setFinishInstanceCount(_ctx.integerValue("DescribeMigrationPlansResponse.MigrationPlanSet["+ i +"].FinishInstanceCount")); - migrationPlan.setRemainPublicMacAsPriority(_ctx.booleanValue("DescribeMigrationPlansResponse.MigrationPlanSet["+ i +"].RemainPublicMacAsPriority")); - migrationPlan.setName(_ctx.stringValue("DescribeMigrationPlansResponse.MigrationPlanSet["+ i +"].Name")); - - List securityGroupNos = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeMigrationPlansResponse.MigrationPlanSet["+ i +"].SecurityGroupNos.Length"); j++) { - securityGroupNos.add(_ctx.stringValue("DescribeMigrationPlansResponse.MigrationPlanSet["+ i +"].SecurityGroupNos["+ j +"]")); - } - migrationPlan.setSecurityGroupNos(securityGroupNos); - - migrationPlanSet.add(migrationPlan); - } - describeMigrationPlansResponse.setMigrationPlanSet(migrationPlanSet); - - return describeMigrationPlansResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeMigrationPreferencesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeMigrationPreferencesResponseUnmarshaller.java deleted file mode 100644 index 27e05e74ec..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeMigrationPreferencesResponseUnmarshaller.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeMigrationPreferencesResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeMigrationPreferencesResponseUnmarshaller { - - public static DescribeMigrationPreferencesResponse unmarshall(DescribeMigrationPreferencesResponse describeMigrationPreferencesResponse, UnmarshallerContext _ctx) { - - describeMigrationPreferencesResponse.setRequestId(_ctx.stringValue("DescribeMigrationPreferencesResponse.RequestId")); - describeMigrationPreferencesResponse.setMigrationNetworkType(_ctx.stringValue("DescribeMigrationPreferencesResponse.MigrationNetworkType")); - describeMigrationPreferencesResponse.setRegionId(_ctx.stringValue("DescribeMigrationPreferencesResponse.RegionId")); - - List targetZoneIdSet = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeMigrationPreferencesResponse.TargetZoneIdSet.Length"); i++) { - targetZoneIdSet.add(_ctx.stringValue("DescribeMigrationPreferencesResponse.TargetZoneIdSet["+ i +"]")); - } - describeMigrationPreferencesResponse.setTargetZoneIdSet(targetZoneIdSet); - - return describeMigrationPreferencesResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeNetworkInsightsAnalysisResultResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeNetworkInsightsAnalysisResultResponseUnmarshaller.java deleted file mode 100644 index fb42ec8ddb..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeNetworkInsightsAnalysisResultResponseUnmarshaller.java +++ /dev/null @@ -1,216 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeNetworkInsightsAnalysisResultResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponent; -import com.aliyuncs.ecs.model.v20160314.DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponent.DiagnoseCategory; -import com.aliyuncs.ecs.model.v20160314.DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponent.DiagnoseCategory.CategoryItem; -import com.aliyuncs.ecs.model.v20160314.DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponent.DiagnoseCategory.CategoryItem.Explanations; -import com.aliyuncs.ecs.model.v20160314.DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponent.DiagnoseCategory.CategoryItem.Explanations.NetworkAclEntry3; -import com.aliyuncs.ecs.model.v20160314.DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponent.DiagnoseCategory.CategoryItem.Explanations.SecurityGroupAcl2; -import com.aliyuncs.ecs.model.v20160314.DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponent.MetricResult; -import com.aliyuncs.ecs.model.v20160314.DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponent.MetricResult.Issue; -import com.aliyuncs.ecs.model.v20160314.DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponent.NetworkAclEntry; -import com.aliyuncs.ecs.model.v20160314.DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponent.SecurityGroupAcl; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeNetworkInsightsAnalysisResultResponseUnmarshaller { - - public static DescribeNetworkInsightsAnalysisResultResponse unmarshall(DescribeNetworkInsightsAnalysisResultResponse describeNetworkInsightsAnalysisResultResponse, UnmarshallerContext _ctx) { - - describeNetworkInsightsAnalysisResultResponse.setRequestId(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.RequestId")); - describeNetworkInsightsAnalysisResultResponse.setNetworkInsightsPathId(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsPathId")); - describeNetworkInsightsAnalysisResultResponse.setNetworkInsightsAnalysisId(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisId")); - describeNetworkInsightsAnalysisResultResponse.setNetworkPathFound(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkPathFound")); - describeNetworkInsightsAnalysisResultResponse.setStatus(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.Status")); - describeNetworkInsightsAnalysisResultResponse.setCreationTime(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.CreationTime")); - describeNetworkInsightsAnalysisResultResponse.setSource(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.Source")); - describeNetworkInsightsAnalysisResultResponse.setSourceType(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.SourceType")); - describeNetworkInsightsAnalysisResultResponse.setSourceIp(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.SourceIp")); - describeNetworkInsightsAnalysisResultResponse.setDestination(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.Destination")); - describeNetworkInsightsAnalysisResultResponse.setDestinationType(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.DestinationType")); - describeNetworkInsightsAnalysisResultResponse.setDestinationIp(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.DestinationIp")); - describeNetworkInsightsAnalysisResultResponse.setDestinationPort(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.DestinationPort")); - describeNetworkInsightsAnalysisResultResponse.setBizProtocol(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.Protocol")); - describeNetworkInsightsAnalysisResultResponse.setSeverity(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.Severity")); - describeNetworkInsightsAnalysisResultResponse.setAPIVersion(_ctx.integerValue("DescribeNetworkInsightsAnalysisResultResponse.APIVersion")); - - List networkInsightsAnalysisComponents = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents.Length"); i++) { - NetworkInsightsAnalysisComponent networkInsightsAnalysisComponent = new NetworkInsightsAnalysisComponent(); - networkInsightsAnalysisComponent.setResourceId(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].ResourceId")); - networkInsightsAnalysisComponent.setResourceType(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].ResourceType")); - networkInsightsAnalysisComponent.setReachable(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].Reachable")); - networkInsightsAnalysisComponent.setCode(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].Code")); - networkInsightsAnalysisComponent.setMessage(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].Message")); - networkInsightsAnalysisComponent.setSequence(_ctx.integerValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].Sequence")); - networkInsightsAnalysisComponent.setSeverity(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].Severity")); - - List relativeGroupIds = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].RelativeGroupIds.Length"); j++) { - relativeGroupIds.add(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].RelativeGroupIds["+ j +"]")); - } - networkInsightsAnalysisComponent.setRelativeGroupIds(relativeGroupIds); - - NetworkAclEntry networkAclEntry = new NetworkAclEntry(); - networkAclEntry.setCreationTime(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].NetworkAclEntry.CreationTime")); - networkAclEntry.setNetworkAclId(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].NetworkAclEntry.NetworkAclId")); - networkAclEntry.setNetworkAclName(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].NetworkAclEntry.NetworkAclName")); - networkAclEntry.setNetworkAclEntryId(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].NetworkAclEntry.NetworkAclEntryId")); - networkAclEntry.setNetworkAclEntryName(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].NetworkAclEntry.NetworkAclEntryName")); - networkAclEntry.setVpcId(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].NetworkAclEntry.VpcId")); - networkAclEntry.setDirection(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].NetworkAclEntry.Direction")); - networkAclEntry.setPolicy(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].NetworkAclEntry.Policy")); - networkAclEntry.setPort(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].NetworkAclEntry.Port")); - networkAclEntry.setBizProtocol(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].NetworkAclEntry.Protocol")); - networkAclEntry.setDestinationCidrIp(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].NetworkAclEntry.DestinationCidrIp")); - networkAclEntry.setSourceCidrIp(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].NetworkAclEntry.SourceCidrIp")); - networkInsightsAnalysisComponent.setNetworkAclEntry(networkAclEntry); - - SecurityGroupAcl securityGroupAcl = new SecurityGroupAcl(); - securityGroupAcl.setSecurityGroupId(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].SecurityGroupAcl.SecurityGroupId")); - securityGroupAcl.setDescription(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].SecurityGroupAcl.Description")); - securityGroupAcl.setInnerAccessPolicy(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].SecurityGroupAcl.InnerAccessPolicy")); - securityGroupAcl.setCreateTime(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].SecurityGroupAcl.CreateTime")); - securityGroupAcl.setPermissionDescription(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].SecurityGroupAcl.PermissionDescription")); - securityGroupAcl.setPriority(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].SecurityGroupAcl.Priority")); - securityGroupAcl.setSourceCidrIp(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].SecurityGroupAcl.SourceCidrIp")); - securityGroupAcl.setSourceGroupId(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].SecurityGroupAcl.SourceGroupId")); - securityGroupAcl.setSourceGroupName(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].SecurityGroupAcl.SourceGroupName")); - securityGroupAcl.setSourcePortRange(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].SecurityGroupAcl.SourcePortRange")); - securityGroupAcl.setPolicy(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].SecurityGroupAcl.Policy")); - securityGroupAcl.setNicType(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].SecurityGroupAcl.NicType")); - securityGroupAcl.setDirection(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].SecurityGroupAcl.Direction")); - securityGroupAcl.setIpProtocol(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].SecurityGroupAcl.IpProtocol")); - securityGroupAcl.setDestCidrIp(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].SecurityGroupAcl.DestCidrIp")); - securityGroupAcl.setDestGroupId(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].SecurityGroupAcl.DestGroupId")); - securityGroupAcl.setDestGroupName(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].SecurityGroupAcl.DestGroupName")); - securityGroupAcl.setIpv6DestCidrIp(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].SecurityGroupAcl.Ipv6DestCidrIp")); - securityGroupAcl.setIpv6SourceCidrIp(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].SecurityGroupAcl.Ipv6SourceCidrIp")); - securityGroupAcl.setDestPortRange(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].SecurityGroupAcl.DestPortRange")); - networkInsightsAnalysisComponent.setSecurityGroupAcl(securityGroupAcl); - - List diagnoseCategories = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories.Length"); j++) { - DiagnoseCategory diagnoseCategory = new DiagnoseCategory(); - diagnoseCategory.setCategoryName(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryName")); - diagnoseCategory.setReachable(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].Reachable")); - - List categoryItems = new ArrayList(); - for (int k = 0; k < _ctx.lengthValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems.Length"); k++) { - CategoryItem categoryItem = new CategoryItem(); - categoryItem.setItemName(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].ItemName")); - categoryItem.setReachable(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Reachable")); - categoryItem.setCode(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Code")); - - Explanations explanations = new Explanations(); - explanations.setMissingFiles(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.MissingFiles")); - explanations.setActualPort(_ctx.longValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.ActualPort")); - explanations.setExpectPort(_ctx.longValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.ExpectPort")); - explanations.setNetworkInterfaceName(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.NetworkInterfaceName")); - explanations.setNetmask(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.Netmask")); - explanations.setExpectIP(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.ExpectIP")); - explanations.setActualIP(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.ActualIP")); - explanations.setIp(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.Ip")); - explanations.setHeader(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.Header")); - explanations.setRule(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.Rule")); - explanations.setUsePercent(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.UsePercent")); - explanations.setPort(_ctx.longValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.Port")); - explanations.setExpireDate(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.ExpireDate")); - explanations.setProcessName(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.ProcessName")); - explanations.setGroupId(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.GroupId")); - - List topProcesses = new ArrayList(); - for (int l = 0; l < _ctx.lengthValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.TopProcesses.Length"); l++) { - topProcesses.add(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.TopProcesses["+ l +"]")); - } - explanations.setTopProcesses(topProcesses); - - List relativeGroupIds1 = new ArrayList(); - for (int l = 0; l < _ctx.lengthValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.RelativeGroupIds.Length"); l++) { - relativeGroupIds1.add(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.RelativeGroupIds["+ l +"]")); - } - explanations.setRelativeGroupIds1(relativeGroupIds1); - - SecurityGroupAcl2 securityGroupAcl2 = new SecurityGroupAcl2(); - securityGroupAcl2.setPolicy(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.SecurityGroupAcl.Policy")); - securityGroupAcl2.setDescription(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.SecurityGroupAcl.Description")); - securityGroupAcl2.setSourcePortRange(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.SecurityGroupAcl.SourcePortRange")); - securityGroupAcl2.setCreateTime(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.SecurityGroupAcl.CreateTime")); - securityGroupAcl2.setSourceCidrIp(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.SecurityGroupAcl.SourceCidrIp")); - securityGroupAcl2.setDestCidrIp(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.SecurityGroupAcl.DestCidrIp")); - securityGroupAcl2.setInnerAccessPolicy(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.SecurityGroupAcl.InnerAccessPolicy")); - securityGroupAcl2.setNicType(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.SecurityGroupAcl.NicType")); - securityGroupAcl2.setDestPortRange(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.SecurityGroupAcl.DestPortRange")); - securityGroupAcl2.setDestGroupId(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.SecurityGroupAcl.DestGroupId")); - explanations.setSecurityGroupAcl2(securityGroupAcl2); - - NetworkAclEntry3 networkAclEntry3 = new NetworkAclEntry3(); - networkAclEntry3.setPolicy(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.NetworkAclEntry.Policy")); - networkAclEntry3.setNetworkAclId(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.NetworkAclEntry.NetworkAclId")); - networkAclEntry3.setVpcId(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.NetworkAclEntry.VpcId")); - networkAclEntry3.setPort(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.NetworkAclEntry.Port")); - networkAclEntry3.setSourceCidrIp(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.NetworkAclEntry.SourceCidrIp")); - networkAclEntry3.setNetworkAclName(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.NetworkAclEntry.NetworkAclName")); - networkAclEntry3.setBizProtocol(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.NetworkAclEntry.Protocol")); - networkAclEntry3.setNetworkAclEntryId(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.NetworkAclEntry.NetworkAclEntryId")); - networkAclEntry3.setDirection(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].DiagnoseCategories["+ j +"].CategoryItems["+ k +"].Explanations.NetworkAclEntry.Direction")); - explanations.setNetworkAclEntry3(networkAclEntry3); - categoryItem.setExplanations(explanations); - - categoryItems.add(categoryItem); - } - diagnoseCategory.setCategoryItems(categoryItems); - - diagnoseCategories.add(diagnoseCategory); - } - networkInsightsAnalysisComponent.setDiagnoseCategories(diagnoseCategories); - - List metricResults = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].MetricResults.Length"); j++) { - MetricResult metricResult = new MetricResult(); - metricResult.setMetricId(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].MetricResults["+ j +"].MetricId")); - metricResult.setMetricCategory(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].MetricResults["+ j +"].MetricCategory")); - metricResult.setSeverity(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].MetricResults["+ j +"].Severity")); - metricResult.setStatus(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].MetricResults["+ j +"].Status")); - - List issues = new ArrayList(); - for (int k = 0; k < _ctx.lengthValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].MetricResults["+ j +"].Issues.Length"); k++) { - Issue issue = new Issue(); - issue.setIssueId(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].MetricResults["+ j +"].Issues["+ k +"].IssueId")); - issue.setSeverity(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].MetricResults["+ j +"].Issues["+ k +"].Severity")); - issue.setAdditional(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].MetricResults["+ j +"].Issues["+ k +"].Additional")); - issue.setOccurrenceTime(_ctx.stringValue("DescribeNetworkInsightsAnalysisResultResponse.NetworkInsightsAnalysisComponents["+ i +"].MetricResults["+ j +"].Issues["+ k +"].OccurrenceTime")); - - issues.add(issue); - } - metricResult.setIssues(issues); - - metricResults.add(metricResult); - } - networkInsightsAnalysisComponent.setMetricResults(metricResults); - - networkInsightsAnalysisComponents.add(networkInsightsAnalysisComponent); - } - describeNetworkInsightsAnalysisResultResponse.setNetworkInsightsAnalysisComponents(networkInsightsAnalysisComponents); - - return describeNetworkInsightsAnalysisResultResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeNetworkInsightsAnalysisesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeNetworkInsightsAnalysisesResponseUnmarshaller.java deleted file mode 100644 index 7a41576ca1..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeNetworkInsightsAnalysisesResponseUnmarshaller.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeNetworkInsightsAnalysisesResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeNetworkInsightsAnalysisesResponse.NetworkInsightsAnalysisSet; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeNetworkInsightsAnalysisesResponseUnmarshaller { - - public static DescribeNetworkInsightsAnalysisesResponse unmarshall(DescribeNetworkInsightsAnalysisesResponse describeNetworkInsightsAnalysisesResponse, UnmarshallerContext _ctx) { - - describeNetworkInsightsAnalysisesResponse.setRequestId(_ctx.stringValue("DescribeNetworkInsightsAnalysisesResponse.RequestId")); - describeNetworkInsightsAnalysisesResponse.setNextToken(_ctx.stringValue("DescribeNetworkInsightsAnalysisesResponse.NextToken")); - describeNetworkInsightsAnalysisesResponse.setMaxResults(_ctx.integerValue("DescribeNetworkInsightsAnalysisesResponse.MaxResults")); - - List networkInsightsAnalysisSets = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeNetworkInsightsAnalysisesResponse.NetworkInsightsAnalysisSets.Length"); i++) { - NetworkInsightsAnalysisSet networkInsightsAnalysisSet = new NetworkInsightsAnalysisSet(); - networkInsightsAnalysisSet.setNetworkInsightsPathId(_ctx.stringValue("DescribeNetworkInsightsAnalysisesResponse.NetworkInsightsAnalysisSets["+ i +"].NetworkInsightsPathId")); - networkInsightsAnalysisSet.setNetworkInsightsAnalysisId(_ctx.stringValue("DescribeNetworkInsightsAnalysisesResponse.NetworkInsightsAnalysisSets["+ i +"].NetworkInsightsAnalysisId")); - networkInsightsAnalysisSet.setNetworkPathFound(_ctx.stringValue("DescribeNetworkInsightsAnalysisesResponse.NetworkInsightsAnalysisSets["+ i +"].NetworkPathFound")); - networkInsightsAnalysisSet.setStatus(_ctx.stringValue("DescribeNetworkInsightsAnalysisesResponse.NetworkInsightsAnalysisSets["+ i +"].Status")); - networkInsightsAnalysisSet.setCreationTime(_ctx.stringValue("DescribeNetworkInsightsAnalysisesResponse.NetworkInsightsAnalysisSets["+ i +"].CreationTime")); - networkInsightsAnalysisSet.setSeverity(_ctx.stringValue("DescribeNetworkInsightsAnalysisesResponse.NetworkInsightsAnalysisSets["+ i +"].Severity")); - - networkInsightsAnalysisSets.add(networkInsightsAnalysisSet); - } - describeNetworkInsightsAnalysisesResponse.setNetworkInsightsAnalysisSets(networkInsightsAnalysisSets); - - return describeNetworkInsightsAnalysisesResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeNetworkInsightsPathsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeNetworkInsightsPathsResponseUnmarshaller.java deleted file mode 100644 index 77f172239d..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeNetworkInsightsPathsResponseUnmarshaller.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeNetworkInsightsPathsResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeNetworkInsightsPathsResponse.NetworkInsightsPathSet; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeNetworkInsightsPathsResponseUnmarshaller { - - public static DescribeNetworkInsightsPathsResponse unmarshall(DescribeNetworkInsightsPathsResponse describeNetworkInsightsPathsResponse, UnmarshallerContext _ctx) { - - describeNetworkInsightsPathsResponse.setRequestId(_ctx.stringValue("DescribeNetworkInsightsPathsResponse.RequestId")); - describeNetworkInsightsPathsResponse.setNextToken(_ctx.stringValue("DescribeNetworkInsightsPathsResponse.NextToken")); - describeNetworkInsightsPathsResponse.setMaxResults(_ctx.integerValue("DescribeNetworkInsightsPathsResponse.MaxResults")); - - List networkInsightsPathSets = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeNetworkInsightsPathsResponse.NetworkInsightsPathSets.Length"); i++) { - NetworkInsightsPathSet networkInsightsPathSet = new NetworkInsightsPathSet(); - networkInsightsPathSet.setNetworkInsightsPathId(_ctx.stringValue("DescribeNetworkInsightsPathsResponse.NetworkInsightsPathSets["+ i +"].NetworkInsightsPathId")); - networkInsightsPathSet.setNetworkInsightsPathName(_ctx.stringValue("DescribeNetworkInsightsPathsResponse.NetworkInsightsPathSets["+ i +"].NetworkInsightsPathName")); - networkInsightsPathSet.setCreationTime(_ctx.stringValue("DescribeNetworkInsightsPathsResponse.NetworkInsightsPathSets["+ i +"].CreationTime")); - networkInsightsPathSet.setSource(_ctx.stringValue("DescribeNetworkInsightsPathsResponse.NetworkInsightsPathSets["+ i +"].Source")); - networkInsightsPathSet.setSourceType(_ctx.stringValue("DescribeNetworkInsightsPathsResponse.NetworkInsightsPathSets["+ i +"].SourceType")); - networkInsightsPathSet.setDestination(_ctx.stringValue("DescribeNetworkInsightsPathsResponse.NetworkInsightsPathSets["+ i +"].Destination")); - networkInsightsPathSet.setDestinationType(_ctx.stringValue("DescribeNetworkInsightsPathsResponse.NetworkInsightsPathSets["+ i +"].DestinationType")); - networkInsightsPathSet.setDestinationPort(_ctx.stringValue("DescribeNetworkInsightsPathsResponse.NetworkInsightsPathSets["+ i +"].DestinationPort")); - networkInsightsPathSet.setBizProtocol(_ctx.stringValue("DescribeNetworkInsightsPathsResponse.NetworkInsightsPathSets["+ i +"].Protocol")); - networkInsightsPathSet.setStatus(_ctx.stringValue("DescribeNetworkInsightsPathsResponse.NetworkInsightsPathSets["+ i +"].Status")); - networkInsightsPathSet.setNetworkPathFound(_ctx.stringValue("DescribeNetworkInsightsPathsResponse.NetworkInsightsPathSets["+ i +"].NetworkPathFound")); - networkInsightsPathSet.setSeverity(_ctx.stringValue("DescribeNetworkInsightsPathsResponse.NetworkInsightsPathSets["+ i +"].Severity")); - - networkInsightsPathSets.add(networkInsightsPathSet); - } - describeNetworkInsightsPathsResponse.setNetworkInsightsPathSets(networkInsightsPathSets); - - return describeNetworkInsightsPathsResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeOrderAutoRebootTimeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeOrderAutoRebootTimeResponseUnmarshaller.java deleted file mode 100644 index fa37561892..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeOrderAutoRebootTimeResponseUnmarshaller.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.DescribeOrderAutoRebootTimeResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeOrderAutoRebootTimeResponse.DescribeOrderAutoRebootTimeInfo; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeOrderAutoRebootTimeResponseUnmarshaller { - - public static DescribeOrderAutoRebootTimeResponse unmarshall(DescribeOrderAutoRebootTimeResponse describeOrderAutoRebootTimeResponse, UnmarshallerContext _ctx) { - - describeOrderAutoRebootTimeResponse.setRequestId(_ctx.stringValue("DescribeOrderAutoRebootTimeResponse.RequestId")); - - DescribeOrderAutoRebootTimeInfo describeOrderAutoRebootTimeInfo = new DescribeOrderAutoRebootTimeInfo(); - describeOrderAutoRebootTimeInfo.setAutoRebootTime(_ctx.stringValue("DescribeOrderAutoRebootTimeResponse.DescribeOrderAutoRebootTimeInfo.AutoRebootTime")); - describeOrderAutoRebootTimeInfo.setInstanceId(_ctx.stringValue("DescribeOrderAutoRebootTimeResponse.DescribeOrderAutoRebootTimeInfo.InstanceId")); - describeOrderAutoRebootTimeInfo.setOrderId(_ctx.longValue("DescribeOrderAutoRebootTimeResponse.DescribeOrderAutoRebootTimeInfo.OrderId")); - describeOrderAutoRebootTimeResponse.setDescribeOrderAutoRebootTimeInfo(describeOrderAutoRebootTimeInfo); - - return describeOrderAutoRebootTimeResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribePrePaidResourceRefundPriceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribePrePaidResourceRefundPriceResponseUnmarshaller.java deleted file mode 100644 index 0c4ece7aca..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribePrePaidResourceRefundPriceResponseUnmarshaller.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.DescribePrePaidResourceRefundPriceResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribePrePaidResourceRefundPriceResponseUnmarshaller { - - public static DescribePrePaidResourceRefundPriceResponse unmarshall(DescribePrePaidResourceRefundPriceResponse describePrePaidResourceRefundPriceResponse, UnmarshallerContext _ctx) { - - describePrePaidResourceRefundPriceResponse.setRequestId(_ctx.stringValue("DescribePrePaidResourceRefundPriceResponse.RequestId")); - describePrePaidResourceRefundPriceResponse.setRefunds(_ctx.floatValue("DescribePrePaidResourceRefundPriceResponse.Refunds")); - describePrePaidResourceRefundPriceResponse.setCurrency(_ctx.stringValue("DescribePrePaidResourceRefundPriceResponse.Currency")); - - return describePrePaidResourceRefundPriceResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribePriceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribePriceResponseUnmarshaller.java deleted file mode 100644 index de8d626eab..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribePriceResponseUnmarshaller.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribePriceResponse; -import com.aliyuncs.ecs.model.v20160314.DescribePriceResponse.PriceInfo; -import com.aliyuncs.ecs.model.v20160314.DescribePriceResponse.PriceInfo.Order; -import com.aliyuncs.ecs.model.v20160314.DescribePriceResponse.PriceInfo.Order.Coupon; -import com.aliyuncs.ecs.model.v20160314.DescribePriceResponse.PriceInfo.Order.ResourcePriceModel; -import com.aliyuncs.ecs.model.v20160314.DescribePriceResponse.PriceInfo.Order.ResourcePriceModel.Rule1; -import com.aliyuncs.ecs.model.v20160314.DescribePriceResponse.PriceInfo.Order.SubOrder; -import com.aliyuncs.ecs.model.v20160314.DescribePriceResponse.PriceInfo.PriceWarning; -import com.aliyuncs.ecs.model.v20160314.DescribePriceResponse.PriceInfo.Rule; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribePriceResponseUnmarshaller { - - public static DescribePriceResponse unmarshall(DescribePriceResponse describePriceResponse, UnmarshallerContext _ctx) { - - describePriceResponse.setRequestId(_ctx.stringValue("DescribePriceResponse.RequestId")); - - PriceInfo priceInfo = new PriceInfo(); - - List orderParams = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribePriceResponse.PriceInfo.OrderParams.Length"); i++) { - orderParams.add(_ctx.stringValue("DescribePriceResponse.PriceInfo.OrderParams["+ i +"]")); - } - priceInfo.setOrderParams(orderParams); - - Order order = new Order(); - order.setDiscountPrice(_ctx.floatValue("DescribePriceResponse.PriceInfo.Order.DiscountPrice")); - order.setTradePrice(_ctx.floatValue("DescribePriceResponse.PriceInfo.Order.TradePrice")); - order.setOriginalPrice(_ctx.floatValue("DescribePriceResponse.PriceInfo.Order.OriginalPrice")); - order.setSpotInstanceTypePrice(_ctx.floatValue("DescribePriceResponse.PriceInfo.Order.SpotInstanceTypePrice")); - order.setCurrency(_ctx.stringValue("DescribePriceResponse.PriceInfo.Order.Currency")); - order.setSpotInstanceTypeOriginalPrice(_ctx.floatValue("DescribePriceResponse.PriceInfo.Order.SpotInstanceTypeOriginalPrice")); - - List ruleIdSet = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribePriceResponse.PriceInfo.Order.RuleIdSet.Length"); i++) { - ruleIdSet.add(_ctx.stringValue("DescribePriceResponse.PriceInfo.Order.RuleIdSet["+ i +"]")); - } - order.setRuleIdSet(ruleIdSet); - - List coupons = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribePriceResponse.PriceInfo.Order.Coupons.Length"); i++) { - Coupon coupon = new Coupon(); - coupon.setIsSelected(_ctx.booleanValue("DescribePriceResponse.PriceInfo.Order.Coupons["+ i +"].IsSelected")); - coupon.setCouponNo(_ctx.stringValue("DescribePriceResponse.PriceInfo.Order.Coupons["+ i +"].CouponNo")); - coupon.setDescription(_ctx.stringValue("DescribePriceResponse.PriceInfo.Order.Coupons["+ i +"].Description")); - coupon.setName(_ctx.stringValue("DescribePriceResponse.PriceInfo.Order.Coupons["+ i +"].Name")); - coupon.setDiscountOff(_ctx.floatValue("DescribePriceResponse.PriceInfo.Order.Coupons["+ i +"].DiscountOff")); - coupon.setOptionCode(_ctx.stringValue("DescribePriceResponse.PriceInfo.Order.Coupons["+ i +"].OptionCode")); - - List ruleIds = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribePriceResponse.PriceInfo.Order.Coupons["+ i +"].RuleIds.Length"); j++) { - ruleIds.add(_ctx.longValue("DescribePriceResponse.PriceInfo.Order.Coupons["+ i +"].RuleIds["+ j +"]")); - } - coupon.setRuleIds(ruleIds); - - coupons.add(coupon); - } - order.setCoupons(coupons); - - List detailInfos = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribePriceResponse.PriceInfo.Order.DetailInfos.Length"); i++) { - ResourcePriceModel resourcePriceModel = new ResourcePriceModel(); - resourcePriceModel.setResource(_ctx.stringValue("DescribePriceResponse.PriceInfo.Order.DetailInfos["+ i +"].Resource")); - resourcePriceModel.setOriginalPrice(_ctx.floatValue("DescribePriceResponse.PriceInfo.Order.DetailInfos["+ i +"].OriginalPrice")); - resourcePriceModel.setDiscountPrice(_ctx.floatValue("DescribePriceResponse.PriceInfo.Order.DetailInfos["+ i +"].DiscountPrice")); - resourcePriceModel.setTradePrice(_ctx.floatValue("DescribePriceResponse.PriceInfo.Order.DetailInfos["+ i +"].TradePrice")); - - List subRules = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribePriceResponse.PriceInfo.Order.DetailInfos["+ i +"].SubRules.Length"); j++) { - Rule1 rule1 = new Rule1(); - rule1.setTitle(_ctx.stringValue("DescribePriceResponse.PriceInfo.Order.DetailInfos["+ i +"].SubRules["+ j +"].Title")); - rule1.setName(_ctx.stringValue("DescribePriceResponse.PriceInfo.Order.DetailInfos["+ i +"].SubRules["+ j +"].Name")); - rule1.setRuleId(_ctx.longValue("DescribePriceResponse.PriceInfo.Order.DetailInfos["+ i +"].SubRules["+ j +"].RuleId")); - - subRules.add(rule1); - } - resourcePriceModel.setSubRules(subRules); - - detailInfos.add(resourcePriceModel); - } - order.setDetailInfos(detailInfos); - - List subOrders = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribePriceResponse.PriceInfo.Order.SubOrders.Length"); i++) { - SubOrder subOrder = new SubOrder(); - subOrder.setOriginalPrice(_ctx.floatValue("DescribePriceResponse.PriceInfo.Order.SubOrders["+ i +"].OriginalPrice")); - subOrder.setInstanceId(_ctx.stringValue("DescribePriceResponse.PriceInfo.Order.SubOrders["+ i +"].InstanceId")); - subOrder.setDiscountPrice(_ctx.floatValue("DescribePriceResponse.PriceInfo.Order.SubOrders["+ i +"].DiscountPrice")); - subOrder.setTradePrice(_ctx.floatValue("DescribePriceResponse.PriceInfo.Order.SubOrders["+ i +"].TradePrice")); - - List ruleIdSet2 = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribePriceResponse.PriceInfo.Order.SubOrders["+ i +"].RuleIdSet.Length"); j++) { - ruleIdSet2.add(_ctx.stringValue("DescribePriceResponse.PriceInfo.Order.SubOrders["+ i +"].RuleIdSet["+ j +"]")); - } - subOrder.setRuleIdSet2(ruleIdSet2); - - subOrders.add(subOrder); - } - order.setSubOrders(subOrders); - priceInfo.setOrder(order); - - PriceWarning priceWarning = new PriceWarning(); - priceWarning.setMsg(_ctx.stringValue("DescribePriceResponse.PriceInfo.PriceWarning.Msg")); - priceWarning.setCode(_ctx.stringValue("DescribePriceResponse.PriceInfo.PriceWarning.Code")); - priceInfo.setPriceWarning(priceWarning); - - List rules = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribePriceResponse.PriceInfo.Rules.Length"); i++) { - Rule rule = new Rule(); - rule.setTitle(_ctx.stringValue("DescribePriceResponse.PriceInfo.Rules["+ i +"].Title")); - rule.setName(_ctx.stringValue("DescribePriceResponse.PriceInfo.Rules["+ i +"].Name")); - rule.setRuleId(_ctx.longValue("DescribePriceResponse.PriceInfo.Rules["+ i +"].RuleId")); - - rules.add(rule); - } - priceInfo.setRules(rules); - describePriceResponse.setPriceInfo(priceInfo); - - return describePriceResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribePrivatePoolsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribePrivatePoolsResponseUnmarshaller.java deleted file mode 100644 index 358babb27c..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribePrivatePoolsResponseUnmarshaller.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribePrivatePoolsResponse; -import com.aliyuncs.ecs.model.v20160314.DescribePrivatePoolsResponse.PrivatePoolItem; -import com.aliyuncs.ecs.model.v20160314.DescribePrivatePoolsResponse.PrivatePoolItem.AllocatedResource; -import com.aliyuncs.ecs.model.v20160314.DescribePrivatePoolsResponse.PrivatePoolItem.Tag; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribePrivatePoolsResponseUnmarshaller { - - public static DescribePrivatePoolsResponse unmarshall(DescribePrivatePoolsResponse describePrivatePoolsResponse, UnmarshallerContext _ctx) { - - describePrivatePoolsResponse.setRequestId(_ctx.stringValue("DescribePrivatePoolsResponse.RequestId")); - describePrivatePoolsResponse.setNextToken(_ctx.stringValue("DescribePrivatePoolsResponse.NextToken")); - describePrivatePoolsResponse.setTotalCount(_ctx.integerValue("DescribePrivatePoolsResponse.TotalCount")); - describePrivatePoolsResponse.setMaxResults(_ctx.integerValue("DescribePrivatePoolsResponse.MaxResults")); - - List privatePoolSet = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribePrivatePoolsResponse.PrivatePoolSet.Length"); i++) { - PrivatePoolItem privatePoolItem = new PrivatePoolItem(); - privatePoolItem.setStatus(_ctx.stringValue("DescribePrivatePoolsResponse.PrivatePoolSet["+ i +"].Status")); - privatePoolItem.setPrivatePoolOptionsMatchCriteria(_ctx.stringValue("DescribePrivatePoolsResponse.PrivatePoolSet["+ i +"].PrivatePoolOptionsMatchCriteria")); - privatePoolItem.setPrivatePoolOptionsId(_ctx.stringValue("DescribePrivatePoolsResponse.PrivatePoolSet["+ i +"].PrivatePoolOptionsId")); - privatePoolItem.setUsedAssuranceTimes(_ctx.integerValue("DescribePrivatePoolsResponse.PrivatePoolSet["+ i +"].UsedAssuranceTimes")); - privatePoolItem.setLatestStartTime(_ctx.stringValue("DescribePrivatePoolsResponse.PrivatePoolSet["+ i +"].LatestStartTime")); - privatePoolItem.setPrivatePoolOptionsName(_ctx.stringValue("DescribePrivatePoolsResponse.PrivatePoolSet["+ i +"].PrivatePoolOptionsName")); - privatePoolItem.setPrivatePoolOptionsType(_ctx.stringValue("DescribePrivatePoolsResponse.PrivatePoolSet["+ i +"].PrivatePoolOptionsType")); - privatePoolItem.setRegionId(_ctx.stringValue("DescribePrivatePoolsResponse.PrivatePoolSet["+ i +"].RegionId")); - privatePoolItem.setEndTime(_ctx.stringValue("DescribePrivatePoolsResponse.PrivatePoolSet["+ i +"].EndTime")); - privatePoolItem.setStartTime(_ctx.stringValue("DescribePrivatePoolsResponse.PrivatePoolSet["+ i +"].StartTime")); - privatePoolItem.setDescription(_ctx.stringValue("DescribePrivatePoolsResponse.PrivatePoolSet["+ i +"].Description")); - privatePoolItem.setEndTimeType(_ctx.stringValue("DescribePrivatePoolsResponse.PrivatePoolSet["+ i +"].EndTimeType")); - privatePoolItem.setResourceGroupId(_ctx.stringValue("DescribePrivatePoolsResponse.PrivatePoolSet["+ i +"].ResourceGroupId")); - privatePoolItem.setPlatform(_ctx.stringValue("DescribePrivatePoolsResponse.PrivatePoolSet["+ i +"].Platform")); - privatePoolItem.setTotalAssuranceTimes(_ctx.stringValue("DescribePrivatePoolsResponse.PrivatePoolSet["+ i +"].TotalAssuranceTimes")); - privatePoolItem.setInstanceChargeType(_ctx.stringValue("DescribePrivatePoolsResponse.PrivatePoolSet["+ i +"].InstanceChargeType")); - privatePoolItem.setStartTimeType(_ctx.stringValue("DescribePrivatePoolsResponse.PrivatePoolSet["+ i +"].StartTimeType")); - - List allocatedResources = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribePrivatePoolsResponse.PrivatePoolSet["+ i +"].AllocatedResources.Length"); j++) { - AllocatedResource allocatedResource = new AllocatedResource(); - allocatedResource.setUsedAmount(_ctx.integerValue("DescribePrivatePoolsResponse.PrivatePoolSet["+ i +"].AllocatedResources["+ j +"].UsedAmount")); - allocatedResource.setTotalAmount(_ctx.integerValue("DescribePrivatePoolsResponse.PrivatePoolSet["+ i +"].AllocatedResources["+ j +"].TotalAmount")); - allocatedResource.setZoneId(_ctx.stringValue("DescribePrivatePoolsResponse.PrivatePoolSet["+ i +"].AllocatedResources["+ j +"].zoneId")); - allocatedResource.setInstanceType(_ctx.stringValue("DescribePrivatePoolsResponse.PrivatePoolSet["+ i +"].AllocatedResources["+ j +"].InstanceType")); - - allocatedResources.add(allocatedResource); - } - privatePoolItem.setAllocatedResources(allocatedResources); - - List tags = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribePrivatePoolsResponse.PrivatePoolSet["+ i +"].Tags.Length"); j++) { - Tag tag = new Tag(); - tag.setTagValue(_ctx.stringValue("DescribePrivatePoolsResponse.PrivatePoolSet["+ i +"].Tags["+ j +"].TagValue")); - tag.setTagKey(_ctx.stringValue("DescribePrivatePoolsResponse.PrivatePoolSet["+ i +"].Tags["+ j +"].TagKey")); - - tags.add(tag); - } - privatePoolItem.setTags(tags); - - privatePoolSet.add(privatePoolItem); - } - describePrivatePoolsResponse.setPrivatePoolSet(privatePoolSet); - - return describePrivatePoolsResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeRecommendProductResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeRecommendProductResponseUnmarshaller.java deleted file mode 100644 index a94e41503a..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeRecommendProductResponseUnmarshaller.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeRecommendProductResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeRecommendProductResponse.RecommendProduct; -import com.aliyuncs.ecs.model.v20160314.DescribeRecommendProductResponse.RecommendProduct.RecommendInstanceType; -import com.aliyuncs.ecs.model.v20160314.DescribeRecommendProductResponse.RecommendProduct.RecommendInstanceType.InstanceType; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeRecommendProductResponseUnmarshaller { - - public static DescribeRecommendProductResponse unmarshall(DescribeRecommendProductResponse describeRecommendProductResponse, UnmarshallerContext _ctx) { - - describeRecommendProductResponse.setRequestId(_ctx.stringValue("DescribeRecommendProductResponse.RequestId")); - - List recommendProducts = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeRecommendProductResponse.RecommendProducts.Length"); i++) { - RecommendProduct recommendProduct = new RecommendProduct(); - recommendProduct.setZoneId(_ctx.stringValue("DescribeRecommendProductResponse.RecommendProducts["+ i +"].ZoneId")); - - List recommendInstanceTypes = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeRecommendProductResponse.RecommendProducts["+ i +"].RecommendInstanceTypes.Length"); j++) { - RecommendInstanceType recommendInstanceType = new RecommendInstanceType(); - recommendInstanceType.setPrice(_ctx.floatValue("DescribeRecommendProductResponse.RecommendProducts["+ i +"].RecommendInstanceTypes["+ j +"].Price")); - recommendInstanceType.setCapacitySpecification(_ctx.stringValue("DescribeRecommendProductResponse.RecommendProducts["+ i +"].RecommendInstanceTypes["+ j +"].CapacitySpecification")); - recommendInstanceType.setPriority(_ctx.integerValue("DescribeRecommendProductResponse.RecommendProducts["+ i +"].RecommendInstanceTypes["+ j +"].Priority")); - recommendInstanceType.setNetworkType(_ctx.stringValue("DescribeRecommendProductResponse.RecommendProducts["+ i +"].RecommendInstanceTypes["+ j +"].NetworkType")); - recommendInstanceType.setSpotStrategy(_ctx.stringValue("DescribeRecommendProductResponse.RecommendProducts["+ i +"].RecommendInstanceTypes["+ j +"].SpotStrategy")); - recommendInstanceType.setInstanceChargeType(_ctx.stringValue("DescribeRecommendProductResponse.RecommendProducts["+ i +"].RecommendInstanceTypes["+ j +"].InstanceChargeType")); - - InstanceType instanceType = new InstanceType(); - instanceType.setSupportIoOptimized(_ctx.stringValue("DescribeRecommendProductResponse.RecommendProducts["+ i +"].RecommendInstanceTypes["+ j +"].InstanceType.SupportIoOptimized")); - instanceType.setCores(_ctx.integerValue("DescribeRecommendProductResponse.RecommendProducts["+ i +"].RecommendInstanceTypes["+ j +"].InstanceType.Cores")); - instanceType.setInstanceFamilyLevel(_ctx.stringValue("DescribeRecommendProductResponse.RecommendProducts["+ i +"].RecommendInstanceTypes["+ j +"].InstanceType.InstanceFamilyLevel")); - instanceType.setMemory(_ctx.integerValue("DescribeRecommendProductResponse.RecommendProducts["+ i +"].RecommendInstanceTypes["+ j +"].InstanceType.Memory")); - instanceType.setInstanceType(_ctx.stringValue("DescribeRecommendProductResponse.RecommendProducts["+ i +"].RecommendInstanceTypes["+ j +"].InstanceType.InstanceType")); - instanceType.setInstanceTypeFamily(_ctx.stringValue("DescribeRecommendProductResponse.RecommendProducts["+ i +"].RecommendInstanceTypes["+ j +"].InstanceType.InstanceTypeFamily")); - instanceType.setGeneration(_ctx.stringValue("DescribeRecommendProductResponse.RecommendProducts["+ i +"].RecommendInstanceTypes["+ j +"].InstanceType.Generation")); - recommendInstanceType.setInstanceType(instanceType); - - recommendInstanceTypes.add(recommendInstanceType); - } - recommendProduct.setRecommendInstanceTypes(recommendInstanceTypes); - - recommendProducts.add(recommendProduct); - } - describeRecommendProductResponse.setRecommendProducts(recommendProducts); - - return describeRecommendProductResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeReservationDemandCommittedAmountResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeReservationDemandCommittedAmountResponseUnmarshaller.java deleted file mode 100644 index 9504c508d1..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeReservationDemandCommittedAmountResponseUnmarshaller.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.DescribeReservationDemandCommittedAmountResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeReservationDemandCommittedAmountResponse.CommittedAmountInfo; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeReservationDemandCommittedAmountResponseUnmarshaller { - - public static DescribeReservationDemandCommittedAmountResponse unmarshall(DescribeReservationDemandCommittedAmountResponse describeReservationDemandCommittedAmountResponse, UnmarshallerContext _ctx) { - - describeReservationDemandCommittedAmountResponse.setRequestId(_ctx.stringValue("DescribeReservationDemandCommittedAmountResponse.RequestId")); - - CommittedAmountInfo committedAmountInfo = new CommittedAmountInfo(); - committedAmountInfo.setCommittedAmount(_ctx.floatValue("DescribeReservationDemandCommittedAmountResponse.CommittedAmountInfo.CommittedAmount")); - committedAmountInfo.setCurrency(_ctx.stringValue("DescribeReservationDemandCommittedAmountResponse.CommittedAmountInfo.Currency")); - describeReservationDemandCommittedAmountResponse.setCommittedAmountInfo(committedAmountInfo); - - return describeReservationDemandCommittedAmountResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeReservationDemandsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeReservationDemandsResponseUnmarshaller.java deleted file mode 100644 index e8b484c853..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeReservationDemandsResponseUnmarshaller.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeReservationDemandsResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeReservationDemandsResponse.DemandOrders; -import com.aliyuncs.ecs.model.v20160314.DescribeReservationDemandsResponse.DemandOrders.CapacityReservations; -import com.aliyuncs.ecs.model.v20160314.DescribeReservationDemandsResponse.DemandOrders.CapacityReservations1; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeReservationDemandsResponseUnmarshaller { - - public static DescribeReservationDemandsResponse unmarshall(DescribeReservationDemandsResponse describeReservationDemandsResponse, UnmarshallerContext _ctx) { - - describeReservationDemandsResponse.setRequestId(_ctx.stringValue("DescribeReservationDemandsResponse.RequestId")); - describeReservationDemandsResponse.setTotalCount(_ctx.integerValue("DescribeReservationDemandsResponse.TotalCount")); - describeReservationDemandsResponse.setNextToken(_ctx.stringValue("DescribeReservationDemandsResponse.NextToken")); - - List data = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeReservationDemandsResponse.Data.Length"); i++) { - DemandOrders demandOrders = new DemandOrders(); - demandOrders.setStatus(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].Status")); - demandOrders.setSavingPlanDescription(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].SavingPlanDescription")); - demandOrders.setDemandId(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].DemandId")); - demandOrders.setReservedInstanceDescription(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].ReservedInstanceDescription")); - demandOrders.setSavingPlanId(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].SavingPlanId")); - demandOrders.setSavingPlanSavingType(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].SavingPlanSavingType")); - demandOrders.setSavingPlanPayMode(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].SavingPlanPayMode")); - demandOrders.setCouponAuto(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].CouponAuto")); - demandOrders.setZoneIds(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].ZoneIds")); - demandOrders.setName(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].Name")); - demandOrders.setDescription(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].Description")); - demandOrders.setPlatform(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].Platform")); - demandOrders.setReservedInstanceOfferingType(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].ReservedInstanceOfferingType")); - demandOrders.setSavingPlanName(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].SavingPlanName")); - demandOrders.setInstanceCpuCoreCount(_ctx.integerValue("DescribeReservationDemandsResponse.Data["+ i +"].InstanceCpuCoreCount")); - demandOrders.setMatchCriteria(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].MatchCriteria")); - demandOrders.setSavingPlanHourFee(_ctx.floatValue("DescribeReservationDemandsResponse.Data["+ i +"].SavingPlanHourFee")); - demandOrders.setReservedInstanceName(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].ReservedInstanceName")); - demandOrders.setSavingPlanInstanceTypeFamilyGroup(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].SavingPlanInstanceTypeFamilyGroup")); - demandOrders.setSavingPlanSpecType(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].SavingPlanSpecType")); - demandOrders.setReservedInstanceId(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].ReservedInstanceId")); - demandOrders.setConfirmType(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].ConfirmType")); - demandOrders.setCouponType(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].CouponType")); - demandOrders.setRegionId(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].RegionId")); - demandOrders.setPeriod(_ctx.integerValue("DescribeReservationDemandsResponse.Data["+ i +"].Period")); - demandOrders.setInstanceChargeType(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].InstanceChargeType")); - demandOrders.setStartTime(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].StartTime")); - demandOrders.setProductType(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].ProductType")); - demandOrders.setResourceSupplyType(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].ResourceSupplyType")); - demandOrders.setPeriodUnit(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].PeriodUnit")); - demandOrders.setInstanceTypes(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].InstanceTypes")); - demandOrders.setPhoneNumber(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].PhoneNumber")); - - List reservationResource = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeReservationDemandsResponse.Data["+ i +"].ReservationResource.Length"); j++) { - CapacityReservations capacityReservations = new CapacityReservations(); - capacityReservations.setMatchCriteria(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].ReservationResource["+ j +"].MatchCriteria")); - capacityReservations.setStatus(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].ReservationResource["+ j +"].Status")); - capacityReservations.setPrivatePoolOptionsId(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].ReservationResource["+ j +"].PrivatePoolOptionsId")); - capacityReservations.setApproveCode(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].ReservationResource["+ j +"].ApproveCode")); - capacityReservations.setZoneId(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].ReservationResource["+ j +"].ZoneId")); - capacityReservations.setInstanceType(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].ReservationResource["+ j +"].InstanceType")); - capacityReservations.setPlanId(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].ReservationResource["+ j +"].PlanId")); - capacityReservations.setInstanceAmount(_ctx.integerValue("DescribeReservationDemandsResponse.Data["+ i +"].ReservationResource["+ j +"].InstanceAmount")); - capacityReservations.setApproveNotes(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].ReservationResource["+ j +"].ApproveNotes")); - capacityReservations.setStartTime(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].ReservationResource["+ j +"].StartTime")); - - reservationResource.add(capacityReservations); - } - demandOrders.setReservationResource(reservationResource); - - List recommendResource = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeReservationDemandsResponse.Data["+ i +"].RecommendResource.Length"); j++) { - CapacityReservations1 capacityReservations1 = new CapacityReservations1(); - capacityReservations1.setMatchCriteria(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].RecommendResource["+ j +"].MatchCriteria")); - capacityReservations1.setStatus(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].RecommendResource["+ j +"].Status")); - capacityReservations1.setPrivatePoolOptionsId(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].RecommendResource["+ j +"].PrivatePoolOptionsId")); - capacityReservations1.setZoneId(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].RecommendResource["+ j +"].ZoneId")); - capacityReservations1.setInstanceType(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].RecommendResource["+ j +"].InstanceType")); - capacityReservations1.setPlanId(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].RecommendResource["+ j +"].PlanId")); - capacityReservations1.setInstanceAmount(_ctx.integerValue("DescribeReservationDemandsResponse.Data["+ i +"].RecommendResource["+ j +"].InstanceAmount")); - capacityReservations1.setStartTime(_ctx.stringValue("DescribeReservationDemandsResponse.Data["+ i +"].RecommendResource["+ j +"].StartTime")); - - recommendResource.add(capacityReservations1); - } - demandOrders.setRecommendResource(recommendResource); - - data.add(demandOrders); - } - describeReservationDemandsResponse.setData(data); - - return describeReservationDemandsResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeReservedInstanceAllocationsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeReservedInstanceAllocationsResponseUnmarshaller.java deleted file mode 100644 index 0be62ee678..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeReservedInstanceAllocationsResponseUnmarshaller.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeReservedInstanceAllocationsResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeReservedInstanceAllocationsResponse.Allocation; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeReservedInstanceAllocationsResponseUnmarshaller { - - public static DescribeReservedInstanceAllocationsResponse unmarshall(DescribeReservedInstanceAllocationsResponse describeReservedInstanceAllocationsResponse, UnmarshallerContext _ctx) { - - describeReservedInstanceAllocationsResponse.setRequestId(_ctx.stringValue("DescribeReservedInstanceAllocationsResponse.RequestId")); - describeReservedInstanceAllocationsResponse.setPageSize(_ctx.integerValue("DescribeReservedInstanceAllocationsResponse.PageSize")); - describeReservedInstanceAllocationsResponse.setPageNumber(_ctx.integerValue("DescribeReservedInstanceAllocationsResponse.PageNumber")); - describeReservedInstanceAllocationsResponse.setTotalCount(_ctx.integerValue("DescribeReservedInstanceAllocationsResponse.TotalCount")); - - List allocations = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeReservedInstanceAllocationsResponse.Allocations.Length"); i++) { - Allocation allocation = new Allocation(); - allocation.setReservedInstanceId(_ctx.stringValue("DescribeReservedInstanceAllocationsResponse.Allocations["+ i +"].ReservedInstanceId")); - allocation.setBeAllocatedAccountId(_ctx.stringValue("DescribeReservedInstanceAllocationsResponse.Allocations["+ i +"].BeAllocatedAccountId")); - allocation.setResourceOwnerId(_ctx.stringValue("DescribeReservedInstanceAllocationsResponse.Allocations["+ i +"].ResourceOwnerId")); - - allocations.add(allocation); - } - describeReservedInstanceAllocationsResponse.setAllocations(allocations); - - return describeReservedInstanceAllocationsResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeReservedInstanceCategoriesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeReservedInstanceCategoriesResponseUnmarshaller.java deleted file mode 100644 index 801466317c..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeReservedInstanceCategoriesResponseUnmarshaller.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeReservedInstanceCategoriesResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeReservedInstanceCategoriesResponse.ReservedInstanceCategory; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeReservedInstanceCategoriesResponseUnmarshaller { - - public static DescribeReservedInstanceCategoriesResponse unmarshall(DescribeReservedInstanceCategoriesResponse describeReservedInstanceCategoriesResponse, UnmarshallerContext _ctx) { - - describeReservedInstanceCategoriesResponse.setRequestId(_ctx.stringValue("DescribeReservedInstanceCategoriesResponse.RequestId")); - describeReservedInstanceCategoriesResponse.setPageSize(_ctx.integerValue("DescribeReservedInstanceCategoriesResponse.PageSize")); - describeReservedInstanceCategoriesResponse.setPageNumber(_ctx.integerValue("DescribeReservedInstanceCategoriesResponse.PageNumber")); - describeReservedInstanceCategoriesResponse.setTotalCount(_ctx.integerValue("DescribeReservedInstanceCategoriesResponse.TotalCount")); - - List reservedInstanceCategories = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeReservedInstanceCategoriesResponse.ReservedInstanceCategories.Length"); i++) { - ReservedInstanceCategory reservedInstanceCategory = new ReservedInstanceCategory(); - reservedInstanceCategory.setAmount(_ctx.integerValue("DescribeReservedInstanceCategoriesResponse.ReservedInstanceCategories["+ i +"].Amount")); - reservedInstanceCategory.setPlatform(_ctx.stringValue("DescribeReservedInstanceCategoriesResponse.ReservedInstanceCategories["+ i +"].Platform")); - reservedInstanceCategory.setZoneId(_ctx.stringValue("DescribeReservedInstanceCategoriesResponse.ReservedInstanceCategories["+ i +"].ZoneId")); - reservedInstanceCategory.setScope(_ctx.stringValue("DescribeReservedInstanceCategoriesResponse.ReservedInstanceCategories["+ i +"].Scope")); - reservedInstanceCategory.setInstanceType(_ctx.stringValue("DescribeReservedInstanceCategoriesResponse.ReservedInstanceCategories["+ i +"].InstanceType")); - reservedInstanceCategory.setInstanceAmount(_ctx.integerValue("DescribeReservedInstanceCategoriesResponse.ReservedInstanceCategories["+ i +"].InstanceAmount")); - reservedInstanceCategory.setRegionId(_ctx.stringValue("DescribeReservedInstanceCategoriesResponse.ReservedInstanceCategories["+ i +"].RegionId")); - - reservedInstanceCategories.add(reservedInstanceCategory); - } - describeReservedInstanceCategoriesResponse.setReservedInstanceCategories(reservedInstanceCategories); - - return describeReservedInstanceCategoriesResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeReservedInstancePriceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeReservedInstancePriceResponseUnmarshaller.java deleted file mode 100644 index 8cc0e7a347..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeReservedInstancePriceResponseUnmarshaller.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.DescribeReservedInstancePriceResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeReservedInstancePriceResponse.PriceInfo; -import com.aliyuncs.ecs.model.v20160314.DescribeReservedInstancePriceResponse.PriceInfo.Order; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeReservedInstancePriceResponseUnmarshaller { - - public static DescribeReservedInstancePriceResponse unmarshall(DescribeReservedInstancePriceResponse describeReservedInstancePriceResponse, UnmarshallerContext _ctx) { - - describeReservedInstancePriceResponse.setRequestId(_ctx.stringValue("DescribeReservedInstancePriceResponse.RequestId")); - - PriceInfo priceInfo = new PriceInfo(); - - Order order = new Order(); - order.setReservedInstanceHourPrice(_ctx.floatValue("DescribeReservedInstancePriceResponse.PriceInfo.Order.ReservedInstanceHourPrice")); - order.setCurrency(_ctx.stringValue("DescribeReservedInstancePriceResponse.PriceInfo.Order.Currency")); - order.setTradePrice(_ctx.floatValue("DescribeReservedInstancePriceResponse.PriceInfo.Order.TradePrice")); - priceInfo.setOrder(order); - describeReservedInstancePriceResponse.setPriceInfo(priceInfo); - - return describeReservedInstancePriceResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeResourceAggregationsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeResourceAggregationsResponseUnmarshaller.java deleted file mode 100644 index b9d2d32e6b..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeResourceAggregationsResponseUnmarshaller.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeResourceAggregationsResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeResourceAggregationsResponse.Aggregation; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeResourceAggregationsResponseUnmarshaller { - - public static DescribeResourceAggregationsResponse unmarshall(DescribeResourceAggregationsResponse describeResourceAggregationsResponse, UnmarshallerContext _ctx) { - - describeResourceAggregationsResponse.setRequestId(_ctx.stringValue("DescribeResourceAggregationsResponse.RequestId")); - - List aggregations = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeResourceAggregationsResponse.Aggregations.Length"); i++) { - Aggregation aggregation = new Aggregation(); - aggregation.setKeys(_ctx.stringValue("DescribeResourceAggregationsResponse.Aggregations["+ i +"].Keys")); - aggregation.setCount(_ctx.stringValue("DescribeResourceAggregationsResponse.Aggregations["+ i +"].Count")); - - aggregations.add(aggregation); - } - describeResourceAggregationsResponse.setAggregations(aggregations); - - return describeResourceAggregationsResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeResourceAllocationResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeResourceAllocationResponseUnmarshaller.java deleted file mode 100644 index acbb23e3a1..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeResourceAllocationResponseUnmarshaller.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeResourceAllocationResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeResourceAllocationResponse.ResourcePlanningResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeResourceAllocationResponse.ResourcePlanningResponse.ResourceModel; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeResourceAllocationResponseUnmarshaller { - - public static DescribeResourceAllocationResponse unmarshall(DescribeResourceAllocationResponse describeResourceAllocationResponse, UnmarshallerContext _ctx) { - - describeResourceAllocationResponse.setRequestId(_ctx.stringValue("DescribeResourceAllocationResponse.RequestId")); - - ResourcePlanningResponse resourcePlanningResponse = new ResourcePlanningResponse(); - resourcePlanningResponse.setSatisfiedAmount(_ctx.integerValue("DescribeResourceAllocationResponse.ResourcePlanningResponse.SatisfiedAmount")); - - List resourceModels = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeResourceAllocationResponse.ResourcePlanningResponse.ResourceModels.Length"); i++) { - ResourceModel resourceModel = new ResourceModel(); - resourceModel.setAmount(_ctx.integerValue("DescribeResourceAllocationResponse.ResourcePlanningResponse.ResourceModels["+ i +"].Amount")); - resourceModel.setIoOptimized(_ctx.stringValue("DescribeResourceAllocationResponse.ResourcePlanningResponse.ResourceModels["+ i +"].IoOptimized")); - resourceModel.setPrice(_ctx.floatValue("DescribeResourceAllocationResponse.ResourcePlanningResponse.ResourceModels["+ i +"].Price")); - resourceModel.setZoneId(_ctx.stringValue("DescribeResourceAllocationResponse.ResourcePlanningResponse.ResourceModels["+ i +"].ZoneId")); - resourceModel.setNetworkType(_ctx.stringValue("DescribeResourceAllocationResponse.ResourcePlanningResponse.ResourceModels["+ i +"].NetworkType")); - resourceModel.setInstanceType(_ctx.stringValue("DescribeResourceAllocationResponse.ResourcePlanningResponse.ResourceModels["+ i +"].InstanceType")); - resourceModel.setSpotStrategy(_ctx.stringValue("DescribeResourceAllocationResponse.ResourcePlanningResponse.ResourceModels["+ i +"].SpotStrategy")); - resourceModel.setInstanceChargeType(_ctx.stringValue("DescribeResourceAllocationResponse.ResourcePlanningResponse.ResourceModels["+ i +"].InstanceChargeType")); - resourceModel.setRegionId(_ctx.stringValue("DescribeResourceAllocationResponse.ResourcePlanningResponse.ResourceModels["+ i +"].RegionId")); - - resourceModels.add(resourceModel); - } - resourcePlanningResponse.setResourceModels(resourceModels); - describeResourceAllocationResponse.setResourcePlanningResponse(resourcePlanningResponse); - - return describeResourceAllocationResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeResourceDisplayResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeResourceDisplayResponseUnmarshaller.java deleted file mode 100644 index c133c68ab4..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeResourceDisplayResponseUnmarshaller.java +++ /dev/null @@ -1,173 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeResourceDisplayResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeResourceDisplayResponse.ResourceDisplay; -import com.aliyuncs.ecs.model.v20160314.DescribeResourceDisplayResponse.ResourceDisplay.InstanceCategory; -import com.aliyuncs.ecs.model.v20160314.DescribeResourceDisplayResponse.ResourceDisplay.InstanceCategory.InstanceTopCategory; -import com.aliyuncs.ecs.model.v20160314.DescribeResourceDisplayResponse.ResourceDisplay.InstanceCategory.InstanceTopCategory.InstanceSecondCategory; -import com.aliyuncs.ecs.model.v20160314.DescribeResourceDisplayResponse.ResourceDisplay.InstanceCategory.InstanceTopCategory.InstanceSecondCategory.InstanceType; -import com.aliyuncs.ecs.model.v20160314.DescribeResourceDisplayResponse.ResourceDisplay.InstanceCategory.InstanceTopCategory.InstanceSecondCategory.InstanceTypeFamily; -import com.aliyuncs.ecs.model.v20160314.DescribeResourceDisplayResponse.ResourceDisplay.InstanceChargeType; -import com.aliyuncs.ecs.model.v20160314.DescribeResourceDisplayResponse.ResourceDisplay.ProductCategory; -import com.aliyuncs.ecs.model.v20160314.DescribeResourceDisplayResponse.ResourceDisplay.ProductCategory.InstanceFamilyGroup; -import com.aliyuncs.ecs.model.v20160314.DescribeResourceDisplayResponse.ResourceDisplay.ProductCategory.InstanceFamilyGroup.InstanceTypeFamily5; -import com.aliyuncs.ecs.model.v20160314.DescribeResourceDisplayResponse.ResourceDisplay.Zone; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeResourceDisplayResponseUnmarshaller { - - public static DescribeResourceDisplayResponse unmarshall(DescribeResourceDisplayResponse describeResourceDisplayResponse, UnmarshallerContext _ctx) { - - describeResourceDisplayResponse.setRequestId(_ctx.stringValue("DescribeResourceDisplayResponse.RequestId")); - - ResourceDisplay resourceDisplay = new ResourceDisplay(); - - List instanceChargeTypes = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeResourceDisplayResponse.ResourceDisplay.InstanceChargeTypes.Length"); i++) { - InstanceChargeType instanceChargeType = new InstanceChargeType(); - instanceChargeType.setSpotStrategy(_ctx.stringValue("DescribeResourceDisplayResponse.ResourceDisplay.InstanceChargeTypes["+ i +"].SpotStrategy")); - instanceChargeType.setChargeType(_ctx.stringValue("DescribeResourceDisplayResponse.ResourceDisplay.InstanceChargeTypes["+ i +"].ChargeType")); - - List tags = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeResourceDisplayResponse.ResourceDisplay.InstanceChargeTypes["+ i +"].Tags.Length"); j++) { - tags.add(_ctx.stringValue("DescribeResourceDisplayResponse.ResourceDisplay.InstanceChargeTypes["+ i +"].Tags["+ j +"]")); - } - instanceChargeType.setTags(tags); - - instanceChargeTypes.add(instanceChargeType); - } - resourceDisplay.setInstanceChargeTypes(instanceChargeTypes); - - List zones = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeResourceDisplayResponse.ResourceDisplay.Zones.Length"); i++) { - Zone zone = new Zone(); - zone.setZoneId(_ctx.stringValue("DescribeResourceDisplayResponse.ResourceDisplay.Zones["+ i +"].ZoneId")); - - List tags1 = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeResourceDisplayResponse.ResourceDisplay.Zones["+ i +"].Tags.Length"); j++) { - tags1.add(_ctx.stringValue("DescribeResourceDisplayResponse.ResourceDisplay.Zones["+ i +"].Tags["+ j +"]")); - } - zone.setTags1(tags1); - - zones.add(zone); - } - resourceDisplay.setZones(zones); - - List instanceCategories = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeResourceDisplayResponse.ResourceDisplay.InstanceCategories.Length"); i++) { - InstanceCategory instanceCategory = new InstanceCategory(); - instanceCategory.setCategoryType(_ctx.stringValue("DescribeResourceDisplayResponse.ResourceDisplay.InstanceCategories["+ i +"].CategoryType")); - - List zoneIds = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeResourceDisplayResponse.ResourceDisplay.InstanceCategories["+ i +"].ZoneIds.Length"); j++) { - zoneIds.add(_ctx.stringValue("DescribeResourceDisplayResponse.ResourceDisplay.InstanceCategories["+ i +"].ZoneIds["+ j +"]")); - } - instanceCategory.setZoneIds(zoneIds); - - List instanceTopCategories = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeResourceDisplayResponse.ResourceDisplay.InstanceCategories["+ i +"].InstanceTopCategories.Length"); j++) { - InstanceTopCategory instanceTopCategory = new InstanceTopCategory(); - instanceTopCategory.setTopCategoryLevel(_ctx.stringValue("DescribeResourceDisplayResponse.ResourceDisplay.InstanceCategories["+ i +"].InstanceTopCategories["+ j +"].TopCategoryLevel")); - - List instanceSecondCategories = new ArrayList(); - for (int k = 0; k < _ctx.lengthValue("DescribeResourceDisplayResponse.ResourceDisplay.InstanceCategories["+ i +"].InstanceTopCategories["+ j +"].InstanceSecondCategories.Length"); k++) { - InstanceSecondCategory instanceSecondCategory = new InstanceSecondCategory(); - instanceSecondCategory.setSecondCategoryLevel(_ctx.stringValue("DescribeResourceDisplayResponse.ResourceDisplay.InstanceCategories["+ i +"].InstanceTopCategories["+ j +"].InstanceSecondCategories["+ k +"].SecondCategoryLevel")); - - List instanceTypeFamilies = new ArrayList(); - for (int l = 0; l < _ctx.lengthValue("DescribeResourceDisplayResponse.ResourceDisplay.InstanceCategories["+ i +"].InstanceTopCategories["+ j +"].InstanceSecondCategories["+ k +"].InstanceTypeFamilies.Length"); l++) { - InstanceTypeFamily instanceTypeFamily = new InstanceTypeFamily(); - instanceTypeFamily.setInstanceTypeFamilyId(_ctx.stringValue("DescribeResourceDisplayResponse.ResourceDisplay.InstanceCategories["+ i +"].InstanceTopCategories["+ j +"].InstanceSecondCategories["+ k +"].InstanceTypeFamilies["+ l +"].InstanceTypeFamilyId")); - - List tags2 = new ArrayList(); - for (int m = 0; m < _ctx.lengthValue("DescribeResourceDisplayResponse.ResourceDisplay.InstanceCategories["+ i +"].InstanceTopCategories["+ j +"].InstanceSecondCategories["+ k +"].InstanceTypeFamilies["+ l +"].Tags.Length"); m++) { - tags2.add(_ctx.stringValue("DescribeResourceDisplayResponse.ResourceDisplay.InstanceCategories["+ i +"].InstanceTopCategories["+ j +"].InstanceSecondCategories["+ k +"].InstanceTypeFamilies["+ l +"].Tags["+ m +"]")); - } - instanceTypeFamily.setTags2(tags2); - - instanceTypeFamilies.add(instanceTypeFamily); - } - instanceSecondCategory.setInstanceTypeFamilies(instanceTypeFamilies); - - List instanceTypes = new ArrayList(); - for (int l = 0; l < _ctx.lengthValue("DescribeResourceDisplayResponse.ResourceDisplay.InstanceCategories["+ i +"].InstanceTopCategories["+ j +"].InstanceSecondCategories["+ k +"].InstanceTypes.Length"); l++) { - InstanceType instanceType = new InstanceType(); - instanceType.setInstanceTypeId(_ctx.stringValue("DescribeResourceDisplayResponse.ResourceDisplay.InstanceCategories["+ i +"].InstanceTopCategories["+ j +"].InstanceSecondCategories["+ k +"].InstanceTypes["+ l +"].InstanceTypeId")); - - List tags3 = new ArrayList(); - for (int m = 0; m < _ctx.lengthValue("DescribeResourceDisplayResponse.ResourceDisplay.InstanceCategories["+ i +"].InstanceTopCategories["+ j +"].InstanceSecondCategories["+ k +"].InstanceTypes["+ l +"].Tags.Length"); m++) { - tags3.add(_ctx.stringValue("DescribeResourceDisplayResponse.ResourceDisplay.InstanceCategories["+ i +"].InstanceTopCategories["+ j +"].InstanceSecondCategories["+ k +"].InstanceTypes["+ l +"].Tags["+ m +"]")); - } - instanceType.setTags3(tags3); - - instanceTypes.add(instanceType); - } - instanceSecondCategory.setInstanceTypes(instanceTypes); - - instanceSecondCategories.add(instanceSecondCategory); - } - instanceTopCategory.setInstanceSecondCategories(instanceSecondCategories); - - instanceTopCategories.add(instanceTopCategory); - } - instanceCategory.setInstanceTopCategories(instanceTopCategories); - - instanceCategories.add(instanceCategory); - } - resourceDisplay.setInstanceCategories(instanceCategories); - - List productCategories = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeResourceDisplayResponse.ResourceDisplay.ProductCategories.Length"); i++) { - ProductCategory productCategory = new ProductCategory(); - productCategory.setProductName(_ctx.stringValue("DescribeResourceDisplayResponse.ResourceDisplay.ProductCategories["+ i +"].ProductName")); - - List instanceFamilyGroups = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeResourceDisplayResponse.ResourceDisplay.ProductCategories["+ i +"].InstanceFamilyGroups.Length"); j++) { - InstanceFamilyGroup instanceFamilyGroup = new InstanceFamilyGroup(); - instanceFamilyGroup.setInstanceFamilyGroupName(_ctx.stringValue("DescribeResourceDisplayResponse.ResourceDisplay.ProductCategories["+ i +"].InstanceFamilyGroups["+ j +"].InstanceFamilyGroupName")); - - List instanceTypeFamilies4 = new ArrayList(); - for (int k = 0; k < _ctx.lengthValue("DescribeResourceDisplayResponse.ResourceDisplay.ProductCategories["+ i +"].InstanceFamilyGroups["+ j +"].InstanceTypeFamilies.Length"); k++) { - InstanceTypeFamily5 instanceTypeFamily5 = new InstanceTypeFamily5(); - instanceTypeFamily5.setInstanceTypeFamilyId(_ctx.stringValue("DescribeResourceDisplayResponse.ResourceDisplay.ProductCategories["+ i +"].InstanceFamilyGroups["+ j +"].InstanceTypeFamilies["+ k +"].InstanceTypeFamilyId")); - - List tags6 = new ArrayList(); - for (int l = 0; l < _ctx.lengthValue("DescribeResourceDisplayResponse.ResourceDisplay.ProductCategories["+ i +"].InstanceFamilyGroups["+ j +"].InstanceTypeFamilies["+ k +"].Tags.Length"); l++) { - tags6.add(_ctx.stringValue("DescribeResourceDisplayResponse.ResourceDisplay.ProductCategories["+ i +"].InstanceFamilyGroups["+ j +"].InstanceTypeFamilies["+ k +"].Tags["+ l +"]")); - } - instanceTypeFamily5.setTags6(tags6); - - instanceTypeFamilies4.add(instanceTypeFamily5); - } - instanceFamilyGroup.setInstanceTypeFamilies4(instanceTypeFamilies4); - - instanceFamilyGroups.add(instanceFamilyGroup); - } - productCategory.setInstanceFamilyGroups(instanceFamilyGroups); - - productCategories.add(productCategory); - } - resourceDisplay.setProductCategories(productCategories); - describeResourceDisplayResponse.setResourceDisplay(resourceDisplay); - - return describeResourceDisplayResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeResourceFilterAttributesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeResourceFilterAttributesResponseUnmarshaller.java deleted file mode 100644 index 0339d72caf..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeResourceFilterAttributesResponseUnmarshaller.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeResourceFilterAttributesResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeResourceFilterAttributesResponse.FilterAttribute; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeResourceFilterAttributesResponseUnmarshaller { - - public static DescribeResourceFilterAttributesResponse unmarshall(DescribeResourceFilterAttributesResponse describeResourceFilterAttributesResponse, UnmarshallerContext _ctx) { - - describeResourceFilterAttributesResponse.setRequestId(_ctx.stringValue("DescribeResourceFilterAttributesResponse.RequestId")); - - List filterAttributes = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeResourceFilterAttributesResponse.FilterAttributes.Length"); i++) { - FilterAttribute filterAttribute = new FilterAttribute(); - filterAttribute.setType(_ctx.stringValue("DescribeResourceFilterAttributesResponse.FilterAttributes["+ i +"].Type")); - filterAttribute.setName(_ctx.stringValue("DescribeResourceFilterAttributesResponse.FilterAttributes["+ i +"].Name")); - - List supportOperations = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeResourceFilterAttributesResponse.FilterAttributes["+ i +"].SupportOperations.Length"); j++) { - supportOperations.add(_ctx.stringValue("DescribeResourceFilterAttributesResponse.FilterAttributes["+ i +"].SupportOperations["+ j +"]")); - } - filterAttribute.setSupportOperations(supportOperations); - - List values = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeResourceFilterAttributesResponse.FilterAttributes["+ i +"].Values.Length"); j++) { - values.add(_ctx.stringValue("DescribeResourceFilterAttributesResponse.FilterAttributes["+ i +"].Values["+ j +"]")); - } - filterAttribute.setValues(values); - - filterAttributes.add(filterAttribute); - } - describeResourceFilterAttributesResponse.setFilterAttributes(filterAttributes); - - return describeResourceFilterAttributesResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeResourceRecommendFiltersResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeResourceRecommendFiltersResponseUnmarshaller.java deleted file mode 100644 index 6f0434c19d..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeResourceRecommendFiltersResponseUnmarshaller.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeResourceRecommendFiltersResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeResourceRecommendFiltersResponse.RecommendFilter; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeResourceRecommendFiltersResponseUnmarshaller { - - public static DescribeResourceRecommendFiltersResponse unmarshall(DescribeResourceRecommendFiltersResponse describeResourceRecommendFiltersResponse, UnmarshallerContext _ctx) { - - describeResourceRecommendFiltersResponse.setRequestId(_ctx.stringValue("DescribeResourceRecommendFiltersResponse.RequestId")); - - List recommendFilters = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeResourceRecommendFiltersResponse.RecommendFilters.Length"); i++) { - RecommendFilter recommendFilter = new RecommendFilter(); - recommendFilter.setResourceType(_ctx.stringValue("DescribeResourceRecommendFiltersResponse.RecommendFilters["+ i +"].ResourceType")); - recommendFilter.setAttributeName(_ctx.stringValue("DescribeResourceRecommendFiltersResponse.RecommendFilters["+ i +"].AttributeName")); - recommendFilter.setProduct(_ctx.stringValue("DescribeResourceRecommendFiltersResponse.RecommendFilters["+ i +"].Product")); - recommendFilter.setAttributeValue(_ctx.stringValue("DescribeResourceRecommendFiltersResponse.RecommendFilters["+ i +"].AttributeValue")); - - recommendFilters.add(recommendFilter); - } - describeResourceRecommendFiltersResponse.setRecommendFilters(recommendFilters); - - return describeResourceRecommendFiltersResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeResourceSolutionsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeResourceSolutionsResponseUnmarshaller.java deleted file mode 100644 index bb70db5b65..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeResourceSolutionsResponseUnmarshaller.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeResourceSolutionsResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeResourceSolutionsResponse.ResourcePlanningResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeResourceSolutionsResponse.ResourcePlanningResponse.ResourceModel; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeResourceSolutionsResponseUnmarshaller { - - public static DescribeResourceSolutionsResponse unmarshall(DescribeResourceSolutionsResponse describeResourceSolutionsResponse, UnmarshallerContext _ctx) { - - describeResourceSolutionsResponse.setRequestId(_ctx.stringValue("DescribeResourceSolutionsResponse.RequestId")); - - List resourcePlanningResponses = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeResourceSolutionsResponse.ResourcePlanningResponses.Length"); i++) { - ResourcePlanningResponse resourcePlanningResponse = new ResourcePlanningResponse(); - resourcePlanningResponse.setSatisfiedAmount(_ctx.integerValue("DescribeResourceSolutionsResponse.ResourcePlanningResponses["+ i +"].SatisfiedAmount")); - - List recommendReasons = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeResourceSolutionsResponse.ResourcePlanningResponses["+ i +"].RecommendReasons.Length"); j++) { - recommendReasons.add(_ctx.stringValue("DescribeResourceSolutionsResponse.ResourcePlanningResponses["+ i +"].RecommendReasons["+ j +"]")); - } - resourcePlanningResponse.setRecommendReasons(recommendReasons); - - List resourceModels = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeResourceSolutionsResponse.ResourcePlanningResponses["+ i +"].ResourceModels.Length"); j++) { - ResourceModel resourceModel = new ResourceModel(); - resourceModel.setAmount(_ctx.integerValue("DescribeResourceSolutionsResponse.ResourcePlanningResponses["+ i +"].ResourceModels["+ j +"].Amount")); - resourceModel.setZoneId(_ctx.stringValue("DescribeResourceSolutionsResponse.ResourcePlanningResponses["+ i +"].ResourceModels["+ j +"].ZoneId")); - resourceModel.setInstanceType(_ctx.stringValue("DescribeResourceSolutionsResponse.ResourcePlanningResponses["+ i +"].ResourceModels["+ j +"].InstanceType")); - resourceModel.setRegionId(_ctx.stringValue("DescribeResourceSolutionsResponse.ResourcePlanningResponses["+ i +"].ResourceModels["+ j +"].RegionId")); - resourceModel.setDeliveryTime(_ctx.stringValue("DescribeResourceSolutionsResponse.ResourcePlanningResponses["+ i +"].ResourceModels["+ j +"].DeliveryTime")); - - resourceModels.add(resourceModel); - } - resourcePlanningResponse.setResourceModels(resourceModels); - - resourcePlanningResponses.add(resourcePlanningResponse); - } - describeResourceSolutionsResponse.setResourcePlanningResponses(resourcePlanningResponses); - - return describeResourceSolutionsResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeResourcesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeResourcesResponseUnmarshaller.java deleted file mode 100644 index 73988332ad..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeResourcesResponseUnmarshaller.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeResourcesResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeResourcesResponse.Resource; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeResourcesResponseUnmarshaller { - - public static DescribeResourcesResponse unmarshall(DescribeResourcesResponse describeResourcesResponse, UnmarshallerContext _ctx) { - - describeResourcesResponse.setRequestId(_ctx.stringValue("DescribeResourcesResponse.RequestId")); - describeResourcesResponse.setMarker(_ctx.stringValue("DescribeResourcesResponse.Marker")); - describeResourcesResponse.setEstimatedTotal(_ctx.integerValue("DescribeResourcesResponse.EstimatedTotal")); - describeResourcesResponse.setTruncated(_ctx.booleanValue("DescribeResourcesResponse.Truncated")); - - List resources = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeResourcesResponse.Resources.Length"); i++) { - Resource resource = new Resource(); - resource.setUpdateTime(_ctx.stringValue("DescribeResourcesResponse.Resources["+ i +"].UpdateTime")); - resource.setResourceType(_ctx.stringValue("DescribeResourcesResponse.Resources["+ i +"].ResourceType")); - resource.setProduct(_ctx.stringValue("DescribeResourcesResponse.Resources["+ i +"].Product")); - resource.setCreateTime(_ctx.stringValue("DescribeResourcesResponse.Resources["+ i +"].CreateTime")); - resource.setMatchedAttributes(_ctx.stringValue("DescribeResourcesResponse.Resources["+ i +"].MatchedAttributes")); - resource.setResourceId(_ctx.stringValue("DescribeResourcesResponse.Resources["+ i +"].ResourceId")); - resource.setArn(_ctx.stringValue("DescribeResourcesResponse.Resources["+ i +"].Arn")); - resource.setResourceName(_ctx.stringValue("DescribeResourcesResponse.Resources["+ i +"].ResourceName")); - resource.setRegionId(_ctx.stringValue("DescribeResourcesResponse.Resources["+ i +"].RegionId")); - - resources.add(resource); - } - describeResourcesResponse.setResources(resources); - - return describeResourcesResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeRiUtilizationResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeRiUtilizationResponseUnmarshaller.java deleted file mode 100644 index e12817d588..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeRiUtilizationResponseUnmarshaller.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeRiUtilizationResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeRiUtilizationResponse.Utilization; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeRiUtilizationResponseUnmarshaller { - - public static DescribeRiUtilizationResponse unmarshall(DescribeRiUtilizationResponse describeRiUtilizationResponse, UnmarshallerContext _ctx) { - - describeRiUtilizationResponse.setRequestId(_ctx.stringValue("DescribeRiUtilizationResponse.RequestId")); - - List utilizations = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeRiUtilizationResponse.Utilizations.Length"); i++) { - Utilization utilization = new Utilization(); - utilization.setReservedInstanceId(_ctx.stringValue("DescribeRiUtilizationResponse.Utilizations["+ i +"].ReservedInstanceId")); - utilization.setUtilization(_ctx.stringValue("DescribeRiUtilizationResponse.Utilizations["+ i +"].Utilization")); - - utilizations.add(utilization); - } - describeRiUtilizationResponse.setUtilizations(utilizations); - - return describeRiUtilizationResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeScenePurchaseRecommendResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeScenePurchaseRecommendResponseUnmarshaller.java deleted file mode 100644 index 0407108298..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeScenePurchaseRecommendResponseUnmarshaller.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeScenePurchaseRecommendResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeScenePurchaseRecommendResponse.RecommendProduct; -import com.aliyuncs.ecs.model.v20160314.DescribeScenePurchaseRecommendResponse.RecommendProduct.RecommendSpSpec; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeScenePurchaseRecommendResponseUnmarshaller { - - public static DescribeScenePurchaseRecommendResponse unmarshall(DescribeScenePurchaseRecommendResponse describeScenePurchaseRecommendResponse, UnmarshallerContext _ctx) { - - describeScenePurchaseRecommendResponse.setRequestId(_ctx.stringValue("DescribeScenePurchaseRecommendResponse.RequestId")); - - List recommendProducts = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeScenePurchaseRecommendResponse.RecommendProducts.Length"); i++) { - RecommendProduct recommendProduct = new RecommendProduct(); - recommendProduct.setRegionId(_ctx.stringValue("DescribeScenePurchaseRecommendResponse.RecommendProducts["+ i +"].RegionId")); - - List recommendSpSpecs = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeScenePurchaseRecommendResponse.RecommendProducts["+ i +"].RecommendSpSpecs.Length"); j++) { - RecommendSpSpec recommendSpSpec = new RecommendSpSpec(); - recommendSpSpec.setDuration(_ctx.integerValue("DescribeScenePurchaseRecommendResponse.RecommendProducts["+ i +"].RecommendSpSpecs["+ j +"].Duration")); - recommendSpSpec.setPricingCycle(_ctx.stringValue("DescribeScenePurchaseRecommendResponse.RecommendProducts["+ i +"].RecommendSpSpecs["+ j +"].PricingCycle")); - recommendSpSpec.setType(_ctx.stringValue("DescribeScenePurchaseRecommendResponse.RecommendProducts["+ i +"].RecommendSpSpecs["+ j +"].Type")); - recommendSpSpec.setPayMode(_ctx.stringValue("DescribeScenePurchaseRecommendResponse.RecommendProducts["+ i +"].RecommendSpSpecs["+ j +"].PayMode")); - recommendSpSpec.setEffectiveDate(_ctx.stringValue("DescribeScenePurchaseRecommendResponse.RecommendProducts["+ i +"].RecommendSpSpecs["+ j +"].EffectiveDate")); - recommendSpSpec.setRecommendReason(_ctx.stringValue("DescribeScenePurchaseRecommendResponse.RecommendProducts["+ i +"].RecommendSpSpecs["+ j +"].RecommendReason")); - - recommendSpSpecs.add(recommendSpSpec); - } - recommendProduct.setRecommendSpSpecs(recommendSpSpecs); - - recommendProducts.add(recommendProduct); - } - describeScenePurchaseRecommendResponse.setRecommendProducts(recommendProducts); - - return describeScenePurchaseRecommendResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeSceneResourceRecommendResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeSceneResourceRecommendResponseUnmarshaller.java deleted file mode 100644 index 130e0da5bf..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeSceneResourceRecommendResponseUnmarshaller.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeSceneResourceRecommendResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeSceneResourceRecommendResponse.RecommendProduct; -import com.aliyuncs.ecs.model.v20160314.DescribeSceneResourceRecommendResponse.RecommendProduct.RecommendImage; -import com.aliyuncs.ecs.model.v20160314.DescribeSceneResourceRecommendResponse.RecommendProduct.RecommendInstanceSpec; -import com.aliyuncs.ecs.model.v20160314.DescribeSceneResourceRecommendResponse.RecommendProduct.RecommendInstanceSpec.InstanceType; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeSceneResourceRecommendResponseUnmarshaller { - - public static DescribeSceneResourceRecommendResponse unmarshall(DescribeSceneResourceRecommendResponse describeSceneResourceRecommendResponse, UnmarshallerContext _ctx) { - - describeSceneResourceRecommendResponse.setRequestId(_ctx.stringValue("DescribeSceneResourceRecommendResponse.RequestId")); - - List recommendProducts = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeSceneResourceRecommendResponse.RecommendProducts.Length"); i++) { - RecommendProduct recommendProduct = new RecommendProduct(); - recommendProduct.setRegionId(_ctx.stringValue("DescribeSceneResourceRecommendResponse.RecommendProducts["+ i +"].RegionId")); - recommendProduct.setZoneId(_ctx.stringValue("DescribeSceneResourceRecommendResponse.RecommendProducts["+ i +"].ZoneId")); - recommendProduct.setResourceId(_ctx.stringValue("DescribeSceneResourceRecommendResponse.RecommendProducts["+ i +"].ResourceId")); - recommendProduct.setRecommendReason(_ctx.stringValue("DescribeSceneResourceRecommendResponse.RecommendProducts["+ i +"].RecommendReason")); - - List recommendInstanceSpecs = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeSceneResourceRecommendResponse.RecommendProducts["+ i +"].RecommendInstanceSpecs.Length"); j++) { - RecommendInstanceSpec recommendInstanceSpec = new RecommendInstanceSpec(); - recommendInstanceSpec.setCores(_ctx.integerValue("DescribeSceneResourceRecommendResponse.RecommendProducts["+ i +"].RecommendInstanceSpecs["+ j +"].Cores")); - recommendInstanceSpec.setMemory(_ctx.floatValue("DescribeSceneResourceRecommendResponse.RecommendProducts["+ i +"].RecommendInstanceSpecs["+ j +"].Memory")); - - List instanceTypes = new ArrayList(); - for (int k = 0; k < _ctx.lengthValue("DescribeSceneResourceRecommendResponse.RecommendProducts["+ i +"].RecommendInstanceSpecs["+ j +"].InstanceTypes.Length"); k++) { - InstanceType instanceType = new InstanceType(); - instanceType.setInstanceTypeName(_ctx.stringValue("DescribeSceneResourceRecommendResponse.RecommendProducts["+ i +"].RecommendInstanceSpecs["+ j +"].InstanceTypes["+ k +"].InstanceTypeName")); - instanceType.setInstanceTypeFamily(_ctx.stringValue("DescribeSceneResourceRecommendResponse.RecommendProducts["+ i +"].RecommendInstanceSpecs["+ j +"].InstanceTypes["+ k +"].InstanceTypeFamily")); - instanceType.setPriority(_ctx.integerValue("DescribeSceneResourceRecommendResponse.RecommendProducts["+ i +"].RecommendInstanceSpecs["+ j +"].InstanceTypes["+ k +"].Priority")); - instanceType.setWarningRisk(_ctx.stringValue("DescribeSceneResourceRecommendResponse.RecommendProducts["+ i +"].RecommendInstanceSpecs["+ j +"].InstanceTypes["+ k +"].WarningRisk")); - - instanceTypes.add(instanceType); - } - recommendInstanceSpec.setInstanceTypes(instanceTypes); - - recommendInstanceSpecs.add(recommendInstanceSpec); - } - recommendProduct.setRecommendInstanceSpecs(recommendInstanceSpecs); - - List recommendImages = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeSceneResourceRecommendResponse.RecommendProducts["+ i +"].RecommendImages.Length"); j++) { - RecommendImage recommendImage = new RecommendImage(); - recommendImage.setImageId(_ctx.stringValue("DescribeSceneResourceRecommendResponse.RecommendProducts["+ i +"].RecommendImages["+ j +"].ImageId")); - recommendImage.setImageOwnerAlias(_ctx.stringValue("DescribeSceneResourceRecommendResponse.RecommendProducts["+ i +"].RecommendImages["+ j +"].ImageOwnerAlias")); - recommendImage.setIsPublic(_ctx.booleanValue("DescribeSceneResourceRecommendResponse.RecommendProducts["+ i +"].RecommendImages["+ j +"].IsPublic")); - recommendImage.setPriority(_ctx.integerValue("DescribeSceneResourceRecommendResponse.RecommendProducts["+ i +"].RecommendImages["+ j +"].Priority")); - - recommendImages.add(recommendImage); - } - recommendProduct.setRecommendImages(recommendImages); - - recommendProducts.add(recommendProduct); - } - describeSceneResourceRecommendResponse.setRecommendProducts(recommendProducts); - - return describeSceneResourceRecommendResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeSpotInstanceAdviceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeSpotInstanceAdviceResponseUnmarshaller.java deleted file mode 100644 index c3cef389cf..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeSpotInstanceAdviceResponseUnmarshaller.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeSpotInstanceAdviceResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeSpotInstanceAdviceResponseUnmarshaller { - - public static DescribeSpotInstanceAdviceResponse unmarshall(DescribeSpotInstanceAdviceResponse describeSpotInstanceAdviceResponse, UnmarshallerContext _ctx) { - - describeSpotInstanceAdviceResponse.setRequestId(_ctx.stringValue("DescribeSpotInstanceAdviceResponse.RequestId")); - describeSpotInstanceAdviceResponse.setRegionId(_ctx.stringValue("DescribeSpotInstanceAdviceResponse.RegionId")); - - List availableSpotZones = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeSpotInstanceAdviceResponse.AvailableSpotZones.Length"); i++) { - availableSpotZones.add(_ctx.stringValue("DescribeSpotInstanceAdviceResponse.AvailableSpotZones["+ i +"]")); - } - describeSpotInstanceAdviceResponse.setAvailableSpotZones(availableSpotZones); - - return describeSpotInstanceAdviceResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeStorageCapacityUnitAllocationsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeStorageCapacityUnitAllocationsResponseUnmarshaller.java deleted file mode 100644 index caeb803aba..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeStorageCapacityUnitAllocationsResponseUnmarshaller.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeStorageCapacityUnitAllocationsResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeStorageCapacityUnitAllocationsResponse.Allocation; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeStorageCapacityUnitAllocationsResponseUnmarshaller { - - public static DescribeStorageCapacityUnitAllocationsResponse unmarshall(DescribeStorageCapacityUnitAllocationsResponse describeStorageCapacityUnitAllocationsResponse, UnmarshallerContext _ctx) { - - describeStorageCapacityUnitAllocationsResponse.setRequestId(_ctx.stringValue("DescribeStorageCapacityUnitAllocationsResponse.RequestId")); - describeStorageCapacityUnitAllocationsResponse.setPageSize(_ctx.integerValue("DescribeStorageCapacityUnitAllocationsResponse.PageSize")); - describeStorageCapacityUnitAllocationsResponse.setPageNumber(_ctx.integerValue("DescribeStorageCapacityUnitAllocationsResponse.PageNumber")); - describeStorageCapacityUnitAllocationsResponse.setTotalCount(_ctx.integerValue("DescribeStorageCapacityUnitAllocationsResponse.TotalCount")); - - List allocations = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeStorageCapacityUnitAllocationsResponse.Allocations.Length"); i++) { - Allocation allocation = new Allocation(); - allocation.setBeAllocatedAccountId(_ctx.stringValue("DescribeStorageCapacityUnitAllocationsResponse.Allocations["+ i +"].BeAllocatedAccountId")); - allocation.setResourceOwnerId(_ctx.stringValue("DescribeStorageCapacityUnitAllocationsResponse.Allocations["+ i +"].ResourceOwnerId")); - allocation.setStorageCapacityUnitId(_ctx.stringValue("DescribeStorageCapacityUnitAllocationsResponse.Allocations["+ i +"].StorageCapacityUnitId")); - - allocations.add(allocation); - } - describeStorageCapacityUnitAllocationsResponse.setAllocations(allocations); - - return describeStorageCapacityUnitAllocationsResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeStorageCapacityUnitDeductFactorResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeStorageCapacityUnitDeductFactorResponseUnmarshaller.java deleted file mode 100644 index acb6094f23..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeStorageCapacityUnitDeductFactorResponseUnmarshaller.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.DescribeStorageCapacityUnitDeductFactorResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeStorageCapacityUnitDeductFactorResponseUnmarshaller { - - public static DescribeStorageCapacityUnitDeductFactorResponse unmarshall(DescribeStorageCapacityUnitDeductFactorResponse describeStorageCapacityUnitDeductFactorResponse, UnmarshallerContext _ctx) { - - describeStorageCapacityUnitDeductFactorResponse.setRequestId(_ctx.stringValue("DescribeStorageCapacityUnitDeductFactorResponse.RequestId")); - describeStorageCapacityUnitDeductFactorResponse.setDeductFactor(_ctx.stringValue("DescribeStorageCapacityUnitDeductFactorResponse.DeductFactor")); - - return describeStorageCapacityUnitDeductFactorResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeTransitionVSwitchesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeTransitionVSwitchesResponseUnmarshaller.java deleted file mode 100644 index 74716f7d36..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeTransitionVSwitchesResponseUnmarshaller.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeTransitionVSwitchesResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeTransitionVSwitchesResponse.Model; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeTransitionVSwitchesResponseUnmarshaller { - - public static DescribeTransitionVSwitchesResponse unmarshall(DescribeTransitionVSwitchesResponse describeTransitionVSwitchesResponse, UnmarshallerContext _ctx) { - - describeTransitionVSwitchesResponse.setRequestId(_ctx.stringValue("DescribeTransitionVSwitchesResponse.RequestId")); - describeTransitionVSwitchesResponse.setCode(_ctx.stringValue("DescribeTransitionVSwitchesResponse.Code")); - describeTransitionVSwitchesResponse.setSuccess(_ctx.booleanValue("DescribeTransitionVSwitchesResponse.Success")); - - List vSwitchModels = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeTransitionVSwitchesResponse.VSwitchModels.Length"); i++) { - Model model = new Model(); - model.setVpcId(_ctx.stringValue("DescribeTransitionVSwitchesResponse.VSwitchModels["+ i +"].VpcId")); - model.setVSwitchId(_ctx.stringValue("DescribeTransitionVSwitchesResponse.VSwitchModels["+ i +"].VSwitchId")); - model.setDescription(_ctx.stringValue("DescribeTransitionVSwitchesResponse.VSwitchModels["+ i +"].Description")); - model.setCIDR(_ctx.stringValue("DescribeTransitionVSwitchesResponse.VSwitchModels["+ i +"].CIDR")); - model.setName(_ctx.stringValue("DescribeTransitionVSwitchesResponse.VSwitchModels["+ i +"].Name")); - model.setIzNo(_ctx.stringValue("DescribeTransitionVSwitchesResponse.VSwitchModels["+ i +"].IzNo")); - - vSwitchModels.add(model); - } - describeTransitionVSwitchesResponse.setVSwitchModels(vSwitchModels); - - return describeTransitionVSwitchesResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeTransitionVpcAndVSwitchResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeTransitionVpcAndVSwitchResponseUnmarshaller.java deleted file mode 100644 index 3b6485e100..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeTransitionVpcAndVSwitchResponseUnmarshaller.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeTransitionVpcAndVSwitchResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeTransitionVpcAndVSwitchResponse.Model; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeTransitionVpcAndVSwitchResponseUnmarshaller { - - public static DescribeTransitionVpcAndVSwitchResponse unmarshall(DescribeTransitionVpcAndVSwitchResponse describeTransitionVpcAndVSwitchResponse, UnmarshallerContext _ctx) { - - describeTransitionVpcAndVSwitchResponse.setRequestId(_ctx.stringValue("DescribeTransitionVpcAndVSwitchResponse.RequestId")); - - List vmTransitionModels = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeTransitionVpcAndVSwitchResponse.VmTransitionModels.Length"); i++) { - Model model = new Model(); - model.setCode(_ctx.stringValue("DescribeTransitionVpcAndVSwitchResponse.VmTransitionModels["+ i +"].Code")); - model.setVpcId(_ctx.stringValue("DescribeTransitionVpcAndVSwitchResponse.VmTransitionModels["+ i +"].VpcId")); - model.setMessage(_ctx.stringValue("DescribeTransitionVpcAndVSwitchResponse.VmTransitionModels["+ i +"].Message")); - model.setVSwitchId(_ctx.stringValue("DescribeTransitionVpcAndVSwitchResponse.VmTransitionModels["+ i +"].VSwitchId")); - model.setInstanceId(_ctx.stringValue("DescribeTransitionVpcAndVSwitchResponse.VmTransitionModels["+ i +"].InstanceId")); - - vmTransitionModels.add(model); - } - describeTransitionVpcAndVSwitchResponse.setVmTransitionModels(vmTransitionModels); - - return describeTransitionVpcAndVSwitchResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeTransitionVpcsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeTransitionVpcsResponseUnmarshaller.java deleted file mode 100644 index 87bd772a06..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeTransitionVpcsResponseUnmarshaller.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeTransitionVpcsResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeTransitionVpcsResponse.Model; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeTransitionVpcsResponseUnmarshaller { - - public static DescribeTransitionVpcsResponse unmarshall(DescribeTransitionVpcsResponse describeTransitionVpcsResponse, UnmarshallerContext _ctx) { - - describeTransitionVpcsResponse.setRequestId(_ctx.stringValue("DescribeTransitionVpcsResponse.RequestId")); - describeTransitionVpcsResponse.setCode(_ctx.stringValue("DescribeTransitionVpcsResponse.Code")); - describeTransitionVpcsResponse.setSuccess(_ctx.booleanValue("DescribeTransitionVpcsResponse.Success")); - - List vpcModels = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeTransitionVpcsResponse.VpcModels.Length"); i++) { - Model model = new Model(); - model.setVpcId(_ctx.stringValue("DescribeTransitionVpcsResponse.VpcModels["+ i +"].VpcId")); - model.setVpcName(_ctx.stringValue("DescribeTransitionVpcsResponse.VpcModels["+ i +"].VpcName")); - model.setStatus(_ctx.integerValue("DescribeTransitionVpcsResponse.VpcModels["+ i +"].Status")); - model.setType(_ctx.integerValue("DescribeTransitionVpcsResponse.VpcModels["+ i +"].Type")); - model.setConfig(_ctx.stringValue("DescribeTransitionVpcsResponse.VpcModels["+ i +"].Config")); - model.setRegionId(_ctx.stringValue("DescribeTransitionVpcsResponse.VpcModels["+ i +"].RegionId")); - - vpcModels.add(model); - } - describeTransitionVpcsResponse.setVpcModels(vpcModels); - - return describeTransitionVpcsResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeUserAvailableIpServiceProvidersResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeUserAvailableIpServiceProvidersResponseUnmarshaller.java deleted file mode 100644 index e5c2c1db94..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeUserAvailableIpServiceProvidersResponseUnmarshaller.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeUserAvailableIpServiceProvidersResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeUserAvailableIpServiceProvidersResponse.IpServiceProvider; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeUserAvailableIpServiceProvidersResponseUnmarshaller { - - public static DescribeUserAvailableIpServiceProvidersResponse unmarshall(DescribeUserAvailableIpServiceProvidersResponse describeUserAvailableIpServiceProvidersResponse, UnmarshallerContext _ctx) { - - describeUserAvailableIpServiceProvidersResponse.setRequestId(_ctx.stringValue("DescribeUserAvailableIpServiceProvidersResponse.RequestId")); - - List ipServiceProviders = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeUserAvailableIpServiceProvidersResponse.IpServiceProviders.Length"); i++) { - IpServiceProvider ipServiceProvider = new IpServiceProvider(); - ipServiceProvider.setName(_ctx.stringValue("DescribeUserAvailableIpServiceProvidersResponse.IpServiceProviders["+ i +"].Name")); - - ipServiceProviders.add(ipServiceProvider); - } - describeUserAvailableIpServiceProvidersResponse.setIpServiceProviders(ipServiceProviders); - - return describeUserAvailableIpServiceProvidersResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeUserQuotaApplicationsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeUserQuotaApplicationsResponseUnmarshaller.java deleted file mode 100644 index 7f5dde63e8..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeUserQuotaApplicationsResponseUnmarshaller.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeUserQuotaApplicationsResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeUserQuotaApplicationsResponse.UserQuotaApplication; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeUserQuotaApplicationsResponseUnmarshaller { - - public static DescribeUserQuotaApplicationsResponse unmarshall(DescribeUserQuotaApplicationsResponse describeUserQuotaApplicationsResponse, UnmarshallerContext _ctx) { - - describeUserQuotaApplicationsResponse.setRequestId(_ctx.stringValue("DescribeUserQuotaApplicationsResponse.RequestId")); - describeUserQuotaApplicationsResponse.setNextToken(_ctx.stringValue("DescribeUserQuotaApplicationsResponse.NextToken")); - describeUserQuotaApplicationsResponse.setPageSize(_ctx.longValue("DescribeUserQuotaApplicationsResponse.PageSize")); - describeUserQuotaApplicationsResponse.setTotalCount(_ctx.integerValue("DescribeUserQuotaApplicationsResponse.TotalCount")); - - List userQuotaApplications = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeUserQuotaApplicationsResponse.UserQuotaApplications.Length"); i++) { - UserQuotaApplication userQuotaApplication = new UserQuotaApplication(); - userQuotaApplication.setStatus(_ctx.stringValue("DescribeUserQuotaApplicationsResponse.UserQuotaApplications["+ i +"].Status")); - userQuotaApplication.setCreationTime(_ctx.stringValue("DescribeUserQuotaApplicationsResponse.UserQuotaApplications["+ i +"].CreationTime")); - userQuotaApplication.setComment(_ctx.stringValue("DescribeUserQuotaApplicationsResponse.UserQuotaApplications["+ i +"].Comment")); - userQuotaApplication.setExpireTime(_ctx.stringValue("DescribeUserQuotaApplicationsResponse.UserQuotaApplications["+ i +"].ExpireTime")); - userQuotaApplication.setChargeType(_ctx.stringValue("DescribeUserQuotaApplicationsResponse.UserQuotaApplications["+ i +"].ChargeType")); - userQuotaApplication.setResultCode(_ctx.stringValue("DescribeUserQuotaApplicationsResponse.UserQuotaApplications["+ i +"].ResultCode")); - userQuotaApplication.setInstanceType(_ctx.stringValue("DescribeUserQuotaApplicationsResponse.UserQuotaApplications["+ i +"].InstanceType")); - userQuotaApplication.setQuotaType(_ctx.stringValue("DescribeUserQuotaApplicationsResponse.UserQuotaApplications["+ i +"].QuotaType")); - userQuotaApplication.setStartTime(_ctx.stringValue("DescribeUserQuotaApplicationsResponse.UserQuotaApplications["+ i +"].StartTime")); - userQuotaApplication.setDescription(_ctx.stringValue("DescribeUserQuotaApplicationsResponse.UserQuotaApplications["+ i +"].Description")); - userQuotaApplication.setQuotaValue(_ctx.longValue("DescribeUserQuotaApplicationsResponse.UserQuotaApplications["+ i +"].QuotaValue")); - userQuotaApplication.setZoneId(_ctx.stringValue("DescribeUserQuotaApplicationsResponse.UserQuotaApplications["+ i +"].ZoneId")); - userQuotaApplication.setApplicationId(_ctx.stringValue("DescribeUserQuotaApplicationsResponse.UserQuotaApplications["+ i +"].ApplicationId")); - - userQuotaApplications.add(userQuotaApplication); - } - describeUserQuotaApplicationsResponse.setUserQuotaApplications(userQuotaApplications); - - return describeUserQuotaApplicationsResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeVpcHavsInstancesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeVpcHavsInstancesResponseUnmarshaller.java deleted file mode 100644 index eda7381a9c..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeVpcHavsInstancesResponseUnmarshaller.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeVpcHavsInstancesResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeVpcHavsInstancesResponse.VpcHavsInstance; -import com.aliyuncs.ecs.model.v20160314.DescribeVpcHavsInstancesResponse.VpcHavsInstance.HavsInstance; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeVpcHavsInstancesResponseUnmarshaller { - - public static DescribeVpcHavsInstancesResponse unmarshall(DescribeVpcHavsInstancesResponse describeVpcHavsInstancesResponse, UnmarshallerContext _ctx) { - - describeVpcHavsInstancesResponse.setRequestId(_ctx.stringValue("DescribeVpcHavsInstancesResponse.RequestId")); - - List vpcHavsInstances = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeVpcHavsInstancesResponse.VpcHavsInstances.Length"); i++) { - VpcHavsInstance vpcHavsInstance = new VpcHavsInstance(); - vpcHavsInstance.setVpcId(_ctx.stringValue("DescribeVpcHavsInstancesResponse.VpcHavsInstances["+ i +"].VpcId")); - - List havsInstances = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeVpcHavsInstancesResponse.VpcHavsInstances["+ i +"].HavsInstances.Length"); j++) { - HavsInstance havsInstance = new HavsInstance(); - havsInstance.setEcsInstanceId(_ctx.stringValue("DescribeVpcHavsInstancesResponse.VpcHavsInstances["+ i +"].HavsInstances["+ j +"].EcsInstanceId")); - havsInstance.setReason(_ctx.stringValue("DescribeVpcHavsInstancesResponse.VpcHavsInstances["+ i +"].HavsInstances["+ j +"].Reason")); - - havsInstances.add(havsInstance); - } - vpcHavsInstance.setHavsInstances(havsInstances); - - vpcHavsInstances.add(vpcHavsInstance); - } - describeVpcHavsInstancesResponse.setVpcHavsInstances(vpcHavsInstances); - - return describeVpcHavsInstancesResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeWaitingOrdersResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeWaitingOrdersResponseUnmarshaller.java deleted file mode 100644 index e0e1efc4cb..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/DescribeWaitingOrdersResponseUnmarshaller.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.DescribeWaitingOrdersResponse; -import com.aliyuncs.ecs.model.v20160314.DescribeWaitingOrdersResponse.WaitingOrder; -import com.aliyuncs.ecs.model.v20160314.DescribeWaitingOrdersResponse.WaitingOrder.InstanceInfo; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class DescribeWaitingOrdersResponseUnmarshaller { - - public static DescribeWaitingOrdersResponse unmarshall(DescribeWaitingOrdersResponse describeWaitingOrdersResponse, UnmarshallerContext _ctx) { - - describeWaitingOrdersResponse.setRequestId(_ctx.stringValue("DescribeWaitingOrdersResponse.RequestId")); - describeWaitingOrdersResponse.setTotalCount(_ctx.longValue("DescribeWaitingOrdersResponse.TotalCount")); - describeWaitingOrdersResponse.setNextToken(_ctx.stringValue("DescribeWaitingOrdersResponse.NextToken")); - - List data = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("DescribeWaitingOrdersResponse.Data.Length"); i++) { - WaitingOrder waitingOrder = new WaitingOrder(); - waitingOrder.setWaitingOrderId(_ctx.stringValue("DescribeWaitingOrdersResponse.Data["+ i +"].WaitingOrderId")); - waitingOrder.setExpireTime(_ctx.stringValue("DescribeWaitingOrdersResponse.Data["+ i +"].ExpireTime")); - waitingOrder.setCreateTime(_ctx.stringValue("DescribeWaitingOrdersResponse.Data["+ i +"].CreateTime")); - waitingOrder.setStatus(_ctx.stringValue("DescribeWaitingOrdersResponse.Data["+ i +"].Status")); - waitingOrder.setInstanceAmount(_ctx.longValue("DescribeWaitingOrdersResponse.Data["+ i +"].InstanceAmount")); - waitingOrder.setRegionId(_ctx.stringValue("DescribeWaitingOrdersResponse.Data["+ i +"].RegionId")); - waitingOrder.setZoneId(_ctx.stringValue("DescribeWaitingOrdersResponse.Data["+ i +"].ZoneId")); - waitingOrder.setChargeType(_ctx.stringValue("DescribeWaitingOrdersResponse.Data["+ i +"].ChargeType")); - waitingOrder.setInstanceType(_ctx.stringValue("DescribeWaitingOrdersResponse.Data["+ i +"].InstanceType")); - waitingOrder.setSuccessAmount(_ctx.longValue("DescribeWaitingOrdersResponse.Data["+ i +"].SuccessAmount")); - waitingOrder.setFailedMessage(_ctx.stringValue("DescribeWaitingOrdersResponse.Data["+ i +"].FailedMessage")); - waitingOrder.setLxCreateParam(_ctx.stringValue("DescribeWaitingOrdersResponse.Data["+ i +"].LxCreateParam")); - - List instanceInfos = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("DescribeWaitingOrdersResponse.Data["+ i +"].InstanceInfos.Length"); j++) { - InstanceInfo instanceInfo = new InstanceInfo(); - instanceInfo.setInstanceId(_ctx.stringValue("DescribeWaitingOrdersResponse.Data["+ i +"].InstanceInfos["+ j +"].InstanceId")); - instanceInfo.setResultCode(_ctx.stringValue("DescribeWaitingOrdersResponse.Data["+ i +"].InstanceInfos["+ j +"].ResultCode")); - - instanceInfos.add(instanceInfo); - } - waitingOrder.setInstanceInfos(instanceInfos); - - data.add(waitingOrder); - } - describeWaitingOrdersResponse.setData(data); - - return describeWaitingOrdersResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/FeedbackDiagnoseResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/FeedbackDiagnoseResponseUnmarshaller.java deleted file mode 100644 index 51776500c5..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/FeedbackDiagnoseResponseUnmarshaller.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.FeedbackDiagnoseResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class FeedbackDiagnoseResponseUnmarshaller { - - public static FeedbackDiagnoseResponse unmarshall(FeedbackDiagnoseResponse feedbackDiagnoseResponse, UnmarshallerContext _ctx) { - - feedbackDiagnoseResponse.setRequestId(_ctx.stringValue("FeedbackDiagnoseResponse.RequestId")); - - return feedbackDiagnoseResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/GetLaunchTemplateDataResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/GetLaunchTemplateDataResponseUnmarshaller.java deleted file mode 100644 index 482f4328f1..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/GetLaunchTemplateDataResponseUnmarshaller.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.GetLaunchTemplateDataResponse; -import com.aliyuncs.ecs.model.v20160314.GetLaunchTemplateDataResponse.LaunchTemplateData; -import com.aliyuncs.ecs.model.v20160314.GetLaunchTemplateDataResponse.LaunchTemplateData.DataDisk; -import com.aliyuncs.ecs.model.v20160314.GetLaunchTemplateDataResponse.LaunchTemplateData.InstanceTag; -import com.aliyuncs.ecs.model.v20160314.GetLaunchTemplateDataResponse.LaunchTemplateData.NetworkInterface; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class GetLaunchTemplateDataResponseUnmarshaller { - - public static GetLaunchTemplateDataResponse unmarshall(GetLaunchTemplateDataResponse getLaunchTemplateDataResponse, UnmarshallerContext _ctx) { - - getLaunchTemplateDataResponse.setRequestId(_ctx.stringValue("GetLaunchTemplateDataResponse.RequestId")); - - LaunchTemplateData launchTemplateData = new LaunchTemplateData(); - launchTemplateData.setVpcId(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.VpcId")); - launchTemplateData.setKeyPairName(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.KeyPairName")); - launchTemplateData.setSecurityGroupId(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.SecurityGroupId")); - launchTemplateData.setNetworkType(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.NetworkType")); - launchTemplateData.setSpotStrategy(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.SpotStrategy")); - launchTemplateData.setEnableVmOsConfig(_ctx.booleanValue("GetLaunchTemplateDataResponse.LaunchTemplateData.EnableVmOsConfig")); - launchTemplateData.setDescription(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.Description")); - launchTemplateData.setSpotDuration(_ctx.integerValue("GetLaunchTemplateDataResponse.LaunchTemplateData.SpotDuration")); - launchTemplateData.setInstanceName(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.InstanceName")); - launchTemplateData.setSecurityEnhancementStrategy(_ctx.booleanValue("GetLaunchTemplateDataResponse.LaunchTemplateData.SecurityEnhancementStrategy")); - launchTemplateData.setUserData(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.UserData")); - launchTemplateData.setSystemDiskDiskName(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.SystemDisk.DiskName")); - launchTemplateData.setSystemDiskSize(_ctx.integerValue("GetLaunchTemplateDataResponse.LaunchTemplateData.SystemDisk.Size")); - launchTemplateData.setSpotPriceLimit(_ctx.floatValue("GetLaunchTemplateDataResponse.LaunchTemplateData.SpotPriceLimit")); - launchTemplateData.setPasswordInherit(_ctx.booleanValue("GetLaunchTemplateDataResponse.LaunchTemplateData.PasswordInherit")); - launchTemplateData.setImageId(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.ImageId")); - launchTemplateData.setSystemDiskCategory(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.SystemDisk.Category")); - launchTemplateData.setAutoReleaseTime(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.AutoReleaseTime")); - launchTemplateData.setSystemDiskDescription(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.SystemDisk.Description")); - launchTemplateData.setImageOwnerAlias(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.ImageOwnerAlias")); - launchTemplateData.setHostName(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.HostName")); - launchTemplateData.setSystemDiskIops(_ctx.integerValue("GetLaunchTemplateDataResponse.LaunchTemplateData.SystemDisk.Iops")); - launchTemplateData.setInternetMaxBandwidthOut(_ctx.integerValue("GetLaunchTemplateDataResponse.LaunchTemplateData.InternetMaxBandwidthOut")); - launchTemplateData.setInternetMaxBandwidthIn(_ctx.integerValue("GetLaunchTemplateDataResponse.LaunchTemplateData.InternetMaxBandwidthIn")); - launchTemplateData.setInstanceType(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.InstanceType")); - launchTemplateData.setPeriod(_ctx.integerValue("GetLaunchTemplateDataResponse.LaunchTemplateData.Period")); - launchTemplateData.setInstanceChargeType(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.InstanceChargeType")); - launchTemplateData.setIoOptimized(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.IoOptimized")); - launchTemplateData.setRamRoleName(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.RamRoleName")); - launchTemplateData.setVSwitchId(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.VSwitchId")); - launchTemplateData.setResourceGroupId(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.ResourceGroupId")); - launchTemplateData.setInternetChargeType(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.InternetChargeType")); - launchTemplateData.setZoneId(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.ZoneId")); - - List dataDisks = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("GetLaunchTemplateDataResponse.LaunchTemplateData.DataDisks.Length"); i++) { - DataDisk dataDisk = new DataDisk(); - dataDisk.setDescription(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.DataDisks["+ i +"].Description")); - dataDisk.setSnapshotId(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.DataDisks["+ i +"].SnapshotId")); - dataDisk.setDevice(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.DataDisks["+ i +"].Device")); - dataDisk.setSize(_ctx.integerValue("GetLaunchTemplateDataResponse.LaunchTemplateData.DataDisks["+ i +"].Size")); - dataDisk.setDiskName(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.DataDisks["+ i +"].DiskName")); - dataDisk.setCategory(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.DataDisks["+ i +"].Category")); - dataDisk.setDeleteWithInstance(_ctx.booleanValue("GetLaunchTemplateDataResponse.LaunchTemplateData.DataDisks["+ i +"].DeleteWithInstance")); - dataDisk.setEncrypted(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.DataDisks["+ i +"].Encrypted")); - - dataDisks.add(dataDisk); - } - launchTemplateData.setDataDisks(dataDisks); - - List networkInterfaces = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("GetLaunchTemplateDataResponse.LaunchTemplateData.NetworkInterfaces.Length"); i++) { - NetworkInterface networkInterface = new NetworkInterface(); - networkInterface.setNetworkInterfaceName(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.NetworkInterfaces["+ i +"].NetworkInterfaceName")); - networkInterface.setVSwitchId(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.NetworkInterfaces["+ i +"].VSwitchId")); - networkInterface.setDescription(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.NetworkInterfaces["+ i +"].Description")); - networkInterface.setPrimaryIpAddress(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.NetworkInterfaces["+ i +"].PrimaryIpAddress")); - networkInterface.setSecurityGroupId(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.NetworkInterfaces["+ i +"].SecurityGroupId")); - - networkInterfaces.add(networkInterface); - } - launchTemplateData.setNetworkInterfaces(networkInterfaces); - - List tags = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("GetLaunchTemplateDataResponse.LaunchTemplateData.Tags.Length"); i++) { - InstanceTag instanceTag = new InstanceTag(); - instanceTag.setKey(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.Tags["+ i +"].Key")); - instanceTag.setValue(_ctx.stringValue("GetLaunchTemplateDataResponse.LaunchTemplateData.Tags["+ i +"].Value")); - - tags.add(instanceTag); - } - launchTemplateData.setTags(tags); - getLaunchTemplateDataResponse.setLaunchTemplateData(launchTemplateData); - - return getLaunchTemplateDataResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/InnerDescribeNetworkInterfaceInGroupResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/InnerDescribeNetworkInterfaceInGroupResponseUnmarshaller.java deleted file mode 100644 index 01d5b5fdf7..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/InnerDescribeNetworkInterfaceInGroupResponseUnmarshaller.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.InnerDescribeNetworkInterfaceInGroupResponse; -import com.aliyuncs.ecs.model.v20160314.InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSet; -import com.aliyuncs.ecs.model.v20160314.InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSet.AssociatedPublicIp; -import com.aliyuncs.ecs.model.v20160314.InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSet.Attachment; -import com.aliyuncs.ecs.model.v20160314.InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSet.Ipv6Set; -import com.aliyuncs.ecs.model.v20160314.InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSet.PrivateIpSet; -import com.aliyuncs.ecs.model.v20160314.InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSet.PrivateIpSet.AssociatedPublicIp1; -import com.aliyuncs.ecs.model.v20160314.InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSet.Tag; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class InnerDescribeNetworkInterfaceInGroupResponseUnmarshaller { - - public static InnerDescribeNetworkInterfaceInGroupResponse unmarshall(InnerDescribeNetworkInterfaceInGroupResponse innerDescribeNetworkInterfaceInGroupResponse, UnmarshallerContext _ctx) { - - innerDescribeNetworkInterfaceInGroupResponse.setRequestId(_ctx.stringValue("InnerDescribeNetworkInterfaceInGroupResponse.RequestId")); - innerDescribeNetworkInterfaceInGroupResponse.setNextToken(_ctx.stringValue("InnerDescribeNetworkInterfaceInGroupResponse.NextToken")); - - List networkInterfaceSets = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets.Length"); i++) { - NetworkInterfaceSet networkInterfaceSet = new NetworkInterfaceSet(); - networkInterfaceSet.setCreationTime(_ctx.stringValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].CreationTime")); - networkInterfaceSet.setVpcId(_ctx.stringValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].VpcId")); - networkInterfaceSet.setType(_ctx.stringValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].Type")); - networkInterfaceSet.setStatus(_ctx.stringValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].Status")); - networkInterfaceSet.setNetworkInterfaceTrafficMode(_ctx.stringValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].NetworkInterfaceTrafficMode")); - networkInterfaceSet.setNetworkInterfaceName(_ctx.stringValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].NetworkInterfaceName")); - networkInterfaceSet.setMacAddress(_ctx.stringValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].MacAddress")); - networkInterfaceSet.setQueuePairNumber(_ctx.integerValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].QueuePairNumber")); - networkInterfaceSet.setNetworkInterfaceId(_ctx.stringValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].NetworkInterfaceId")); - networkInterfaceSet.setServiceID(_ctx.longValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].ServiceID")); - networkInterfaceSet.setInstanceId(_ctx.stringValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].InstanceId")); - networkInterfaceSet.setOwnerId(_ctx.stringValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].OwnerId")); - networkInterfaceSet.setServiceManaged(_ctx.booleanValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].ServiceManaged")); - networkInterfaceSet.setVSwitchId(_ctx.stringValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].VSwitchId")); - networkInterfaceSet.setDescription(_ctx.stringValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].Description")); - networkInterfaceSet.setResourceGroupId(_ctx.stringValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].ResourceGroupId")); - networkInterfaceSet.setZoneId(_ctx.stringValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].ZoneId")); - networkInterfaceSet.setPrivateIpAddress(_ctx.stringValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].PrivateIpAddress")); - networkInterfaceSet.setQueueNumber(_ctx.integerValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].QueueNumber")); - - List securityGroupIds = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].SecurityGroupIds.Length"); j++) { - securityGroupIds.add(_ctx.stringValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].SecurityGroupIds["+ j +"]")); - } - networkInterfaceSet.setSecurityGroupIds(securityGroupIds); - - AssociatedPublicIp associatedPublicIp = new AssociatedPublicIp(); - associatedPublicIp.setPublicIpAddress(_ctx.stringValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].AssociatedPublicIp.PublicIpAddress")); - associatedPublicIp.setAllocationId(_ctx.stringValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].AssociatedPublicIp.AllocationId")); - networkInterfaceSet.setAssociatedPublicIp(associatedPublicIp); - - Attachment attachment = new Attachment(); - attachment.setDeviceIndex(_ctx.integerValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].Attachment.DeviceIndex")); - attachment.setInstanceId(_ctx.stringValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].Attachment.InstanceId")); - attachment.setTrunkNetworkInterfaceId(_ctx.stringValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].Attachment.TrunkNetworkInterfaceId")); - networkInterfaceSet.setAttachment(attachment); - - List privateIpSets = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].PrivateIpSets.Length"); j++) { - PrivateIpSet privateIpSet = new PrivateIpSet(); - privateIpSet.setPrivateIpAddress(_ctx.stringValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].PrivateIpSets["+ j +"].PrivateIpAddress")); - privateIpSet.setPrimary(_ctx.booleanValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].PrivateIpSets["+ j +"].Primary")); - - AssociatedPublicIp1 associatedPublicIp1 = new AssociatedPublicIp1(); - associatedPublicIp1.setPublicIpAddress(_ctx.stringValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].PrivateIpSets["+ j +"].AssociatedPublicIp.PublicIpAddress")); - associatedPublicIp1.setAllocationId(_ctx.stringValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].PrivateIpSets["+ j +"].AssociatedPublicIp.AllocationId")); - privateIpSet.setAssociatedPublicIp1(associatedPublicIp1); - - privateIpSets.add(privateIpSet); - } - networkInterfaceSet.setPrivateIpSets(privateIpSets); - - List ipv6Sets = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].Ipv6Sets.Length"); j++) { - Ipv6Set ipv6Set = new Ipv6Set(); - ipv6Set.setIpv6Address(_ctx.stringValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].Ipv6Sets["+ j +"].Ipv6Address")); - - ipv6Sets.add(ipv6Set); - } - networkInterfaceSet.setIpv6Sets(ipv6Sets); - - List tags = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].Tags.Length"); j++) { - Tag tag = new Tag(); - tag.setTagValue(_ctx.stringValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].Tags["+ j +"].TagValue")); - tag.setTagKey(_ctx.stringValue("InnerDescribeNetworkInterfaceInGroupResponse.NetworkInterfaceSets["+ i +"].Tags["+ j +"].TagKey")); - - tags.add(tag); - } - networkInterfaceSet.setTags(tags); - - networkInterfaceSets.add(networkInterfaceSet); - } - innerDescribeNetworkInterfaceInGroupResponse.setNetworkInterfaceSets(networkInterfaceSets); - - return innerDescribeNetworkInterfaceInGroupResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/JoinEniQosGroupResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/JoinEniQosGroupResponseUnmarshaller.java deleted file mode 100644 index 4d9048f9ec..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/JoinEniQosGroupResponseUnmarshaller.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.JoinEniQosGroupResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class JoinEniQosGroupResponseUnmarshaller { - - public static JoinEniQosGroupResponse unmarshall(JoinEniQosGroupResponse joinEniQosGroupResponse, UnmarshallerContext _ctx) { - - joinEniQosGroupResponse.setRequestId(_ctx.stringValue("JoinEniQosGroupResponse.RequestId")); - - return joinEniQosGroupResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/LeaveEniQosGroupResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/LeaveEniQosGroupResponseUnmarshaller.java deleted file mode 100644 index 5a84006cb4..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/LeaveEniQosGroupResponseUnmarshaller.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.LeaveEniQosGroupResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class LeaveEniQosGroupResponseUnmarshaller { - - public static LeaveEniQosGroupResponse unmarshall(LeaveEniQosGroupResponse leaveEniQosGroupResponse, UnmarshallerContext _ctx) { - - leaveEniQosGroupResponse.setRequestId(_ctx.stringValue("LeaveEniQosGroupResponse.RequestId")); - - return leaveEniQosGroupResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ListAccountEcsQuotasResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ListAccountEcsQuotasResponseUnmarshaller.java deleted file mode 100644 index 9a925d4311..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ListAccountEcsQuotasResponseUnmarshaller.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.ListAccountEcsQuotasResponse; -import com.aliyuncs.ecs.model.v20160314.ListAccountEcsQuotasResponse.EcsQuota; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class ListAccountEcsQuotasResponseUnmarshaller { - - public static ListAccountEcsQuotasResponse unmarshall(ListAccountEcsQuotasResponse listAccountEcsQuotasResponse, UnmarshallerContext _ctx) { - - listAccountEcsQuotasResponse.setRequestId(_ctx.stringValue("ListAccountEcsQuotasResponse.RequestId")); - listAccountEcsQuotasResponse.setNextToken(_ctx.stringValue("ListAccountEcsQuotasResponse.NextToken")); - - List ecsQuotas = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("ListAccountEcsQuotasResponse.EcsQuotas.Length"); i++) { - EcsQuota ecsQuota = new EcsQuota(); - ecsQuota.setQuotaResourceName(_ctx.stringValue("ListAccountEcsQuotasResponse.EcsQuotas["+ i +"].QuotaResourceName")); - ecsQuota.setBaseQuota(_ctx.longValue("ListAccountEcsQuotasResponse.EcsQuotas["+ i +"].BaseQuota")); - ecsQuota.setQuotaResourceType(_ctx.stringValue("ListAccountEcsQuotasResponse.EcsQuotas["+ i +"].QuotaResourceType")); - ecsQuota.setQuotaUnit(_ctx.stringValue("ListAccountEcsQuotasResponse.EcsQuotas["+ i +"].QuotaUnit")); - ecsQuota.setChargeType(_ctx.stringValue("ListAccountEcsQuotasResponse.EcsQuotas["+ i +"].ChargeType")); - ecsQuota.setNetworkType(_ctx.stringValue("ListAccountEcsQuotasResponse.EcsQuotas["+ i +"].NetworkType")); - ecsQuota.setReservedQuota(_ctx.longValue("ListAccountEcsQuotasResponse.EcsQuotas["+ i +"].ReservedQuota")); - ecsQuota.setReservedQuotaUsage(_ctx.longValue("ListAccountEcsQuotasResponse.EcsQuotas["+ i +"].ReservedQuotaUsage")); - ecsQuota.setRegionId(_ctx.stringValue("ListAccountEcsQuotasResponse.EcsQuotas["+ i +"].RegionId")); - ecsQuota.setTotalQuotaUsage(_ctx.longValue("ListAccountEcsQuotasResponse.EcsQuotas["+ i +"].TotalQuotaUsage")); - ecsQuota.setBaseQuotaUsage(_ctx.longValue("ListAccountEcsQuotasResponse.EcsQuotas["+ i +"].BaseQuotaUsage")); - ecsQuota.setApplicationStatus(_ctx.stringValue("ListAccountEcsQuotasResponse.EcsQuotas["+ i +"].ApplicationStatus")); - ecsQuota.setZoneId(_ctx.stringValue("ListAccountEcsQuotasResponse.EcsQuotas["+ i +"].ZoneId")); - ecsQuota.setTotalQuota(_ctx.longValue("ListAccountEcsQuotasResponse.EcsQuotas["+ i +"].TotalQuota")); - - ecsQuotas.add(ecsQuota); - } - listAccountEcsQuotasResponse.setEcsQuotas(ecsQuotas); - - return listAccountEcsQuotasResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ListServiceSettingsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ListServiceSettingsResponseUnmarshaller.java deleted file mode 100644 index a669347a33..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ListServiceSettingsResponseUnmarshaller.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.ListServiceSettingsResponse; -import com.aliyuncs.ecs.model.v20160314.ListServiceSettingsResponse.CloudAssistantDeliverySettings; -import com.aliyuncs.ecs.model.v20160314.ListServiceSettingsResponse.SessionManagerDeliverySetting; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class ListServiceSettingsResponseUnmarshaller { - - public static ListServiceSettingsResponse unmarshall(ListServiceSettingsResponse listServiceSettingsResponse, UnmarshallerContext _ctx) { - - listServiceSettingsResponse.setRequestId(_ctx.stringValue("ListServiceSettingsResponse.RequestId")); - - CloudAssistantDeliverySettings cloudAssistantDeliverySettings = new CloudAssistantDeliverySettings(); - cloudAssistantDeliverySettings.setSlsProjectName(_ctx.stringValue("ListServiceSettingsResponse.CloudAssistantDeliverySettings.SlsProjectName")); - cloudAssistantDeliverySettings.setOssKeyPrefix(_ctx.stringValue("ListServiceSettingsResponse.CloudAssistantDeliverySettings.OssKeyPrefix")); - cloudAssistantDeliverySettings.setSlsEnabled(_ctx.booleanValue("ListServiceSettingsResponse.CloudAssistantDeliverySettings.SlsEnabled")); - cloudAssistantDeliverySettings.setOssEnabled(_ctx.booleanValue("ListServiceSettingsResponse.CloudAssistantDeliverySettings.OssEnabled")); - cloudAssistantDeliverySettings.setSlsLogstoreName(_ctx.stringValue("ListServiceSettingsResponse.CloudAssistantDeliverySettings.SlsLogstoreName")); - cloudAssistantDeliverySettings.setOssBucketName(_ctx.stringValue("ListServiceSettingsResponse.CloudAssistantDeliverySettings.OssBucketName")); - listServiceSettingsResponse.setCloudAssistantDeliverySettings(cloudAssistantDeliverySettings); - - SessionManagerDeliverySetting sessionManagerDeliverySetting = new SessionManagerDeliverySetting(); - sessionManagerDeliverySetting.setOssEnabled(_ctx.booleanValue("ListServiceSettingsResponse.SessionManagerDeliverySetting.OssEnabled")); - sessionManagerDeliverySetting.setOssBucketName(_ctx.stringValue("ListServiceSettingsResponse.SessionManagerDeliverySetting.OssBucketName")); - sessionManagerDeliverySetting.setOssKeyPrefix(_ctx.stringValue("ListServiceSettingsResponse.SessionManagerDeliverySetting.OssKeyPrefix")); - sessionManagerDeliverySetting.setOssEncryptionType(_ctx.stringValue("ListServiceSettingsResponse.SessionManagerDeliverySetting.OssEncryptionType")); - sessionManagerDeliverySetting.setOssEncryptionAlgorithm(_ctx.stringValue("ListServiceSettingsResponse.SessionManagerDeliverySetting.OssEncryptionAlgorithm")); - sessionManagerDeliverySetting.setOssEncryptionKeyId(_ctx.stringValue("ListServiceSettingsResponse.SessionManagerDeliverySetting.OssEncryptionKeyId")); - sessionManagerDeliverySetting.setSlsEnabled(_ctx.booleanValue("ListServiceSettingsResponse.SessionManagerDeliverySetting.SlsEnabled")); - sessionManagerDeliverySetting.setSlsProjectName(_ctx.stringValue("ListServiceSettingsResponse.SessionManagerDeliverySetting.SlsProjectName")); - sessionManagerDeliverySetting.setSlsLogstoreName(_ctx.stringValue("ListServiceSettingsResponse.SessionManagerDeliverySetting.SlsLogstoreName")); - listServiceSettingsResponse.setSessionManagerDeliverySetting(sessionManagerDeliverySetting); - - return listServiceSettingsResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyDiagnoseResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyDiagnoseResponseUnmarshaller.java deleted file mode 100644 index 36134077b7..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyDiagnoseResponseUnmarshaller.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.ModifyDiagnoseResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class ModifyDiagnoseResponseUnmarshaller { - - public static ModifyDiagnoseResponse unmarshall(ModifyDiagnoseResponse modifyDiagnoseResponse, UnmarshallerContext _ctx) { - - modifyDiagnoseResponse.setRequestId(_ctx.stringValue("ModifyDiagnoseResponse.RequestId")); - modifyDiagnoseResponse.setData(_ctx.integerValue("ModifyDiagnoseResponse.data")); - - return modifyDiagnoseResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyEniQosGroupResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyEniQosGroupResponseUnmarshaller.java deleted file mode 100644 index 34838b997c..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyEniQosGroupResponseUnmarshaller.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.ModifyEniQosGroupResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class ModifyEniQosGroupResponseUnmarshaller { - - public static ModifyEniQosGroupResponse unmarshall(ModifyEniQosGroupResponse modifyEniQosGroupResponse, UnmarshallerContext _ctx) { - - modifyEniQosGroupResponse.setRequestId(_ctx.stringValue("ModifyEniQosGroupResponse.RequestId")); - - return modifyEniQosGroupResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyImageAdvancedAttributeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyImageAdvancedAttributeResponseUnmarshaller.java deleted file mode 100644 index 792fcb9e52..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyImageAdvancedAttributeResponseUnmarshaller.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.ModifyImageAdvancedAttributeResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class ModifyImageAdvancedAttributeResponseUnmarshaller { - - public static ModifyImageAdvancedAttributeResponse unmarshall(ModifyImageAdvancedAttributeResponse modifyImageAdvancedAttributeResponse, UnmarshallerContext _ctx) { - - modifyImageAdvancedAttributeResponse.setRequestId(_ctx.stringValue("ModifyImageAdvancedAttributeResponse.RequestId")); - - return modifyImageAdvancedAttributeResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyInstanceAutoRebootTimeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyInstanceAutoRebootTimeResponseUnmarshaller.java deleted file mode 100644 index dc5e41ac29..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyInstanceAutoRebootTimeResponseUnmarshaller.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.ModifyInstanceAutoRebootTimeResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class ModifyInstanceAutoRebootTimeResponseUnmarshaller { - - public static ModifyInstanceAutoRebootTimeResponse unmarshall(ModifyInstanceAutoRebootTimeResponse modifyInstanceAutoRebootTimeResponse, UnmarshallerContext _ctx) { - - modifyInstanceAutoRebootTimeResponse.setRequestId(_ctx.stringValue("ModifyInstanceAutoRebootTimeResponse.RequestId")); - - return modifyInstanceAutoRebootTimeResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyInstanceCapacityReservationAttributesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyInstanceCapacityReservationAttributesResponseUnmarshaller.java deleted file mode 100644 index b5040fe690..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyInstanceCapacityReservationAttributesResponseUnmarshaller.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.ModifyInstanceCapacityReservationAttributesResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class ModifyInstanceCapacityReservationAttributesResponseUnmarshaller { - - public static ModifyInstanceCapacityReservationAttributesResponse unmarshall(ModifyInstanceCapacityReservationAttributesResponse modifyInstanceCapacityReservationAttributesResponse, UnmarshallerContext _ctx) { - - modifyInstanceCapacityReservationAttributesResponse.setRequestId(_ctx.stringValue("ModifyInstanceCapacityReservationAttributesResponse.RequestId")); - - return modifyInstanceCapacityReservationAttributesResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyMigratableInstancesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyMigratableInstancesResponseUnmarshaller.java deleted file mode 100644 index b663498e24..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyMigratableInstancesResponseUnmarshaller.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.ModifyMigratableInstancesResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class ModifyMigratableInstancesResponseUnmarshaller { - - public static ModifyMigratableInstancesResponse unmarshall(ModifyMigratableInstancesResponse modifyMigratableInstancesResponse, UnmarshallerContext _ctx) { - - modifyMigratableInstancesResponse.setRequestId(_ctx.stringValue("ModifyMigratableInstancesResponse.RequestId")); - - return modifyMigratableInstancesResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyMigrationInstancesResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyMigrationInstancesResponseUnmarshaller.java deleted file mode 100644 index 923b6299e1..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyMigrationInstancesResponseUnmarshaller.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.ModifyMigrationInstancesResponse; -import com.aliyuncs.ecs.model.v20160314.ModifyMigrationInstancesResponse.InstancesFailModel; -import com.aliyuncs.ecs.model.v20160314.ModifyMigrationInstancesResponse.InstancesFailModel.FailModel; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class ModifyMigrationInstancesResponseUnmarshaller { - - public static ModifyMigrationInstancesResponse unmarshall(ModifyMigrationInstancesResponse modifyMigrationInstancesResponse, UnmarshallerContext _ctx) { - - modifyMigrationInstancesResponse.setRequestId(_ctx.stringValue("ModifyMigrationInstancesResponse.RequestId")); - - List instancesFailModels = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("ModifyMigrationInstancesResponse.InstancesFailModels.Length"); i++) { - InstancesFailModel instancesFailModel = new InstancesFailModel(); - instancesFailModel.setInstanceId(_ctx.stringValue("ModifyMigrationInstancesResponse.InstancesFailModels["+ i +"].InstanceId")); - - List failModels = new ArrayList(); - for (int j = 0; j < _ctx.lengthValue("ModifyMigrationInstancesResponse.InstancesFailModels["+ i +"].FailModels.Length"); j++) { - FailModel failModel = new FailModel(); - failModel.setErrorCode(_ctx.stringValue("ModifyMigrationInstancesResponse.InstancesFailModels["+ i +"].FailModels["+ j +"].ErrorCode")); - failModel.setErrorMessage(_ctx.stringValue("ModifyMigrationInstancesResponse.InstancesFailModels["+ i +"].FailModels["+ j +"].ErrorMessage")); - - failModels.add(failModel); - } - instancesFailModel.setFailModels(failModels); - - instancesFailModels.add(instancesFailModel); - } - modifyMigrationInstancesResponse.setInstancesFailModels(instancesFailModels); - - return modifyMigrationInstancesResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyMigrationPlanResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyMigrationPlanResponseUnmarshaller.java deleted file mode 100644 index 428c9db22f..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyMigrationPlanResponseUnmarshaller.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.ModifyMigrationPlanResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class ModifyMigrationPlanResponseUnmarshaller { - - public static ModifyMigrationPlanResponse unmarshall(ModifyMigrationPlanResponse modifyMigrationPlanResponse, UnmarshallerContext _ctx) { - - modifyMigrationPlanResponse.setRequestId(_ctx.stringValue("ModifyMigrationPlanResponse.RequestId")); - - return modifyMigrationPlanResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyOrderAutoRebootTimeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyOrderAutoRebootTimeResponseUnmarshaller.java deleted file mode 100644 index 8137ed449f..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyOrderAutoRebootTimeResponseUnmarshaller.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.ModifyOrderAutoRebootTimeResponse; -import com.aliyuncs.ecs.model.v20160314.ModifyOrderAutoRebootTimeResponse.ModifyOrderAutoRebootTimeInfo; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class ModifyOrderAutoRebootTimeResponseUnmarshaller { - - public static ModifyOrderAutoRebootTimeResponse unmarshall(ModifyOrderAutoRebootTimeResponse modifyOrderAutoRebootTimeResponse, UnmarshallerContext _ctx) { - - modifyOrderAutoRebootTimeResponse.setRequestId(_ctx.stringValue("ModifyOrderAutoRebootTimeResponse.RequestId")); - - ModifyOrderAutoRebootTimeInfo modifyOrderAutoRebootTimeInfo = new ModifyOrderAutoRebootTimeInfo(); - modifyOrderAutoRebootTimeInfo.setAutoRebootTime(_ctx.stringValue("ModifyOrderAutoRebootTimeResponse.ModifyOrderAutoRebootTimeInfo.AutoRebootTime")); - modifyOrderAutoRebootTimeInfo.setOrderId(_ctx.longValue("ModifyOrderAutoRebootTimeResponse.ModifyOrderAutoRebootTimeInfo.OrderId")); - modifyOrderAutoRebootTimeResponse.setModifyOrderAutoRebootTimeInfo(modifyOrderAutoRebootTimeInfo); - - return modifyOrderAutoRebootTimeResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyPrivatePoolResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyPrivatePoolResponseUnmarshaller.java deleted file mode 100644 index be69ef80d0..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyPrivatePoolResponseUnmarshaller.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.ModifyPrivatePoolResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class ModifyPrivatePoolResponseUnmarshaller { - - public static ModifyPrivatePoolResponse unmarshall(ModifyPrivatePoolResponse modifyPrivatePoolResponse, UnmarshallerContext _ctx) { - - modifyPrivatePoolResponse.setRequestId(_ctx.stringValue("ModifyPrivatePoolResponse.RequestId")); - - return modifyPrivatePoolResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyReservationDemandResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyReservationDemandResponseUnmarshaller.java deleted file mode 100644 index 033a0640b3..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyReservationDemandResponseUnmarshaller.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.ModifyReservationDemandResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class ModifyReservationDemandResponseUnmarshaller { - - public static ModifyReservationDemandResponse unmarshall(ModifyReservationDemandResponse modifyReservationDemandResponse, UnmarshallerContext _ctx) { - - modifyReservationDemandResponse.setRequestId(_ctx.stringValue("ModifyReservationDemandResponse.RequestId")); - - return modifyReservationDemandResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyResourceDiagnosisStatusResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyResourceDiagnosisStatusResponseUnmarshaller.java deleted file mode 100644 index 884704a39d..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyResourceDiagnosisStatusResponseUnmarshaller.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.ModifyResourceDiagnosisStatusResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class ModifyResourceDiagnosisStatusResponseUnmarshaller { - - public static ModifyResourceDiagnosisStatusResponse unmarshall(ModifyResourceDiagnosisStatusResponse modifyResourceDiagnosisStatusResponse, UnmarshallerContext _ctx) { - - modifyResourceDiagnosisStatusResponse.setRequestId(_ctx.stringValue("ModifyResourceDiagnosisStatusResponse.RequestId")); - - return modifyResourceDiagnosisStatusResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyResourceMetaResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyResourceMetaResponseUnmarshaller.java deleted file mode 100644 index 78437e8f33..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyResourceMetaResponseUnmarshaller.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.ModifyResourceMetaResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class ModifyResourceMetaResponseUnmarshaller { - - public static ModifyResourceMetaResponse unmarshall(ModifyResourceMetaResponse modifyResourceMetaResponse, UnmarshallerContext _ctx) { - - modifyResourceMetaResponse.setRequestId(_ctx.stringValue("ModifyResourceMetaResponse.RequestId")); - - return modifyResourceMetaResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyWaitingOrderResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyWaitingOrderResponseUnmarshaller.java deleted file mode 100644 index 86b937a5ad..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ModifyWaitingOrderResponseUnmarshaller.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.ModifyWaitingOrderResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class ModifyWaitingOrderResponseUnmarshaller { - - public static ModifyWaitingOrderResponse unmarshall(ModifyWaitingOrderResponse modifyWaitingOrderResponse, UnmarshallerContext _ctx) { - - modifyWaitingOrderResponse.setRequestId(_ctx.stringValue("ModifyWaitingOrderResponse.RequestId")); - - return modifyWaitingOrderResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/PurchaseSavingPlanOfferingResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/PurchaseSavingPlanOfferingResponseUnmarshaller.java deleted file mode 100644 index 2831cfa3e7..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/PurchaseSavingPlanOfferingResponseUnmarshaller.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.PurchaseSavingPlanOfferingResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class PurchaseSavingPlanOfferingResponseUnmarshaller { - - public static PurchaseSavingPlanOfferingResponse unmarshall(PurchaseSavingPlanOfferingResponse purchaseSavingPlanOfferingResponse, UnmarshallerContext _ctx) { - - purchaseSavingPlanOfferingResponse.setRequestId(_ctx.stringValue("PurchaseSavingPlanOfferingResponse.RequestId")); - purchaseSavingPlanOfferingResponse.setOrderId(_ctx.stringValue("PurchaseSavingPlanOfferingResponse.OrderId")); - - List savingPlanIdSets = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("PurchaseSavingPlanOfferingResponse.SavingPlanIdSets.Length"); i++) { - savingPlanIdSets.add(_ctx.stringValue("PurchaseSavingPlanOfferingResponse.SavingPlanIdSets["+ i +"]")); - } - purchaseSavingPlanOfferingResponse.setSavingPlanIdSets(savingPlanIdSets); - - return purchaseSavingPlanOfferingResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/QueryEniQosGroupByEniResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/QueryEniQosGroupByEniResponseUnmarshaller.java deleted file mode 100644 index 9374777f38..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/QueryEniQosGroupByEniResponseUnmarshaller.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.QueryEniQosGroupByEniResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class QueryEniQosGroupByEniResponseUnmarshaller { - - public static QueryEniQosGroupByEniResponse unmarshall(QueryEniQosGroupByEniResponse queryEniQosGroupByEniResponse, UnmarshallerContext _ctx) { - - queryEniQosGroupByEniResponse.setRequestId(_ctx.stringValue("QueryEniQosGroupByEniResponse.RequestId")); - queryEniQosGroupByEniResponse.setQosGroupName(_ctx.stringValue("QueryEniQosGroupByEniResponse.QosGroupName")); - - return queryEniQosGroupByEniResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/QueryEniQosGroupByInstanceResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/QueryEniQosGroupByInstanceResponseUnmarshaller.java deleted file mode 100644 index ae00d047bf..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/QueryEniQosGroupByInstanceResponseUnmarshaller.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.QueryEniQosGroupByInstanceResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class QueryEniQosGroupByInstanceResponseUnmarshaller { - - public static QueryEniQosGroupByInstanceResponse unmarshall(QueryEniQosGroupByInstanceResponse queryEniQosGroupByInstanceResponse, UnmarshallerContext _ctx) { - - queryEniQosGroupByInstanceResponse.setRequestId(_ctx.stringValue("QueryEniQosGroupByInstanceResponse.RequestId")); - - List data = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("QueryEniQosGroupByInstanceResponse.Data.Length"); i++) { - data.add(_ctx.stringValue("QueryEniQosGroupByInstanceResponse.Data["+ i +"]")); - } - queryEniQosGroupByInstanceResponse.setData(data); - - return queryEniQosGroupByInstanceResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ReAddMigrationTaskInPlanResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ReAddMigrationTaskInPlanResponseUnmarshaller.java deleted file mode 100644 index acc1a5c9e0..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ReAddMigrationTaskInPlanResponseUnmarshaller.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.ReAddMigrationTaskInPlanResponse; -import com.aliyuncs.ecs.model.v20160314.ReAddMigrationTaskInPlanResponse.FailModelsItem; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class ReAddMigrationTaskInPlanResponseUnmarshaller { - - public static ReAddMigrationTaskInPlanResponse unmarshall(ReAddMigrationTaskInPlanResponse reAddMigrationTaskInPlanResponse, UnmarshallerContext _ctx) { - - reAddMigrationTaskInPlanResponse.setRequestId(_ctx.stringValue("ReAddMigrationTaskInPlanResponse.RequestId")); - - List failModels = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("ReAddMigrationTaskInPlanResponse.FailModels.Length"); i++) { - FailModelsItem failModelsItem = new FailModelsItem(); - failModelsItem.setErrorCode(_ctx.stringValue("ReAddMigrationTaskInPlanResponse.FailModels["+ i +"].ErrorCode")); - failModelsItem.setErrorMessage(_ctx.stringValue("ReAddMigrationTaskInPlanResponse.FailModels["+ i +"].ErrorMessage")); - - failModels.add(failModelsItem); - } - reAddMigrationTaskInPlanResponse.setFailModels(failModels); - - return reAddMigrationTaskInPlanResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/RenewDedicatedHostsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/RenewDedicatedHostsResponseUnmarshaller.java deleted file mode 100644 index 1ac1b2fb34..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/RenewDedicatedHostsResponseUnmarshaller.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import java.util.ArrayList; -import java.util.List; - -import com.aliyuncs.ecs.model.v20160314.RenewDedicatedHostsResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class RenewDedicatedHostsResponseUnmarshaller { - - public static RenewDedicatedHostsResponse unmarshall(RenewDedicatedHostsResponse renewDedicatedHostsResponse, UnmarshallerContext _ctx) { - - renewDedicatedHostsResponse.setRequestId(_ctx.stringValue("RenewDedicatedHostsResponse.RequestId")); - renewDedicatedHostsResponse.setOrderId(_ctx.stringValue("RenewDedicatedHostsResponse.OrderId")); - - List dedicatedHostIdSets = new ArrayList(); - for (int i = 0; i < _ctx.lengthValue("RenewDedicatedHostsResponse.DedicatedHostIdSets.Length"); i++) { - dedicatedHostIdSets.add(_ctx.stringValue("RenewDedicatedHostsResponse.DedicatedHostIdSets["+ i +"]")); - } - renewDedicatedHostsResponse.setDedicatedHostIdSets(dedicatedHostIdSets); - - return renewDedicatedHostsResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ReviewDiagnosticReportResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ReviewDiagnosticReportResponseUnmarshaller.java deleted file mode 100644 index 49124ffd2c..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/ReviewDiagnosticReportResponseUnmarshaller.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.ReviewDiagnosticReportResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class ReviewDiagnosticReportResponseUnmarshaller { - - public static ReviewDiagnosticReportResponse unmarshall(ReviewDiagnosticReportResponse reviewDiagnosticReportResponse, UnmarshallerContext _ctx) { - - reviewDiagnosticReportResponse.setRequestId(_ctx.stringValue("ReviewDiagnosticReportResponse.RequestId")); - reviewDiagnosticReportResponse.setStatus(_ctx.stringValue("ReviewDiagnosticReportResponse.Status")); - - return reviewDiagnosticReportResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/SetInstanceAutoReleaseTimeResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/SetInstanceAutoReleaseTimeResponseUnmarshaller.java deleted file mode 100644 index 62b186c620..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/SetInstanceAutoReleaseTimeResponseUnmarshaller.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.SetInstanceAutoReleaseTimeResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class SetInstanceAutoReleaseTimeResponseUnmarshaller { - - public static SetInstanceAutoReleaseTimeResponse unmarshall(SetInstanceAutoReleaseTimeResponse setInstanceAutoReleaseTimeResponse, UnmarshallerContext _ctx) { - - setInstanceAutoReleaseTimeResponse.setRequestId(_ctx.stringValue("SetInstanceAutoReleaseTimeResponse.RequestId")); - - return setInstanceAutoReleaseTimeResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/StartNetworkInsightsAnalysisResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/StartNetworkInsightsAnalysisResponseUnmarshaller.java deleted file mode 100644 index 78ab011342..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/StartNetworkInsightsAnalysisResponseUnmarshaller.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.StartNetworkInsightsAnalysisResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class StartNetworkInsightsAnalysisResponseUnmarshaller { - - public static StartNetworkInsightsAnalysisResponse unmarshall(StartNetworkInsightsAnalysisResponse startNetworkInsightsAnalysisResponse, UnmarshallerContext _ctx) { - - startNetworkInsightsAnalysisResponse.setRequestId(_ctx.stringValue("StartNetworkInsightsAnalysisResponse.RequestId")); - startNetworkInsightsAnalysisResponse.setNetworkInsightsAnalysisId(_ctx.stringValue("StartNetworkInsightsAnalysisResponse.NetworkInsightsAnalysisId")); - - return startNetworkInsightsAnalysisResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/UnmountPEDiskResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/UnmountPEDiskResponseUnmarshaller.java deleted file mode 100644 index 3717bc22d7..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/UnmountPEDiskResponseUnmarshaller.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.UnmountPEDiskResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class UnmountPEDiskResponseUnmarshaller { - - public static UnmountPEDiskResponse unmarshall(UnmountPEDiskResponse unmountPEDiskResponse, UnmarshallerContext _ctx) { - - unmountPEDiskResponse.setRequestId(_ctx.stringValue("UnmountPEDiskResponse.RequestId")); - unmountPEDiskResponse.setStatus(_ctx.stringValue("UnmountPEDiskResponse.Status")); - - return unmountPEDiskResponse; - } -} \ No newline at end of file diff --git a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/UpdateServiceSettingsResponseUnmarshaller.java b/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/UpdateServiceSettingsResponseUnmarshaller.java deleted file mode 100644 index 6ee24c51a0..0000000000 --- a/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20160314/UpdateServiceSettingsResponseUnmarshaller.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.aliyuncs.ecs.transform.v20160314; - -import com.aliyuncs.ecs.model.v20160314.UpdateServiceSettingsResponse; -import com.aliyuncs.transform.UnmarshallerContext; - - -public class UpdateServiceSettingsResponseUnmarshaller { - - public static UpdateServiceSettingsResponse unmarshall(UpdateServiceSettingsResponse updateServiceSettingsResponse, UnmarshallerContext _ctx) { - - updateServiceSettingsResponse.setRequestId(_ctx.stringValue("UpdateServiceSettingsResponse.RequestId")); - - return updateServiceSettingsResponse; - } -} \ No newline at end of file