|
| 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.oceanbasepro.model.v20190901; |
| 16 | + |
| 17 | +import com.aliyuncs.RpcAcsRequest; |
| 18 | +import com.aliyuncs.http.ProtocolType; |
| 19 | +import com.aliyuncs.http.MethodType; |
| 20 | +import com.aliyuncs.oceanbasepro.Endpoint; |
| 21 | + |
| 22 | +/** |
| 23 | + * @author auto create |
| 24 | + * @version |
| 25 | + */ |
| 26 | +public class CreateOasOutlineTaskRequest extends RpcAcsRequest<CreateOasOutlineTaskResponse> { |
| 27 | + |
| 28 | + |
| 29 | + private String startTime; |
| 30 | + |
| 31 | + private String uId; |
| 32 | + |
| 33 | + private Boolean dynamicSql; |
| 34 | + |
| 35 | + private String sqlText; |
| 36 | + |
| 37 | + private Boolean bySqlId; |
| 38 | + |
| 39 | + private Integer maxConcurrent; |
| 40 | + |
| 41 | + private String tenantId; |
| 42 | + |
| 43 | + private String statementId; |
| 44 | + |
| 45 | + private String tableName; |
| 46 | + |
| 47 | + private String sqlId; |
| 48 | + |
| 49 | + private String endTime; |
| 50 | + |
| 51 | + private String instanceId; |
| 52 | + |
| 53 | + private String planData; |
| 54 | + |
| 55 | + private String indexName; |
| 56 | + |
| 57 | + private String databaseName; |
| 58 | + |
| 59 | + private Boolean isConcurrentLimit; |
| 60 | + public CreateOasOutlineTaskRequest() { |
| 61 | + super("OceanBasePro", "2019-09-01", "CreateOasOutlineTask", "oceanbase"); |
| 62 | + setProtocol(ProtocolType.HTTPS); |
| 63 | + setMethod(MethodType.POST); |
| 64 | + try { |
| 65 | + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); |
| 66 | + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); |
| 67 | + } catch (Exception e) {} |
| 68 | + } |
| 69 | + |
| 70 | + public String getStartTime() { |
| 71 | + return this.startTime; |
| 72 | + } |
| 73 | + |
| 74 | + public void setStartTime(String startTime) { |
| 75 | + this.startTime = startTime; |
| 76 | + if(startTime != null){ |
| 77 | + putBodyParameter("StartTime", startTime); |
| 78 | + } |
| 79 | + } |
| 80 | + |
| 81 | + public String getUId() { |
| 82 | + return this.uId; |
| 83 | + } |
| 84 | + |
| 85 | + public void setUId(String uId) { |
| 86 | + this.uId = uId; |
| 87 | + if(uId != null){ |
| 88 | + putBodyParameter("UId", uId); |
| 89 | + } |
| 90 | + } |
| 91 | + |
| 92 | + public Boolean getDynamicSql() { |
| 93 | + return this.dynamicSql; |
| 94 | + } |
| 95 | + |
| 96 | + public void setDynamicSql(Boolean dynamicSql) { |
| 97 | + this.dynamicSql = dynamicSql; |
| 98 | + if(dynamicSql != null){ |
| 99 | + putBodyParameter("DynamicSql", dynamicSql.toString()); |
| 100 | + } |
| 101 | + } |
| 102 | + |
| 103 | + public String getSqlText() { |
| 104 | + return this.sqlText; |
| 105 | + } |
| 106 | + |
| 107 | + public void setSqlText(String sqlText) { |
| 108 | + this.sqlText = sqlText; |
| 109 | + if(sqlText != null){ |
| 110 | + putBodyParameter("SqlText", sqlText); |
| 111 | + } |
| 112 | + } |
| 113 | + |
| 114 | + public Boolean getBySqlId() { |
| 115 | + return this.bySqlId; |
| 116 | + } |
| 117 | + |
| 118 | + public void setBySqlId(Boolean bySqlId) { |
| 119 | + this.bySqlId = bySqlId; |
| 120 | + if(bySqlId != null){ |
| 121 | + putBodyParameter("BySqlId", bySqlId.toString()); |
| 122 | + } |
| 123 | + } |
| 124 | + |
| 125 | + public Integer getMaxConcurrent() { |
| 126 | + return this.maxConcurrent; |
| 127 | + } |
| 128 | + |
| 129 | + public void setMaxConcurrent(Integer maxConcurrent) { |
| 130 | + this.maxConcurrent = maxConcurrent; |
| 131 | + if(maxConcurrent != null){ |
| 132 | + putBodyParameter("MaxConcurrent", maxConcurrent.toString()); |
| 133 | + } |
| 134 | + } |
| 135 | + |
| 136 | + public String getTenantId() { |
| 137 | + return this.tenantId; |
| 138 | + } |
| 139 | + |
| 140 | + public void setTenantId(String tenantId) { |
| 141 | + this.tenantId = tenantId; |
| 142 | + if(tenantId != null){ |
| 143 | + putBodyParameter("TenantId", tenantId); |
| 144 | + } |
| 145 | + } |
| 146 | + |
| 147 | + public String getStatementId() { |
| 148 | + return this.statementId; |
| 149 | + } |
| 150 | + |
| 151 | + public void setStatementId(String statementId) { |
| 152 | + this.statementId = statementId; |
| 153 | + if(statementId != null){ |
| 154 | + putBodyParameter("StatementId", statementId); |
| 155 | + } |
| 156 | + } |
| 157 | + |
| 158 | + public String getTableName() { |
| 159 | + return this.tableName; |
| 160 | + } |
| 161 | + |
| 162 | + public void setTableName(String tableName) { |
| 163 | + this.tableName = tableName; |
| 164 | + if(tableName != null){ |
| 165 | + putBodyParameter("TableName", tableName); |
| 166 | + } |
| 167 | + } |
| 168 | + |
| 169 | + public String getSqlId() { |
| 170 | + return this.sqlId; |
| 171 | + } |
| 172 | + |
| 173 | + public void setSqlId(String sqlId) { |
| 174 | + this.sqlId = sqlId; |
| 175 | + if(sqlId != null){ |
| 176 | + putBodyParameter("SqlId", sqlId); |
| 177 | + } |
| 178 | + } |
| 179 | + |
| 180 | + public String getEndTime() { |
| 181 | + return this.endTime; |
| 182 | + } |
| 183 | + |
| 184 | + public void setEndTime(String endTime) { |
| 185 | + this.endTime = endTime; |
| 186 | + if(endTime != null){ |
| 187 | + putBodyParameter("EndTime", endTime); |
| 188 | + } |
| 189 | + } |
| 190 | + |
| 191 | + public String getInstanceId() { |
| 192 | + return this.instanceId; |
| 193 | + } |
| 194 | + |
| 195 | + public void setInstanceId(String instanceId) { |
| 196 | + this.instanceId = instanceId; |
| 197 | + if(instanceId != null){ |
| 198 | + putBodyParameter("InstanceId", instanceId); |
| 199 | + } |
| 200 | + } |
| 201 | + |
| 202 | + public String getPlanData() { |
| 203 | + return this.planData; |
| 204 | + } |
| 205 | + |
| 206 | + public void setPlanData(String planData) { |
| 207 | + this.planData = planData; |
| 208 | + if(planData != null){ |
| 209 | + putBodyParameter("PlanData", planData); |
| 210 | + } |
| 211 | + } |
| 212 | + |
| 213 | + public String getIndexName() { |
| 214 | + return this.indexName; |
| 215 | + } |
| 216 | + |
| 217 | + public void setIndexName(String indexName) { |
| 218 | + this.indexName = indexName; |
| 219 | + if(indexName != null){ |
| 220 | + putBodyParameter("IndexName", indexName); |
| 221 | + } |
| 222 | + } |
| 223 | + |
| 224 | + public String getDatabaseName() { |
| 225 | + return this.databaseName; |
| 226 | + } |
| 227 | + |
| 228 | + public void setDatabaseName(String databaseName) { |
| 229 | + this.databaseName = databaseName; |
| 230 | + if(databaseName != null){ |
| 231 | + putBodyParameter("DatabaseName", databaseName); |
| 232 | + } |
| 233 | + } |
| 234 | + |
| 235 | + public Boolean getIsConcurrentLimit() { |
| 236 | + return this.isConcurrentLimit; |
| 237 | + } |
| 238 | + |
| 239 | + public void setIsConcurrentLimit(Boolean isConcurrentLimit) { |
| 240 | + this.isConcurrentLimit = isConcurrentLimit; |
| 241 | + if(isConcurrentLimit != null){ |
| 242 | + putBodyParameter("IsConcurrentLimit", isConcurrentLimit.toString()); |
| 243 | + } |
| 244 | + } |
| 245 | + |
| 246 | + @Override |
| 247 | + public Class<CreateOasOutlineTaskResponse> getResponseClass() { |
| 248 | + return CreateOasOutlineTaskResponse.class; |
| 249 | + } |
| 250 | + |
| 251 | +} |
0 commit comments