|
| 1 | +/* |
| 2 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 3 | + * you may not use this file except in compliance with the License. |
| 4 | + * You may obtain a copy of the License at |
| 5 | + * |
| 6 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | + * |
| 8 | + * Unless required by applicable law or agreed to in writing, software |
| 9 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | + * See the License for the specific language governing permissions and |
| 12 | + * limitations under the License. |
| 13 | + */ |
| 14 | + |
| 15 | +package com.aliyuncs.ecs.model.v20140526; |
| 16 | + |
| 17 | +import com.aliyuncs.RpcAcsRequest; |
| 18 | +import java.util.List; |
| 19 | +import com.aliyuncs.http.ProtocolType; |
| 20 | +import com.aliyuncs.http.MethodType; |
| 21 | +import com.aliyuncs.ecs.Endpoint; |
| 22 | + |
| 23 | +/** |
| 24 | + * @author auto create |
| 25 | + * @version |
| 26 | + */ |
| 27 | +public class DescribeLockedSnapshotsRequest extends RpcAcsRequest<DescribeLockedSnapshotsResponse> { |
| 28 | + |
| 29 | + |
| 30 | + private Long resourceOwnerId; |
| 31 | + |
| 32 | + private List<String> snapshotIdss; |
| 33 | + |
| 34 | + private String nextToken; |
| 35 | + |
| 36 | + private String lockStatus; |
| 37 | + |
| 38 | + private Boolean dryRun; |
| 39 | + |
| 40 | + private String resourceOwnerAccount; |
| 41 | + |
| 42 | + private String ownerAccount; |
| 43 | + |
| 44 | + private Long ownerId; |
| 45 | + |
| 46 | + private Integer maxResults; |
| 47 | + public DescribeLockedSnapshotsRequest() { |
| 48 | + super("Ecs", "2014-05-26", "DescribeLockedSnapshots", "ecs"); |
| 49 | + setProtocol(ProtocolType.HTTPS); |
| 50 | + setMethod(MethodType.POST); |
| 51 | + try { |
| 52 | + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); |
| 53 | + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); |
| 54 | + } catch (Exception e) {} |
| 55 | + } |
| 56 | + |
| 57 | + public Long getResourceOwnerId() { |
| 58 | + return this.resourceOwnerId; |
| 59 | + } |
| 60 | + |
| 61 | + public void setResourceOwnerId(Long resourceOwnerId) { |
| 62 | + this.resourceOwnerId = resourceOwnerId; |
| 63 | + if(resourceOwnerId != null){ |
| 64 | + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); |
| 65 | + } |
| 66 | + } |
| 67 | + |
| 68 | + public List<String> getSnapshotIdss() { |
| 69 | + return this.snapshotIdss; |
| 70 | + } |
| 71 | + |
| 72 | + public void setSnapshotIdss(List<String> snapshotIdss) { |
| 73 | + this.snapshotIdss = snapshotIdss; |
| 74 | + if (snapshotIdss != null) { |
| 75 | + for (int i = 0; i < snapshotIdss.size(); i++) { |
| 76 | + putQueryParameter("SnapshotIds." + (i + 1) , snapshotIdss.get(i)); |
| 77 | + } |
| 78 | + } |
| 79 | + } |
| 80 | + |
| 81 | + public String getNextToken() { |
| 82 | + return this.nextToken; |
| 83 | + } |
| 84 | + |
| 85 | + public void setNextToken(String nextToken) { |
| 86 | + this.nextToken = nextToken; |
| 87 | + if(nextToken != null){ |
| 88 | + putQueryParameter("NextToken", nextToken); |
| 89 | + } |
| 90 | + } |
| 91 | + |
| 92 | + public String getLockStatus() { |
| 93 | + return this.lockStatus; |
| 94 | + } |
| 95 | + |
| 96 | + public void setLockStatus(String lockStatus) { |
| 97 | + this.lockStatus = lockStatus; |
| 98 | + if(lockStatus != null){ |
| 99 | + putQueryParameter("LockStatus", lockStatus); |
| 100 | + } |
| 101 | + } |
| 102 | + |
| 103 | + public Boolean getDryRun() { |
| 104 | + return this.dryRun; |
| 105 | + } |
| 106 | + |
| 107 | + public void setDryRun(Boolean dryRun) { |
| 108 | + this.dryRun = dryRun; |
| 109 | + if(dryRun != null){ |
| 110 | + putQueryParameter("DryRun", dryRun.toString()); |
| 111 | + } |
| 112 | + } |
| 113 | + |
| 114 | + public String getResourceOwnerAccount() { |
| 115 | + return this.resourceOwnerAccount; |
| 116 | + } |
| 117 | + |
| 118 | + public void setResourceOwnerAccount(String resourceOwnerAccount) { |
| 119 | + this.resourceOwnerAccount = resourceOwnerAccount; |
| 120 | + if(resourceOwnerAccount != null){ |
| 121 | + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); |
| 122 | + } |
| 123 | + } |
| 124 | + |
| 125 | + public String getOwnerAccount() { |
| 126 | + return this.ownerAccount; |
| 127 | + } |
| 128 | + |
| 129 | + public void setOwnerAccount(String ownerAccount) { |
| 130 | + this.ownerAccount = ownerAccount; |
| 131 | + if(ownerAccount != null){ |
| 132 | + putQueryParameter("OwnerAccount", ownerAccount); |
| 133 | + } |
| 134 | + } |
| 135 | + |
| 136 | + public Long getOwnerId() { |
| 137 | + return this.ownerId; |
| 138 | + } |
| 139 | + |
| 140 | + public void setOwnerId(Long ownerId) { |
| 141 | + this.ownerId = ownerId; |
| 142 | + if(ownerId != null){ |
| 143 | + putQueryParameter("OwnerId", ownerId.toString()); |
| 144 | + } |
| 145 | + } |
| 146 | + |
| 147 | + public Integer getMaxResults() { |
| 148 | + return this.maxResults; |
| 149 | + } |
| 150 | + |
| 151 | + public void setMaxResults(Integer maxResults) { |
| 152 | + this.maxResults = maxResults; |
| 153 | + if(maxResults != null){ |
| 154 | + putQueryParameter("MaxResults", maxResults.toString()); |
| 155 | + } |
| 156 | + } |
| 157 | + |
| 158 | + @Override |
| 159 | + public Class<DescribeLockedSnapshotsResponse> getResponseClass() { |
| 160 | + return DescribeLockedSnapshotsResponse.class; |
| 161 | + } |
| 162 | + |
| 163 | +} |
0 commit comments