|
| 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.polardb.model.v20170801; |
| 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.polardb.Endpoint; |
| 22 | + |
| 23 | +/** |
| 24 | + * @author auto create |
| 25 | + * @version |
| 26 | + */ |
| 27 | +public class AddPolarFsQuotaRequest extends RpcAcsRequest<AddPolarFsQuotaResponse> { |
| 28 | + |
| 29 | + |
| 30 | + private List<Quotas> quotass; |
| 31 | + |
| 32 | + private String dBClusterId; |
| 33 | + |
| 34 | + private String polarFsInstanceId; |
| 35 | + public AddPolarFsQuotaRequest() { |
| 36 | + super("polardb", "2017-08-01", "AddPolarFsQuota", "polardb"); |
| 37 | + setProtocol(ProtocolType.HTTPS); |
| 38 | + setMethod(MethodType.POST); |
| 39 | + try { |
| 40 | + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); |
| 41 | + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); |
| 42 | + } catch (Exception e) {} |
| 43 | + } |
| 44 | + |
| 45 | + public List<Quotas> getQuotass() { |
| 46 | + return this.quotass; |
| 47 | + } |
| 48 | + |
| 49 | + public void setQuotass(List<Quotas> quotass) { |
| 50 | + this.quotass = quotass; |
| 51 | + if (quotass != null) { |
| 52 | + for (int depth1 = 0; depth1 < quotass.size(); depth1++) { |
| 53 | + putQueryParameter("Quotas." + (depth1 + 1) + ".Include" , quotass.get(depth1).getInclude()); |
| 54 | + putQueryParameter("Quotas." + (depth1 + 1) + ".ChangeTTL" , quotass.get(depth1).getChangeTTL()); |
| 55 | + putQueryParameter("Quotas." + (depth1 + 1) + ".SizeLimit" , quotass.get(depth1).getSizeLimit()); |
| 56 | + putQueryParameter("Quotas." + (depth1 + 1) + ".AccessTTL" , quotass.get(depth1).getAccessTTL()); |
| 57 | + putQueryParameter("Quotas." + (depth1 + 1) + ".Name" , quotass.get(depth1).getName()); |
| 58 | + putQueryParameter("Quotas." + (depth1 + 1) + ".Description" , quotass.get(depth1).getDescription()); |
| 59 | + putQueryParameter("Quotas." + (depth1 + 1) + ".Exclude" , quotass.get(depth1).getExclude()); |
| 60 | + putQueryParameter("Quotas." + (depth1 + 1) + ".Priority" , quotass.get(depth1).getPriority()); |
| 61 | + putQueryParameter("Quotas." + (depth1 + 1) + ".Enabled" , quotass.get(depth1).getEnabled()); |
| 62 | + putQueryParameter("Quotas." + (depth1 + 1) + ".FileCountLimit" , quotass.get(depth1).getFileCountLimit()); |
| 63 | + } |
| 64 | + } |
| 65 | + } |
| 66 | + |
| 67 | + public String getDBClusterId() { |
| 68 | + return this.dBClusterId; |
| 69 | + } |
| 70 | + |
| 71 | + public void setDBClusterId(String dBClusterId) { |
| 72 | + this.dBClusterId = dBClusterId; |
| 73 | + if(dBClusterId != null){ |
| 74 | + putQueryParameter("DBClusterId", dBClusterId); |
| 75 | + } |
| 76 | + } |
| 77 | + |
| 78 | + public String getPolarFsInstanceId() { |
| 79 | + return this.polarFsInstanceId; |
| 80 | + } |
| 81 | + |
| 82 | + public void setPolarFsInstanceId(String polarFsInstanceId) { |
| 83 | + this.polarFsInstanceId = polarFsInstanceId; |
| 84 | + if(polarFsInstanceId != null){ |
| 85 | + putQueryParameter("PolarFsInstanceId", polarFsInstanceId); |
| 86 | + } |
| 87 | + } |
| 88 | + |
| 89 | + public static class Quotas { |
| 90 | + |
| 91 | + private String include; |
| 92 | + |
| 93 | + private Long changeTTL; |
| 94 | + |
| 95 | + private Long sizeLimit; |
| 96 | + |
| 97 | + private Long accessTTL; |
| 98 | + |
| 99 | + private String name; |
| 100 | + |
| 101 | + private String description; |
| 102 | + |
| 103 | + private String exclude; |
| 104 | + |
| 105 | + private Integer priority; |
| 106 | + |
| 107 | + private Boolean enabled; |
| 108 | + |
| 109 | + private Long fileCountLimit; |
| 110 | + |
| 111 | + public String getInclude() { |
| 112 | + return this.include; |
| 113 | + } |
| 114 | + |
| 115 | + public void setInclude(String include) { |
| 116 | + this.include = include; |
| 117 | + } |
| 118 | + |
| 119 | + public Long getChangeTTL() { |
| 120 | + return this.changeTTL; |
| 121 | + } |
| 122 | + |
| 123 | + public void setChangeTTL(Long changeTTL) { |
| 124 | + this.changeTTL = changeTTL; |
| 125 | + } |
| 126 | + |
| 127 | + public Long getSizeLimit() { |
| 128 | + return this.sizeLimit; |
| 129 | + } |
| 130 | + |
| 131 | + public void setSizeLimit(Long sizeLimit) { |
| 132 | + this.sizeLimit = sizeLimit; |
| 133 | + } |
| 134 | + |
| 135 | + public Long getAccessTTL() { |
| 136 | + return this.accessTTL; |
| 137 | + } |
| 138 | + |
| 139 | + public void setAccessTTL(Long accessTTL) { |
| 140 | + this.accessTTL = accessTTL; |
| 141 | + } |
| 142 | + |
| 143 | + public String getName() { |
| 144 | + return this.name; |
| 145 | + } |
| 146 | + |
| 147 | + public void setName(String name) { |
| 148 | + this.name = name; |
| 149 | + } |
| 150 | + |
| 151 | + public String getDescription() { |
| 152 | + return this.description; |
| 153 | + } |
| 154 | + |
| 155 | + public void setDescription(String description) { |
| 156 | + this.description = description; |
| 157 | + } |
| 158 | + |
| 159 | + public String getExclude() { |
| 160 | + return this.exclude; |
| 161 | + } |
| 162 | + |
| 163 | + public void setExclude(String exclude) { |
| 164 | + this.exclude = exclude; |
| 165 | + } |
| 166 | + |
| 167 | + public Integer getPriority() { |
| 168 | + return this.priority; |
| 169 | + } |
| 170 | + |
| 171 | + public void setPriority(Integer priority) { |
| 172 | + this.priority = priority; |
| 173 | + } |
| 174 | + |
| 175 | + public Boolean getEnabled() { |
| 176 | + return this.enabled; |
| 177 | + } |
| 178 | + |
| 179 | + public void setEnabled(Boolean enabled) { |
| 180 | + this.enabled = enabled; |
| 181 | + } |
| 182 | + |
| 183 | + public Long getFileCountLimit() { |
| 184 | + return this.fileCountLimit; |
| 185 | + } |
| 186 | + |
| 187 | + public void setFileCountLimit(Long fileCountLimit) { |
| 188 | + this.fileCountLimit = fileCountLimit; |
| 189 | + } |
| 190 | + } |
| 191 | + |
| 192 | + @Override |
| 193 | + public Class<AddPolarFsQuotaResponse> getResponseClass() { |
| 194 | + return AddPolarFsQuotaResponse.class; |
| 195 | + } |
| 196 | + |
| 197 | +} |
0 commit comments