index
int64 | repo_id
string | file_path
string | content
string |
|---|---|---|---|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeActiveOperationTasksResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeActiveOperationTasksResponse;
import com.aliyuncs.adb.model.v20190315.DescribeActiveOperationTasksResponse.ItemsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeActiveOperationTasksResponseUnmarshaller {
public static DescribeActiveOperationTasksResponse unmarshall(DescribeActiveOperationTasksResponse describeActiveOperationTasksResponse, UnmarshallerContext _ctx) {
describeActiveOperationTasksResponse.setRequestId(_ctx.stringValue("DescribeActiveOperationTasksResponse.RequestId"));
describeActiveOperationTasksResponse.setPageNumber(_ctx.integerValue("DescribeActiveOperationTasksResponse.PageNumber"));
describeActiveOperationTasksResponse.setPageSize(_ctx.integerValue("DescribeActiveOperationTasksResponse.PageSize"));
describeActiveOperationTasksResponse.setTotalRecordCount(_ctx.integerValue("DescribeActiveOperationTasksResponse.TotalRecordCount"));
List<ItemsItem> items = new ArrayList<ItemsItem>();
for (int i = 0; i < _ctx.lengthValue("DescribeActiveOperationTasksResponse.Items.Length"); i++) {
ItemsItem itemsItem = new ItemsItem();
itemsItem.setStatus(_ctx.integerValue("DescribeActiveOperationTasksResponse.Items["+ i +"].Status"));
itemsItem.setChangeLevelEn(_ctx.stringValue("DescribeActiveOperationTasksResponse.Items["+ i +"].ChangeLevelEn"));
itemsItem.setTaskType(_ctx.stringValue("DescribeActiveOperationTasksResponse.Items["+ i +"].TaskType"));
itemsItem.setInsName(_ctx.stringValue("DescribeActiveOperationTasksResponse.Items["+ i +"].InsName"));
itemsItem.setRegion(_ctx.stringValue("DescribeActiveOperationTasksResponse.Items["+ i +"].Region"));
itemsItem.setImpactZh(_ctx.stringValue("DescribeActiveOperationTasksResponse.Items["+ i +"].ImpactZh"));
itemsItem.setCreatedTime(_ctx.stringValue("DescribeActiveOperationTasksResponse.Items["+ i +"].CreatedTime"));
itemsItem.setSwitchTime(_ctx.stringValue("DescribeActiveOperationTasksResponse.Items["+ i +"].SwitchTime"));
itemsItem.setChangeLevelZh(_ctx.stringValue("DescribeActiveOperationTasksResponse.Items["+ i +"].ChangeLevelZh"));
itemsItem.setDeadline(_ctx.stringValue("DescribeActiveOperationTasksResponse.Items["+ i +"].Deadline"));
itemsItem.setPrepareInterval(_ctx.stringValue("DescribeActiveOperationTasksResponse.Items["+ i +"].PrepareInterval"));
itemsItem.setImpact(_ctx.stringValue("DescribeActiveOperationTasksResponse.Items["+ i +"].Impact"));
itemsItem.setTaskTypeZh(_ctx.stringValue("DescribeActiveOperationTasksResponse.Items["+ i +"].TaskTypeZh"));
itemsItem.setCurrentAVZ(_ctx.stringValue("DescribeActiveOperationTasksResponse.Items["+ i +"].CurrentAVZ"));
itemsItem.setAllowChange(_ctx.stringValue("DescribeActiveOperationTasksResponse.Items["+ i +"].AllowChange"));
itemsItem.setDbVersion(_ctx.stringValue("DescribeActiveOperationTasksResponse.Items["+ i +"].DbVersion"));
itemsItem.setImpactEn(_ctx.stringValue("DescribeActiveOperationTasksResponse.Items["+ i +"].ImpactEn"));
itemsItem.setInsComment(_ctx.stringValue("DescribeActiveOperationTasksResponse.Items["+ i +"].InsComment"));
itemsItem.setStartTime(_ctx.stringValue("DescribeActiveOperationTasksResponse.Items["+ i +"].StartTime"));
itemsItem.setModifiedTime(_ctx.stringValue("DescribeActiveOperationTasksResponse.Items["+ i +"].ModifiedTime"));
itemsItem.setAllowCancel(_ctx.stringValue("DescribeActiveOperationTasksResponse.Items["+ i +"].AllowCancel"));
itemsItem.setDbType(_ctx.stringValue("DescribeActiveOperationTasksResponse.Items["+ i +"].DbType"));
itemsItem.setChangeLevel(_ctx.stringValue("DescribeActiveOperationTasksResponse.Items["+ i +"].ChangeLevel"));
itemsItem.setTaskTypeEn(_ctx.stringValue("DescribeActiveOperationTasksResponse.Items["+ i +"].TaskTypeEn"));
itemsItem.setResultInfo(_ctx.stringValue("DescribeActiveOperationTasksResponse.Items["+ i +"].ResultInfo"));
itemsItem.setId(_ctx.integerValue("DescribeActiveOperationTasksResponse.Items["+ i +"].Id"));
itemsItem.setTaskParams(_ctx.stringValue("DescribeActiveOperationTasksResponse.Items["+ i +"].TaskParams"));
List<String> subInsNames = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("DescribeActiveOperationTasksResponse.Items["+ i +"].SubInsNames.Length"); j++) {
subInsNames.add(_ctx.stringValue("DescribeActiveOperationTasksResponse.Items["+ i +"].SubInsNames["+ j +"]"));
}
itemsItem.setSubInsNames(subInsNames);
items.add(itemsItem);
}
describeActiveOperationTasksResponse.setItems(items);
return describeActiveOperationTasksResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeAdviceServiceEnabledResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import com.aliyuncs.adb.model.v20190315.DescribeAdviceServiceEnabledResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeAdviceServiceEnabledResponseUnmarshaller {
public static DescribeAdviceServiceEnabledResponse unmarshall(DescribeAdviceServiceEnabledResponse describeAdviceServiceEnabledResponse, UnmarshallerContext _ctx) {
describeAdviceServiceEnabledResponse.setRequestId(_ctx.stringValue("DescribeAdviceServiceEnabledResponse.RequestId"));
describeAdviceServiceEnabledResponse.setMessage(_ctx.stringValue("DescribeAdviceServiceEnabledResponse.Message"));
describeAdviceServiceEnabledResponse.setResult(_ctx.booleanValue("DescribeAdviceServiceEnabledResponse.Result"));
return describeAdviceServiceEnabledResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeAllAccountsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeAllAccountsResponse;
import com.aliyuncs.adb.model.v20190315.DescribeAllAccountsResponse.AccountInfo;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeAllAccountsResponseUnmarshaller {
public static DescribeAllAccountsResponse unmarshall(DescribeAllAccountsResponse describeAllAccountsResponse, UnmarshallerContext _ctx) {
describeAllAccountsResponse.setRequestId(_ctx.stringValue("DescribeAllAccountsResponse.RequestId"));
List<AccountInfo> accountList = new ArrayList<AccountInfo>();
for (int i = 0; i < _ctx.lengthValue("DescribeAllAccountsResponse.AccountList.Length"); i++) {
AccountInfo accountInfo = new AccountInfo();
accountInfo.setUser(_ctx.stringValue("DescribeAllAccountsResponse.AccountList["+ i +"].User"));
accountList.add(accountInfo);
}
describeAllAccountsResponse.setAccountList(accountList);
return describeAllAccountsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeAllDataSourceResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeAllDataSourceResponse;
import com.aliyuncs.adb.model.v20190315.DescribeAllDataSourceResponse.Column;
import com.aliyuncs.adb.model.v20190315.DescribeAllDataSourceResponse.Schema;
import com.aliyuncs.adb.model.v20190315.DescribeAllDataSourceResponse.Table;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeAllDataSourceResponseUnmarshaller {
public static DescribeAllDataSourceResponse unmarshall(DescribeAllDataSourceResponse describeAllDataSourceResponse, UnmarshallerContext _ctx) {
describeAllDataSourceResponse.setRequestId(_ctx.stringValue("DescribeAllDataSourceResponse.RequestId"));
List<Table> tables = new ArrayList<Table>();
for (int i = 0; i < _ctx.lengthValue("DescribeAllDataSourceResponse.Tables.Length"); i++) {
Table table = new Table();
table.setTableName(_ctx.stringValue("DescribeAllDataSourceResponse.Tables["+ i +"].TableName"));
table.setDBClusterId(_ctx.stringValue("DescribeAllDataSourceResponse.Tables["+ i +"].DBClusterId"));
table.setSchemaName(_ctx.stringValue("DescribeAllDataSourceResponse.Tables["+ i +"].SchemaName"));
tables.add(table);
}
describeAllDataSourceResponse.setTables(tables);
List<Column> columns = new ArrayList<Column>();
for (int i = 0; i < _ctx.lengthValue("DescribeAllDataSourceResponse.Columns.Length"); i++) {
Column column = new Column();
column.setType(_ctx.stringValue("DescribeAllDataSourceResponse.Columns["+ i +"].Type"));
column.setColumnName(_ctx.stringValue("DescribeAllDataSourceResponse.Columns["+ i +"].ColumnName"));
column.setTableName(_ctx.stringValue("DescribeAllDataSourceResponse.Columns["+ i +"].TableName"));
column.setAutoIncrementColumn(_ctx.booleanValue("DescribeAllDataSourceResponse.Columns["+ i +"].AutoIncrementColumn"));
column.setDBClusterId(_ctx.stringValue("DescribeAllDataSourceResponse.Columns["+ i +"].DBClusterId"));
column.setPrimaryKey(_ctx.booleanValue("DescribeAllDataSourceResponse.Columns["+ i +"].PrimaryKey"));
column.setSchemaName(_ctx.stringValue("DescribeAllDataSourceResponse.Columns["+ i +"].SchemaName"));
columns.add(column);
}
describeAllDataSourceResponse.setColumns(columns);
List<Schema> schemas = new ArrayList<Schema>();
for (int i = 0; i < _ctx.lengthValue("DescribeAllDataSourceResponse.Schemas.Length"); i++) {
Schema schema = new Schema();
schema.setDBClusterId(_ctx.stringValue("DescribeAllDataSourceResponse.Schemas["+ i +"].DBClusterId"));
schema.setSchemaName(_ctx.stringValue("DescribeAllDataSourceResponse.Schemas["+ i +"].SchemaName"));
schemas.add(schema);
}
describeAllDataSourceResponse.setSchemas(schemas);
return describeAllDataSourceResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeAppliedAdvicesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeAppliedAdvicesResponse;
import com.aliyuncs.adb.model.v20190315.DescribeAppliedAdvicesResponse.ItemsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeAppliedAdvicesResponseUnmarshaller {
public static DescribeAppliedAdvicesResponse unmarshall(DescribeAppliedAdvicesResponse describeAppliedAdvicesResponse, UnmarshallerContext _ctx) {
describeAppliedAdvicesResponse.setRequestId(_ctx.stringValue("DescribeAppliedAdvicesResponse.RequestId"));
describeAppliedAdvicesResponse.setPageNumber(_ctx.longValue("DescribeAppliedAdvicesResponse.PageNumber"));
describeAppliedAdvicesResponse.setPageSize(_ctx.longValue("DescribeAppliedAdvicesResponse.PageSize"));
describeAppliedAdvicesResponse.setTotalCount(_ctx.longValue("DescribeAppliedAdvicesResponse.TotalCount"));
List<String> schemaTableNames = new ArrayList<String>();
for (int i = 0; i < _ctx.lengthValue("DescribeAppliedAdvicesResponse.SchemaTableNames.Length"); i++) {
schemaTableNames.add(_ctx.stringValue("DescribeAppliedAdvicesResponse.SchemaTableNames["+ i +"]"));
}
describeAppliedAdvicesResponse.setSchemaTableNames(schemaTableNames);
List<ItemsItem> items = new ArrayList<ItemsItem>();
for (int i = 0; i < _ctx.lengthValue("DescribeAppliedAdvicesResponse.Items.Length"); i++) {
ItemsItem itemsItem = new ItemsItem();
itemsItem.setAdviceId(_ctx.stringValue("DescribeAppliedAdvicesResponse.Items["+ i +"].AdviceId"));
itemsItem.setSubmitTime(_ctx.stringValue("DescribeAppliedAdvicesResponse.Items["+ i +"].SubmitTime"));
itemsItem.setSubmitStatus(_ctx.stringValue("DescribeAppliedAdvicesResponse.Items["+ i +"].SubmitStatus"));
itemsItem.setSQL(_ctx.stringValue("DescribeAppliedAdvicesResponse.Items["+ i +"].SQL"));
itemsItem.setRollbackSQL(_ctx.stringValue("DescribeAppliedAdvicesResponse.Items["+ i +"].RollbackSQL"));
itemsItem.setJobStatus(_ctx.stringValue("DescribeAppliedAdvicesResponse.Items["+ i +"].JobStatus"));
itemsItem.setBenefit(_ctx.stringValue("DescribeAppliedAdvicesResponse.Items["+ i +"].Benefit"));
itemsItem.setBuildSQL(_ctx.stringValue("DescribeAppliedAdvicesResponse.Items["+ i +"].BuildSQL"));
itemsItem.setTotalCount(_ctx.longValue("DescribeAppliedAdvicesResponse.Items["+ i +"].TotalCount"));
itemsItem.setPageSize(_ctx.longValue("DescribeAppliedAdvicesResponse.Items["+ i +"].PageSize"));
itemsItem.setPageNumber(_ctx.longValue("DescribeAppliedAdvicesResponse.Items["+ i +"].PageNumber"));
itemsItem.setSchemaName(_ctx.stringValue("DescribeAppliedAdvicesResponse.Items["+ i +"].SchemaName"));
itemsItem.setTableName(_ctx.stringValue("DescribeAppliedAdvicesResponse.Items["+ i +"].TableName"));
items.add(itemsItem);
}
describeAppliedAdvicesResponse.setItems(items);
return describeAppliedAdvicesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeAuditLogConfigResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import com.aliyuncs.adb.model.v20190315.DescribeAuditLogConfigResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeAuditLogConfigResponseUnmarshaller {
public static DescribeAuditLogConfigResponse unmarshall(DescribeAuditLogConfigResponse describeAuditLogConfigResponse, UnmarshallerContext _ctx) {
describeAuditLogConfigResponse.setRequestId(_ctx.stringValue("DescribeAuditLogConfigResponse.RequestId"));
describeAuditLogConfigResponse.setAuditLogStatus(_ctx.stringValue("DescribeAuditLogConfigResponse.AuditLogStatus"));
describeAuditLogConfigResponse.setDBClusterId(_ctx.stringValue("DescribeAuditLogConfigResponse.DBClusterId"));
describeAuditLogConfigResponse.setAccessDeniedDetail(_ctx.stringValue("DescribeAuditLogConfigResponse.AccessDeniedDetail"));
return describeAuditLogConfigResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeAuditLogRecordsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeAuditLogRecordsResponse;
import com.aliyuncs.adb.model.v20190315.DescribeAuditLogRecordsResponse.SlowLogRecord;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeAuditLogRecordsResponseUnmarshaller {
public static DescribeAuditLogRecordsResponse unmarshall(DescribeAuditLogRecordsResponse describeAuditLogRecordsResponse, UnmarshallerContext _ctx) {
describeAuditLogRecordsResponse.setRequestId(_ctx.stringValue("DescribeAuditLogRecordsResponse.RequestId"));
describeAuditLogRecordsResponse.setTotalCount(_ctx.stringValue("DescribeAuditLogRecordsResponse.TotalCount"));
describeAuditLogRecordsResponse.setPageSize(_ctx.stringValue("DescribeAuditLogRecordsResponse.PageSize"));
describeAuditLogRecordsResponse.setPageNumber(_ctx.stringValue("DescribeAuditLogRecordsResponse.PageNumber"));
describeAuditLogRecordsResponse.setDBClusterId(_ctx.stringValue("DescribeAuditLogRecordsResponse.DBClusterId"));
List<SlowLogRecord> items = new ArrayList<SlowLogRecord>();
for (int i = 0; i < _ctx.lengthValue("DescribeAuditLogRecordsResponse.Items.Length"); i++) {
SlowLogRecord slowLogRecord = new SlowLogRecord();
slowLogRecord.setHostAddress(_ctx.stringValue("DescribeAuditLogRecordsResponse.Items["+ i +"].HostAddress"));
slowLogRecord.setSucceed(_ctx.stringValue("DescribeAuditLogRecordsResponse.Items["+ i +"].Succeed"));
slowLogRecord.setSQLText(_ctx.stringValue("DescribeAuditLogRecordsResponse.Items["+ i +"].SQLText"));
slowLogRecord.setTotalTime(_ctx.stringValue("DescribeAuditLogRecordsResponse.Items["+ i +"].TotalTime"));
slowLogRecord.setConnId(_ctx.stringValue("DescribeAuditLogRecordsResponse.Items["+ i +"].ConnId"));
slowLogRecord.setDBName(_ctx.stringValue("DescribeAuditLogRecordsResponse.Items["+ i +"].DBName"));
slowLogRecord.setSQLType(_ctx.stringValue("DescribeAuditLogRecordsResponse.Items["+ i +"].SQLType"));
slowLogRecord.setExecuteTime(_ctx.stringValue("DescribeAuditLogRecordsResponse.Items["+ i +"].ExecuteTime"));
slowLogRecord.setProcessID(_ctx.stringValue("DescribeAuditLogRecordsResponse.Items["+ i +"].ProcessID"));
slowLogRecord.setUser(_ctx.stringValue("DescribeAuditLogRecordsResponse.Items["+ i +"].User"));
items.add(slowLogRecord);
}
describeAuditLogRecordsResponse.setItems(items);
return describeAuditLogRecordsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeAutoRenewAttributeResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeAutoRenewAttributeResponse;
import com.aliyuncs.adb.model.v20190315.DescribeAutoRenewAttributeResponse.AutoRenewAttribute;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeAutoRenewAttributeResponseUnmarshaller {
public static DescribeAutoRenewAttributeResponse unmarshall(DescribeAutoRenewAttributeResponse describeAutoRenewAttributeResponse, UnmarshallerContext _ctx) {
describeAutoRenewAttributeResponse.setRequestId(_ctx.stringValue("DescribeAutoRenewAttributeResponse.RequestId"));
describeAutoRenewAttributeResponse.setTotalRecordCount(_ctx.integerValue("DescribeAutoRenewAttributeResponse.TotalRecordCount"));
describeAutoRenewAttributeResponse.setPageRecordCount(_ctx.integerValue("DescribeAutoRenewAttributeResponse.PageRecordCount"));
describeAutoRenewAttributeResponse.setPageNumber(_ctx.integerValue("DescribeAutoRenewAttributeResponse.PageNumber"));
List<AutoRenewAttribute> items = new ArrayList<AutoRenewAttribute>();
for (int i = 0; i < _ctx.lengthValue("DescribeAutoRenewAttributeResponse.Items.Length"); i++) {
AutoRenewAttribute autoRenewAttribute = new AutoRenewAttribute();
autoRenewAttribute.setDBClusterId(_ctx.stringValue("DescribeAutoRenewAttributeResponse.Items["+ i +"].DBClusterId"));
autoRenewAttribute.setPeriodUnit(_ctx.stringValue("DescribeAutoRenewAttributeResponse.Items["+ i +"].PeriodUnit"));
autoRenewAttribute.setDuration(_ctx.integerValue("DescribeAutoRenewAttributeResponse.Items["+ i +"].Duration"));
autoRenewAttribute.setRenewalStatus(_ctx.stringValue("DescribeAutoRenewAttributeResponse.Items["+ i +"].RenewalStatus"));
autoRenewAttribute.setAutoRenewEnabled(_ctx.booleanValue("DescribeAutoRenewAttributeResponse.Items["+ i +"].AutoRenewEnabled"));
autoRenewAttribute.setRegionId(_ctx.stringValue("DescribeAutoRenewAttributeResponse.Items["+ i +"].RegionId"));
items.add(autoRenewAttribute);
}
describeAutoRenewAttributeResponse.setItems(items);
return describeAutoRenewAttributeResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeAvailableAdvicesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeAvailableAdvicesResponse;
import com.aliyuncs.adb.model.v20190315.DescribeAvailableAdvicesResponse.ItemsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeAvailableAdvicesResponseUnmarshaller {
public static DescribeAvailableAdvicesResponse unmarshall(DescribeAvailableAdvicesResponse describeAvailableAdvicesResponse, UnmarshallerContext _ctx) {
describeAvailableAdvicesResponse.setRequestId(_ctx.stringValue("DescribeAvailableAdvicesResponse.RequestId"));
describeAvailableAdvicesResponse.setPageNumber(_ctx.longValue("DescribeAvailableAdvicesResponse.PageNumber"));
describeAvailableAdvicesResponse.setPageSize(_ctx.longValue("DescribeAvailableAdvicesResponse.PageSize"));
describeAvailableAdvicesResponse.setTotalCount(_ctx.longValue("DescribeAvailableAdvicesResponse.TotalCount"));
List<String> schemaTableNames = new ArrayList<String>();
for (int i = 0; i < _ctx.lengthValue("DescribeAvailableAdvicesResponse.SchemaTableNames.Length"); i++) {
schemaTableNames.add(_ctx.stringValue("DescribeAvailableAdvicesResponse.SchemaTableNames["+ i +"]"));
}
describeAvailableAdvicesResponse.setSchemaTableNames(schemaTableNames);
List<ItemsItem> items = new ArrayList<ItemsItem>();
for (int i = 0; i < _ctx.lengthValue("DescribeAvailableAdvicesResponse.Items.Length"); i++) {
ItemsItem itemsItem = new ItemsItem();
itemsItem.setAdviceId(_ctx.stringValue("DescribeAvailableAdvicesResponse.Items["+ i +"].AdviceId"));
itemsItem.setAdviceDate(_ctx.stringValue("DescribeAvailableAdvicesResponse.Items["+ i +"].AdviceDate"));
itemsItem.setAdviceType(_ctx.stringValue("DescribeAvailableAdvicesResponse.Items["+ i +"].AdviceType"));
itemsItem.setSQL(_ctx.stringValue("DescribeAvailableAdvicesResponse.Items["+ i +"].SQL"));
itemsItem.setReason(_ctx.stringValue("DescribeAvailableAdvicesResponse.Items["+ i +"].Reason"));
itemsItem.setBenefit(_ctx.stringValue("DescribeAvailableAdvicesResponse.Items["+ i +"].Benefit"));
itemsItem.setTotalCount(_ctx.longValue("DescribeAvailableAdvicesResponse.Items["+ i +"].TotalCount"));
itemsItem.setPageSize(_ctx.longValue("DescribeAvailableAdvicesResponse.Items["+ i +"].PageSize"));
itemsItem.setPageNumber(_ctx.longValue("DescribeAvailableAdvicesResponse.Items["+ i +"].PageNumber"));
itemsItem.setSchemaName(_ctx.stringValue("DescribeAvailableAdvicesResponse.Items["+ i +"].SchemaName"));
itemsItem.setTableName(_ctx.stringValue("DescribeAvailableAdvicesResponse.Items["+ i +"].TableName"));
items.add(itemsItem);
}
describeAvailableAdvicesResponse.setItems(items);
return describeAvailableAdvicesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeAvailableResourceResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeAvailableResourceResponse;
import com.aliyuncs.adb.model.v20190315.DescribeAvailableResourceResponse.AvailableZone;
import com.aliyuncs.adb.model.v20190315.DescribeAvailableResourceResponse.AvailableZone.SupportedModeItem;
import com.aliyuncs.adb.model.v20190315.DescribeAvailableResourceResponse.AvailableZone.SupportedModeItem.SupportedSerialListItem;
import com.aliyuncs.adb.model.v20190315.DescribeAvailableResourceResponse.AvailableZone.SupportedModeItem.SupportedSerialListItem.SupportedFlexibleResourceItem;
import com.aliyuncs.adb.model.v20190315.DescribeAvailableResourceResponse.AvailableZone.SupportedModeItem.SupportedSerialListItem.SupportedFlexibleResourceItem.SupportedElasticIOResource;
import com.aliyuncs.adb.model.v20190315.DescribeAvailableResourceResponse.AvailableZone.SupportedModeItem.SupportedSerialListItem.SupportedInstanceClass;
import com.aliyuncs.adb.model.v20190315.DescribeAvailableResourceResponse.AvailableZone.SupportedModeItem.SupportedSerialListItem.SupportedInstanceClass.SupportedExecutor;
import com.aliyuncs.adb.model.v20190315.DescribeAvailableResourceResponse.AvailableZone.SupportedModeItem.SupportedSerialListItem.SupportedInstanceClass.SupportedExecutor.NodeCount3;
import com.aliyuncs.adb.model.v20190315.DescribeAvailableResourceResponse.AvailableZone.SupportedModeItem.SupportedSerialListItem.SupportedInstanceClass.SupportedNodeCount;
import com.aliyuncs.adb.model.v20190315.DescribeAvailableResourceResponse.AvailableZone.SupportedModeItem.SupportedSerialListItem.SupportedInstanceClass.SupportedNodeCount.NodeCount;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeAvailableResourceResponseUnmarshaller {
public static DescribeAvailableResourceResponse unmarshall(DescribeAvailableResourceResponse describeAvailableResourceResponse, UnmarshallerContext _ctx) {
describeAvailableResourceResponse.setRequestId(_ctx.stringValue("DescribeAvailableResourceResponse.RequestId"));
describeAvailableResourceResponse.setRegionId(_ctx.stringValue("DescribeAvailableResourceResponse.RegionId"));
List<AvailableZone> availableZoneList = new ArrayList<AvailableZone>();
for (int i = 0; i < _ctx.lengthValue("DescribeAvailableResourceResponse.AvailableZoneList.Length"); i++) {
AvailableZone availableZone = new AvailableZone();
availableZone.setZoneId(_ctx.stringValue("DescribeAvailableResourceResponse.AvailableZoneList["+ i +"].ZoneId"));
availableZone.setZoneName(_ctx.stringValue("DescribeAvailableResourceResponse.AvailableZoneList["+ i +"].ZoneName"));
List<String> supportedComputeResource = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("DescribeAvailableResourceResponse.AvailableZoneList["+ i +"].SupportedComputeResource.Length"); j++) {
supportedComputeResource.add(_ctx.stringValue("DescribeAvailableResourceResponse.AvailableZoneList["+ i +"].SupportedComputeResource["+ j +"]"));
}
availableZone.setSupportedComputeResource(supportedComputeResource);
List<String> supportedStorageResource = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("DescribeAvailableResourceResponse.AvailableZoneList["+ i +"].SupportedStorageResource.Length"); j++) {
supportedStorageResource.add(_ctx.stringValue("DescribeAvailableResourceResponse.AvailableZoneList["+ i +"].SupportedStorageResource["+ j +"]"));
}
availableZone.setSupportedStorageResource(supportedStorageResource);
List<SupportedModeItem> supportedMode = new ArrayList<SupportedModeItem>();
for (int j = 0; j < _ctx.lengthValue("DescribeAvailableResourceResponse.AvailableZoneList["+ i +"].SupportedMode.Length"); j++) {
SupportedModeItem supportedModeItem = new SupportedModeItem();
supportedModeItem.setMode(_ctx.stringValue("DescribeAvailableResourceResponse.AvailableZoneList["+ i +"].SupportedMode["+ j +"].Mode"));
List<SupportedSerialListItem> supportedSerialList = new ArrayList<SupportedSerialListItem>();
for (int k = 0; k < _ctx.lengthValue("DescribeAvailableResourceResponse.AvailableZoneList["+ i +"].SupportedMode["+ j +"].SupportedSerialList.Length"); k++) {
SupportedSerialListItem supportedSerialListItem = new SupportedSerialListItem();
supportedSerialListItem.setSerial(_ctx.stringValue("DescribeAvailableResourceResponse.AvailableZoneList["+ i +"].SupportedMode["+ j +"].SupportedSerialList["+ k +"].Serial"));
List<SupportedFlexibleResourceItem> supportedFlexibleResource = new ArrayList<SupportedFlexibleResourceItem>();
for (int l = 0; l < _ctx.lengthValue("DescribeAvailableResourceResponse.AvailableZoneList["+ i +"].SupportedMode["+ j +"].SupportedSerialList["+ k +"].SupportedFlexibleResource.Length"); l++) {
SupportedFlexibleResourceItem supportedFlexibleResourceItem = new SupportedFlexibleResourceItem();
supportedFlexibleResourceItem.setStorageType(_ctx.stringValue("DescribeAvailableResourceResponse.AvailableZoneList["+ i +"].SupportedMode["+ j +"].SupportedSerialList["+ k +"].SupportedFlexibleResource["+ l +"].StorageType"));
List<String> supportedComputeResource1 = new ArrayList<String>();
for (int m = 0; m < _ctx.lengthValue("DescribeAvailableResourceResponse.AvailableZoneList["+ i +"].SupportedMode["+ j +"].SupportedSerialList["+ k +"].SupportedFlexibleResource["+ l +"].SupportedComputeResource.Length"); m++) {
supportedComputeResource1.add(_ctx.stringValue("DescribeAvailableResourceResponse.AvailableZoneList["+ i +"].SupportedMode["+ j +"].SupportedSerialList["+ k +"].SupportedFlexibleResource["+ l +"].SupportedComputeResource["+ m +"]"));
}
supportedFlexibleResourceItem.setSupportedComputeResource1(supportedComputeResource1);
List<String> supportedStorageResource2 = new ArrayList<String>();
for (int m = 0; m < _ctx.lengthValue("DescribeAvailableResourceResponse.AvailableZoneList["+ i +"].SupportedMode["+ j +"].SupportedSerialList["+ k +"].SupportedFlexibleResource["+ l +"].SupportedStorageResource.Length"); m++) {
supportedStorageResource2.add(_ctx.stringValue("DescribeAvailableResourceResponse.AvailableZoneList["+ i +"].SupportedMode["+ j +"].SupportedSerialList["+ k +"].SupportedFlexibleResource["+ l +"].SupportedStorageResource["+ m +"]"));
}
supportedFlexibleResourceItem.setSupportedStorageResource2(supportedStorageResource2);
SupportedElasticIOResource supportedElasticIOResource = new SupportedElasticIOResource();
supportedElasticIOResource.setStep(_ctx.stringValue("DescribeAvailableResourceResponse.AvailableZoneList["+ i +"].SupportedMode["+ j +"].SupportedSerialList["+ k +"].SupportedFlexibleResource["+ l +"].SupportedElasticIOResource.Step"));
supportedElasticIOResource.setMinCount(_ctx.stringValue("DescribeAvailableResourceResponse.AvailableZoneList["+ i +"].SupportedMode["+ j +"].SupportedSerialList["+ k +"].SupportedFlexibleResource["+ l +"].SupportedElasticIOResource.MinCount"));
supportedElasticIOResource.setMaxCount(_ctx.stringValue("DescribeAvailableResourceResponse.AvailableZoneList["+ i +"].SupportedMode["+ j +"].SupportedSerialList["+ k +"].SupportedFlexibleResource["+ l +"].SupportedElasticIOResource.MaxCount"));
supportedFlexibleResourceItem.setSupportedElasticIOResource(supportedElasticIOResource);
supportedFlexibleResource.add(supportedFlexibleResourceItem);
}
supportedSerialListItem.setSupportedFlexibleResource(supportedFlexibleResource);
List<SupportedInstanceClass> supportedInstanceClassList = new ArrayList<SupportedInstanceClass>();
for (int l = 0; l < _ctx.lengthValue("DescribeAvailableResourceResponse.AvailableZoneList["+ i +"].SupportedMode["+ j +"].SupportedSerialList["+ k +"].SupportedInstanceClassList.Length"); l++) {
SupportedInstanceClass supportedInstanceClass = new SupportedInstanceClass();
supportedInstanceClass.setInstanceClass(_ctx.stringValue("DescribeAvailableResourceResponse.AvailableZoneList["+ i +"].SupportedMode["+ j +"].SupportedSerialList["+ k +"].SupportedInstanceClassList["+ l +"].InstanceClass"));
supportedInstanceClass.setTips(_ctx.stringValue("DescribeAvailableResourceResponse.AvailableZoneList["+ i +"].SupportedMode["+ j +"].SupportedSerialList["+ k +"].SupportedInstanceClassList["+ l +"].Tips"));
List<SupportedNodeCount> supportedNodeCountList = new ArrayList<SupportedNodeCount>();
for (int m = 0; m < _ctx.lengthValue("DescribeAvailableResourceResponse.AvailableZoneList["+ i +"].SupportedMode["+ j +"].SupportedSerialList["+ k +"].SupportedInstanceClassList["+ l +"].SupportedNodeCountList.Length"); m++) {
SupportedNodeCount supportedNodeCount = new SupportedNodeCount();
List<String> storageSize = new ArrayList<String>();
for (int n = 0; n < _ctx.lengthValue("DescribeAvailableResourceResponse.AvailableZoneList["+ i +"].SupportedMode["+ j +"].SupportedSerialList["+ k +"].SupportedInstanceClassList["+ l +"].SupportedNodeCountList["+ m +"].StorageSize.Length"); n++) {
storageSize.add(_ctx.stringValue("DescribeAvailableResourceResponse.AvailableZoneList["+ i +"].SupportedMode["+ j +"].SupportedSerialList["+ k +"].SupportedInstanceClassList["+ l +"].SupportedNodeCountList["+ m +"].StorageSize["+ n +"]"));
}
supportedNodeCount.setStorageSize(storageSize);
NodeCount nodeCount = new NodeCount();
nodeCount.setStep(_ctx.stringValue("DescribeAvailableResourceResponse.AvailableZoneList["+ i +"].SupportedMode["+ j +"].SupportedSerialList["+ k +"].SupportedInstanceClassList["+ l +"].SupportedNodeCountList["+ m +"].NodeCount.Step"));
nodeCount.setMinCount(_ctx.stringValue("DescribeAvailableResourceResponse.AvailableZoneList["+ i +"].SupportedMode["+ j +"].SupportedSerialList["+ k +"].SupportedInstanceClassList["+ l +"].SupportedNodeCountList["+ m +"].NodeCount.MinCount"));
nodeCount.setMaxCount(_ctx.stringValue("DescribeAvailableResourceResponse.AvailableZoneList["+ i +"].SupportedMode["+ j +"].SupportedSerialList["+ k +"].SupportedInstanceClassList["+ l +"].SupportedNodeCountList["+ m +"].NodeCount.MaxCount"));
supportedNodeCount.setNodeCount(nodeCount);
supportedNodeCountList.add(supportedNodeCount);
}
supportedInstanceClass.setSupportedNodeCountList(supportedNodeCountList);
List<SupportedExecutor> supportedExecutorList = new ArrayList<SupportedExecutor>();
for (int m = 0; m < _ctx.lengthValue("DescribeAvailableResourceResponse.AvailableZoneList["+ i +"].SupportedMode["+ j +"].SupportedSerialList["+ k +"].SupportedInstanceClassList["+ l +"].SupportedExecutorList.Length"); m++) {
SupportedExecutor supportedExecutor = new SupportedExecutor();
NodeCount3 nodeCount3 = new NodeCount3();
nodeCount3.setStep(_ctx.stringValue("DescribeAvailableResourceResponse.AvailableZoneList["+ i +"].SupportedMode["+ j +"].SupportedSerialList["+ k +"].SupportedInstanceClassList["+ l +"].SupportedExecutorList["+ m +"].NodeCount.Step"));
nodeCount3.setMinCount(_ctx.stringValue("DescribeAvailableResourceResponse.AvailableZoneList["+ i +"].SupportedMode["+ j +"].SupportedSerialList["+ k +"].SupportedInstanceClassList["+ l +"].SupportedExecutorList["+ m +"].NodeCount.MinCount"));
nodeCount3.setMaxCount(_ctx.stringValue("DescribeAvailableResourceResponse.AvailableZoneList["+ i +"].SupportedMode["+ j +"].SupportedSerialList["+ k +"].SupportedInstanceClassList["+ l +"].SupportedExecutorList["+ m +"].NodeCount.MaxCount"));
supportedExecutor.setNodeCount3(nodeCount3);
supportedExecutorList.add(supportedExecutor);
}
supportedInstanceClass.setSupportedExecutorList(supportedExecutorList);
supportedInstanceClassList.add(supportedInstanceClass);
}
supportedSerialListItem.setSupportedInstanceClassList(supportedInstanceClassList);
supportedSerialList.add(supportedSerialListItem);
}
supportedModeItem.setSupportedSerialList(supportedSerialList);
supportedMode.add(supportedModeItem);
}
availableZone.setSupportedMode(supportedMode);
availableZoneList.add(availableZone);
}
describeAvailableResourceResponse.setAvailableZoneList(availableZoneList);
return describeAvailableResourceResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeBackupPolicyResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import com.aliyuncs.adb.model.v20190315.DescribeBackupPolicyResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeBackupPolicyResponseUnmarshaller {
public static DescribeBackupPolicyResponse unmarshall(DescribeBackupPolicyResponse describeBackupPolicyResponse, UnmarshallerContext _ctx) {
describeBackupPolicyResponse.setRequestId(_ctx.stringValue("DescribeBackupPolicyResponse.RequestId"));
describeBackupPolicyResponse.setPreferredBackupPeriod(_ctx.stringValue("DescribeBackupPolicyResponse.PreferredBackupPeriod"));
describeBackupPolicyResponse.setLogBackupRetentionPeriod(_ctx.integerValue("DescribeBackupPolicyResponse.LogBackupRetentionPeriod"));
describeBackupPolicyResponse.setPreferredBackupTime(_ctx.stringValue("DescribeBackupPolicyResponse.PreferredBackupTime"));
describeBackupPolicyResponse.setEnableBackupLog(_ctx.stringValue("DescribeBackupPolicyResponse.EnableBackupLog"));
describeBackupPolicyResponse.setBackupRetentionPeriod(_ctx.integerValue("DescribeBackupPolicyResponse.BackupRetentionPeriod"));
return describeBackupPolicyResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeBackupsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeBackupsResponse;
import com.aliyuncs.adb.model.v20190315.DescribeBackupsResponse.Backup;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeBackupsResponseUnmarshaller {
public static DescribeBackupsResponse unmarshall(DescribeBackupsResponse describeBackupsResponse, UnmarshallerContext _ctx) {
describeBackupsResponse.setRequestId(_ctx.stringValue("DescribeBackupsResponse.RequestId"));
describeBackupsResponse.setTotalCount(_ctx.stringValue("DescribeBackupsResponse.TotalCount"));
describeBackupsResponse.setPageSize(_ctx.stringValue("DescribeBackupsResponse.PageSize"));
describeBackupsResponse.setPageNumber(_ctx.stringValue("DescribeBackupsResponse.PageNumber"));
describeBackupsResponse.setFreeBackupSize(_ctx.longValue("DescribeBackupsResponse.FreeBackupSize"));
describeBackupsResponse.setTotalBackupSize(_ctx.longValue("DescribeBackupsResponse.TotalBackupSize"));
List<Backup> items = new ArrayList<Backup>();
for (int i = 0; i < _ctx.lengthValue("DescribeBackupsResponse.Items.Length"); i++) {
Backup backup = new Backup();
backup.setDBClusterId(_ctx.stringValue("DescribeBackupsResponse.Items["+ i +"].DBClusterId"));
backup.setBackupType(_ctx.stringValue("DescribeBackupsResponse.Items["+ i +"].BackupType"));
backup.setBackupStartTime(_ctx.stringValue("DescribeBackupsResponse.Items["+ i +"].BackupStartTime"));
backup.setBackupSize(_ctx.longValue("DescribeBackupsResponse.Items["+ i +"].BackupSize"));
backup.setBackupEndTime(_ctx.stringValue("DescribeBackupsResponse.Items["+ i +"].BackupEndTime"));
backup.setBackupExpiredTime(_ctx.stringValue("DescribeBackupsResponse.Items["+ i +"].BackupExpiredTime"));
backup.setBackupId(_ctx.stringValue("DescribeBackupsResponse.Items["+ i +"].BackupId"));
backup.setBackupMethod(_ctx.stringValue("DescribeBackupsResponse.Items["+ i +"].BackupMethod"));
items.add(backup);
}
describeBackupsResponse.setItems(items);
return describeBackupsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeBadSqlDetectionResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeBadSqlDetectionResponse;
import com.aliyuncs.adb.model.v20190315.DescribeBadSqlDetectionResponse.OpenApiFasDetectionItem;
import com.aliyuncs.adb.model.v20190315.DescribeBadSqlDetectionResponse.OpenApiFasDetectionItem.BadSqlDiagnosisResult;
import com.aliyuncs.adb.model.v20190315.DescribeBadSqlDetectionResponse.OpenApiFasDetectionItem.BadSqlDiagnosisResult.BasicDiagnosisInfo;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeBadSqlDetectionResponseUnmarshaller {
public static DescribeBadSqlDetectionResponse unmarshall(DescribeBadSqlDetectionResponse describeBadSqlDetectionResponse, UnmarshallerContext _ctx) {
describeBadSqlDetectionResponse.setRequestId(_ctx.stringValue("DescribeBadSqlDetectionResponse.RequestId"));
describeBadSqlDetectionResponse.setTotalCount(_ctx.stringValue("DescribeBadSqlDetectionResponse.TotalCount"));
describeBadSqlDetectionResponse.setDBClusterId(_ctx.stringValue("DescribeBadSqlDetectionResponse.DBClusterId"));
describeBadSqlDetectionResponse.setAccessDeniedDetail(_ctx.stringValue("DescribeBadSqlDetectionResponse.AccessDeniedDetail"));
List<OpenApiFasDetectionItem> detectionItems = new ArrayList<OpenApiFasDetectionItem>();
for (int i = 0; i < _ctx.lengthValue("DescribeBadSqlDetectionResponse.DetectionItems.Length"); i++) {
OpenApiFasDetectionItem openApiFasDetectionItem = new OpenApiFasDetectionItem();
openApiFasDetectionItem.setName(_ctx.stringValue("DescribeBadSqlDetectionResponse.DetectionItems["+ i +"].Name"));
openApiFasDetectionItem.setStatus(_ctx.stringValue("DescribeBadSqlDetectionResponse.DetectionItems["+ i +"].Status"));
openApiFasDetectionItem.setMessage(_ctx.stringValue("DescribeBadSqlDetectionResponse.DetectionItems["+ i +"].Message"));
List<BadSqlDiagnosisResult> results = new ArrayList<BadSqlDiagnosisResult>();
for (int j = 0; j < _ctx.lengthValue("DescribeBadSqlDetectionResponse.DetectionItems["+ i +"].Results.Length"); j++) {
BadSqlDiagnosisResult badSqlDiagnosisResult = new BadSqlDiagnosisResult();
badSqlDiagnosisResult.setCost(_ctx.longValue("DescribeBadSqlDetectionResponse.DetectionItems["+ i +"].Results["+ j +"].Cost"));
badSqlDiagnosisResult.setPeakMemory(_ctx.longValue("DescribeBadSqlDetectionResponse.DetectionItems["+ i +"].Results["+ j +"].PeakMemory"));
badSqlDiagnosisResult.setOperatorCost(_ctx.longValue("DescribeBadSqlDetectionResponse.DetectionItems["+ i +"].Results["+ j +"].OperatorCost"));
badSqlDiagnosisResult.setScanSize(_ctx.longValue("DescribeBadSqlDetectionResponse.DetectionItems["+ i +"].Results["+ j +"].ScanSize"));
badSqlDiagnosisResult.setOutputDataSize(_ctx.longValue("DescribeBadSqlDetectionResponse.DetectionItems["+ i +"].Results["+ j +"].OutputDataSize"));
badSqlDiagnosisResult.setProcessId(_ctx.stringValue("DescribeBadSqlDetectionResponse.DetectionItems["+ i +"].Results["+ j +"].ProcessId"));
badSqlDiagnosisResult.setTotalStages(_ctx.integerValue("DescribeBadSqlDetectionResponse.DetectionItems["+ i +"].Results["+ j +"].TotalStages"));
badSqlDiagnosisResult.setSQL(_ctx.stringValue("DescribeBadSqlDetectionResponse.DetectionItems["+ i +"].Results["+ j +"].SQL"));
badSqlDiagnosisResult.setPatternId(_ctx.stringValue("DescribeBadSqlDetectionResponse.DetectionItems["+ i +"].Results["+ j +"].PatternId"));
badSqlDiagnosisResult.setStartTime(_ctx.stringValue("DescribeBadSqlDetectionResponse.DetectionItems["+ i +"].Results["+ j +"].StartTime"));
List<BasicDiagnosisInfo> diagnosisResults = new ArrayList<BasicDiagnosisInfo>();
for (int k = 0; k < _ctx.lengthValue("DescribeBadSqlDetectionResponse.DetectionItems["+ i +"].Results["+ j +"].DiagnosisResults.Length"); k++) {
BasicDiagnosisInfo basicDiagnosisInfo = new BasicDiagnosisInfo();
basicDiagnosisInfo.setCode(_ctx.stringValue("DescribeBadSqlDetectionResponse.DetectionItems["+ i +"].Results["+ j +"].DiagnosisResults["+ k +"].Code"));
basicDiagnosisInfo.setDetail(_ctx.stringValue("DescribeBadSqlDetectionResponse.DetectionItems["+ i +"].Results["+ j +"].DiagnosisResults["+ k +"].Detail"));
basicDiagnosisInfo.setStageId(_ctx.stringValue("DescribeBadSqlDetectionResponse.DetectionItems["+ i +"].Results["+ j +"].DiagnosisResults["+ k +"].StageId"));
basicDiagnosisInfo.setOperatorId(_ctx.stringValue("DescribeBadSqlDetectionResponse.DetectionItems["+ i +"].Results["+ j +"].DiagnosisResults["+ k +"].OperatorId"));
diagnosisResults.add(basicDiagnosisInfo);
}
badSqlDiagnosisResult.setDiagnosisResults(diagnosisResults);
results.add(badSqlDiagnosisResult);
}
openApiFasDetectionItem.setResults(results);
detectionItems.add(openApiFasDetectionItem);
}
describeBadSqlDetectionResponse.setDetectionItems(detectionItems);
return describeBadSqlDetectionResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeColumnsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeColumnsResponse;
import com.aliyuncs.adb.model.v20190315.DescribeColumnsResponse.Column;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeColumnsResponseUnmarshaller {
public static DescribeColumnsResponse unmarshall(DescribeColumnsResponse describeColumnsResponse, UnmarshallerContext _ctx) {
describeColumnsResponse.setRequestId(_ctx.stringValue("DescribeColumnsResponse.RequestId"));
List<Column> items = new ArrayList<Column>();
for (int i = 0; i < _ctx.lengthValue("DescribeColumnsResponse.Items.Length"); i++) {
Column column = new Column();
column.setType(_ctx.stringValue("DescribeColumnsResponse.Items["+ i +"].Type"));
column.setColumnName(_ctx.stringValue("DescribeColumnsResponse.Items["+ i +"].ColumnName"));
column.setTableName(_ctx.stringValue("DescribeColumnsResponse.Items["+ i +"].TableName"));
column.setAutoIncrementColumn(_ctx.booleanValue("DescribeColumnsResponse.Items["+ i +"].AutoIncrementColumn"));
column.setDBClusterId(_ctx.stringValue("DescribeColumnsResponse.Items["+ i +"].DBClusterId"));
column.setPrimaryKey(_ctx.booleanValue("DescribeColumnsResponse.Items["+ i +"].PrimaryKey"));
column.setSchemaName(_ctx.stringValue("DescribeColumnsResponse.Items["+ i +"].SchemaName"));
items.add(column);
}
describeColumnsResponse.setItems(items);
return describeColumnsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeComputeResourceResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeComputeResourceResponse;
import com.aliyuncs.adb.model.v20190315.DescribeComputeResourceResponse.ComputeResourceItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeComputeResourceResponseUnmarshaller {
public static DescribeComputeResourceResponse unmarshall(DescribeComputeResourceResponse describeComputeResourceResponse, UnmarshallerContext _ctx) {
describeComputeResourceResponse.setRequestId(_ctx.stringValue("DescribeComputeResourceResponse.RequestId"));
List<ComputeResourceItem> computeResource = new ArrayList<ComputeResourceItem>();
for (int i = 0; i < _ctx.lengthValue("DescribeComputeResourceResponse.ComputeResource.Length"); i++) {
ComputeResourceItem computeResourceItem = new ComputeResourceItem();
computeResourceItem.setDisplayValue(_ctx.stringValue("DescribeComputeResourceResponse.ComputeResource["+ i +"].DisplayValue"));
computeResourceItem.setRealValue(_ctx.stringValue("DescribeComputeResourceResponse.ComputeResource["+ i +"].RealValue"));
computeResource.add(computeResourceItem);
}
describeComputeResourceResponse.setComputeResource(computeResource);
return describeComputeResourceResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeConnectionCountRecordsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeConnectionCountRecordsResponse;
import com.aliyuncs.adb.model.v20190315.DescribeConnectionCountRecordsResponse.AccessIps;
import com.aliyuncs.adb.model.v20190315.DescribeConnectionCountRecordsResponse.Users;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeConnectionCountRecordsResponseUnmarshaller {
public static DescribeConnectionCountRecordsResponse unmarshall(DescribeConnectionCountRecordsResponse describeConnectionCountRecordsResponse, UnmarshallerContext _ctx) {
describeConnectionCountRecordsResponse.setRequestId(_ctx.stringValue("DescribeConnectionCountRecordsResponse.RequestId"));
describeConnectionCountRecordsResponse.setTotalCount(_ctx.stringValue("DescribeConnectionCountRecordsResponse.TotalCount"));
describeConnectionCountRecordsResponse.setDBClusterId(_ctx.stringValue("DescribeConnectionCountRecordsResponse.DBClusterId"));
List<AccessIps> accessIpRecords = new ArrayList<AccessIps>();
for (int i = 0; i < _ctx.lengthValue("DescribeConnectionCountRecordsResponse.AccessIpRecords.Length"); i++) {
AccessIps accessIps = new AccessIps();
accessIps.setAccessIp(_ctx.stringValue("DescribeConnectionCountRecordsResponse.AccessIpRecords["+ i +"].AccessIp"));
accessIps.setCount(_ctx.longValue("DescribeConnectionCountRecordsResponse.AccessIpRecords["+ i +"].Count"));
accessIpRecords.add(accessIps);
}
describeConnectionCountRecordsResponse.setAccessIpRecords(accessIpRecords);
List<Users> userRecords = new ArrayList<Users>();
for (int i = 0; i < _ctx.lengthValue("DescribeConnectionCountRecordsResponse.UserRecords.Length"); i++) {
Users users = new Users();
users.setUser(_ctx.stringValue("DescribeConnectionCountRecordsResponse.UserRecords["+ i +"].User"));
users.setCount(_ctx.longValue("DescribeConnectionCountRecordsResponse.UserRecords["+ i +"].Count"));
userRecords.add(users);
}
describeConnectionCountRecordsResponse.setUserRecords(userRecords);
return describeConnectionCountRecordsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeControllerDetectionResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeControllerDetectionResponse;
import com.aliyuncs.adb.model.v20190315.DescribeControllerDetectionResponse.BaseDetectionItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeControllerDetectionResponseUnmarshaller {
public static DescribeControllerDetectionResponse unmarshall(DescribeControllerDetectionResponse describeControllerDetectionResponse, UnmarshallerContext _ctx) {
describeControllerDetectionResponse.setRequestId(_ctx.stringValue("DescribeControllerDetectionResponse.RequestId"));
describeControllerDetectionResponse.setTotalCount(_ctx.stringValue("DescribeControllerDetectionResponse.TotalCount"));
describeControllerDetectionResponse.setDBClusterId(_ctx.stringValue("DescribeControllerDetectionResponse.DBClusterId"));
List<BaseDetectionItem> detectionItems = new ArrayList<BaseDetectionItem>();
for (int i = 0; i < _ctx.lengthValue("DescribeControllerDetectionResponse.DetectionItems.Length"); i++) {
BaseDetectionItem baseDetectionItem = new BaseDetectionItem();
baseDetectionItem.setMessage(_ctx.stringValue("DescribeControllerDetectionResponse.DetectionItems["+ i +"].Message"));
baseDetectionItem.setName(_ctx.stringValue("DescribeControllerDetectionResponse.DetectionItems["+ i +"].Name"));
baseDetectionItem.setStatus(_ctx.stringValue("DescribeControllerDetectionResponse.DetectionItems["+ i +"].Status"));
detectionItems.add(baseDetectionItem);
}
describeControllerDetectionResponse.setDetectionItems(detectionItems);
return describeControllerDetectionResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeDBClusterAccessWhiteListResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeDBClusterAccessWhiteListResponse;
import com.aliyuncs.adb.model.v20190315.DescribeDBClusterAccessWhiteListResponse.IPArray;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeDBClusterAccessWhiteListResponseUnmarshaller {
public static DescribeDBClusterAccessWhiteListResponse unmarshall(DescribeDBClusterAccessWhiteListResponse describeDBClusterAccessWhiteListResponse, UnmarshallerContext _ctx) {
describeDBClusterAccessWhiteListResponse.setRequestId(_ctx.stringValue("DescribeDBClusterAccessWhiteListResponse.RequestId"));
List<IPArray> items = new ArrayList<IPArray>();
for (int i = 0; i < _ctx.lengthValue("DescribeDBClusterAccessWhiteListResponse.Items.Length"); i++) {
IPArray iPArray = new IPArray();
iPArray.setDBClusterIPArrayAttribute(_ctx.stringValue("DescribeDBClusterAccessWhiteListResponse.Items["+ i +"].DBClusterIPArrayAttribute"));
iPArray.setSecurityIPList(_ctx.stringValue("DescribeDBClusterAccessWhiteListResponse.Items["+ i +"].SecurityIPList"));
iPArray.setDBClusterIPArrayName(_ctx.stringValue("DescribeDBClusterAccessWhiteListResponse.Items["+ i +"].DBClusterIPArrayName"));
items.add(iPArray);
}
describeDBClusterAccessWhiteListResponse.setItems(items);
return describeDBClusterAccessWhiteListResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeDBClusterAttributeResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeDBClusterAttributeResponse;
import com.aliyuncs.adb.model.v20190315.DescribeDBClusterAttributeResponse.DBCluster;
import com.aliyuncs.adb.model.v20190315.DescribeDBClusterAttributeResponse.DBCluster.Tag;
import com.aliyuncs.adb.model.v20190315.DescribeDBClusterAttributeResponse.DBCluster.TaskInfo;
import com.aliyuncs.adb.model.v20190315.DescribeDBClusterAttributeResponse.DBCluster.TaskInfo.StepListItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeDBClusterAttributeResponseUnmarshaller {
public static DescribeDBClusterAttributeResponse unmarshall(DescribeDBClusterAttributeResponse describeDBClusterAttributeResponse, UnmarshallerContext _ctx) {
describeDBClusterAttributeResponse.setRequestId(_ctx.stringValue("DescribeDBClusterAttributeResponse.RequestId"));
List<DBCluster> items = new ArrayList<DBCluster>();
for (int i = 0; i < _ctx.lengthValue("DescribeDBClusterAttributeResponse.Items.Length"); i++) {
DBCluster dBCluster = new DBCluster();
dBCluster.setCreationTime(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].CreationTime"));
dBCluster.setEnableSpark(_ctx.booleanValue("DescribeDBClusterAttributeResponse.Items["+ i +"].EnableSpark"));
dBCluster.setDtsJobId(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].DtsJobId"));
dBCluster.setDBNodeCount(_ctx.longValue("DescribeDBClusterAttributeResponse.Items["+ i +"].DBNodeCount"));
dBCluster.setExpired(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].Expired"));
dBCluster.setMaintainTime(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].MaintainTime"));
dBCluster.setPayType(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].PayType"));
dBCluster.setDiskType(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].DiskType"));
dBCluster.setMode(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].Mode"));
dBCluster.setPort(_ctx.integerValue("DescribeDBClusterAttributeResponse.Items["+ i +"].Port"));
dBCluster.setLockMode(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].LockMode"));
dBCluster.setEngineVersion(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].EngineVersion"));
dBCluster.setEnableAirflow(_ctx.booleanValue("DescribeDBClusterAttributeResponse.Items["+ i +"].EnableAirflow"));
dBCluster.setExecutorCount(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].ExecutorCount"));
dBCluster.setStorageResource(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].StorageResource"));
dBCluster.setDBClusterId(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].DBClusterId"));
dBCluster.setConnectionString(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].ConnectionString"));
dBCluster.setRdsInstanceId(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].RdsInstanceId"));
dBCluster.setDBClusterType(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].DBClusterType"));
dBCluster.setCommodityCode(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].CommodityCode"));
dBCluster.setExpireTime(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].ExpireTime"));
dBCluster.setDBNodeStorage(_ctx.longValue("DescribeDBClusterAttributeResponse.Items["+ i +"].DBNodeStorage"));
dBCluster.setDBNodeClass(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].DBNodeClass"));
dBCluster.setLockReason(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].LockReason"));
dBCluster.setVPCId(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].VPCId"));
dBCluster.setComputeResource(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].ComputeResource"));
dBCluster.setRegionId(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].RegionId"));
dBCluster.setElasticIOResource(_ctx.integerValue("DescribeDBClusterAttributeResponse.Items["+ i +"].ElasticIOResource"));
dBCluster.setVSwitchId(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].VSwitchId"));
dBCluster.setDBVersion(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].DBVersion"));
dBCluster.setVPCCloudInstanceId(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].VPCCloudInstanceId"));
dBCluster.setDBClusterStatus(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].DBClusterStatus"));
dBCluster.setResourceGroupId(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].ResourceGroupId"));
dBCluster.setDBClusterNetworkType(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].DBClusterNetworkType"));
dBCluster.setDBClusterDescription(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].DBClusterDescription"));
dBCluster.setUserENIStatus(_ctx.booleanValue("DescribeDBClusterAttributeResponse.Items["+ i +"].UserENIStatus"));
dBCluster.setZoneId(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].ZoneId"));
dBCluster.setCategory(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].Category"));
dBCluster.setEngine(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].Engine"));
dBCluster.setKmsId(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].KmsId"));
dBCluster.setInnerIp(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].InnerIp"));
dBCluster.setInnerPort(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].InnerPort"));
dBCluster.setDiskPerformanceLevel(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].DiskPerformanceLevel"));
dBCluster.setElasticIOResourceSize(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].ElasticIOResourceSize"));
dBCluster.setDiskEncryption(_ctx.booleanValue("DescribeDBClusterAttributeResponse.Items["+ i +"].DiskEncryption"));
dBCluster.setProductVersion(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].ProductVersion"));
dBCluster.setSecondaryZoneId(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].SecondaryZoneId"));
dBCluster.setSecondaryVSwitchId(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].SecondaryVSwitchId"));
dBCluster.setReservedNodeSize(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].ReservedNodeSize"));
dBCluster.setReservedNodeCount(_ctx.integerValue("DescribeDBClusterAttributeResponse.Items["+ i +"].ReservedNodeCount"));
dBCluster.setProductForm(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].ProductForm"));
TaskInfo taskInfo = new TaskInfo();
taskInfo.setName(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].TaskInfo.Name"));
taskInfo.setStatus(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].TaskInfo.Status"));
taskInfo.setProgress(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].TaskInfo.Progress"));
List<StepListItem> stepList = new ArrayList<StepListItem>();
for (int j = 0; j < _ctx.lengthValue("DescribeDBClusterAttributeResponse.Items["+ i +"].TaskInfo.StepList.Length"); j++) {
StepListItem stepListItem = new StepListItem();
stepListItem.setStepName(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].TaskInfo.StepList["+ j +"].StepName"));
stepListItem.setStepDesc(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].TaskInfo.StepList["+ j +"].StepDesc"));
stepListItem.setStepStatus(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].TaskInfo.StepList["+ j +"].StepStatus"));
stepListItem.setStepProgress(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].TaskInfo.StepList["+ j +"].StepProgress"));
stepListItem.setStartTime(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].TaskInfo.StepList["+ j +"].StartTime"));
stepListItem.setEndTime(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].TaskInfo.StepList["+ j +"].EndTime"));
stepList.add(stepListItem);
}
taskInfo.setStepList(stepList);
dBCluster.setTaskInfo(taskInfo);
List<Tag> tags = new ArrayList<Tag>();
for (int j = 0; j < _ctx.lengthValue("DescribeDBClusterAttributeResponse.Items["+ i +"].Tags.Length"); j++) {
Tag tag = new Tag();
tag.setKey(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].Tags["+ j +"].Key"));
tag.setValue(_ctx.stringValue("DescribeDBClusterAttributeResponse.Items["+ i +"].Tags["+ j +"].Value"));
tags.add(tag);
}
dBCluster.setTags(tags);
items.add(dBCluster);
}
describeDBClusterAttributeResponse.setItems(items);
return describeDBClusterAttributeResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeDBClusterHealthStatusResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import com.aliyuncs.adb.model.v20190315.DescribeDBClusterHealthStatusResponse;
import com.aliyuncs.adb.model.v20190315.DescribeDBClusterHealthStatusResponse.CS;
import com.aliyuncs.adb.model.v20190315.DescribeDBClusterHealthStatusResponse.Executor;
import com.aliyuncs.adb.model.v20190315.DescribeDBClusterHealthStatusResponse.Worker;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeDBClusterHealthStatusResponseUnmarshaller {
public static DescribeDBClusterHealthStatusResponse unmarshall(DescribeDBClusterHealthStatusResponse describeDBClusterHealthStatusResponse, UnmarshallerContext _ctx) {
describeDBClusterHealthStatusResponse.setRequestId(_ctx.stringValue("DescribeDBClusterHealthStatusResponse.RequestId"));
describeDBClusterHealthStatusResponse.setInstanceStatus(_ctx.stringValue("DescribeDBClusterHealthStatusResponse.InstanceStatus"));
CS cS = new CS();
cS.setActiveCount(_ctx.longValue("DescribeDBClusterHealthStatusResponse.CS.ActiveCount"));
cS.setUnavailableCount(_ctx.longValue("DescribeDBClusterHealthStatusResponse.CS.UnavailableCount"));
cS.setRiskCount(_ctx.longValue("DescribeDBClusterHealthStatusResponse.CS.RiskCount"));
cS.setExpectedCount(_ctx.longValue("DescribeDBClusterHealthStatusResponse.CS.ExpectedCount"));
cS.setStatus(_ctx.stringValue("DescribeDBClusterHealthStatusResponse.CS.Status"));
describeDBClusterHealthStatusResponse.setCS(cS);
Executor executor = new Executor();
executor.setActiveCount(_ctx.longValue("DescribeDBClusterHealthStatusResponse.Executor.ActiveCount"));
executor.setUnavailableCount(_ctx.longValue("DescribeDBClusterHealthStatusResponse.Executor.UnavailableCount"));
executor.setRiskCount(_ctx.longValue("DescribeDBClusterHealthStatusResponse.Executor.RiskCount"));
executor.setExpectedCount(_ctx.longValue("DescribeDBClusterHealthStatusResponse.Executor.ExpectedCount"));
executor.setStatus(_ctx.stringValue("DescribeDBClusterHealthStatusResponse.Executor.Status"));
describeDBClusterHealthStatusResponse.setExecutor(executor);
Worker worker = new Worker();
worker.setActiveCount(_ctx.longValue("DescribeDBClusterHealthStatusResponse.Worker.ActiveCount"));
worker.setUnavailableCount(_ctx.longValue("DescribeDBClusterHealthStatusResponse.Worker.UnavailableCount"));
worker.setRiskCount(_ctx.longValue("DescribeDBClusterHealthStatusResponse.Worker.RiskCount"));
worker.setExpectedCount(_ctx.longValue("DescribeDBClusterHealthStatusResponse.Worker.ExpectedCount"));
worker.setStatus(_ctx.stringValue("DescribeDBClusterHealthStatusResponse.Worker.Status"));
describeDBClusterHealthStatusResponse.setWorker(worker);
return describeDBClusterHealthStatusResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeDBClusterNetInfoResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeDBClusterNetInfoResponse;
import com.aliyuncs.adb.model.v20190315.DescribeDBClusterNetInfoResponse.Address;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeDBClusterNetInfoResponseUnmarshaller {
public static DescribeDBClusterNetInfoResponse unmarshall(DescribeDBClusterNetInfoResponse describeDBClusterNetInfoResponse, UnmarshallerContext _ctx) {
describeDBClusterNetInfoResponse.setRequestId(_ctx.stringValue("DescribeDBClusterNetInfoResponse.RequestId"));
describeDBClusterNetInfoResponse.setClusterNetworkType(_ctx.stringValue("DescribeDBClusterNetInfoResponse.ClusterNetworkType"));
List<Address> items = new ArrayList<Address>();
for (int i = 0; i < _ctx.lengthValue("DescribeDBClusterNetInfoResponse.Items.Length"); i++) {
Address address = new Address();
address.setVSwitchId(_ctx.stringValue("DescribeDBClusterNetInfoResponse.Items["+ i +"].VSwitchId"));
address.setConnectionString(_ctx.stringValue("DescribeDBClusterNetInfoResponse.Items["+ i +"].ConnectionString"));
address.setNetType(_ctx.stringValue("DescribeDBClusterNetInfoResponse.Items["+ i +"].NetType"));
address.setPort(_ctx.stringValue("DescribeDBClusterNetInfoResponse.Items["+ i +"].Port"));
address.setVPCId(_ctx.stringValue("DescribeDBClusterNetInfoResponse.Items["+ i +"].VPCId"));
address.setIPAddress(_ctx.stringValue("DescribeDBClusterNetInfoResponse.Items["+ i +"].IPAddress"));
address.setConnectionStringPrefix(_ctx.stringValue("DescribeDBClusterNetInfoResponse.Items["+ i +"].ConnectionStringPrefix"));
items.add(address);
}
describeDBClusterNetInfoResponse.setItems(items);
return describeDBClusterNetInfoResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeDBClusterPerformanceResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeDBClusterPerformanceResponse;
import com.aliyuncs.adb.model.v20190315.DescribeDBClusterPerformanceResponse.PerformanceItem;
import com.aliyuncs.adb.model.v20190315.DescribeDBClusterPerformanceResponse.PerformanceItem.SeriesItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeDBClusterPerformanceResponseUnmarshaller {
public static DescribeDBClusterPerformanceResponse unmarshall(DescribeDBClusterPerformanceResponse describeDBClusterPerformanceResponse, UnmarshallerContext _ctx) {
describeDBClusterPerformanceResponse.setRequestId(_ctx.stringValue("DescribeDBClusterPerformanceResponse.RequestId"));
describeDBClusterPerformanceResponse.setEndTime(_ctx.stringValue("DescribeDBClusterPerformanceResponse.EndTime"));
describeDBClusterPerformanceResponse.setStartTime(_ctx.stringValue("DescribeDBClusterPerformanceResponse.StartTime"));
describeDBClusterPerformanceResponse.setDBClusterId(_ctx.stringValue("DescribeDBClusterPerformanceResponse.DBClusterId"));
describeDBClusterPerformanceResponse.setAccessDeniedDetail(_ctx.stringValue("DescribeDBClusterPerformanceResponse.AccessDeniedDetail"));
List<PerformanceItem> performances = new ArrayList<PerformanceItem>();
for (int i = 0; i < _ctx.lengthValue("DescribeDBClusterPerformanceResponse.Performances.Length"); i++) {
PerformanceItem performanceItem = new PerformanceItem();
performanceItem.setKey(_ctx.stringValue("DescribeDBClusterPerformanceResponse.Performances["+ i +"].Key"));
performanceItem.setUnit(_ctx.stringValue("DescribeDBClusterPerformanceResponse.Performances["+ i +"].Unit"));
List<SeriesItem> series = new ArrayList<SeriesItem>();
for (int j = 0; j < _ctx.lengthValue("DescribeDBClusterPerformanceResponse.Performances["+ i +"].Series.Length"); j++) {
SeriesItem seriesItem = new SeriesItem();
seriesItem.setName(_ctx.stringValue("DescribeDBClusterPerformanceResponse.Performances["+ i +"].Series["+ j +"].Name"));
seriesItem.setTags(_ctx.stringValue("DescribeDBClusterPerformanceResponse.Performances["+ i +"].Series["+ j +"].Tags"));
seriesItem.setTranslateKey(_ctx.stringValue("DescribeDBClusterPerformanceResponse.Performances["+ i +"].Series["+ j +"].TranslateKey"));
List<String> values = new ArrayList<String>();
for (int k = 0; k < _ctx.lengthValue("DescribeDBClusterPerformanceResponse.Performances["+ i +"].Series["+ j +"].Values.Length"); k++) {
values.add(_ctx.stringValue("DescribeDBClusterPerformanceResponse.Performances["+ i +"].Series["+ j +"].Values["+ k +"]"));
}
seriesItem.setValues(values);
series.add(seriesItem);
}
performanceItem.setSeries(series);
performances.add(performanceItem);
}
describeDBClusterPerformanceResponse.setPerformances(performances);
return describeDBClusterPerformanceResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeDBClusterResourcePoolPerformanceResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeDBClusterResourcePoolPerformanceResponse;
import com.aliyuncs.adb.model.v20190315.DescribeDBClusterResourcePoolPerformanceResponse.PerformanceItem;
import com.aliyuncs.adb.model.v20190315.DescribeDBClusterResourcePoolPerformanceResponse.PerformanceItem.ResourcePoolPerformancesItem;
import com.aliyuncs.adb.model.v20190315.DescribeDBClusterResourcePoolPerformanceResponse.PerformanceItem.ResourcePoolPerformancesItem.ResourcePoolSeriesItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeDBClusterResourcePoolPerformanceResponseUnmarshaller {
public static DescribeDBClusterResourcePoolPerformanceResponse unmarshall(DescribeDBClusterResourcePoolPerformanceResponse describeDBClusterResourcePoolPerformanceResponse, UnmarshallerContext _ctx) {
describeDBClusterResourcePoolPerformanceResponse.setRequestId(_ctx.stringValue("DescribeDBClusterResourcePoolPerformanceResponse.RequestId"));
describeDBClusterResourcePoolPerformanceResponse.setEndTime(_ctx.stringValue("DescribeDBClusterResourcePoolPerformanceResponse.EndTime"));
describeDBClusterResourcePoolPerformanceResponse.setStartTime(_ctx.stringValue("DescribeDBClusterResourcePoolPerformanceResponse.StartTime"));
describeDBClusterResourcePoolPerformanceResponse.setDBClusterId(_ctx.stringValue("DescribeDBClusterResourcePoolPerformanceResponse.DBClusterId"));
List<PerformanceItem> performances = new ArrayList<PerformanceItem>();
for (int i = 0; i < _ctx.lengthValue("DescribeDBClusterResourcePoolPerformanceResponse.Performances.Length"); i++) {
PerformanceItem performanceItem = new PerformanceItem();
performanceItem.setKey(_ctx.stringValue("DescribeDBClusterResourcePoolPerformanceResponse.Performances["+ i +"].Key"));
performanceItem.setUnit(_ctx.stringValue("DescribeDBClusterResourcePoolPerformanceResponse.Performances["+ i +"].Unit"));
List<ResourcePoolPerformancesItem> resourcePoolPerformances = new ArrayList<ResourcePoolPerformancesItem>();
for (int j = 0; j < _ctx.lengthValue("DescribeDBClusterResourcePoolPerformanceResponse.Performances["+ i +"].ResourcePoolPerformances.Length"); j++) {
ResourcePoolPerformancesItem resourcePoolPerformancesItem = new ResourcePoolPerformancesItem();
resourcePoolPerformancesItem.setResourcePoolName(_ctx.stringValue("DescribeDBClusterResourcePoolPerformanceResponse.Performances["+ i +"].ResourcePoolPerformances["+ j +"].ResourcePoolName"));
List<ResourcePoolSeriesItem> resourcePoolSeries = new ArrayList<ResourcePoolSeriesItem>();
for (int k = 0; k < _ctx.lengthValue("DescribeDBClusterResourcePoolPerformanceResponse.Performances["+ i +"].ResourcePoolPerformances["+ j +"].ResourcePoolSeries.Length"); k++) {
ResourcePoolSeriesItem resourcePoolSeriesItem = new ResourcePoolSeriesItem();
resourcePoolSeriesItem.setName(_ctx.stringValue("DescribeDBClusterResourcePoolPerformanceResponse.Performances["+ i +"].ResourcePoolPerformances["+ j +"].ResourcePoolSeries["+ k +"].Name"));
List<String> values = new ArrayList<String>();
for (int l = 0; l < _ctx.lengthValue("DescribeDBClusterResourcePoolPerformanceResponse.Performances["+ i +"].ResourcePoolPerformances["+ j +"].ResourcePoolSeries["+ k +"].Values.Length"); l++) {
values.add(_ctx.stringValue("DescribeDBClusterResourcePoolPerformanceResponse.Performances["+ i +"].ResourcePoolPerformances["+ j +"].ResourcePoolSeries["+ k +"].Values["+ l +"]"));
}
resourcePoolSeriesItem.setValues(values);
resourcePoolSeries.add(resourcePoolSeriesItem);
}
resourcePoolPerformancesItem.setResourcePoolSeries(resourcePoolSeries);
resourcePoolPerformances.add(resourcePoolPerformancesItem);
}
performanceItem.setResourcePoolPerformances(resourcePoolPerformances);
performances.add(performanceItem);
}
describeDBClusterResourcePoolPerformanceResponse.setPerformances(performances);
return describeDBClusterResourcePoolPerformanceResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeDBClusterSSLResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import com.aliyuncs.adb.model.v20190315.DescribeDBClusterSSLResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeDBClusterSSLResponseUnmarshaller {
public static DescribeDBClusterSSLResponse unmarshall(DescribeDBClusterSSLResponse describeDBClusterSSLResponse, UnmarshallerContext _ctx) {
describeDBClusterSSLResponse.setRequestId(_ctx.stringValue("DescribeDBClusterSSLResponse.RequestId"));
describeDBClusterSSLResponse.setExpireTime(_ctx.stringValue("DescribeDBClusterSSLResponse.ExpireTime"));
describeDBClusterSSLResponse.setConnectionString(_ctx.stringValue("DescribeDBClusterSSLResponse.ConnectionString"));
describeDBClusterSSLResponse.setSSLEnabled(_ctx.booleanValue("DescribeDBClusterSSLResponse.SSLEnabled"));
return describeDBClusterSSLResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeDBClusterShardNumberResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeDBClusterShardNumberResponse;
import com.aliyuncs.adb.model.v20190315.DescribeDBClusterShardNumberResponse.AvailableShardNumberListItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeDBClusterShardNumberResponseUnmarshaller {
public static DescribeDBClusterShardNumberResponse unmarshall(DescribeDBClusterShardNumberResponse describeDBClusterShardNumberResponse, UnmarshallerContext _ctx) {
describeDBClusterShardNumberResponse.setRequestId(_ctx.stringValue("DescribeDBClusterShardNumberResponse.RequestId"));
describeDBClusterShardNumberResponse.setShardNumber(_ctx.integerValue("DescribeDBClusterShardNumberResponse.ShardNumber"));
List<Integer> availableShardNumbers = new ArrayList<Integer>();
for (int i = 0; i < _ctx.lengthValue("DescribeDBClusterShardNumberResponse.AvailableShardNumbers.Length"); i++) {
availableShardNumbers.add(_ctx.integerValue("DescribeDBClusterShardNumberResponse.AvailableShardNumbers["+ i +"]"));
}
describeDBClusterShardNumberResponse.setAvailableShardNumbers(availableShardNumbers);
List<AvailableShardNumberListItem> availableShardNumberList = new ArrayList<AvailableShardNumberListItem>();
for (int i = 0; i < _ctx.lengthValue("DescribeDBClusterShardNumberResponse.AvailableShardNumberList.Length"); i++) {
AvailableShardNumberListItem availableShardNumberListItem = new AvailableShardNumberListItem();
availableShardNumberListItem.setShardNumber(_ctx.integerValue("DescribeDBClusterShardNumberResponse.AvailableShardNumberList["+ i +"].ShardNumber"));
availableShardNumberList.add(availableShardNumberListItem);
}
describeDBClusterShardNumberResponse.setAvailableShardNumberList(availableShardNumberList);
return describeDBClusterShardNumberResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeDBClusterSpaceSummaryResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import com.aliyuncs.adb.model.v20190315.DescribeDBClusterSpaceSummaryResponse;
import com.aliyuncs.adb.model.v20190315.DescribeDBClusterSpaceSummaryResponse.Data;
import com.aliyuncs.adb.model.v20190315.DescribeDBClusterSpaceSummaryResponse.Data.ColdData;
import com.aliyuncs.adb.model.v20190315.DescribeDBClusterSpaceSummaryResponse.Data.DataGrowth;
import com.aliyuncs.adb.model.v20190315.DescribeDBClusterSpaceSummaryResponse.Data.HotData;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeDBClusterSpaceSummaryResponseUnmarshaller {
public static DescribeDBClusterSpaceSummaryResponse unmarshall(DescribeDBClusterSpaceSummaryResponse describeDBClusterSpaceSummaryResponse, UnmarshallerContext _ctx) {
describeDBClusterSpaceSummaryResponse.setRequestId(_ctx.stringValue("DescribeDBClusterSpaceSummaryResponse.RequestId"));
Data data = new Data();
data.setTotalSize(_ctx.stringValue("DescribeDBClusterSpaceSummaryResponse.Data.TotalSize"));
HotData hotData = new HotData();
hotData.setTotalSize(_ctx.longValue("DescribeDBClusterSpaceSummaryResponse.Data.HotData.TotalSize"));
hotData.setDataSize(_ctx.longValue("DescribeDBClusterSpaceSummaryResponse.Data.HotData.DataSize"));
hotData.setIndexSize(_ctx.longValue("DescribeDBClusterSpaceSummaryResponse.Data.HotData.IndexSize"));
hotData.setPrimaryKeyIndexSize(_ctx.longValue("DescribeDBClusterSpaceSummaryResponse.Data.HotData.PrimaryKeyIndexSize"));
hotData.setOtherSize(_ctx.longValue("DescribeDBClusterSpaceSummaryResponse.Data.HotData.OtherSize"));
data.setHotData(hotData);
ColdData coldData = new ColdData();
coldData.setTotalSize(_ctx.longValue("DescribeDBClusterSpaceSummaryResponse.Data.ColdData.TotalSize"));
coldData.setDataSize(_ctx.longValue("DescribeDBClusterSpaceSummaryResponse.Data.ColdData.DataSize"));
coldData.setIndexSize(_ctx.longValue("DescribeDBClusterSpaceSummaryResponse.Data.ColdData.IndexSize"));
coldData.setPrimaryKeyIndexSize(_ctx.longValue("DescribeDBClusterSpaceSummaryResponse.Data.ColdData.PrimaryKeyIndexSize"));
coldData.setOtherSize(_ctx.longValue("DescribeDBClusterSpaceSummaryResponse.Data.ColdData.OtherSize"));
data.setColdData(coldData);
DataGrowth dataGrowth = new DataGrowth();
dataGrowth.setDayGrowth(_ctx.longValue("DescribeDBClusterSpaceSummaryResponse.Data.DataGrowth.DayGrowth"));
dataGrowth.setWeekGrowth(_ctx.longValue("DescribeDBClusterSpaceSummaryResponse.Data.DataGrowth.WeekGrowth"));
data.setDataGrowth(dataGrowth);
describeDBClusterSpaceSummaryResponse.setData(data);
return describeDBClusterSpaceSummaryResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeDBClusterStatusResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeDBClusterStatusResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeDBClusterStatusResponseUnmarshaller {
public static DescribeDBClusterStatusResponse unmarshall(DescribeDBClusterStatusResponse describeDBClusterStatusResponse, UnmarshallerContext _ctx) {
describeDBClusterStatusResponse.setRequestId(_ctx.stringValue("DescribeDBClusterStatusResponse.RequestId"));
List<String> status = new ArrayList<String>();
for (int i = 0; i < _ctx.lengthValue("DescribeDBClusterStatusResponse.Status.Length"); i++) {
status.add(_ctx.stringValue("DescribeDBClusterStatusResponse.Status["+ i +"]"));
}
describeDBClusterStatusResponse.setStatus(status);
return describeDBClusterStatusResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeDBClustersResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeDBClustersResponse;
import com.aliyuncs.adb.model.v20190315.DescribeDBClustersResponse.DBCluster;
import com.aliyuncs.adb.model.v20190315.DescribeDBClustersResponse.DBCluster.Tag;
import com.aliyuncs.adb.model.v20190315.DescribeDBClustersResponse.DBCluster.TaskInfo;
import com.aliyuncs.adb.model.v20190315.DescribeDBClustersResponse.DBCluster.TaskInfo.StepListItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeDBClustersResponseUnmarshaller {
public static DescribeDBClustersResponse unmarshall(DescribeDBClustersResponse describeDBClustersResponse, UnmarshallerContext _ctx) {
describeDBClustersResponse.setRequestId(_ctx.stringValue("DescribeDBClustersResponse.RequestId"));
describeDBClustersResponse.setTotalCount(_ctx.integerValue("DescribeDBClustersResponse.TotalCount"));
describeDBClustersResponse.setPageSize(_ctx.integerValue("DescribeDBClustersResponse.PageSize"));
describeDBClustersResponse.setPageNumber(_ctx.integerValue("DescribeDBClustersResponse.PageNumber"));
List<DBCluster> items = new ArrayList<DBCluster>();
for (int i = 0; i < _ctx.lengthValue("DescribeDBClustersResponse.Items.Length"); i++) {
DBCluster dBCluster = new DBCluster();
dBCluster.setDtsJobId(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].DtsJobId"));
dBCluster.setDBNodeCount(_ctx.longValue("DescribeDBClustersResponse.Items["+ i +"].DBNodeCount"));
dBCluster.setExpired(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].Expired"));
dBCluster.setCreateTime(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].CreateTime"));
dBCluster.setPayType(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].PayType"));
dBCluster.setDiskType(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].DiskType"));
dBCluster.setMode(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].Mode"));
dBCluster.setPort(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].Port"));
dBCluster.setLockMode(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].LockMode"));
dBCluster.setStorageResource(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].StorageResource"));
dBCluster.setExecutorCount(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].ExecutorCount"));
dBCluster.setDBClusterId(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].DBClusterId"));
dBCluster.setConnectionString(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].ConnectionString"));
dBCluster.setRdsInstanceId(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].RdsInstanceId"));
dBCluster.setDBClusterType(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].DBClusterType"));
dBCluster.setCommodityCode(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].CommodityCode"));
dBCluster.setExpireTime(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].ExpireTime"));
dBCluster.setDBNodeStorage(_ctx.longValue("DescribeDBClustersResponse.Items["+ i +"].DBNodeStorage"));
dBCluster.setDBNodeClass(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].DBNodeClass"));
dBCluster.setLockReason(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].LockReason"));
dBCluster.setVPCId(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].VPCId"));
dBCluster.setRegionId(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].RegionId"));
dBCluster.setComputeResource(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].ComputeResource"));
dBCluster.setElasticIOResource(_ctx.integerValue("DescribeDBClustersResponse.Items["+ i +"].ElasticIOResource"));
dBCluster.setVSwitchId(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].VSwitchId"));
dBCluster.setDBVersion(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].DBVersion"));
dBCluster.setVPCCloudInstanceId(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].VPCCloudInstanceId"));
dBCluster.setDBClusterStatus(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].DBClusterStatus"));
dBCluster.setResourceGroupId(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].ResourceGroupId"));
dBCluster.setDBClusterNetworkType(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].DBClusterNetworkType"));
dBCluster.setDBClusterDescription(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].DBClusterDescription"));
dBCluster.setZoneId(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].ZoneId"));
dBCluster.setCategory(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].Category"));
dBCluster.setEngine(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].Engine"));
dBCluster.setInnerIp(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].InnerIp"));
dBCluster.setInnerPort(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].InnerPort"));
dBCluster.setProductVersion(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].ProductVersion"));
TaskInfo taskInfo = new TaskInfo();
taskInfo.setName(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].TaskInfo.Name"));
taskInfo.setStatus(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].TaskInfo.Status"));
taskInfo.setProgress(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].TaskInfo.Progress"));
List<StepListItem> stepList = new ArrayList<StepListItem>();
for (int j = 0; j < _ctx.lengthValue("DescribeDBClustersResponse.Items["+ i +"].TaskInfo.StepList.Length"); j++) {
StepListItem stepListItem = new StepListItem();
stepListItem.setStepName(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].TaskInfo.StepList["+ j +"].StepName"));
stepListItem.setStepDesc(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].TaskInfo.StepList["+ j +"].StepDesc"));
stepListItem.setStepStatus(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].TaskInfo.StepList["+ j +"].StepStatus"));
stepListItem.setStepProgress(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].TaskInfo.StepList["+ j +"].StepProgress"));
stepListItem.setStartTime(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].TaskInfo.StepList["+ j +"].StartTime"));
stepListItem.setEndTime(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].TaskInfo.StepList["+ j +"].EndTime"));
stepList.add(stepListItem);
}
taskInfo.setStepList(stepList);
dBCluster.setTaskInfo(taskInfo);
List<Tag> tags = new ArrayList<Tag>();
for (int j = 0; j < _ctx.lengthValue("DescribeDBClustersResponse.Items["+ i +"].Tags.Length"); j++) {
Tag tag = new Tag();
tag.setKey(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].Tags["+ j +"].Key"));
tag.setValue(_ctx.stringValue("DescribeDBClustersResponse.Items["+ i +"].Tags["+ j +"].Value"));
tags.add(tag);
}
dBCluster.setTags(tags);
items.add(dBCluster);
}
describeDBClustersResponse.setItems(items);
return describeDBClustersResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeDBResourceGroupResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeDBResourceGroupResponse;
import com.aliyuncs.adb.model.v20190315.DescribeDBResourceGroupResponse.PoolInfo;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeDBResourceGroupResponseUnmarshaller {
public static DescribeDBResourceGroupResponse unmarshall(DescribeDBResourceGroupResponse describeDBResourceGroupResponse, UnmarshallerContext _ctx) {
describeDBResourceGroupResponse.setRequestId(_ctx.stringValue("DescribeDBResourceGroupResponse.RequestId"));
describeDBResourceGroupResponse.setDBClusterId(_ctx.stringValue("DescribeDBResourceGroupResponse.DBClusterId"));
List<PoolInfo> groupsInfo = new ArrayList<PoolInfo>();
for (int i = 0; i < _ctx.lengthValue("DescribeDBResourceGroupResponse.GroupsInfo.Length"); i++) {
PoolInfo poolInfo = new PoolInfo();
poolInfo.setGroupType(_ctx.stringValue("DescribeDBResourceGroupResponse.GroupsInfo["+ i +"].GroupType"));
poolInfo.setUpdateTime(_ctx.stringValue("DescribeDBResourceGroupResponse.GroupsInfo["+ i +"].UpdateTime"));
poolInfo.setGroupName(_ctx.stringValue("DescribeDBResourceGroupResponse.GroupsInfo["+ i +"].GroupName"));
poolInfo.setCreateTime(_ctx.stringValue("DescribeDBResourceGroupResponse.GroupsInfo["+ i +"].CreateTime"));
poolInfo.setGroupUsers(_ctx.stringValue("DescribeDBResourceGroupResponse.GroupsInfo["+ i +"].GroupUsers"));
poolInfo.setNodeNum(_ctx.integerValue("DescribeDBResourceGroupResponse.GroupsInfo["+ i +"].NodeNum"));
List<String> groupUserList = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("DescribeDBResourceGroupResponse.GroupsInfo["+ i +"].GroupUserList.Length"); j++) {
groupUserList.add(_ctx.stringValue("DescribeDBResourceGroupResponse.GroupsInfo["+ i +"].GroupUserList["+ j +"]"));
}
poolInfo.setGroupUserList(groupUserList);
groupsInfo.add(poolInfo);
}
describeDBResourceGroupResponse.setGroupsInfo(groupsInfo);
return describeDBResourceGroupResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeDBResourcePoolResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeDBResourcePoolResponse;
import com.aliyuncs.adb.model.v20190315.DescribeDBResourcePoolResponse.PoolInfo;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeDBResourcePoolResponseUnmarshaller {
public static DescribeDBResourcePoolResponse unmarshall(DescribeDBResourcePoolResponse describeDBResourcePoolResponse, UnmarshallerContext _ctx) {
describeDBResourcePoolResponse.setRequestId(_ctx.stringValue("DescribeDBResourcePoolResponse.RequestId"));
describeDBResourcePoolResponse.setDBClusterId(_ctx.stringValue("DescribeDBResourcePoolResponse.DBClusterId"));
List<PoolInfo> poolsInfo = new ArrayList<PoolInfo>();
for (int i = 0; i < _ctx.lengthValue("DescribeDBResourcePoolResponse.PoolsInfo.Length"); i++) {
PoolInfo poolInfo = new PoolInfo();
poolInfo.setQueryType(_ctx.stringValue("DescribeDBResourcePoolResponse.PoolsInfo["+ i +"].QueryType"));
poolInfo.setUpdateTime(_ctx.stringValue("DescribeDBResourcePoolResponse.PoolsInfo["+ i +"].UpdateTime"));
poolInfo.setPoolName(_ctx.stringValue("DescribeDBResourcePoolResponse.PoolsInfo["+ i +"].PoolName"));
poolInfo.setCreateTime(_ctx.stringValue("DescribeDBResourcePoolResponse.PoolsInfo["+ i +"].CreateTime"));
poolInfo.setPoolUsers(_ctx.stringValue("DescribeDBResourcePoolResponse.PoolsInfo["+ i +"].PoolUsers"));
poolInfo.setNodeNum(_ctx.integerValue("DescribeDBResourcePoolResponse.PoolsInfo["+ i +"].NodeNum"));
poolsInfo.add(poolInfo);
}
describeDBResourcePoolResponse.setPoolsInfo(poolsInfo);
return describeDBResourcePoolResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeDiagnosisDimensionsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeDiagnosisDimensionsResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeDiagnosisDimensionsResponseUnmarshaller {
public static DescribeDiagnosisDimensionsResponse unmarshall(DescribeDiagnosisDimensionsResponse describeDiagnosisDimensionsResponse, UnmarshallerContext _ctx) {
describeDiagnosisDimensionsResponse.setRequestId(_ctx.stringValue("DescribeDiagnosisDimensionsResponse.RequestId"));
List<String> clientIps = new ArrayList<String>();
for (int i = 0; i < _ctx.lengthValue("DescribeDiagnosisDimensionsResponse.ClientIps.Length"); i++) {
clientIps.add(_ctx.stringValue("DescribeDiagnosisDimensionsResponse.ClientIps["+ i +"]"));
}
describeDiagnosisDimensionsResponse.setClientIps(clientIps);
List<String> resourceGroups = new ArrayList<String>();
for (int i = 0; i < _ctx.lengthValue("DescribeDiagnosisDimensionsResponse.ResourceGroups.Length"); i++) {
resourceGroups.add(_ctx.stringValue("DescribeDiagnosisDimensionsResponse.ResourceGroups["+ i +"]"));
}
describeDiagnosisDimensionsResponse.setResourceGroups(resourceGroups);
List<String> userNames = new ArrayList<String>();
for (int i = 0; i < _ctx.lengthValue("DescribeDiagnosisDimensionsResponse.UserNames.Length"); i++) {
userNames.add(_ctx.stringValue("DescribeDiagnosisDimensionsResponse.UserNames["+ i +"]"));
}
describeDiagnosisDimensionsResponse.setUserNames(userNames);
List<String> databases = new ArrayList<String>();
for (int i = 0; i < _ctx.lengthValue("DescribeDiagnosisDimensionsResponse.Databases.Length"); i++) {
databases.add(_ctx.stringValue("DescribeDiagnosisDimensionsResponse.Databases["+ i +"]"));
}
describeDiagnosisDimensionsResponse.setDatabases(databases);
return describeDiagnosisDimensionsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeDiagnosisMonitorPerformanceResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeDiagnosisMonitorPerformanceResponse;
import com.aliyuncs.adb.model.v20190315.DescribeDiagnosisMonitorPerformanceResponse.Items;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeDiagnosisMonitorPerformanceResponseUnmarshaller {
public static DescribeDiagnosisMonitorPerformanceResponse unmarshall(DescribeDiagnosisMonitorPerformanceResponse describeDiagnosisMonitorPerformanceResponse, UnmarshallerContext _ctx) {
describeDiagnosisMonitorPerformanceResponse.setRequestId(_ctx.stringValue("DescribeDiagnosisMonitorPerformanceResponse.RequestId"));
describeDiagnosisMonitorPerformanceResponse.setPerformancesThreshold(_ctx.integerValue("DescribeDiagnosisMonitorPerformanceResponse.PerformancesThreshold"));
describeDiagnosisMonitorPerformanceResponse.setPerformancesTruncated(_ctx.booleanValue("DescribeDiagnosisMonitorPerformanceResponse.PerformancesTruncated"));
List<Items> performances = new ArrayList<Items>();
for (int i = 0; i < _ctx.lengthValue("DescribeDiagnosisMonitorPerformanceResponse.Performances.Length"); i++) {
Items items = new Items();
items.setStatus(_ctx.stringValue("DescribeDiagnosisMonitorPerformanceResponse.Performances["+ i +"].Status"));
items.setProcessId(_ctx.stringValue("DescribeDiagnosisMonitorPerformanceResponse.Performances["+ i +"].ProcessId"));
items.setStartTime(_ctx.longValue("DescribeDiagnosisMonitorPerformanceResponse.Performances["+ i +"].StartTime"));
items.setCost(_ctx.longValue("DescribeDiagnosisMonitorPerformanceResponse.Performances["+ i +"].Cost"));
items.setScanRows(_ctx.longValue("DescribeDiagnosisMonitorPerformanceResponse.Performances["+ i +"].ScanRows"));
items.setPeakMemory(_ctx.longValue("DescribeDiagnosisMonitorPerformanceResponse.Performances["+ i +"].PeakMemory"));
items.setRcHost(_ctx.stringValue("DescribeDiagnosisMonitorPerformanceResponse.Performances["+ i +"].RcHost"));
items.setScanSize(_ctx.longValue("DescribeDiagnosisMonitorPerformanceResponse.Performances["+ i +"].ScanSize"));
items.setUserName(_ctx.stringValue("DescribeDiagnosisMonitorPerformanceResponse.Performances["+ i +"].UserName"));
performances.add(items);
}
describeDiagnosisMonitorPerformanceResponse.setPerformances(performances);
return describeDiagnosisMonitorPerformanceResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeDiagnosisRecordsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeDiagnosisRecordsResponse;
import com.aliyuncs.adb.model.v20190315.DescribeDiagnosisRecordsResponse.Items;
import com.aliyuncs.adb.model.v20190315.DescribeDiagnosisRecordsResponse.Items.QueryPropertiesItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeDiagnosisRecordsResponseUnmarshaller {
public static DescribeDiagnosisRecordsResponse unmarshall(DescribeDiagnosisRecordsResponse describeDiagnosisRecordsResponse, UnmarshallerContext _ctx) {
describeDiagnosisRecordsResponse.setRequestId(_ctx.stringValue("DescribeDiagnosisRecordsResponse.RequestId"));
describeDiagnosisRecordsResponse.setPageNumber(_ctx.integerValue("DescribeDiagnosisRecordsResponse.PageNumber"));
describeDiagnosisRecordsResponse.setPageSize(_ctx.integerValue("DescribeDiagnosisRecordsResponse.PageSize"));
describeDiagnosisRecordsResponse.setTotalCount(_ctx.integerValue("DescribeDiagnosisRecordsResponse.TotalCount"));
List<Items> querys = new ArrayList<Items>();
for (int i = 0; i < _ctx.lengthValue("DescribeDiagnosisRecordsResponse.Querys.Length"); i++) {
Items items = new Items();
items.setSQL(_ctx.stringValue("DescribeDiagnosisRecordsResponse.Querys["+ i +"].SQL"));
items.setSQLTruncatedThreshold(_ctx.longValue("DescribeDiagnosisRecordsResponse.Querys["+ i +"].SQLTruncatedThreshold"));
items.setStatus(_ctx.stringValue("DescribeDiagnosisRecordsResponse.Querys["+ i +"].Status"));
items.setOutputDataSize(_ctx.longValue("DescribeDiagnosisRecordsResponse.Querys["+ i +"].OutputDataSize"));
items.setCost(_ctx.longValue("DescribeDiagnosisRecordsResponse.Querys["+ i +"].Cost"));
items.setOutputRows(_ctx.longValue("DescribeDiagnosisRecordsResponse.Querys["+ i +"].OutputRows"));
items.setRcHost(_ctx.stringValue("DescribeDiagnosisRecordsResponse.Querys["+ i +"].RcHost"));
items.setScanSize(_ctx.longValue("DescribeDiagnosisRecordsResponse.Querys["+ i +"].ScanSize"));
items.setProcessId(_ctx.stringValue("DescribeDiagnosisRecordsResponse.Querys["+ i +"].ProcessId"));
items.setStartTime(_ctx.longValue("DescribeDiagnosisRecordsResponse.Querys["+ i +"].StartTime"));
items.setSQLTruncated(_ctx.booleanValue("DescribeDiagnosisRecordsResponse.Querys["+ i +"].SQLTruncated"));
items.setDatabase(_ctx.stringValue("DescribeDiagnosisRecordsResponse.Querys["+ i +"].Database"));
items.setScanRows(_ctx.longValue("DescribeDiagnosisRecordsResponse.Querys["+ i +"].ScanRows"));
items.setResourceCostRank(_ctx.integerValue("DescribeDiagnosisRecordsResponse.Querys["+ i +"].ResourceCostRank"));
items.setClientIp(_ctx.stringValue("DescribeDiagnosisRecordsResponse.Querys["+ i +"].ClientIp"));
items.setPeakMemory(_ctx.longValue("DescribeDiagnosisRecordsResponse.Querys["+ i +"].PeakMemory"));
items.setQueueTime(_ctx.longValue("DescribeDiagnosisRecordsResponse.Querys["+ i +"].QueueTime"));
items.setResourceGroup(_ctx.stringValue("DescribeDiagnosisRecordsResponse.Querys["+ i +"].ResourceGroup"));
items.setUserName(_ctx.stringValue("DescribeDiagnosisRecordsResponse.Querys["+ i +"].UserName"));
items.setExecutionTime(_ctx.longValue("DescribeDiagnosisRecordsResponse.Querys["+ i +"].ExecutionTime"));
items.setTotalPlanningTime(_ctx.longValue("DescribeDiagnosisRecordsResponse.Querys["+ i +"].TotalPlanningTime"));
items.setEtlWriteRows(_ctx.longValue("DescribeDiagnosisRecordsResponse.Querys["+ i +"].EtlWriteRows"));
items.setTotalStages(_ctx.integerValue("DescribeDiagnosisRecordsResponse.Querys["+ i +"].TotalStages"));
items.setPatternId(_ctx.stringValue("DescribeDiagnosisRecordsResponse.Querys["+ i +"].PatternId"));
List<QueryPropertiesItem> queryProperties = new ArrayList<QueryPropertiesItem>();
for (int j = 0; j < _ctx.lengthValue("DescribeDiagnosisRecordsResponse.Querys["+ i +"].QueryProperties.Length"); j++) {
QueryPropertiesItem queryPropertiesItem = new QueryPropertiesItem();
queryPropertiesItem.setName(_ctx.stringValue("DescribeDiagnosisRecordsResponse.Querys["+ i +"].QueryProperties["+ j +"].Name"));
queryPropertiesItem.setValue(_ctx.stringValue("DescribeDiagnosisRecordsResponse.Querys["+ i +"].QueryProperties["+ j +"].Value"));
queryProperties.add(queryPropertiesItem);
}
items.setQueryProperties(queryProperties);
querys.add(items);
}
describeDiagnosisRecordsResponse.setQuerys(querys);
return describeDiagnosisRecordsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeDiagnosisSQLInfoResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeDiagnosisSQLInfoResponse;
import com.aliyuncs.adb.model.v20190315.DescribeDiagnosisSQLInfoResponse.StageInfosItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeDiagnosisSQLInfoResponseUnmarshaller {
public static DescribeDiagnosisSQLInfoResponse unmarshall(DescribeDiagnosisSQLInfoResponse describeDiagnosisSQLInfoResponse, UnmarshallerContext _ctx) {
describeDiagnosisSQLInfoResponse.setRequestId(_ctx.stringValue("DescribeDiagnosisSQLInfoResponse.RequestId"));
describeDiagnosisSQLInfoResponse.setDiagnosisSQLInfo(_ctx.stringValue("DescribeDiagnosisSQLInfoResponse.DiagnosisSQLInfo"));
List<StageInfosItem> stageInfos = new ArrayList<StageInfosItem>();
for (int i = 0; i < _ctx.lengthValue("DescribeDiagnosisSQLInfoResponse.StageInfos.Length"); i++) {
StageInfosItem stageInfosItem = new StageInfosItem();
stageInfosItem.setInputRows(_ctx.longValue("DescribeDiagnosisSQLInfoResponse.StageInfos["+ i +"].InputRows"));
stageInfosItem.setInputDataSize(_ctx.longValue("DescribeDiagnosisSQLInfoResponse.StageInfos["+ i +"].InputDataSize"));
stageInfosItem.setOutputRows(_ctx.longValue("DescribeDiagnosisSQLInfoResponse.StageInfos["+ i +"].OutputRows"));
stageInfosItem.setOutputDataSize(_ctx.longValue("DescribeDiagnosisSQLInfoResponse.StageInfos["+ i +"].OutputDataSize"));
stageInfosItem.setPeakMemory(_ctx.longValue("DescribeDiagnosisSQLInfoResponse.StageInfos["+ i +"].PeakMemory"));
stageInfosItem.setOperatorCost(_ctx.longValue("DescribeDiagnosisSQLInfoResponse.StageInfos["+ i +"].OperatorCost"));
stageInfosItem.setStageId(_ctx.stringValue("DescribeDiagnosisSQLInfoResponse.StageInfos["+ i +"].StageId"));
stageInfosItem.setState(_ctx.stringValue("DescribeDiagnosisSQLInfoResponse.StageInfos["+ i +"].State"));
stageInfosItem.setProgress(_ctx.doubleValue("DescribeDiagnosisSQLInfoResponse.StageInfos["+ i +"].Progress"));
stageInfos.add(stageInfosItem);
}
describeDiagnosisSQLInfoResponse.setStageInfos(stageInfos);
return describeDiagnosisSQLInfoResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeDiagnosisTasksResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeDiagnosisTasksResponse;
import com.aliyuncs.adb.model.v20190315.DescribeDiagnosisTasksResponse.SqlTasks;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeDiagnosisTasksResponseUnmarshaller {
public static DescribeDiagnosisTasksResponse unmarshall(DescribeDiagnosisTasksResponse describeDiagnosisTasksResponse, UnmarshallerContext _ctx) {
describeDiagnosisTasksResponse.setRequestId(_ctx.stringValue("DescribeDiagnosisTasksResponse.RequestId"));
describeDiagnosisTasksResponse.setTotalCount(_ctx.integerValue("DescribeDiagnosisTasksResponse.TotalCount"));
List<SqlTasks> taskList = new ArrayList<SqlTasks>();
for (int i = 0; i < _ctx.lengthValue("DescribeDiagnosisTasksResponse.TaskList.Length"); i++) {
SqlTasks sqlTasks = new SqlTasks();
sqlTasks.setScanCost(_ctx.longValue("DescribeDiagnosisTasksResponse.TaskList["+ i +"].ScanCost"));
sqlTasks.setOutputDataSize(_ctx.longValue("DescribeDiagnosisTasksResponse.TaskList["+ i +"].OutputDataSize"));
sqlTasks.setInputDataSize(_ctx.longValue("DescribeDiagnosisTasksResponse.TaskList["+ i +"].InputDataSize"));
sqlTasks.setState(_ctx.stringValue("DescribeDiagnosisTasksResponse.TaskList["+ i +"].State"));
sqlTasks.setOperatorCost(_ctx.longValue("DescribeDiagnosisTasksResponse.TaskList["+ i +"].OperatorCost"));
sqlTasks.setOutputRows(_ctx.longValue("DescribeDiagnosisTasksResponse.TaskList["+ i +"].OutputRows"));
sqlTasks.setScanDataSize(_ctx.longValue("DescribeDiagnosisTasksResponse.TaskList["+ i +"].ScanDataSize"));
sqlTasks.setElapsedTime(_ctx.longValue("DescribeDiagnosisTasksResponse.TaskList["+ i +"].ElapsedTime"));
sqlTasks.setScanRows(_ctx.longValue("DescribeDiagnosisTasksResponse.TaskList["+ i +"].ScanRows"));
sqlTasks.setPeakMemory(_ctx.longValue("DescribeDiagnosisTasksResponse.TaskList["+ i +"].PeakMemory"));
sqlTasks.setTaskId(_ctx.stringValue("DescribeDiagnosisTasksResponse.TaskList["+ i +"].TaskId"));
sqlTasks.setInputRows(_ctx.longValue("DescribeDiagnosisTasksResponse.TaskList["+ i +"].InputRows"));
sqlTasks.setTaskCreateTime(_ctx.longValue("DescribeDiagnosisTasksResponse.TaskList["+ i +"].TaskCreateTime"));
sqlTasks.setTaskEndTime(_ctx.longValue("DescribeDiagnosisTasksResponse.TaskList["+ i +"].TaskEndTime"));
sqlTasks.setTaskHost(_ctx.stringValue("DescribeDiagnosisTasksResponse.TaskList["+ i +"].TaskHost"));
sqlTasks.setDrivers(_ctx.stringValue("DescribeDiagnosisTasksResponse.TaskList["+ i +"].Drivers"));
sqlTasks.setQueuedTime(_ctx.stringValue("DescribeDiagnosisTasksResponse.TaskList["+ i +"].QueuedTime"));
sqlTasks.setComputeTimeRatio(_ctx.stringValue("DescribeDiagnosisTasksResponse.TaskList["+ i +"].ComputeTimeRatio"));
taskList.add(sqlTasks);
}
describeDiagnosisTasksResponse.setTaskList(taskList);
return describeDiagnosisTasksResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeDownloadRecordsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeDownloadRecordsResponse;
import com.aliyuncs.adb.model.v20190315.DescribeDownloadRecordsResponse.Items;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeDownloadRecordsResponseUnmarshaller {
public static DescribeDownloadRecordsResponse unmarshall(DescribeDownloadRecordsResponse describeDownloadRecordsResponse, UnmarshallerContext _ctx) {
describeDownloadRecordsResponse.setRequestId(_ctx.stringValue("DescribeDownloadRecordsResponse.RequestId"));
List<Items> records = new ArrayList<Items>();
for (int i = 0; i < _ctx.lengthValue("DescribeDownloadRecordsResponse.Records.Length"); i++) {
Items items = new Items();
items.setStatus(_ctx.stringValue("DescribeDownloadRecordsResponse.Records["+ i +"].Status"));
items.setDownloadId(_ctx.longValue("DescribeDownloadRecordsResponse.Records["+ i +"].DownloadId"));
items.setExceptionMsg(_ctx.stringValue("DescribeDownloadRecordsResponse.Records["+ i +"].ExceptionMsg"));
items.setUrl(_ctx.stringValue("DescribeDownloadRecordsResponse.Records["+ i +"].Url"));
items.setFileName(_ctx.stringValue("DescribeDownloadRecordsResponse.Records["+ i +"].FileName"));
records.add(items);
}
describeDownloadRecordsResponse.setRecords(records);
return describeDownloadRecordsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeEIURangeResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeEIURangeResponse;
import com.aliyuncs.adb.model.v20190315.DescribeEIURangeResponse.EIUInfo;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeEIURangeResponseUnmarshaller {
public static DescribeEIURangeResponse unmarshall(DescribeEIURangeResponse describeEIURangeResponse, UnmarshallerContext _ctx) {
describeEIURangeResponse.setRequestId(_ctx.stringValue("DescribeEIURangeResponse.RequestId"));
EIUInfo eIUInfo = new EIUInfo();
eIUInfo.setDefaultValue(_ctx.stringValue("DescribeEIURangeResponse.EIUInfo.DefaultValue"));
eIUInfo.setMinValue(_ctx.stringValue("DescribeEIURangeResponse.EIUInfo.MinValue"));
eIUInfo.setMaxValue(_ctx.stringValue("DescribeEIURangeResponse.EIUInfo.MaxValue"));
eIUInfo.setStep(_ctx.stringValue("DescribeEIURangeResponse.EIUInfo.Step"));
List<Long> eIURange = new ArrayList<Long>();
for (int i = 0; i < _ctx.lengthValue("DescribeEIURangeResponse.EIUInfo.EIURange.Length"); i++) {
eIURange.add(_ctx.longValue("DescribeEIURangeResponse.EIUInfo.EIURange["+ i +"]"));
}
eIUInfo.setEIURange(eIURange);
List<String> storageResourceRange = new ArrayList<String>();
for (int i = 0; i < _ctx.lengthValue("DescribeEIURangeResponse.EIUInfo.StorageResourceRange.Length"); i++) {
storageResourceRange.add(_ctx.stringValue("DescribeEIURangeResponse.EIUInfo.StorageResourceRange["+ i +"]"));
}
eIUInfo.setStorageResourceRange(storageResourceRange);
describeEIURangeResponse.setEIUInfo(eIUInfo);
return describeEIURangeResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeElasticDailyPlanResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeElasticDailyPlanResponse;
import com.aliyuncs.adb.model.v20190315.DescribeElasticDailyPlanResponse.ElasticDailyPlanInfo;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeElasticDailyPlanResponseUnmarshaller {
public static DescribeElasticDailyPlanResponse unmarshall(DescribeElasticDailyPlanResponse describeElasticDailyPlanResponse, UnmarshallerContext _ctx) {
describeElasticDailyPlanResponse.setRequestId(_ctx.stringValue("DescribeElasticDailyPlanResponse.RequestId"));
List<ElasticDailyPlanInfo> elasticDailyPlanList = new ArrayList<ElasticDailyPlanInfo>();
for (int i = 0; i < _ctx.lengthValue("DescribeElasticDailyPlanResponse.ElasticDailyPlanList.Length"); i++) {
ElasticDailyPlanInfo elasticDailyPlanInfo = new ElasticDailyPlanInfo();
elasticDailyPlanInfo.setStatus(_ctx.integerValue("DescribeElasticDailyPlanResponse.ElasticDailyPlanList["+ i +"].Status"));
elasticDailyPlanInfo.setDay(_ctx.stringValue("DescribeElasticDailyPlanResponse.ElasticDailyPlanList["+ i +"].Day"));
elasticDailyPlanInfo.setResourcePoolName(_ctx.stringValue("DescribeElasticDailyPlanResponse.ElasticDailyPlanList["+ i +"].ResourcePoolName"));
elasticDailyPlanInfo.setStartTs(_ctx.stringValue("DescribeElasticDailyPlanResponse.ElasticDailyPlanList["+ i +"].StartTs"));
elasticDailyPlanInfo.setPlanEndTs(_ctx.stringValue("DescribeElasticDailyPlanResponse.ElasticDailyPlanList["+ i +"].PlanEndTs"));
elasticDailyPlanInfo.setPlanStartTs(_ctx.stringValue("DescribeElasticDailyPlanResponse.ElasticDailyPlanList["+ i +"].PlanStartTs"));
elasticDailyPlanInfo.setElasticNodeNum(_ctx.integerValue("DescribeElasticDailyPlanResponse.ElasticDailyPlanList["+ i +"].ElasticNodeNum"));
elasticDailyPlanInfo.setEndTs(_ctx.stringValue("DescribeElasticDailyPlanResponse.ElasticDailyPlanList["+ i +"].EndTs"));
elasticDailyPlanInfo.setPlanName(_ctx.stringValue("DescribeElasticDailyPlanResponse.ElasticDailyPlanList["+ i +"].PlanName"));
elasticDailyPlanInfo.setElasticPlanType(_ctx.stringValue("DescribeElasticDailyPlanResponse.ElasticDailyPlanList["+ i +"].ElasticPlanType"));
elasticDailyPlanInfo.setElasticPlanWorkerSpec(_ctx.stringValue("DescribeElasticDailyPlanResponse.ElasticDailyPlanList["+ i +"].ElasticPlanWorkerSpec"));
elasticDailyPlanList.add(elasticDailyPlanInfo);
}
describeElasticDailyPlanResponse.setElasticDailyPlanList(elasticDailyPlanList);
return describeElasticDailyPlanResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeElasticPlanResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeElasticPlanResponse;
import com.aliyuncs.adb.model.v20190315.DescribeElasticPlanResponse.ElasticPlanInfo;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeElasticPlanResponseUnmarshaller {
public static DescribeElasticPlanResponse unmarshall(DescribeElasticPlanResponse describeElasticPlanResponse, UnmarshallerContext _ctx) {
describeElasticPlanResponse.setRequestId(_ctx.stringValue("DescribeElasticPlanResponse.RequestId"));
List<ElasticPlanInfo> elasticPlanList = new ArrayList<ElasticPlanInfo>();
for (int i = 0; i < _ctx.lengthValue("DescribeElasticPlanResponse.ElasticPlanList.Length"); i++) {
ElasticPlanInfo elasticPlanInfo = new ElasticPlanInfo();
elasticPlanInfo.setEndTime(_ctx.stringValue("DescribeElasticPlanResponse.ElasticPlanList["+ i +"].EndTime"));
elasticPlanInfo.setWeeklyRepeat(_ctx.stringValue("DescribeElasticPlanResponse.ElasticPlanList["+ i +"].WeeklyRepeat"));
elasticPlanInfo.setMonthlyRepeat(_ctx.stringValue("DescribeElasticPlanResponse.ElasticPlanList["+ i +"].MonthlyRepeat"));
elasticPlanInfo.setStartTime(_ctx.stringValue("DescribeElasticPlanResponse.ElasticPlanList["+ i +"].StartTime"));
elasticPlanInfo.setResourcePoolName(_ctx.stringValue("DescribeElasticPlanResponse.ElasticPlanList["+ i +"].ResourcePoolName"));
elasticPlanInfo.setStartDay(_ctx.stringValue("DescribeElasticPlanResponse.ElasticPlanList["+ i +"].StartDay"));
elasticPlanInfo.setElasticNodeNum(_ctx.integerValue("DescribeElasticPlanResponse.ElasticPlanList["+ i +"].ElasticNodeNum"));
elasticPlanInfo.setEnable(_ctx.booleanValue("DescribeElasticPlanResponse.ElasticPlanList["+ i +"].Enable"));
elasticPlanInfo.setEndDay(_ctx.stringValue("DescribeElasticPlanResponse.ElasticPlanList["+ i +"].EndDay"));
elasticPlanInfo.setPlanName(_ctx.stringValue("DescribeElasticPlanResponse.ElasticPlanList["+ i +"].PlanName"));
elasticPlanInfo.setElasticPlanType(_ctx.stringValue("DescribeElasticPlanResponse.ElasticPlanList["+ i +"].ElasticPlanType"));
elasticPlanInfo.setElasticPlanWorkerSpec(_ctx.stringValue("DescribeElasticPlanResponse.ElasticPlanList["+ i +"].ElasticPlanWorkerSpec"));
elasticPlanList.add(elasticPlanInfo);
}
describeElasticPlanResponse.setElasticPlanList(elasticPlanList);
return describeElasticPlanResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeExcessivePrimaryKeysResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeExcessivePrimaryKeysResponse;
import com.aliyuncs.adb.model.v20190315.DescribeExcessivePrimaryKeysResponse.DetectionItemsArray;
import com.aliyuncs.adb.model.v20190315.DescribeExcessivePrimaryKeysResponse.ExcessivePrimaryKeyInfos;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeExcessivePrimaryKeysResponseUnmarshaller {
public static DescribeExcessivePrimaryKeysResponse unmarshall(DescribeExcessivePrimaryKeysResponse describeExcessivePrimaryKeysResponse, UnmarshallerContext _ctx) {
describeExcessivePrimaryKeysResponse.setRequestId(_ctx.stringValue("DescribeExcessivePrimaryKeysResponse.RequestId"));
describeExcessivePrimaryKeysResponse.setTotalCount(_ctx.stringValue("DescribeExcessivePrimaryKeysResponse.TotalCount"));
describeExcessivePrimaryKeysResponse.setPageNumber(_ctx.integerValue("DescribeExcessivePrimaryKeysResponse.PageNumber"));
describeExcessivePrimaryKeysResponse.setPageSize(_ctx.integerValue("DescribeExcessivePrimaryKeysResponse.PageSize"));
describeExcessivePrimaryKeysResponse.setDBClusterId(_ctx.stringValue("DescribeExcessivePrimaryKeysResponse.DBClusterId"));
describeExcessivePrimaryKeysResponse.setAccessDeniedDetail(_ctx.stringValue("DescribeExcessivePrimaryKeysResponse.AccessDeniedDetail"));
List<ExcessivePrimaryKeyInfos> tables = new ArrayList<ExcessivePrimaryKeyInfos>();
for (int i = 0; i < _ctx.lengthValue("DescribeExcessivePrimaryKeysResponse.Tables.Length"); i++) {
ExcessivePrimaryKeyInfos excessivePrimaryKeyInfos = new ExcessivePrimaryKeyInfos();
excessivePrimaryKeyInfos.setTableName(_ctx.stringValue("DescribeExcessivePrimaryKeysResponse.Tables["+ i +"].TableName"));
excessivePrimaryKeyInfos.setSchemaName(_ctx.stringValue("DescribeExcessivePrimaryKeysResponse.Tables["+ i +"].SchemaName"));
excessivePrimaryKeyInfos.setColumnCount(_ctx.integerValue("DescribeExcessivePrimaryKeysResponse.Tables["+ i +"].ColumnCount"));
excessivePrimaryKeyInfos.setPrimaryKeyCount(_ctx.integerValue("DescribeExcessivePrimaryKeysResponse.Tables["+ i +"].PrimaryKeyCount"));
excessivePrimaryKeyInfos.setPrimaryKeyColumns(_ctx.stringValue("DescribeExcessivePrimaryKeysResponse.Tables["+ i +"].PrimaryKeyColumns"));
excessivePrimaryKeyInfos.setSpaceRatio(_ctx.doubleValue("DescribeExcessivePrimaryKeysResponse.Tables["+ i +"].SpaceRatio"));
excessivePrimaryKeyInfos.setTotalSize(_ctx.longValue("DescribeExcessivePrimaryKeysResponse.Tables["+ i +"].TotalSize"));
excessivePrimaryKeyInfos.setPrimaryKeyIndexSize(_ctx.longValue("DescribeExcessivePrimaryKeysResponse.Tables["+ i +"].PrimaryKeyIndexSize"));
tables.add(excessivePrimaryKeyInfos);
}
describeExcessivePrimaryKeysResponse.setTables(tables);
List<DetectionItemsArray> detectionItems = new ArrayList<DetectionItemsArray>();
for (int i = 0; i < _ctx.lengthValue("DescribeExcessivePrimaryKeysResponse.DetectionItems.Length"); i++) {
DetectionItemsArray detectionItemsArray = new DetectionItemsArray();
detectionItemsArray.setName(_ctx.stringValue("DescribeExcessivePrimaryKeysResponse.DetectionItems["+ i +"].Name"));
detectionItemsArray.setMessage(_ctx.stringValue("DescribeExcessivePrimaryKeysResponse.DetectionItems["+ i +"].Message"));
detectionItemsArray.setStatus(_ctx.stringValue("DescribeExcessivePrimaryKeysResponse.DetectionItems["+ i +"].Status"));
detectionItems.add(detectionItemsArray);
}
describeExcessivePrimaryKeysResponse.setDetectionItems(detectionItems);
return describeExcessivePrimaryKeysResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeExecutorDetectionResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeExecutorDetectionResponse;
import com.aliyuncs.adb.model.v20190315.DescribeExecutorDetectionResponse.BaseDetectionItem;
import com.aliyuncs.adb.model.v20190315.DescribeExecutorDetectionResponse.BaseDetectionItem.Results;
import com.aliyuncs.adb.model.v20190315.DescribeExecutorDetectionResponse.BaseDetectionItem.Results.BadOperatorAgg;
import com.aliyuncs.adb.model.v20190315.DescribeExecutorDetectionResponse.BaseDetectionItem.Results.BadOperatorAgg.ResultList2;
import com.aliyuncs.adb.model.v20190315.DescribeExecutorDetectionResponse.BaseDetectionItem.Results.BadOperatorDetails;
import com.aliyuncs.adb.model.v20190315.DescribeExecutorDetectionResponse.BaseDetectionItem.Results.BadOperatorDetails.ResultList;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeExecutorDetectionResponseUnmarshaller {
public static DescribeExecutorDetectionResponse unmarshall(DescribeExecutorDetectionResponse describeExecutorDetectionResponse, UnmarshallerContext _ctx) {
describeExecutorDetectionResponse.setRequestId(_ctx.stringValue("DescribeExecutorDetectionResponse.RequestId"));
describeExecutorDetectionResponse.setTotalCount(_ctx.stringValue("DescribeExecutorDetectionResponse.TotalCount"));
describeExecutorDetectionResponse.setDBClusterId(_ctx.stringValue("DescribeExecutorDetectionResponse.DBClusterId"));
List<BaseDetectionItem> detectionItems = new ArrayList<BaseDetectionItem>();
for (int i = 0; i < _ctx.lengthValue("DescribeExecutorDetectionResponse.DetectionItems.Length"); i++) {
BaseDetectionItem baseDetectionItem = new BaseDetectionItem();
baseDetectionItem.setName(_ctx.stringValue("DescribeExecutorDetectionResponse.DetectionItems["+ i +"].Name"));
baseDetectionItem.setMessage(_ctx.stringValue("DescribeExecutorDetectionResponse.DetectionItems["+ i +"].Message"));
baseDetectionItem.setStatus(_ctx.stringValue("DescribeExecutorDetectionResponse.DetectionItems["+ i +"].Status"));
Results results = new Results();
List<BadOperatorDetails> operatorDetails = new ArrayList<BadOperatorDetails>();
for (int j = 0; j < _ctx.lengthValue("DescribeExecutorDetectionResponse.DetectionItems["+ i +"].Results.OperatorDetails.Length"); j++) {
BadOperatorDetails badOperatorDetails = new BadOperatorDetails();
badOperatorDetails.setMetricName(_ctx.stringValue("DescribeExecutorDetectionResponse.DetectionItems["+ i +"].Results.OperatorDetails["+ j +"].MetricName"));
List<ResultList> searchResults = new ArrayList<ResultList>();
for (int k = 0; k < _ctx.lengthValue("DescribeExecutorDetectionResponse.DetectionItems["+ i +"].Results.OperatorDetails["+ j +"].SearchResults.Length"); k++) {
ResultList resultList = new ResultList();
resultList.setProcessId(_ctx.stringValue("DescribeExecutorDetectionResponse.DetectionItems["+ i +"].Results.OperatorDetails["+ j +"].SearchResults["+ k +"].ProcessId"));
resultList.setStageId(_ctx.stringValue("DescribeExecutorDetectionResponse.DetectionItems["+ i +"].Results.OperatorDetails["+ j +"].SearchResults["+ k +"].StageId"));
resultList.setOperatorName(_ctx.stringValue("DescribeExecutorDetectionResponse.DetectionItems["+ i +"].Results.OperatorDetails["+ j +"].SearchResults["+ k +"].OperatorName"));
resultList.setPeakMemory(_ctx.longValue("DescribeExecutorDetectionResponse.DetectionItems["+ i +"].Results.OperatorDetails["+ j +"].SearchResults["+ k +"].PeakMemory"));
resultList.setOperatorCost(_ctx.doubleValue("DescribeExecutorDetectionResponse.DetectionItems["+ i +"].Results.OperatorDetails["+ j +"].SearchResults["+ k +"].OperatorCost"));
resultList.setInputRows(_ctx.longValue("DescribeExecutorDetectionResponse.DetectionItems["+ i +"].Results.OperatorDetails["+ j +"].SearchResults["+ k +"].InputRows"));
resultList.setOutputRows(_ctx.longValue("DescribeExecutorDetectionResponse.DetectionItems["+ i +"].Results.OperatorDetails["+ j +"].SearchResults["+ k +"].OutputRows"));
resultList.setInputSize(_ctx.longValue("DescribeExecutorDetectionResponse.DetectionItems["+ i +"].Results.OperatorDetails["+ j +"].SearchResults["+ k +"].InputSize"));
resultList.setOutputSize(_ctx.longValue("DescribeExecutorDetectionResponse.DetectionItems["+ i +"].Results.OperatorDetails["+ j +"].SearchResults["+ k +"].OutputSize"));
resultList.setOperatorInfo(_ctx.stringValue("DescribeExecutorDetectionResponse.DetectionItems["+ i +"].Results.OperatorDetails["+ j +"].SearchResults["+ k +"].OperatorInfo"));
searchResults.add(resultList);
}
badOperatorDetails.setSearchResults(searchResults);
operatorDetails.add(badOperatorDetails);
}
results.setOperatorDetails(operatorDetails);
List<BadOperatorAgg> operatorAgg = new ArrayList<BadOperatorAgg>();
for (int j = 0; j < _ctx.lengthValue("DescribeExecutorDetectionResponse.DetectionItems["+ i +"].Results.OperatorAgg.Length"); j++) {
BadOperatorAgg badOperatorAgg = new BadOperatorAgg();
badOperatorAgg.setMetricName(_ctx.stringValue("DescribeExecutorDetectionResponse.DetectionItems["+ i +"].Results.OperatorAgg["+ j +"].MetricName"));
List<ResultList2> searchResults1 = new ArrayList<ResultList2>();
for (int k = 0; k < _ctx.lengthValue("DescribeExecutorDetectionResponse.DetectionItems["+ i +"].Results.OperatorAgg["+ j +"].SearchResults.Length"); k++) {
ResultList2 resultList2 = new ResultList2();
resultList2.setOperatorName(_ctx.stringValue("DescribeExecutorDetectionResponse.DetectionItems["+ i +"].Results.OperatorAgg["+ j +"].SearchResults["+ k +"].OperatorName"));
resultList2.setMaxValue(_ctx.longValue("DescribeExecutorDetectionResponse.DetectionItems["+ i +"].Results.OperatorAgg["+ j +"].SearchResults["+ k +"].MaxValue"));
resultList2.setTotalValue(_ctx.longValue("DescribeExecutorDetectionResponse.DetectionItems["+ i +"].Results.OperatorAgg["+ j +"].SearchResults["+ k +"].TotalValue"));
resultList2.setAvgValue(_ctx.doubleValue("DescribeExecutorDetectionResponse.DetectionItems["+ i +"].Results.OperatorAgg["+ j +"].SearchResults["+ k +"].AvgValue"));
resultList2.setOperatorCount(_ctx.longValue("DescribeExecutorDetectionResponse.DetectionItems["+ i +"].Results.OperatorAgg["+ j +"].SearchResults["+ k +"].OperatorCount"));
searchResults1.add(resultList2);
}
badOperatorAgg.setSearchResults1(searchResults1);
operatorAgg.add(badOperatorAgg);
}
results.setOperatorAgg(operatorAgg);
baseDetectionItem.setResults(results);
detectionItems.add(baseDetectionItem);
}
describeExecutorDetectionResponse.setDetectionItems(detectionItems);
return describeExecutorDetectionResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeHistoryEventsStatResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeHistoryEventsStatResponse;
import com.aliyuncs.adb.model.v20190315.DescribeHistoryEventsStatResponse.ItemsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeHistoryEventsStatResponseUnmarshaller {
public static DescribeHistoryEventsStatResponse unmarshall(DescribeHistoryEventsStatResponse describeHistoryEventsStatResponse, UnmarshallerContext _ctx) {
describeHistoryEventsStatResponse.setRequestId(_ctx.stringValue("DescribeHistoryEventsStatResponse.RequestId"));
List<ItemsItem> items = new ArrayList<ItemsItem>();
for (int i = 0; i < _ctx.lengthValue("DescribeHistoryEventsStatResponse.Items.Length"); i++) {
ItemsItem itemsItem = new ItemsItem();
itemsItem.setEventCategory(_ctx.stringValue("DescribeHistoryEventsStatResponse.Items["+ i +"].EventCategory"));
itemsItem.setTotalCount(_ctx.integerValue("DescribeHistoryEventsStatResponse.Items["+ i +"].TotalCount"));
items.add(itemsItem);
}
describeHistoryEventsStatResponse.setItems(items);
return describeHistoryEventsStatResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeInclinedNodesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeInclinedNodesResponse;
import com.aliyuncs.adb.model.v20190315.DescribeInclinedNodesResponse.ItemsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeInclinedNodesResponseUnmarshaller {
public static DescribeInclinedNodesResponse unmarshall(DescribeInclinedNodesResponse describeInclinedNodesResponse, UnmarshallerContext _ctx) {
describeInclinedNodesResponse.setRequestId(_ctx.stringValue("DescribeInclinedNodesResponse.RequestId"));
List<ItemsItem> items = new ArrayList<ItemsItem>();
for (int i = 0; i < _ctx.lengthValue("DescribeInclinedNodesResponse.Items.Length"); i++) {
ItemsItem itemsItem = new ItemsItem();
itemsItem.setNode(_ctx.stringValue("DescribeInclinedNodesResponse.Items["+ i +"].Node"));
itemsItem.setDiskUsageRatio(_ctx.stringValue("DescribeInclinedNodesResponse.Items["+ i +"].DiskUsageRatio"));
items.add(itemsItem);
}
describeInclinedNodesResponse.setItems(items);
return describeInclinedNodesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeInclinedTablesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeInclinedTablesResponse;
import com.aliyuncs.adb.model.v20190315.DescribeInclinedTablesResponse.Items;
import com.aliyuncs.adb.model.v20190315.DescribeInclinedTablesResponse.Items1;
import com.aliyuncs.adb.model.v20190315.DescribeInclinedTablesResponse.Items1.Items2;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeInclinedTablesResponseUnmarshaller {
public static DescribeInclinedTablesResponse unmarshall(DescribeInclinedTablesResponse describeInclinedTablesResponse, UnmarshallerContext _ctx) {
describeInclinedTablesResponse.setRequestId(_ctx.stringValue("DescribeInclinedTablesResponse.RequestId"));
describeInclinedTablesResponse.setTotalCount(_ctx.stringValue("DescribeInclinedTablesResponse.TotalCount"));
describeInclinedTablesResponse.setPageSize(_ctx.stringValue("DescribeInclinedTablesResponse.PageSize"));
describeInclinedTablesResponse.setPageNumber(_ctx.stringValue("DescribeInclinedTablesResponse.PageNumber"));
Items1 items1 = new Items1();
List<Items2> table = new ArrayList<Items2>();
for (int i = 0; i < _ctx.lengthValue("DescribeInclinedTablesResponse.Items.Table.Length"); i++) {
Items2 items2 = new Items2();
items2.setType(_ctx.stringValue("DescribeInclinedTablesResponse.Items.Table["+ i +"].Type"));
items2.setSchema(_ctx.stringValue("DescribeInclinedTablesResponse.Items.Table["+ i +"].Schema"));
items2.setSize(_ctx.stringValue("DescribeInclinedTablesResponse.Items.Table["+ i +"].Size"));
items2.setName(_ctx.stringValue("DescribeInclinedTablesResponse.Items.Table["+ i +"].Name"));
items2.setIsIncline(_ctx.stringValue("DescribeInclinedTablesResponse.Items.Table["+ i +"].IsIncline"));
items2.setTotalSize(_ctx.longValue("DescribeInclinedTablesResponse.Items.Table["+ i +"].TotalSize"));
items2.setSpaceRatio(_ctx.doubleValue("DescribeInclinedTablesResponse.Items.Table["+ i +"].SpaceRatio"));
items2.setRowCount(_ctx.longValue("DescribeInclinedTablesResponse.Items.Table["+ i +"].RowCount"));
table.add(items2);
}
items1.setTable(table);
describeInclinedTablesResponse.setItems1(items1);
List<Items> detectionItems = new ArrayList<Items>();
for (int i = 0; i < _ctx.lengthValue("DescribeInclinedTablesResponse.DetectionItems.Length"); i++) {
Items items = new Items();
items.setName(_ctx.stringValue("DescribeInclinedTablesResponse.DetectionItems["+ i +"].Name"));
items.setMessage(_ctx.stringValue("DescribeInclinedTablesResponse.DetectionItems["+ i +"].Message"));
items.setStatus(_ctx.stringValue("DescribeInclinedTablesResponse.DetectionItems["+ i +"].Status"));
detectionItems.add(items);
}
describeInclinedTablesResponse.setDetectionItems(detectionItems);
return describeInclinedTablesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeKernelVersionResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeKernelVersionResponse;
import com.aliyuncs.adb.model.v20190315.DescribeKernelVersionResponse.AvailableKernelVersionsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeKernelVersionResponseUnmarshaller {
public static DescribeKernelVersionResponse unmarshall(DescribeKernelVersionResponse describeKernelVersionResponse, UnmarshallerContext _ctx) {
describeKernelVersionResponse.setRequestId(_ctx.stringValue("DescribeKernelVersionResponse.RequestId"));
describeKernelVersionResponse.setKernelVersion(_ctx.stringValue("DescribeKernelVersionResponse.KernelVersion"));
describeKernelVersionResponse.setExpireDate(_ctx.stringValue("DescribeKernelVersionResponse.ExpireDate"));
List<AvailableKernelVersionsItem> availableKernelVersions = new ArrayList<AvailableKernelVersionsItem>();
for (int i = 0; i < _ctx.lengthValue("DescribeKernelVersionResponse.AvailableKernelVersions.Length"); i++) {
AvailableKernelVersionsItem availableKernelVersionsItem = new AvailableKernelVersionsItem();
availableKernelVersionsItem.setKernelVersion(_ctx.stringValue("DescribeKernelVersionResponse.AvailableKernelVersions["+ i +"].KernelVersion"));
availableKernelVersionsItem.setReleaseDate(_ctx.stringValue("DescribeKernelVersionResponse.AvailableKernelVersions["+ i +"].ReleaseDate"));
availableKernelVersionsItem.setExpireDate(_ctx.stringValue("DescribeKernelVersionResponse.AvailableKernelVersions["+ i +"].ExpireDate"));
availableKernelVersions.add(availableKernelVersionsItem);
}
describeKernelVersionResponse.setAvailableKernelVersions(availableKernelVersions);
return describeKernelVersionResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeKmsKeysResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeKmsKeysResponse;
import com.aliyuncs.adb.model.v20190315.DescribeKmsKeysResponse.KmsKey;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeKmsKeysResponseUnmarshaller {
public static DescribeKmsKeysResponse unmarshall(DescribeKmsKeysResponse describeKmsKeysResponse, UnmarshallerContext _ctx) {
describeKmsKeysResponse.setRequestId(_ctx.stringValue("DescribeKmsKeysResponse.RequestId"));
List<KmsKey> kmsKeys = new ArrayList<KmsKey>();
for (int i = 0; i < _ctx.lengthValue("DescribeKmsKeysResponse.KmsKeys.Length"); i++) {
KmsKey kmsKey = new KmsKey();
kmsKey.setKeyAlias(_ctx.stringValue("DescribeKmsKeysResponse.KmsKeys["+ i +"].KeyAlias"));
kmsKey.setKeyId(_ctx.stringValue("DescribeKmsKeysResponse.KmsKeys["+ i +"].KeyId"));
kmsKeys.add(kmsKey);
}
describeKmsKeysResponse.setKmsKeys(kmsKeys);
return describeKmsKeysResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeLoadTasksRecordsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeLoadTasksRecordsResponse;
import com.aliyuncs.adb.model.v20190315.DescribeLoadTasksRecordsResponse.LoadTaskRecord;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeLoadTasksRecordsResponseUnmarshaller {
public static DescribeLoadTasksRecordsResponse unmarshall(DescribeLoadTasksRecordsResponse describeLoadTasksRecordsResponse, UnmarshallerContext _ctx) {
describeLoadTasksRecordsResponse.setRequestId(_ctx.stringValue("DescribeLoadTasksRecordsResponse.RequestId"));
describeLoadTasksRecordsResponse.setTotalCount(_ctx.stringValue("DescribeLoadTasksRecordsResponse.TotalCount"));
describeLoadTasksRecordsResponse.setPageSize(_ctx.stringValue("DescribeLoadTasksRecordsResponse.PageSize"));
describeLoadTasksRecordsResponse.setPageNumber(_ctx.stringValue("DescribeLoadTasksRecordsResponse.PageNumber"));
describeLoadTasksRecordsResponse.setDBClusterId(_ctx.stringValue("DescribeLoadTasksRecordsResponse.DBClusterId"));
List<LoadTaskRecord> loadTasksRecords = new ArrayList<LoadTaskRecord>();
for (int i = 0; i < _ctx.lengthValue("DescribeLoadTasksRecordsResponse.LoadTasksRecords.Length"); i++) {
LoadTaskRecord loadTaskRecord = new LoadTaskRecord();
loadTaskRecord.setSql(_ctx.stringValue("DescribeLoadTasksRecordsResponse.LoadTasksRecords["+ i +"].Sql"));
loadTaskRecord.setState(_ctx.stringValue("DescribeLoadTasksRecordsResponse.LoadTasksRecords["+ i +"].State"));
loadTaskRecord.setCreateTime(_ctx.stringValue("DescribeLoadTasksRecordsResponse.LoadTasksRecords["+ i +"].CreateTime"));
loadTaskRecord.setDBName(_ctx.stringValue("DescribeLoadTasksRecordsResponse.LoadTasksRecords["+ i +"].DBName"));
loadTaskRecord.setProcessID(_ctx.stringValue("DescribeLoadTasksRecordsResponse.LoadTasksRecords["+ i +"].ProcessID"));
loadTaskRecord.setUpdateTime(_ctx.stringValue("DescribeLoadTasksRecordsResponse.LoadTasksRecords["+ i +"].UpdateTime"));
loadTaskRecord.setJobName(_ctx.stringValue("DescribeLoadTasksRecordsResponse.LoadTasksRecords["+ i +"].JobName"));
loadTaskRecord.setProcessRows(_ctx.longValue("DescribeLoadTasksRecordsResponse.LoadTasksRecords["+ i +"].ProcessRows"));
loadTasksRecords.add(loadTaskRecord);
}
describeLoadTasksRecordsResponse.setLoadTasksRecords(loadTasksRecords);
return describeLoadTasksRecordsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeLogHubAttributeResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeLogHubAttributeResponse;
import com.aliyuncs.adb.model.v20190315.DescribeLogHubAttributeResponse.LoghubInfo;
import com.aliyuncs.adb.model.v20190315.DescribeLogHubAttributeResponse.LoghubInfo.LogHubStore;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeLogHubAttributeResponseUnmarshaller {
public static DescribeLogHubAttributeResponse unmarshall(DescribeLogHubAttributeResponse describeLogHubAttributeResponse, UnmarshallerContext _ctx) {
describeLogHubAttributeResponse.setRequestId(_ctx.stringValue("DescribeLogHubAttributeResponse.RequestId"));
LoghubInfo loghubInfo = new LoghubInfo();
loghubInfo.setDelay(_ctx.longValue("DescribeLogHubAttributeResponse.LoghubInfo.Delay"));
loghubInfo.setTableName(_ctx.stringValue("DescribeLogHubAttributeResponse.LoghubInfo.TableName"));
loghubInfo.setProjectName(_ctx.stringValue("DescribeLogHubAttributeResponse.LoghubInfo.ProjectName"));
loghubInfo.setDBType(_ctx.stringValue("DescribeLogHubAttributeResponse.LoghubInfo.DBType"));
loghubInfo.setSchemaName(_ctx.stringValue("DescribeLogHubAttributeResponse.LoghubInfo.SchemaName"));
loghubInfo.setSyncStatus(_ctx.stringValue("DescribeLogHubAttributeResponse.LoghubInfo.SyncStatus"));
loghubInfo.setMessage(_ctx.stringValue("DescribeLogHubAttributeResponse.LoghubInfo.Message"));
loghubInfo.setDeliverName(_ctx.stringValue("DescribeLogHubAttributeResponse.LoghubInfo.DeliverName"));
loghubInfo.setRegionId(_ctx.stringValue("DescribeLogHubAttributeResponse.LoghubInfo.RegionId"));
loghubInfo.setDBClusterId(_ctx.stringValue("DescribeLogHubAttributeResponse.LoghubInfo.DBClusterId"));
loghubInfo.setDescription(_ctx.stringValue("DescribeLogHubAttributeResponse.LoghubInfo.Description"));
loghubInfo.setFilterDirtyData(_ctx.booleanValue("DescribeLogHubAttributeResponse.LoghubInfo.FilterDirtyData"));
loghubInfo.setLogStoreName(_ctx.stringValue("DescribeLogHubAttributeResponse.LoghubInfo.LogStoreName"));
loghubInfo.setZoneId(_ctx.stringValue("DescribeLogHubAttributeResponse.LoghubInfo.ZoneId"));
loghubInfo.setUserName(_ctx.stringValue("DescribeLogHubAttributeResponse.LoghubInfo.UserName"));
loghubInfo.setDeliverTime(_ctx.stringValue("DescribeLogHubAttributeResponse.LoghubInfo.DeliverTime"));
List<LogHubStore> logHubStores = new ArrayList<LogHubStore>();
for (int i = 0; i < _ctx.lengthValue("DescribeLogHubAttributeResponse.LoghubInfo.LogHubStores.Length"); i++) {
LogHubStore logHubStore = new LogHubStore();
logHubStore.setLogKey(_ctx.stringValue("DescribeLogHubAttributeResponse.LoghubInfo.LogHubStores["+ i +"].LogKey"));
logHubStore.setFieldKey(_ctx.stringValue("DescribeLogHubAttributeResponse.LoghubInfo.LogHubStores["+ i +"].FieldKey"));
logHubStores.add(logHubStore);
}
loghubInfo.setLogHubStores(logHubStores);
describeLogHubAttributeResponse.setLoghubInfo(loghubInfo);
return describeLogHubAttributeResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeLogStoreKeysResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeLogStoreKeysResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeLogStoreKeysResponseUnmarshaller {
public static DescribeLogStoreKeysResponse unmarshall(DescribeLogStoreKeysResponse describeLogStoreKeysResponse, UnmarshallerContext _ctx) {
describeLogStoreKeysResponse.setRequestId(_ctx.stringValue("DescribeLogStoreKeysResponse.RequestId"));
List<String> logStoreKeys = new ArrayList<String>();
for (int i = 0; i < _ctx.lengthValue("DescribeLogStoreKeysResponse.LogStoreKeys.Length"); i++) {
logStoreKeys.add(_ctx.stringValue("DescribeLogStoreKeysResponse.LogStoreKeys["+ i +"]"));
}
describeLogStoreKeysResponse.setLogStoreKeys(logStoreKeys);
return describeLogStoreKeysResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeLoghubDetailResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeLoghubDetailResponse;
import com.aliyuncs.adb.model.v20190315.DescribeLoghubDetailResponse.LoghubInfo;
import com.aliyuncs.adb.model.v20190315.DescribeLoghubDetailResponse.LoghubInfo.LogHubStore;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeLoghubDetailResponseUnmarshaller {
public static DescribeLoghubDetailResponse unmarshall(DescribeLoghubDetailResponse describeLoghubDetailResponse, UnmarshallerContext _ctx) {
describeLoghubDetailResponse.setRequestId(_ctx.stringValue("DescribeLoghubDetailResponse.RequestId"));
LoghubInfo loghubInfo = new LoghubInfo();
loghubInfo.setTableName(_ctx.stringValue("DescribeLoghubDetailResponse.LoghubInfo.TableName"));
loghubInfo.setProjectName(_ctx.stringValue("DescribeLoghubDetailResponse.LoghubInfo.ProjectName"));
loghubInfo.setSchemaName(_ctx.stringValue("DescribeLoghubDetailResponse.LoghubInfo.SchemaName"));
loghubInfo.setDBType(_ctx.stringValue("DescribeLoghubDetailResponse.LoghubInfo.DBType"));
loghubInfo.setDeliverName(_ctx.stringValue("DescribeLoghubDetailResponse.LoghubInfo.DeliverName"));
loghubInfo.setRegionId(_ctx.stringValue("DescribeLoghubDetailResponse.LoghubInfo.RegionId"));
loghubInfo.setDBClusterId(_ctx.stringValue("DescribeLoghubDetailResponse.LoghubInfo.DBClusterId"));
loghubInfo.setDescription(_ctx.stringValue("DescribeLoghubDetailResponse.LoghubInfo.Description"));
loghubInfo.setFilterDirtyData(_ctx.booleanValue("DescribeLoghubDetailResponse.LoghubInfo.FilterDirtyData"));
loghubInfo.setZoneId(_ctx.stringValue("DescribeLoghubDetailResponse.LoghubInfo.ZoneId"));
loghubInfo.setLogStoreName(_ctx.stringValue("DescribeLoghubDetailResponse.LoghubInfo.LogStoreName"));
loghubInfo.setUserName(_ctx.stringValue("DescribeLoghubDetailResponse.LoghubInfo.UserName"));
loghubInfo.setDeliverTime(_ctx.stringValue("DescribeLoghubDetailResponse.LoghubInfo.DeliverTime"));
loghubInfo.setDomainUrl(_ctx.stringValue("DescribeLoghubDetailResponse.LoghubInfo.DomainUrl"));
List<LogHubStore> logHubStores = new ArrayList<LogHubStore>();
for (int i = 0; i < _ctx.lengthValue("DescribeLoghubDetailResponse.LoghubInfo.LogHubStores.Length"); i++) {
LogHubStore logHubStore = new LogHubStore();
logHubStore.setLogKey(_ctx.stringValue("DescribeLoghubDetailResponse.LoghubInfo.LogHubStores["+ i +"].LogKey"));
logHubStore.setFieldKey(_ctx.stringValue("DescribeLoghubDetailResponse.LoghubInfo.LogHubStores["+ i +"].FieldKey"));
logHubStores.add(logHubStore);
}
loghubInfo.setLogHubStores(logHubStores);
describeLoghubDetailResponse.setLoghubInfo(loghubInfo);
return describeLoghubDetailResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeMaintenanceActionResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeMaintenanceActionResponse;
import com.aliyuncs.adb.model.v20190315.DescribeMaintenanceActionResponse.ItemsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeMaintenanceActionResponseUnmarshaller {
public static DescribeMaintenanceActionResponse unmarshall(DescribeMaintenanceActionResponse describeMaintenanceActionResponse, UnmarshallerContext _ctx) {
describeMaintenanceActionResponse.setRequestId(_ctx.stringValue("DescribeMaintenanceActionResponse.RequestId"));
describeMaintenanceActionResponse.setPageNumber(_ctx.integerValue("DescribeMaintenanceActionResponse.PageNumber"));
describeMaintenanceActionResponse.setPageSize(_ctx.integerValue("DescribeMaintenanceActionResponse.PageSize"));
describeMaintenanceActionResponse.setTotalRecordCount(_ctx.integerValue("DescribeMaintenanceActionResponse.TotalRecordCount"));
List<ItemsItem> items = new ArrayList<ItemsItem>();
for (int i = 0; i < _ctx.lengthValue("DescribeMaintenanceActionResponse.Items.Length"); i++) {
ItemsItem itemsItem = new ItemsItem();
itemsItem.setStatus(_ctx.stringValue("DescribeMaintenanceActionResponse.Items["+ i +"].Status"));
itemsItem.setDeadline(_ctx.stringValue("DescribeMaintenanceActionResponse.Items["+ i +"].Deadline"));
itemsItem.setPrepareInterval(_ctx.stringValue("DescribeMaintenanceActionResponse.Items["+ i +"].PrepareInterval"));
itemsItem.setDBType(_ctx.stringValue("DescribeMaintenanceActionResponse.Items["+ i +"].DBType"));
itemsItem.setStartTime(_ctx.stringValue("DescribeMaintenanceActionResponse.Items["+ i +"].StartTime"));
itemsItem.setTaskType(_ctx.stringValue("DescribeMaintenanceActionResponse.Items["+ i +"].TaskType"));
itemsItem.setDBVersion(_ctx.stringValue("DescribeMaintenanceActionResponse.Items["+ i +"].DBVersion"));
itemsItem.setDBClusterId(_ctx.stringValue("DescribeMaintenanceActionResponse.Items["+ i +"].DBClusterId"));
itemsItem.setModifiedTime(_ctx.stringValue("DescribeMaintenanceActionResponse.Items["+ i +"].ModifiedTime"));
itemsItem.setRegion(_ctx.stringValue("DescribeMaintenanceActionResponse.Items["+ i +"].Region"));
itemsItem.setResultInfo(_ctx.stringValue("DescribeMaintenanceActionResponse.Items["+ i +"].ResultInfo"));
itemsItem.setCreatedTime(_ctx.stringValue("DescribeMaintenanceActionResponse.Items["+ i +"].CreatedTime"));
itemsItem.setId(_ctx.integerValue("DescribeMaintenanceActionResponse.Items["+ i +"].Id"));
itemsItem.setSwitchTime(_ctx.stringValue("DescribeMaintenanceActionResponse.Items["+ i +"].SwitchTime"));
items.add(itemsItem);
}
describeMaintenanceActionResponse.setItems(items);
return describeMaintenanceActionResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeOperatorPermissionResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import com.aliyuncs.adb.model.v20190315.DescribeOperatorPermissionResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeOperatorPermissionResponseUnmarshaller {
public static DescribeOperatorPermissionResponse unmarshall(DescribeOperatorPermissionResponse describeOperatorPermissionResponse, UnmarshallerContext _ctx) {
describeOperatorPermissionResponse.setRequestId(_ctx.stringValue("DescribeOperatorPermissionResponse.RequestId"));
describeOperatorPermissionResponse.setCreatedTime(_ctx.stringValue("DescribeOperatorPermissionResponse.CreatedTime"));
describeOperatorPermissionResponse.setPrivileges(_ctx.stringValue("DescribeOperatorPermissionResponse.Privileges"));
describeOperatorPermissionResponse.setExpiredTime(_ctx.stringValue("DescribeOperatorPermissionResponse.ExpiredTime"));
describeOperatorPermissionResponse.setDBClusterId(_ctx.stringValue("DescribeOperatorPermissionResponse.DBClusterId"));
return describeOperatorPermissionResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeOversizeNonPartitionTableInfosResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeOversizeNonPartitionTableInfosResponse;
import com.aliyuncs.adb.model.v20190315.DescribeOversizeNonPartitionTableInfosResponse.DetectionItemsArray;
import com.aliyuncs.adb.model.v20190315.DescribeOversizeNonPartitionTableInfosResponse.OversizeNonPartitionTableInfo;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeOversizeNonPartitionTableInfosResponseUnmarshaller {
public static DescribeOversizeNonPartitionTableInfosResponse unmarshall(DescribeOversizeNonPartitionTableInfosResponse describeOversizeNonPartitionTableInfosResponse, UnmarshallerContext _ctx) {
describeOversizeNonPartitionTableInfosResponse.setRequestId(_ctx.stringValue("DescribeOversizeNonPartitionTableInfosResponse.RequestId"));
describeOversizeNonPartitionTableInfosResponse.setTotalCount(_ctx.stringValue("DescribeOversizeNonPartitionTableInfosResponse.TotalCount"));
describeOversizeNonPartitionTableInfosResponse.setPageNumber(_ctx.integerValue("DescribeOversizeNonPartitionTableInfosResponse.PageNumber"));
describeOversizeNonPartitionTableInfosResponse.setPageSize(_ctx.integerValue("DescribeOversizeNonPartitionTableInfosResponse.PageSize"));
describeOversizeNonPartitionTableInfosResponse.setDBClusterId(_ctx.stringValue("DescribeOversizeNonPartitionTableInfosResponse.DBClusterId"));
List<OversizeNonPartitionTableInfo> tables = new ArrayList<OversizeNonPartitionTableInfo>();
for (int i = 0; i < _ctx.lengthValue("DescribeOversizeNonPartitionTableInfosResponse.Tables.Length"); i++) {
OversizeNonPartitionTableInfo oversizeNonPartitionTableInfo = new OversizeNonPartitionTableInfo();
oversizeNonPartitionTableInfo.setSchemaName(_ctx.stringValue("DescribeOversizeNonPartitionTableInfosResponse.Tables["+ i +"].SchemaName"));
oversizeNonPartitionTableInfo.setTableName(_ctx.stringValue("DescribeOversizeNonPartitionTableInfosResponse.Tables["+ i +"].TableName"));
oversizeNonPartitionTableInfo.setRowCount(_ctx.longValue("DescribeOversizeNonPartitionTableInfosResponse.Tables["+ i +"].RowCount"));
oversizeNonPartitionTableInfo.setIndexSize(_ctx.longValue("DescribeOversizeNonPartitionTableInfosResponse.Tables["+ i +"].IndexSize"));
oversizeNonPartitionTableInfo.setDataSize(_ctx.longValue("DescribeOversizeNonPartitionTableInfosResponse.Tables["+ i +"].DataSize"));
oversizeNonPartitionTableInfo.setLocalDataSize(_ctx.longValue("DescribeOversizeNonPartitionTableInfosResponse.Tables["+ i +"].LocalDataSize"));
oversizeNonPartitionTableInfo.setPrimaryKeySize(_ctx.longValue("DescribeOversizeNonPartitionTableInfosResponse.Tables["+ i +"].PrimaryKeySize"));
oversizeNonPartitionTableInfo.setRemoteDataSize(_ctx.longValue("DescribeOversizeNonPartitionTableInfosResponse.Tables["+ i +"].RemoteDataSize"));
oversizeNonPartitionTableInfo.setSpaceRatio(_ctx.doubleValue("DescribeOversizeNonPartitionTableInfosResponse.Tables["+ i +"].SpaceRatio"));
tables.add(oversizeNonPartitionTableInfo);
}
describeOversizeNonPartitionTableInfosResponse.setTables(tables);
List<DetectionItemsArray> detectionItems = new ArrayList<DetectionItemsArray>();
for (int i = 0; i < _ctx.lengthValue("DescribeOversizeNonPartitionTableInfosResponse.DetectionItems.Length"); i++) {
DetectionItemsArray detectionItemsArray = new DetectionItemsArray();
detectionItemsArray.setName(_ctx.stringValue("DescribeOversizeNonPartitionTableInfosResponse.DetectionItems["+ i +"].Name"));
detectionItemsArray.setMessage(_ctx.stringValue("DescribeOversizeNonPartitionTableInfosResponse.DetectionItems["+ i +"].Message"));
detectionItemsArray.setStatus(_ctx.stringValue("DescribeOversizeNonPartitionTableInfosResponse.DetectionItems["+ i +"].Status"));
detectionItems.add(detectionItemsArray);
}
describeOversizeNonPartitionTableInfosResponse.setDetectionItems(detectionItems);
return describeOversizeNonPartitionTableInfosResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribePatternPerformanceResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribePatternPerformanceResponse;
import com.aliyuncs.adb.model.v20190315.DescribePatternPerformanceResponse.PerformanceItem;
import com.aliyuncs.adb.model.v20190315.DescribePatternPerformanceResponse.PerformanceItem.SeriesItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribePatternPerformanceResponseUnmarshaller {
public static DescribePatternPerformanceResponse unmarshall(DescribePatternPerformanceResponse describePatternPerformanceResponse, UnmarshallerContext _ctx) {
describePatternPerformanceResponse.setRequestId(_ctx.stringValue("DescribePatternPerformanceResponse.RequestId"));
describePatternPerformanceResponse.setEndTime(_ctx.stringValue("DescribePatternPerformanceResponse.EndTime"));
describePatternPerformanceResponse.setStartTime(_ctx.stringValue("DescribePatternPerformanceResponse.StartTime"));
describePatternPerformanceResponse.setAccessIp(_ctx.stringValue("DescribePatternPerformanceResponse.AccessIp"));
describePatternPerformanceResponse.setFailedCount(_ctx.longValue("DescribePatternPerformanceResponse.FailedCount"));
describePatternPerformanceResponse.setQueryCount(_ctx.longValue("DescribePatternPerformanceResponse.QueryCount"));
describePatternPerformanceResponse.setSQLPattern(_ctx.stringValue("DescribePatternPerformanceResponse.SQLPattern"));
describePatternPerformanceResponse.setTables(_ctx.stringValue("DescribePatternPerformanceResponse.Tables"));
describePatternPerformanceResponse.setUser(_ctx.stringValue("DescribePatternPerformanceResponse.User"));
List<PerformanceItem> performances = new ArrayList<PerformanceItem>();
for (int i = 0; i < _ctx.lengthValue("DescribePatternPerformanceResponse.Performances.Length"); i++) {
PerformanceItem performanceItem = new PerformanceItem();
performanceItem.setKey(_ctx.stringValue("DescribePatternPerformanceResponse.Performances["+ i +"].Key"));
performanceItem.setUnit(_ctx.stringValue("DescribePatternPerformanceResponse.Performances["+ i +"].Unit"));
List<SeriesItem> series = new ArrayList<SeriesItem>();
for (int j = 0; j < _ctx.lengthValue("DescribePatternPerformanceResponse.Performances["+ i +"].Series.Length"); j++) {
SeriesItem seriesItem = new SeriesItem();
seriesItem.setName(_ctx.stringValue("DescribePatternPerformanceResponse.Performances["+ i +"].Series["+ j +"].Name"));
List<String> values = new ArrayList<String>();
for (int k = 0; k < _ctx.lengthValue("DescribePatternPerformanceResponse.Performances["+ i +"].Series["+ j +"].Values.Length"); k++) {
values.add(_ctx.stringValue("DescribePatternPerformanceResponse.Performances["+ i +"].Series["+ j +"].Values["+ k +"]"));
}
seriesItem.setValues(values);
series.add(seriesItem);
}
performanceItem.setSeries(series);
performances.add(performanceItem);
}
describePatternPerformanceResponse.setPerformances(performances);
return describePatternPerformanceResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeProcessListResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeProcessListResponse;
import com.aliyuncs.adb.model.v20190315.DescribeProcessListResponse.Process;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeProcessListResponseUnmarshaller {
public static DescribeProcessListResponse unmarshall(DescribeProcessListResponse describeProcessListResponse, UnmarshallerContext _ctx) {
describeProcessListResponse.setRequestId(_ctx.stringValue("DescribeProcessListResponse.RequestId"));
describeProcessListResponse.setTotalCount(_ctx.stringValue("DescribeProcessListResponse.TotalCount"));
describeProcessListResponse.setPageSize(_ctx.stringValue("DescribeProcessListResponse.PageSize"));
describeProcessListResponse.setPageNumber(_ctx.stringValue("DescribeProcessListResponse.PageNumber"));
List<Process> items = new ArrayList<Process>();
for (int i = 0; i < _ctx.lengthValue("DescribeProcessListResponse.Items.Length"); i++) {
Process process = new Process();
process.setStartTime(_ctx.stringValue("DescribeProcessListResponse.Items["+ i +"].StartTime"));
process.setTime(_ctx.integerValue("DescribeProcessListResponse.Items["+ i +"].Time"));
process.setProcessId(_ctx.stringValue("DescribeProcessListResponse.Items["+ i +"].ProcessId"));
process.setHost(_ctx.stringValue("DescribeProcessListResponse.Items["+ i +"].Host"));
process.setDB(_ctx.stringValue("DescribeProcessListResponse.Items["+ i +"].DB"));
process.setCommand(_ctx.stringValue("DescribeProcessListResponse.Items["+ i +"].Command"));
process.setUser(_ctx.stringValue("DescribeProcessListResponse.Items["+ i +"].User"));
process.setId(_ctx.integerValue("DescribeProcessListResponse.Items["+ i +"].Id"));
process.setInfo(_ctx.stringValue("DescribeProcessListResponse.Items["+ i +"].Info"));
items.add(process);
}
describeProcessListResponse.setItems(items);
return describeProcessListResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeRdsAnalysisResourceQuotasResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeRdsAnalysisResourceQuotasResponse;
import com.aliyuncs.adb.model.v20190315.DescribeRdsAnalysisResourceQuotasResponse.DBNodeCategory;
import com.aliyuncs.adb.model.v20190315.DescribeRdsAnalysisResourceQuotasResponse.DBNodeClass;
import com.aliyuncs.adb.model.v20190315.DescribeRdsAnalysisResourceQuotasResponse.DBNodeStorage;
import com.aliyuncs.adb.model.v20190315.DescribeRdsAnalysisResourceQuotasResponse.EngineVersion;
import com.aliyuncs.adb.model.v20190315.DescribeRdsAnalysisResourceQuotasResponse.Mode;
import com.aliyuncs.adb.model.v20190315.DescribeRdsAnalysisResourceQuotasResponse.StorageType;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeRdsAnalysisResourceQuotasResponseUnmarshaller {
public static DescribeRdsAnalysisResourceQuotasResponse unmarshall(DescribeRdsAnalysisResourceQuotasResponse describeRdsAnalysisResourceQuotasResponse, UnmarshallerContext _ctx) {
describeRdsAnalysisResourceQuotasResponse.setRequestId(_ctx.stringValue("DescribeRdsAnalysisResourceQuotasResponse.RequestId"));
List<DBNodeClass> dBNodeClassList = new ArrayList<DBNodeClass>();
for (int i = 0; i < _ctx.lengthValue("DescribeRdsAnalysisResourceQuotasResponse.DBNodeClassList.Length"); i++) {
DBNodeClass dBNodeClass = new DBNodeClass();
dBNodeClass.setValue(_ctx.stringValue("DescribeRdsAnalysisResourceQuotasResponse.DBNodeClassList["+ i +"].Value"));
dBNodeClass.setText(_ctx.stringValue("DescribeRdsAnalysisResourceQuotasResponse.DBNodeClassList["+ i +"].Text"));
dBNodeClassList.add(dBNodeClass);
}
describeRdsAnalysisResourceQuotasResponse.setDBNodeClassList(dBNodeClassList);
List<EngineVersion> engineVersionList = new ArrayList<EngineVersion>();
for (int i = 0; i < _ctx.lengthValue("DescribeRdsAnalysisResourceQuotasResponse.EngineVersionList.Length"); i++) {
EngineVersion engineVersion = new EngineVersion();
engineVersion.setValue(_ctx.stringValue("DescribeRdsAnalysisResourceQuotasResponse.EngineVersionList["+ i +"].Value"));
engineVersion.setText(_ctx.stringValue("DescribeRdsAnalysisResourceQuotasResponse.EngineVersionList["+ i +"].Text"));
engineVersionList.add(engineVersion);
}
describeRdsAnalysisResourceQuotasResponse.setEngineVersionList(engineVersionList);
List<Mode> modeList = new ArrayList<Mode>();
for (int i = 0; i < _ctx.lengthValue("DescribeRdsAnalysisResourceQuotasResponse.ModeList.Length"); i++) {
Mode mode = new Mode();
mode.setValue(_ctx.stringValue("DescribeRdsAnalysisResourceQuotasResponse.ModeList["+ i +"].Value"));
mode.setText(_ctx.stringValue("DescribeRdsAnalysisResourceQuotasResponse.ModeList["+ i +"].Text"));
modeList.add(mode);
}
describeRdsAnalysisResourceQuotasResponse.setModeList(modeList);
List<StorageType> storageTypeList = new ArrayList<StorageType>();
for (int i = 0; i < _ctx.lengthValue("DescribeRdsAnalysisResourceQuotasResponse.StorageTypeList.Length"); i++) {
StorageType storageType = new StorageType();
storageType.setValue(_ctx.stringValue("DescribeRdsAnalysisResourceQuotasResponse.StorageTypeList["+ i +"].Value"));
storageType.setText(_ctx.stringValue("DescribeRdsAnalysisResourceQuotasResponse.StorageTypeList["+ i +"].Text"));
storageTypeList.add(storageType);
}
describeRdsAnalysisResourceQuotasResponse.setStorageTypeList(storageTypeList);
List<DBNodeStorage> dBNodeStorageList = new ArrayList<DBNodeStorage>();
for (int i = 0; i < _ctx.lengthValue("DescribeRdsAnalysisResourceQuotasResponse.DBNodeStorageList.Length"); i++) {
DBNodeStorage dBNodeStorage = new DBNodeStorage();
dBNodeStorage.setValue(_ctx.stringValue("DescribeRdsAnalysisResourceQuotasResponse.DBNodeStorageList["+ i +"].Value"));
dBNodeStorage.setText(_ctx.stringValue("DescribeRdsAnalysisResourceQuotasResponse.DBNodeStorageList["+ i +"].Text"));
dBNodeStorageList.add(dBNodeStorage);
}
describeRdsAnalysisResourceQuotasResponse.setDBNodeStorageList(dBNodeStorageList);
List<DBNodeCategory> dBNodeCategoryList = new ArrayList<DBNodeCategory>();
for (int i = 0; i < _ctx.lengthValue("DescribeRdsAnalysisResourceQuotasResponse.DBNodeCategoryList.Length"); i++) {
DBNodeCategory dBNodeCategory = new DBNodeCategory();
dBNodeCategory.setValue(_ctx.stringValue("DescribeRdsAnalysisResourceQuotasResponse.DBNodeCategoryList["+ i +"].Value"));
dBNodeCategory.setText(_ctx.stringValue("DescribeRdsAnalysisResourceQuotasResponse.DBNodeCategoryList["+ i +"].Text"));
dBNodeCategoryList.add(dBNodeCategory);
}
describeRdsAnalysisResourceQuotasResponse.setDBNodeCategoryList(dBNodeCategoryList);
return describeRdsAnalysisResourceQuotasResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeRegionsMixedResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeRegionsMixedResponse;
import com.aliyuncs.adb.model.v20190315.DescribeRegionsMixedResponse.Region;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeRegionsMixedResponseUnmarshaller {
public static DescribeRegionsMixedResponse unmarshall(DescribeRegionsMixedResponse describeRegionsMixedResponse, UnmarshallerContext _ctx) {
describeRegionsMixedResponse.setRequestId(_ctx.stringValue("DescribeRegionsMixedResponse.RequestId"));
List<Region> regions = new ArrayList<Region>();
for (int i = 0; i < _ctx.lengthValue("DescribeRegionsMixedResponse.Regions.Length"); i++) {
Region region = new Region();
region.setVersion(_ctx.stringValue("DescribeRegionsMixedResponse.Regions["+ i +"].Version"));
region.setRegionId(_ctx.stringValue("DescribeRegionsMixedResponse.Regions["+ i +"].RegionId"));
regions.add(region);
}
describeRegionsMixedResponse.setRegions(regions);
return describeRegionsMixedResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeRegionsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeRegionsResponse;
import com.aliyuncs.adb.model.v20190315.DescribeRegionsResponse.Region;
import com.aliyuncs.adb.model.v20190315.DescribeRegionsResponse.Region.Zone;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeRegionsResponseUnmarshaller {
public static DescribeRegionsResponse unmarshall(DescribeRegionsResponse describeRegionsResponse, UnmarshallerContext _ctx) {
describeRegionsResponse.setRequestId(_ctx.stringValue("DescribeRegionsResponse.RequestId"));
List<Region> regions = new ArrayList<Region>();
for (int i = 0; i < _ctx.lengthValue("DescribeRegionsResponse.Regions.Length"); i++) {
Region region = new Region();
region.setRegionEndpoint(_ctx.stringValue("DescribeRegionsResponse.Regions["+ i +"].RegionEndpoint"));
region.setLocalName(_ctx.stringValue("DescribeRegionsResponse.Regions["+ i +"].LocalName"));
region.setRegionId(_ctx.stringValue("DescribeRegionsResponse.Regions["+ i +"].RegionId"));
List<Zone> zones = new ArrayList<Zone>();
for (int j = 0; j < _ctx.lengthValue("DescribeRegionsResponse.Regions["+ i +"].Zones.Length"); j++) {
Zone zone = new Zone();
zone.setZoneId(_ctx.stringValue("DescribeRegionsResponse.Regions["+ i +"].Zones["+ j +"].ZoneId"));
zone.setVpcEnabled(_ctx.booleanValue("DescribeRegionsResponse.Regions["+ i +"].Zones["+ j +"].VpcEnabled"));
zone.setLocalName(_ctx.stringValue("DescribeRegionsResponse.Regions["+ i +"].Zones["+ j +"].LocalName"));
zones.add(zone);
}
region.setZones(zones);
regions.add(region);
}
describeRegionsResponse.setRegions(regions);
return describeRegionsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeResubmitConfigResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeResubmitConfigResponse;
import com.aliyuncs.adb.model.v20190315.DescribeResubmitConfigResponse.RulesItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeResubmitConfigResponseUnmarshaller {
public static DescribeResubmitConfigResponse unmarshall(DescribeResubmitConfigResponse describeResubmitConfigResponse, UnmarshallerContext _ctx) {
describeResubmitConfigResponse.setRequestId(_ctx.stringValue("DescribeResubmitConfigResponse.RequestId"));
describeResubmitConfigResponse.setDBClusterId(_ctx.stringValue("DescribeResubmitConfigResponse.DBClusterId"));
List<RulesItem> rules = new ArrayList<RulesItem>();
for (int i = 0; i < _ctx.lengthValue("DescribeResubmitConfigResponse.Rules.Length"); i++) {
RulesItem rulesItem = new RulesItem();
rulesItem.setPeakMemory(_ctx.stringValue("DescribeResubmitConfigResponse.Rules["+ i +"].PeakMemory"));
rulesItem.setQueryTime(_ctx.stringValue("DescribeResubmitConfigResponse.Rules["+ i +"].QueryTime"));
rulesItem.setTargetGroupName(_ctx.stringValue("DescribeResubmitConfigResponse.Rules["+ i +"].TargetGroupName"));
rulesItem.setExceedMemoryException(_ctx.booleanValue("DescribeResubmitConfigResponse.Rules["+ i +"].ExceedMemoryException"));
rulesItem.setGroupName(_ctx.stringValue("DescribeResubmitConfigResponse.Rules["+ i +"].GroupName"));
rules.add(rulesItem);
}
describeResubmitConfigResponse.setRules(rules);
return describeResubmitConfigResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeSQAConfigResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import com.aliyuncs.adb.model.v20190315.DescribeSQAConfigResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeSQAConfigResponseUnmarshaller {
public static DescribeSQAConfigResponse unmarshall(DescribeSQAConfigResponse describeSQAConfigResponse, UnmarshallerContext _ctx) {
describeSQAConfigResponse.setRequestId(_ctx.stringValue("DescribeSQAConfigResponse.RequestId"));
describeSQAConfigResponse.setDBClusterId(_ctx.stringValue("DescribeSQAConfigResponse.DBClusterId"));
describeSQAConfigResponse.setGroupName(_ctx.stringValue("DescribeSQAConfigResponse.GroupName"));
describeSQAConfigResponse.setSQAStatus(_ctx.stringValue("DescribeSQAConfigResponse.SQAStatus"));
return describeSQAConfigResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeSQLPatternsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeSQLPatternsResponse;
import com.aliyuncs.adb.model.v20190315.DescribeSQLPatternsResponse.PatternDetailsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeSQLPatternsResponseUnmarshaller {
public static DescribeSQLPatternsResponse unmarshall(DescribeSQLPatternsResponse describeSQLPatternsResponse, UnmarshallerContext _ctx) {
describeSQLPatternsResponse.setRequestId(_ctx.stringValue("DescribeSQLPatternsResponse.RequestId"));
describeSQLPatternsResponse.setPageNumber(_ctx.integerValue("DescribeSQLPatternsResponse.PageNumber"));
describeSQLPatternsResponse.setPageSize(_ctx.integerValue("DescribeSQLPatternsResponse.PageSize"));
describeSQLPatternsResponse.setTotalCount(_ctx.integerValue("DescribeSQLPatternsResponse.TotalCount"));
List<PatternDetailsItem> patternDetails = new ArrayList<PatternDetailsItem>();
for (int i = 0; i < _ctx.lengthValue("DescribeSQLPatternsResponse.PatternDetails.Length"); i++) {
PatternDetailsItem patternDetailsItem = new PatternDetailsItem();
patternDetailsItem.setSQLPattern(_ctx.stringValue("DescribeSQLPatternsResponse.PatternDetails["+ i +"].SQLPattern"));
patternDetailsItem.setPatternId(_ctx.stringValue("DescribeSQLPatternsResponse.PatternDetails["+ i +"].PatternId"));
patternDetailsItem.setUser(_ctx.stringValue("DescribeSQLPatternsResponse.PatternDetails["+ i +"].User"));
patternDetailsItem.setAccessIp(_ctx.stringValue("DescribeSQLPatternsResponse.PatternDetails["+ i +"].AccessIp"));
patternDetailsItem.setTables(_ctx.stringValue("DescribeSQLPatternsResponse.PatternDetails["+ i +"].Tables"));
patternDetailsItem.setPatternCreationTime(_ctx.stringValue("DescribeSQLPatternsResponse.PatternDetails["+ i +"].PatternCreationTime"));
patternDetailsItem.setAverageQueryTime(_ctx.doubleValue("DescribeSQLPatternsResponse.PatternDetails["+ i +"].AverageQueryTime"));
patternDetailsItem.setMaxQueryTime(_ctx.longValue("DescribeSQLPatternsResponse.PatternDetails["+ i +"].MaxQueryTime"));
patternDetailsItem.setAverageExecutionTime(_ctx.doubleValue("DescribeSQLPatternsResponse.PatternDetails["+ i +"].AverageExecutionTime"));
patternDetailsItem.setMaxExecutionTime(_ctx.longValue("DescribeSQLPatternsResponse.PatternDetails["+ i +"].MaxExecutionTime"));
patternDetailsItem.setAveragePeakMemory(_ctx.doubleValue("DescribeSQLPatternsResponse.PatternDetails["+ i +"].AveragePeakMemory"));
patternDetailsItem.setMaxPeakMemory(_ctx.longValue("DescribeSQLPatternsResponse.PatternDetails["+ i +"].MaxPeakMemory"));
patternDetailsItem.setAverageScanSize(_ctx.doubleValue("DescribeSQLPatternsResponse.PatternDetails["+ i +"].AverageScanSize"));
patternDetailsItem.setMaxScanSize(_ctx.longValue("DescribeSQLPatternsResponse.PatternDetails["+ i +"].MaxScanSize"));
patternDetailsItem.setQueryCount(_ctx.longValue("DescribeSQLPatternsResponse.PatternDetails["+ i +"].QueryCount"));
patternDetailsItem.setFailedCount(_ctx.longValue("DescribeSQLPatternsResponse.PatternDetails["+ i +"].FailedCount"));
patternDetailsItem.setBlockable(_ctx.booleanValue("DescribeSQLPatternsResponse.PatternDetails["+ i +"].Blockable"));
patternDetailsItem.setQueryTimeSum(_ctx.doubleValue("DescribeSQLPatternsResponse.PatternDetails["+ i +"].QueryTimeSum"));
patternDetailsItem.setQueryTimePercentage(_ctx.doubleValue("DescribeSQLPatternsResponse.PatternDetails["+ i +"].QueryTimePercentage"));
patternDetailsItem.setPeakMemorySum(_ctx.doubleValue("DescribeSQLPatternsResponse.PatternDetails["+ i +"].PeakMemorySum"));
patternDetailsItem.setPeakMemoryPercentage(_ctx.doubleValue("DescribeSQLPatternsResponse.PatternDetails["+ i +"].PeakMemoryPercentage"));
patternDetailsItem.setScanSizeSum(_ctx.doubleValue("DescribeSQLPatternsResponse.PatternDetails["+ i +"].ScanSizeSum"));
patternDetailsItem.setScanSizePercentage(_ctx.doubleValue("DescribeSQLPatternsResponse.PatternDetails["+ i +"].ScanSizePercentage"));
patternDetailsItem.setAverageOperatorCost(_ctx.doubleValue("DescribeSQLPatternsResponse.PatternDetails["+ i +"].AverageOperatorCost"));
patternDetailsItem.setMaxOperatorCost(_ctx.doubleValue("DescribeSQLPatternsResponse.PatternDetails["+ i +"].MaxOperatorCost"));
patternDetailsItem.setOperatorCostSum(_ctx.doubleValue("DescribeSQLPatternsResponse.PatternDetails["+ i +"].OperatorCostSum"));
patternDetailsItem.setOperatorCostPercentage(_ctx.doubleValue("DescribeSQLPatternsResponse.PatternDetails["+ i +"].OperatorCostPercentage"));
patternDetailsItem.setAverageScanCost(_ctx.doubleValue("DescribeSQLPatternsResponse.PatternDetails["+ i +"].AverageScanCost"));
patternDetailsItem.setMaxScanCost(_ctx.doubleValue("DescribeSQLPatternsResponse.PatternDetails["+ i +"].MaxScanCost"));
patternDetailsItem.setScanCostSum(_ctx.doubleValue("DescribeSQLPatternsResponse.PatternDetails["+ i +"].ScanCostSum"));
patternDetailsItem.setScanCostPercentage(_ctx.doubleValue("DescribeSQLPatternsResponse.PatternDetails["+ i +"].ScanCostPercentage"));
patternDetails.add(patternDetailsItem);
}
describeSQLPatternsResponse.setPatternDetails(patternDetails);
return describeSQLPatternsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeSQLPlanResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeSQLPlanResponse;
import com.aliyuncs.adb.model.v20190315.DescribeSQLPlanResponse.Detail;
import com.aliyuncs.adb.model.v20190315.DescribeSQLPlanResponse.SqlPlanStage;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeSQLPlanResponseUnmarshaller {
public static DescribeSQLPlanResponse unmarshall(DescribeSQLPlanResponse describeSQLPlanResponse, UnmarshallerContext _ctx) {
describeSQLPlanResponse.setRequestId(_ctx.stringValue("DescribeSQLPlanResponse.RequestId"));
describeSQLPlanResponse.setOriginInfo(_ctx.stringValue("DescribeSQLPlanResponse.OriginInfo"));
Detail detail = new Detail();
detail.setSQL(_ctx.stringValue("DescribeSQLPlanResponse.Detail.SQL"));
detail.setOutputSize(_ctx.longValue("DescribeSQLPlanResponse.Detail.OutputSize"));
detail.setState(_ctx.stringValue("DescribeSQLPlanResponse.Detail.State"));
detail.setOutputRows(_ctx.longValue("DescribeSQLPlanResponse.Detail.OutputRows"));
detail.setUser(_ctx.stringValue("DescribeSQLPlanResponse.Detail.User"));
detail.setStartTime(_ctx.stringValue("DescribeSQLPlanResponse.Detail.StartTime"));
detail.setTotalStage(_ctx.longValue("DescribeSQLPlanResponse.Detail.TotalStage"));
detail.setQueuedTime(_ctx.longValue("DescribeSQLPlanResponse.Detail.QueuedTime"));
detail.setTotalTime(_ctx.longValue("DescribeSQLPlanResponse.Detail.TotalTime"));
detail.setTotalTask(_ctx.longValue("DescribeSQLPlanResponse.Detail.TotalTask"));
detail.setDatabase(_ctx.stringValue("DescribeSQLPlanResponse.Detail.Database"));
detail.setPeakMemory(_ctx.longValue("DescribeSQLPlanResponse.Detail.PeakMemory"));
detail.setClientIP(_ctx.stringValue("DescribeSQLPlanResponse.Detail.ClientIP"));
detail.setPlanningTime(_ctx.longValue("DescribeSQLPlanResponse.Detail.PlanningTime"));
detail.setCPUTime(_ctx.longValue("DescribeSQLPlanResponse.Detail.CPUTime"));
describeSQLPlanResponse.setDetail(detail);
List<SqlPlanStage> stageList = new ArrayList<SqlPlanStage>();
for (int i = 0; i < _ctx.lengthValue("DescribeSQLPlanResponse.StageList.Length"); i++) {
SqlPlanStage sqlPlanStage = new SqlPlanStage();
sqlPlanStage.setState(_ctx.stringValue("DescribeSQLPlanResponse.StageList["+ i +"].State"));
sqlPlanStage.setCPUTimeAvg(_ctx.longValue("DescribeSQLPlanResponse.StageList["+ i +"].CPUTimeAvg"));
sqlPlanStage.setCPUTimeMax(_ctx.longValue("DescribeSQLPlanResponse.StageList["+ i +"].CPUTimeMax"));
sqlPlanStage.setOperatorCost(_ctx.longValue("DescribeSQLPlanResponse.StageList["+ i +"].OperatorCost"));
sqlPlanStage.setScanTimeMax(_ctx.longValue("DescribeSQLPlanResponse.StageList["+ i +"].ScanTimeMax"));
sqlPlanStage.setInputSizeMax(_ctx.longValue("DescribeSQLPlanResponse.StageList["+ i +"].InputSizeMax"));
sqlPlanStage.setStageId(_ctx.integerValue("DescribeSQLPlanResponse.StageList["+ i +"].StageId"));
sqlPlanStage.setScanSizeMax(_ctx.longValue("DescribeSQLPlanResponse.StageList["+ i +"].ScanSizeMax"));
sqlPlanStage.setCPUTimeMin(_ctx.longValue("DescribeSQLPlanResponse.StageList["+ i +"].CPUTimeMin"));
sqlPlanStage.setScanTimeMin(_ctx.longValue("DescribeSQLPlanResponse.StageList["+ i +"].ScanTimeMin"));
sqlPlanStage.setScanSizeMin(_ctx.longValue("DescribeSQLPlanResponse.StageList["+ i +"].ScanSizeMin"));
sqlPlanStage.setInputSizeMin(_ctx.longValue("DescribeSQLPlanResponse.StageList["+ i +"].InputSizeMin"));
sqlPlanStage.setPeakMemory(_ctx.longValue("DescribeSQLPlanResponse.StageList["+ i +"].PeakMemory"));
sqlPlanStage.setScanTimeAvg(_ctx.longValue("DescribeSQLPlanResponse.StageList["+ i +"].ScanTimeAvg"));
sqlPlanStage.setScanSizeAvg(_ctx.longValue("DescribeSQLPlanResponse.StageList["+ i +"].ScanSizeAvg"));
sqlPlanStage.setInputSizeAvg(_ctx.longValue("DescribeSQLPlanResponse.StageList["+ i +"].InputSizeAvg"));
stageList.add(sqlPlanStage);
}
describeSQLPlanResponse.setStageList(stageList);
return describeSQLPlanResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeSQLPlanTaskResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeSQLPlanTaskResponse;
import com.aliyuncs.adb.model.v20190315.DescribeSQLPlanTaskResponse.SqlPlanTask;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeSQLPlanTaskResponseUnmarshaller {
public static DescribeSQLPlanTaskResponse unmarshall(DescribeSQLPlanTaskResponse describeSQLPlanTaskResponse, UnmarshallerContext _ctx) {
describeSQLPlanTaskResponse.setRequestId(_ctx.stringValue("DescribeSQLPlanTaskResponse.RequestId"));
List<SqlPlanTask> taskList = new ArrayList<SqlPlanTask>();
for (int i = 0; i < _ctx.lengthValue("DescribeSQLPlanTaskResponse.TaskList.Length"); i++) {
SqlPlanTask sqlPlanTask = new SqlPlanTask();
sqlPlanTask.setScanCost(_ctx.longValue("DescribeSQLPlanTaskResponse.TaskList["+ i +"].ScanCost"));
sqlPlanTask.setOutputSize(_ctx.longValue("DescribeSQLPlanTaskResponse.TaskList["+ i +"].OutputSize"));
sqlPlanTask.setInputSize(_ctx.longValue("DescribeSQLPlanTaskResponse.TaskList["+ i +"].InputSize"));
sqlPlanTask.setState(_ctx.stringValue("DescribeSQLPlanTaskResponse.TaskList["+ i +"].State"));
sqlPlanTask.setOperatorCost(_ctx.longValue("DescribeSQLPlanTaskResponse.TaskList["+ i +"].OperatorCost"));
sqlPlanTask.setOutputRows(_ctx.longValue("DescribeSQLPlanTaskResponse.TaskList["+ i +"].OutputRows"));
sqlPlanTask.setScanSize(_ctx.longValue("DescribeSQLPlanTaskResponse.TaskList["+ i +"].ScanSize"));
sqlPlanTask.setElapsedTime(_ctx.longValue("DescribeSQLPlanTaskResponse.TaskList["+ i +"].ElapsedTime"));
sqlPlanTask.setScanRows(_ctx.longValue("DescribeSQLPlanTaskResponse.TaskList["+ i +"].ScanRows"));
sqlPlanTask.setPeakMemory(_ctx.longValue("DescribeSQLPlanTaskResponse.TaskList["+ i +"].PeakMemory"));
sqlPlanTask.setTaskId(_ctx.integerValue("DescribeSQLPlanTaskResponse.TaskList["+ i +"].TaskId"));
sqlPlanTask.setInputRows(_ctx.longValue("DescribeSQLPlanTaskResponse.TaskList["+ i +"].InputRows"));
taskList.add(sqlPlanTask);
}
describeSQLPlanTaskResponse.setTaskList(taskList);
return describeSQLPlanTaskResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeSchemasResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeSchemasResponse;
import com.aliyuncs.adb.model.v20190315.DescribeSchemasResponse.Schema;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeSchemasResponseUnmarshaller {
public static DescribeSchemasResponse unmarshall(DescribeSchemasResponse describeSchemasResponse, UnmarshallerContext _ctx) {
describeSchemasResponse.setRequestId(_ctx.stringValue("DescribeSchemasResponse.RequestId"));
List<Schema> items = new ArrayList<Schema>();
for (int i = 0; i < _ctx.lengthValue("DescribeSchemasResponse.Items.Length"); i++) {
Schema schema = new Schema();
schema.setDBClusterId(_ctx.stringValue("DescribeSchemasResponse.Items["+ i +"].DBClusterId"));
schema.setSchemaName(_ctx.stringValue("DescribeSchemasResponse.Items["+ i +"].SchemaName"));
items.add(schema);
}
describeSchemasResponse.setItems(items);
return describeSchemasResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeSlowLogRecordsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeSlowLogRecordsResponse;
import com.aliyuncs.adb.model.v20190315.DescribeSlowLogRecordsResponse.SlowLogRecord;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeSlowLogRecordsResponseUnmarshaller {
public static DescribeSlowLogRecordsResponse unmarshall(DescribeSlowLogRecordsResponse describeSlowLogRecordsResponse, UnmarshallerContext _ctx) {
describeSlowLogRecordsResponse.setRequestId(_ctx.stringValue("DescribeSlowLogRecordsResponse.RequestId"));
describeSlowLogRecordsResponse.setTotalCount(_ctx.stringValue("DescribeSlowLogRecordsResponse.TotalCount"));
describeSlowLogRecordsResponse.setPageSize(_ctx.stringValue("DescribeSlowLogRecordsResponse.PageSize"));
describeSlowLogRecordsResponse.setPageNumber(_ctx.stringValue("DescribeSlowLogRecordsResponse.PageNumber"));
describeSlowLogRecordsResponse.setDBClusterId(_ctx.stringValue("DescribeSlowLogRecordsResponse.DBClusterId"));
List<SlowLogRecord> items = new ArrayList<SlowLogRecord>();
for (int i = 0; i < _ctx.lengthValue("DescribeSlowLogRecordsResponse.Items.Length"); i++) {
SlowLogRecord slowLogRecord = new SlowLogRecord();
slowLogRecord.setHostAddress(_ctx.stringValue("DescribeSlowLogRecordsResponse.Items["+ i +"].HostAddress"));
slowLogRecord.setScanTime(_ctx.longValue("DescribeSlowLogRecordsResponse.Items["+ i +"].ScanTime"));
slowLogRecord.setSQLText(_ctx.stringValue("DescribeSlowLogRecordsResponse.Items["+ i +"].SQLText"));
slowLogRecord.setOutputSize(_ctx.stringValue("DescribeSlowLogRecordsResponse.Items["+ i +"].OutputSize"));
slowLogRecord.setPeakMemoryUsage(_ctx.stringValue("DescribeSlowLogRecordsResponse.Items["+ i +"].PeakMemoryUsage"));
slowLogRecord.setState(_ctx.stringValue("DescribeSlowLogRecordsResponse.Items["+ i +"].State"));
slowLogRecord.setWallTime(_ctx.longValue("DescribeSlowLogRecordsResponse.Items["+ i +"].WallTime"));
slowLogRecord.setScanSize(_ctx.stringValue("DescribeSlowLogRecordsResponse.Items["+ i +"].ScanSize"));
slowLogRecord.setExecutionStartTime(_ctx.stringValue("DescribeSlowLogRecordsResponse.Items["+ i +"].ExecutionStartTime"));
slowLogRecord.setQueryTime(_ctx.longValue("DescribeSlowLogRecordsResponse.Items["+ i +"].QueryTime"));
slowLogRecord.setReturnRowCounts(_ctx.longValue("DescribeSlowLogRecordsResponse.Items["+ i +"].ReturnRowCounts"));
slowLogRecord.setScanRows(_ctx.longValue("DescribeSlowLogRecordsResponse.Items["+ i +"].ScanRows"));
slowLogRecord.setParseRowCounts(_ctx.longValue("DescribeSlowLogRecordsResponse.Items["+ i +"].ParseRowCounts"));
slowLogRecord.setDBName(_ctx.stringValue("DescribeSlowLogRecordsResponse.Items["+ i +"].DBName"));
slowLogRecord.setPlanningTime(_ctx.longValue("DescribeSlowLogRecordsResponse.Items["+ i +"].PlanningTime"));
slowLogRecord.setQueueTime(_ctx.longValue("DescribeSlowLogRecordsResponse.Items["+ i +"].QueueTime"));
slowLogRecord.setUserName(_ctx.stringValue("DescribeSlowLogRecordsResponse.Items["+ i +"].UserName"));
slowLogRecord.setProcessID(_ctx.stringValue("DescribeSlowLogRecordsResponse.Items["+ i +"].ProcessID"));
items.add(slowLogRecord);
}
describeSlowLogRecordsResponse.setItems(items);
return describeSlowLogRecordsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeSqlPatternResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeSqlPatternResponse;
import com.aliyuncs.adb.model.v20190315.DescribeSqlPatternResponse.ItemsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeSqlPatternResponseUnmarshaller {
public static DescribeSqlPatternResponse unmarshall(DescribeSqlPatternResponse describeSqlPatternResponse, UnmarshallerContext _ctx) {
describeSqlPatternResponse.setRequestId(_ctx.stringValue("DescribeSqlPatternResponse.RequestId"));
describeSqlPatternResponse.setPageSize(_ctx.integerValue("DescribeSqlPatternResponse.PageSize"));
describeSqlPatternResponse.setPageNumber(_ctx.integerValue("DescribeSqlPatternResponse.PageNumber"));
describeSqlPatternResponse.setTotalCount(_ctx.integerValue("DescribeSqlPatternResponse.TotalCount"));
List<ItemsItem> items = new ArrayList<ItemsItem>();
for (int i = 0; i < _ctx.lengthValue("DescribeSqlPatternResponse.Items.Length"); i++) {
ItemsItem itemsItem = new ItemsItem();
itemsItem.setAvgStageCount(_ctx.stringValue("DescribeSqlPatternResponse.Items["+ i +"].AvgStageCount"));
itemsItem.setMaxCpuTime(_ctx.stringValue("DescribeSqlPatternResponse.Items["+ i +"].MaxCpuTime"));
itemsItem.setAccessIP(_ctx.stringValue("DescribeSqlPatternResponse.Items["+ i +"].AccessIP"));
itemsItem.setAvgScanSize(_ctx.stringValue("DescribeSqlPatternResponse.Items["+ i +"].AvgScanSize"));
itemsItem.setMaxScanSize(_ctx.stringValue("DescribeSqlPatternResponse.Items["+ i +"].MaxScanSize"));
itemsItem.setMaxPeakMemory(_ctx.stringValue("DescribeSqlPatternResponse.Items["+ i +"].MaxPeakMemory"));
itemsItem.setAvgCpuTime(_ctx.stringValue("DescribeSqlPatternResponse.Items["+ i +"].AvgCpuTime"));
itemsItem.setUser(_ctx.stringValue("DescribeSqlPatternResponse.Items["+ i +"].User"));
itemsItem.setAvgPeakMemory(_ctx.stringValue("DescribeSqlPatternResponse.Items["+ i +"].AvgPeakMemory"));
itemsItem.setMaxStageCount(_ctx.stringValue("DescribeSqlPatternResponse.Items["+ i +"].MaxStageCount"));
itemsItem.setMaxTaskCount(_ctx.stringValue("DescribeSqlPatternResponse.Items["+ i +"].MaxTaskCount"));
itemsItem.setInstanceName(_ctx.stringValue("DescribeSqlPatternResponse.Items["+ i +"].InstanceName"));
itemsItem.setQueryCount(_ctx.stringValue("DescribeSqlPatternResponse.Items["+ i +"].QueryCount"));
itemsItem.setReportDate(_ctx.stringValue("DescribeSqlPatternResponse.Items["+ i +"].ReportDate"));
itemsItem.setPattern(_ctx.stringValue("DescribeSqlPatternResponse.Items["+ i +"].Pattern"));
itemsItem.setAvgTaskCount(_ctx.stringValue("DescribeSqlPatternResponse.Items["+ i +"].AvgTaskCount"));
items.add(itemsItem);
}
describeSqlPatternResponse.setItems(items);
return describeSqlPatternResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeSyncAvailableDBClusterListResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeSyncAvailableDBClusterListResponse;
import com.aliyuncs.adb.model.v20190315.DescribeSyncAvailableDBClusterListResponse.SyncAvailableDBCluster;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeSyncAvailableDBClusterListResponseUnmarshaller {
public static DescribeSyncAvailableDBClusterListResponse unmarshall(DescribeSyncAvailableDBClusterListResponse describeSyncAvailableDBClusterListResponse, UnmarshallerContext _ctx) {
describeSyncAvailableDBClusterListResponse.setRequestId(_ctx.stringValue("DescribeSyncAvailableDBClusterListResponse.RequestId"));
List<SyncAvailableDBCluster> syncAvailableDBClusters = new ArrayList<SyncAvailableDBCluster>();
for (int i = 0; i < _ctx.lengthValue("DescribeSyncAvailableDBClusterListResponse.SyncAvailableDBClusters.Length"); i++) {
SyncAvailableDBCluster syncAvailableDBCluster = new SyncAvailableDBCluster();
syncAvailableDBCluster.setTableNumber(_ctx.integerValue("DescribeSyncAvailableDBClusterListResponse.SyncAvailableDBClusters["+ i +"].TableNumber"));
syncAvailableDBCluster.setDBClusterId(_ctx.stringValue("DescribeSyncAvailableDBClusterListResponse.SyncAvailableDBClusters["+ i +"].DBClusterId"));
syncAvailableDBCluster.setDBClusterDescription(_ctx.stringValue("DescribeSyncAvailableDBClusterListResponse.SyncAvailableDBClusters["+ i +"].DBClusterDescription"));
syncAvailableDBCluster.setDBType(_ctx.stringValue("DescribeSyncAvailableDBClusterListResponse.SyncAvailableDBClusters["+ i +"].DBType"));
syncAvailableDBCluster.setStorageSize(_ctx.floatValue("DescribeSyncAvailableDBClusterListResponse.SyncAvailableDBClusters["+ i +"].StorageSize"));
syncAvailableDBClusters.add(syncAvailableDBCluster);
}
describeSyncAvailableDBClusterListResponse.setSyncAvailableDBClusters(syncAvailableDBClusters);
return describeSyncAvailableDBClusterListResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeSyncJobListResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeSyncJobListResponse;
import com.aliyuncs.adb.model.v20190315.DescribeSyncJobListResponse.SyncJob;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeSyncJobListResponseUnmarshaller {
public static DescribeSyncJobListResponse unmarshall(DescribeSyncJobListResponse describeSyncJobListResponse, UnmarshallerContext _ctx) {
describeSyncJobListResponse.setRequestId(_ctx.stringValue("DescribeSyncJobListResponse.RequestId"));
describeSyncJobListResponse.setTotalCount(_ctx.integerValue("DescribeSyncJobListResponse.TotalCount"));
describeSyncJobListResponse.setPageSize(_ctx.integerValue("DescribeSyncJobListResponse.PageSize"));
describeSyncJobListResponse.setPageNumber(_ctx.integerValue("DescribeSyncJobListResponse.PageNumber"));
describeSyncJobListResponse.setDBClusterId(_ctx.integerValue("DescribeSyncJobListResponse.DBClusterId"));
List<SyncJob> syncJobs = new ArrayList<SyncJob>();
for (int i = 0; i < _ctx.lengthValue("DescribeSyncJobListResponse.SyncJobs.Length"); i++) {
SyncJob syncJob = new SyncJob();
syncJob.setSourceStorageSize(_ctx.integerValue("DescribeSyncJobListResponse.SyncJobs["+ i +"].SourceStorageSize"));
syncJob.setSourceDBClusterId(_ctx.stringValue("DescribeSyncJobListResponse.SyncJobs["+ i +"].SourceDBClusterId"));
syncJob.setJobId(_ctx.stringValue("DescribeSyncJobListResponse.SyncJobs["+ i +"].JobId"));
syncJob.setSourceDBType(_ctx.stringValue("DescribeSyncJobListResponse.SyncJobs["+ i +"].SourceDBType"));
syncJob.setSourceDBClusterDescription(_ctx.stringValue("DescribeSyncJobListResponse.SyncJobs["+ i +"].SourceDBClusterDescription"));
syncJob.setRegionId(_ctx.stringValue("DescribeSyncJobListResponse.SyncJobs["+ i +"].RegionId"));
syncJob.setSourceTableNumber(_ctx.integerValue("DescribeSyncJobListResponse.SyncJobs["+ i +"].SourceTableNumber"));
syncJob.setSyncPlatform(_ctx.stringValue("DescribeSyncJobListResponse.SyncJobs["+ i +"].SyncPlatform"));
syncJobs.add(syncJob);
}
describeSyncJobListResponse.setSyncJobs(syncJobs);
return describeSyncJobListResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeTableAccessCountResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeTableAccessCountResponse;
import com.aliyuncs.adb.model.v20190315.DescribeTableAccessCountResponse.ItemsItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeTableAccessCountResponseUnmarshaller {
public static DescribeTableAccessCountResponse unmarshall(DescribeTableAccessCountResponse describeTableAccessCountResponse, UnmarshallerContext _ctx) {
describeTableAccessCountResponse.setRequestId(_ctx.stringValue("DescribeTableAccessCountResponse.RequestId"));
describeTableAccessCountResponse.setPageNumber(_ctx.integerValue("DescribeTableAccessCountResponse.PageNumber"));
describeTableAccessCountResponse.setPageSize(_ctx.integerValue("DescribeTableAccessCountResponse.PageSize"));
describeTableAccessCountResponse.setTotalCount(_ctx.integerValue("DescribeTableAccessCountResponse.TotalCount"));
List<ItemsItem> items = new ArrayList<ItemsItem>();
for (int i = 0; i < _ctx.lengthValue("DescribeTableAccessCountResponse.Items.Length"); i++) {
ItemsItem itemsItem = new ItemsItem();
itemsItem.setReportDate(_ctx.stringValue("DescribeTableAccessCountResponse.Items["+ i +"].ReportDate"));
itemsItem.setTableSchema(_ctx.stringValue("DescribeTableAccessCountResponse.Items["+ i +"].TableSchema"));
itemsItem.setAccessCount(_ctx.stringValue("DescribeTableAccessCountResponse.Items["+ i +"].AccessCount"));
itemsItem.setTableName(_ctx.stringValue("DescribeTableAccessCountResponse.Items["+ i +"].TableName"));
itemsItem.setInstanceName(_ctx.stringValue("DescribeTableAccessCountResponse.Items["+ i +"].InstanceName"));
items.add(itemsItem);
}
describeTableAccessCountResponse.setItems(items);
return describeTableAccessCountResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeTableDetailResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeTableDetailResponse;
import com.aliyuncs.adb.model.v20190315.DescribeTableDetailResponse.Items;
import com.aliyuncs.adb.model.v20190315.DescribeTableDetailResponse.Items.ShardItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeTableDetailResponseUnmarshaller {
public static DescribeTableDetailResponse unmarshall(DescribeTableDetailResponse describeTableDetailResponse, UnmarshallerContext _ctx) {
describeTableDetailResponse.setRequestId(_ctx.stringValue("DescribeTableDetailResponse.RequestId"));
describeTableDetailResponse.setAvgSize(_ctx.longValue("DescribeTableDetailResponse.AvgSize"));
Items items = new Items();
List<ShardItem> shard = new ArrayList<ShardItem>();
for (int i = 0; i < _ctx.lengthValue("DescribeTableDetailResponse.Items.Shard.Length"); i++) {
ShardItem shardItem = new ShardItem();
shardItem.setSize(_ctx.longValue("DescribeTableDetailResponse.Items.Shard["+ i +"].Size"));
shardItem.setId(_ctx.integerValue("DescribeTableDetailResponse.Items.Shard["+ i +"].Id"));
shard.add(shardItem);
}
items.setShard(shard);
describeTableDetailResponse.setItems(items);
return describeTableDetailResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeTablePartitionDiagnoseResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeTablePartitionDiagnoseResponse;
import com.aliyuncs.adb.model.v20190315.DescribeTablePartitionDiagnoseResponse.DetectionItemsItem;
import com.aliyuncs.adb.model.v20190315.DescribeTablePartitionDiagnoseResponse.TablePartitionDiagnose;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeTablePartitionDiagnoseResponseUnmarshaller {
public static DescribeTablePartitionDiagnoseResponse unmarshall(DescribeTablePartitionDiagnoseResponse describeTablePartitionDiagnoseResponse, UnmarshallerContext _ctx) {
describeTablePartitionDiagnoseResponse.setRequestId(_ctx.stringValue("DescribeTablePartitionDiagnoseResponse.RequestId"));
describeTablePartitionDiagnoseResponse.setTotalCount(_ctx.integerValue("DescribeTablePartitionDiagnoseResponse.TotalCount"));
describeTablePartitionDiagnoseResponse.setPageSize(_ctx.integerValue("DescribeTablePartitionDiagnoseResponse.PageSize"));
describeTablePartitionDiagnoseResponse.setPageNumber(_ctx.integerValue("DescribeTablePartitionDiagnoseResponse.PageNumber"));
describeTablePartitionDiagnoseResponse.setDBClusterId(_ctx.stringValue("DescribeTablePartitionDiagnoseResponse.DBClusterId"));
describeTablePartitionDiagnoseResponse.setSuggestMaxRecordsPerPartition(_ctx.longValue("DescribeTablePartitionDiagnoseResponse.SuggestMaxRecordsPerPartition"));
describeTablePartitionDiagnoseResponse.setSuggestMinRecordsPerPartition(_ctx.longValue("DescribeTablePartitionDiagnoseResponse.SuggestMinRecordsPerPartition"));
List<TablePartitionDiagnose> items = new ArrayList<TablePartitionDiagnose>();
for (int i = 0; i < _ctx.lengthValue("DescribeTablePartitionDiagnoseResponse.Items.Length"); i++) {
TablePartitionDiagnose tablePartitionDiagnose = new TablePartitionDiagnose();
tablePartitionDiagnose.setTableName(_ctx.stringValue("DescribeTablePartitionDiagnoseResponse.Items["+ i +"].TableName"));
tablePartitionDiagnose.setPartitionDetail(_ctx.stringValue("DescribeTablePartitionDiagnoseResponse.Items["+ i +"].PartitionDetail"));
tablePartitionDiagnose.setSchemaName(_ctx.stringValue("DescribeTablePartitionDiagnoseResponse.Items["+ i +"].SchemaName"));
tablePartitionDiagnose.setPartitionNumber(_ctx.integerValue("DescribeTablePartitionDiagnoseResponse.Items["+ i +"].PartitionNumber"));
tablePartitionDiagnose.setSpaceRatio(_ctx.doubleValue("DescribeTablePartitionDiagnoseResponse.Items["+ i +"].SpaceRatio"));
tablePartitionDiagnose.setTotalSize(_ctx.longValue("DescribeTablePartitionDiagnoseResponse.Items["+ i +"].TotalSize"));
items.add(tablePartitionDiagnose);
}
describeTablePartitionDiagnoseResponse.setItems(items);
List<DetectionItemsItem> detectionItems = new ArrayList<DetectionItemsItem>();
for (int i = 0; i < _ctx.lengthValue("DescribeTablePartitionDiagnoseResponse.DetectionItems.Length"); i++) {
DetectionItemsItem detectionItemsItem = new DetectionItemsItem();
detectionItemsItem.setName(_ctx.stringValue("DescribeTablePartitionDiagnoseResponse.DetectionItems["+ i +"].Name"));
detectionItemsItem.setMessage(_ctx.stringValue("DescribeTablePartitionDiagnoseResponse.DetectionItems["+ i +"].Message"));
detectionItemsItem.setStatus(_ctx.stringValue("DescribeTablePartitionDiagnoseResponse.DetectionItems["+ i +"].Status"));
detectionItems.add(detectionItemsItem);
}
describeTablePartitionDiagnoseResponse.setDetectionItems(detectionItems);
return describeTablePartitionDiagnoseResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeTableStatisticsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeTableStatisticsResponse;
import com.aliyuncs.adb.model.v20190315.DescribeTableStatisticsResponse.TableStatisticRecords;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeTableStatisticsResponseUnmarshaller {
public static DescribeTableStatisticsResponse unmarshall(DescribeTableStatisticsResponse describeTableStatisticsResponse, UnmarshallerContext _ctx) {
describeTableStatisticsResponse.setRequestId(_ctx.stringValue("DescribeTableStatisticsResponse.RequestId"));
describeTableStatisticsResponse.setTotalCount(_ctx.stringValue("DescribeTableStatisticsResponse.TotalCount"));
describeTableStatisticsResponse.setPageSize(_ctx.stringValue("DescribeTableStatisticsResponse.PageSize"));
describeTableStatisticsResponse.setPageNumber(_ctx.stringValue("DescribeTableStatisticsResponse.PageNumber"));
describeTableStatisticsResponse.setDBClusterId(_ctx.stringValue("DescribeTableStatisticsResponse.DBClusterId"));
describeTableStatisticsResponse.setSchemaNames(_ctx.stringValue("DescribeTableStatisticsResponse.SchemaNames"));
List<TableStatisticRecords> items = new ArrayList<TableStatisticRecords>();
for (int i = 0; i < _ctx.lengthValue("DescribeTableStatisticsResponse.Items.Length"); i++) {
TableStatisticRecords tableStatisticRecords = new TableStatisticRecords();
tableStatisticRecords.setSchemaName(_ctx.stringValue("DescribeTableStatisticsResponse.Items["+ i +"].SchemaName"));
tableStatisticRecords.setTableName(_ctx.stringValue("DescribeTableStatisticsResponse.Items["+ i +"].TableName"));
tableStatisticRecords.setRowCount(_ctx.longValue("DescribeTableStatisticsResponse.Items["+ i +"].RowCount"));
tableStatisticRecords.setDataSize(_ctx.longValue("DescribeTableStatisticsResponse.Items["+ i +"].DataSize"));
tableStatisticRecords.setIndexSize(_ctx.longValue("DescribeTableStatisticsResponse.Items["+ i +"].IndexSize"));
tableStatisticRecords.setPrimaryKeyIndexSize(_ctx.longValue("DescribeTableStatisticsResponse.Items["+ i +"].PrimaryKeyIndexSize"));
tableStatisticRecords.setPartitionCount(_ctx.longValue("DescribeTableStatisticsResponse.Items["+ i +"].PartitionCount"));
tableStatisticRecords.setColdDataSize(_ctx.longValue("DescribeTableStatisticsResponse.Items["+ i +"].ColdDataSize"));
tableStatisticRecords.setSpaceRatio(_ctx.doubleValue("DescribeTableStatisticsResponse.Items["+ i +"].SpaceRatio"));
tableStatisticRecords.setTotalSize(_ctx.longValue("DescribeTableStatisticsResponse.Items["+ i +"].TotalSize"));
tableStatisticRecords.setHotDataSize(_ctx.longValue("DescribeTableStatisticsResponse.Items["+ i +"].HotDataSize"));
tableStatisticRecords.setOtherSize(_ctx.longValue("DescribeTableStatisticsResponse.Items["+ i +"].OtherSize"));
items.add(tableStatisticRecords);
}
describeTableStatisticsResponse.setItems(items);
return describeTableStatisticsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeTablesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeTablesResponse;
import com.aliyuncs.adb.model.v20190315.DescribeTablesResponse.Table;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeTablesResponseUnmarshaller {
public static DescribeTablesResponse unmarshall(DescribeTablesResponse describeTablesResponse, UnmarshallerContext _ctx) {
describeTablesResponse.setRequestId(_ctx.stringValue("DescribeTablesResponse.RequestId"));
List<Table> items = new ArrayList<Table>();
for (int i = 0; i < _ctx.lengthValue("DescribeTablesResponse.Items.Length"); i++) {
Table table = new Table();
table.setTableName(_ctx.stringValue("DescribeTablesResponse.Items["+ i +"].TableName"));
table.setDBClusterId(_ctx.stringValue("DescribeTablesResponse.Items["+ i +"].DBClusterId"));
table.setSchemaName(_ctx.stringValue("DescribeTablesResponse.Items["+ i +"].SchemaName"));
items.add(table);
}
describeTablesResponse.setItems(items);
return describeTablesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeTaskInfoResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import com.aliyuncs.adb.model.v20190315.DescribeTaskInfoResponse;
import com.aliyuncs.adb.model.v20190315.DescribeTaskInfoResponse.TaskInfo;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeTaskInfoResponseUnmarshaller {
public static DescribeTaskInfoResponse unmarshall(DescribeTaskInfoResponse describeTaskInfoResponse, UnmarshallerContext _ctx) {
describeTaskInfoResponse.setRequestId(_ctx.stringValue("DescribeTaskInfoResponse.RequestId"));
TaskInfo taskInfo = new TaskInfo();
taskInfo.setStatus(_ctx.stringValue("DescribeTaskInfoResponse.TaskInfo.Status"));
taskInfo.setFinishTime(_ctx.stringValue("DescribeTaskInfoResponse.TaskInfo.FinishTime"));
taskInfo.setProgress(_ctx.stringValue("DescribeTaskInfoResponse.TaskInfo.Progress"));
taskInfo.setBeginTime(_ctx.stringValue("DescribeTaskInfoResponse.TaskInfo.BeginTime"));
taskInfo.setTaskId(_ctx.integerValue("DescribeTaskInfoResponse.TaskInfo.TaskId"));
describeTaskInfoResponse.setTaskInfo(taskInfo);
return describeTaskInfoResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeVSwitchesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeVSwitchesResponse;
import com.aliyuncs.adb.model.v20190315.DescribeVSwitchesResponse.VSwitches;
import com.aliyuncs.adb.model.v20190315.DescribeVSwitchesResponse.VSwitches.VSwitchItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeVSwitchesResponseUnmarshaller {
public static DescribeVSwitchesResponse unmarshall(DescribeVSwitchesResponse describeVSwitchesResponse, UnmarshallerContext _ctx) {
describeVSwitchesResponse.setRequestId(_ctx.stringValue("DescribeVSwitchesResponse.RequestId"));
VSwitches vSwitches = new VSwitches();
List<VSwitchItem> vSwitch = new ArrayList<VSwitchItem>();
for (int i = 0; i < _ctx.lengthValue("DescribeVSwitchesResponse.VSwitches.VSwitch.Length"); i++) {
VSwitchItem vSwitchItem = new VSwitchItem();
vSwitchItem.setStatus(_ctx.stringValue("DescribeVSwitchesResponse.VSwitches.VSwitch["+ i +"].Status"));
vSwitchItem.setIsDefault(_ctx.booleanValue("DescribeVSwitchesResponse.VSwitches.VSwitch["+ i +"].IsDefault"));
vSwitchItem.setVSwitchId(_ctx.stringValue("DescribeVSwitchesResponse.VSwitches.VSwitch["+ i +"].VSwitchId"));
vSwitchItem.setCidrBlock(_ctx.stringValue("DescribeVSwitchesResponse.VSwitches.VSwitch["+ i +"].CidrBlock"));
vSwitchItem.setRegionNo(_ctx.stringValue("DescribeVSwitchesResponse.VSwitches.VSwitch["+ i +"].RegionNo"));
vSwitchItem.setGmtCreate(_ctx.stringValue("DescribeVSwitchesResponse.VSwitches.VSwitch["+ i +"].GmtCreate"));
vSwitchItem.setAliUid(_ctx.stringValue("DescribeVSwitchesResponse.VSwitches.VSwitch["+ i +"].AliUid"));
vSwitchItem.setGmtModified(_ctx.stringValue("DescribeVSwitchesResponse.VSwitches.VSwitch["+ i +"].GmtModified"));
vSwitchItem.setBid(_ctx.stringValue("DescribeVSwitchesResponse.VSwitches.VSwitch["+ i +"].Bid"));
vSwitchItem.setIzNo(_ctx.stringValue("DescribeVSwitchesResponse.VSwitches.VSwitch["+ i +"].IzNo"));
vSwitchItem.setVSwitchName(_ctx.stringValue("DescribeVSwitchesResponse.VSwitches.VSwitch["+ i +"].VSwitchName"));
vSwitch.add(vSwitchItem);
}
vSwitches.setVSwitch(vSwitch);
describeVSwitchesResponse.setVSwitches(vSwitches);
return describeVSwitchesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeVSwitchsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeVSwitchsResponse;
import com.aliyuncs.adb.model.v20190315.DescribeVSwitchsResponse.VSwitches;
import com.aliyuncs.adb.model.v20190315.DescribeVSwitchsResponse.VSwitches.VSwitchItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeVSwitchsResponseUnmarshaller {
public static DescribeVSwitchsResponse unmarshall(DescribeVSwitchsResponse describeVSwitchsResponse, UnmarshallerContext _ctx) {
describeVSwitchsResponse.setRequestId(_ctx.stringValue("DescribeVSwitchsResponse.RequestId"));
VSwitches vSwitches = new VSwitches();
List<VSwitchItem> vSwitch = new ArrayList<VSwitchItem>();
for (int i = 0; i < _ctx.lengthValue("DescribeVSwitchsResponse.VSwitches.VSwitch.Length"); i++) {
VSwitchItem vSwitchItem = new VSwitchItem();
vSwitchItem.setStatus(_ctx.stringValue("DescribeVSwitchsResponse.VSwitches.VSwitch["+ i +"].Status"));
vSwitchItem.setIsDefault(_ctx.booleanValue("DescribeVSwitchsResponse.VSwitches.VSwitch["+ i +"].IsDefault"));
vSwitchItem.setVSwitchId(_ctx.stringValue("DescribeVSwitchsResponse.VSwitches.VSwitch["+ i +"].VSwitchId"));
vSwitchItem.setCidrBlock(_ctx.stringValue("DescribeVSwitchsResponse.VSwitches.VSwitch["+ i +"].CidrBlock"));
vSwitchItem.setRegionNo(_ctx.stringValue("DescribeVSwitchsResponse.VSwitches.VSwitch["+ i +"].RegionNo"));
vSwitchItem.setGmtCreate(_ctx.stringValue("DescribeVSwitchsResponse.VSwitches.VSwitch["+ i +"].GmtCreate"));
vSwitchItem.setAliUid(_ctx.stringValue("DescribeVSwitchsResponse.VSwitches.VSwitch["+ i +"].AliUid"));
vSwitchItem.setGmtModified(_ctx.stringValue("DescribeVSwitchsResponse.VSwitches.VSwitch["+ i +"].GmtModified"));
vSwitchItem.setBid(_ctx.stringValue("DescribeVSwitchsResponse.VSwitches.VSwitch["+ i +"].Bid"));
vSwitchItem.setIzNo(_ctx.stringValue("DescribeVSwitchsResponse.VSwitches.VSwitch["+ i +"].IzNo"));
vSwitchItem.setVSwitchName(_ctx.stringValue("DescribeVSwitchsResponse.VSwitches.VSwitch["+ i +"].VSwitchName"));
vSwitch.add(vSwitchItem);
}
vSwitches.setVSwitch(vSwitch);
describeVSwitchsResponse.setVSwitches(vSwitches);
return describeVSwitchsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeVpcsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeVpcsResponse;
import com.aliyuncs.adb.model.v20190315.DescribeVpcsResponse.Vpcs;
import com.aliyuncs.adb.model.v20190315.DescribeVpcsResponse.Vpcs.VpcItem;
import com.aliyuncs.adb.model.v20190315.DescribeVpcsResponse.Vpcs.VpcItem.VSwitch;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeVpcsResponseUnmarshaller {
public static DescribeVpcsResponse unmarshall(DescribeVpcsResponse describeVpcsResponse, UnmarshallerContext _ctx) {
describeVpcsResponse.setRequestId(_ctx.stringValue("DescribeVpcsResponse.RequestId"));
Vpcs vpcs = new Vpcs();
List<VpcItem> vpc = new ArrayList<VpcItem>();
for (int i = 0; i < _ctx.lengthValue("DescribeVpcsResponse.Vpcs.Vpc.Length"); i++) {
VpcItem vpcItem = new VpcItem();
vpcItem.setStatus(_ctx.stringValue("DescribeVpcsResponse.Vpcs.Vpc["+ i +"].Status"));
vpcItem.setVpcName(_ctx.stringValue("DescribeVpcsResponse.Vpcs.Vpc["+ i +"].VpcName"));
vpcItem.setVpcId(_ctx.stringValue("DescribeVpcsResponse.Vpcs.Vpc["+ i +"].VpcId"));
vpcItem.setIsDefault(_ctx.booleanValue("DescribeVpcsResponse.Vpcs.Vpc["+ i +"].IsDefault"));
vpcItem.setCidrBlock(_ctx.stringValue("DescribeVpcsResponse.Vpcs.Vpc["+ i +"].CidrBlock"));
vpcItem.setRegionNo(_ctx.stringValue("DescribeVpcsResponse.Vpcs.Vpc["+ i +"].RegionNo"));
vpcItem.setGmtCreate(_ctx.stringValue("DescribeVpcsResponse.Vpcs.Vpc["+ i +"].GmtCreate"));
vpcItem.setAliUid(_ctx.stringValue("DescribeVpcsResponse.Vpcs.Vpc["+ i +"].AliUid"));
vpcItem.setGmtModified(_ctx.stringValue("DescribeVpcsResponse.Vpcs.Vpc["+ i +"].GmtModified"));
vpcItem.setBid(_ctx.stringValue("DescribeVpcsResponse.Vpcs.Vpc["+ i +"].Bid"));
List<VSwitch> vSwitchs = new ArrayList<VSwitch>();
for (int j = 0; j < _ctx.lengthValue("DescribeVpcsResponse.Vpcs.Vpc["+ i +"].VSwitchs.Length"); j++) {
VSwitch vSwitch = new VSwitch();
vSwitch.setStatus(_ctx.stringValue("DescribeVpcsResponse.Vpcs.Vpc["+ i +"].VSwitchs["+ j +"].Status"));
vSwitch.setVSwitchId(_ctx.stringValue("DescribeVpcsResponse.Vpcs.Vpc["+ i +"].VSwitchs["+ j +"].VSwitchId"));
vSwitch.setIsDefault(_ctx.booleanValue("DescribeVpcsResponse.Vpcs.Vpc["+ i +"].VSwitchs["+ j +"].IsDefault"));
vSwitch.setCidrBlock(_ctx.stringValue("DescribeVpcsResponse.Vpcs.Vpc["+ i +"].VSwitchs["+ j +"].CidrBlock"));
vSwitch.setGmtCreate(_ctx.stringValue("DescribeVpcsResponse.Vpcs.Vpc["+ i +"].VSwitchs["+ j +"].GmtCreate"));
vSwitch.setGmtModified(_ctx.stringValue("DescribeVpcsResponse.Vpcs.Vpc["+ i +"].VSwitchs["+ j +"].GmtModified"));
vSwitch.setIzNo(_ctx.stringValue("DescribeVpcsResponse.Vpcs.Vpc["+ i +"].VSwitchs["+ j +"].IzNo"));
vSwitch.setVSwitchName(_ctx.stringValue("DescribeVpcsResponse.Vpcs.Vpc["+ i +"].VSwitchs["+ j +"].VSwitchName"));
vSwitchs.add(vSwitch);
}
vpcItem.setVSwitchs(vSwitchs);
vpc.add(vpcItem);
}
vpcs.setVpc(vpc);
describeVpcsResponse.setVpcs(vpcs);
return describeVpcsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DescribeWorkerDetectionResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.DescribeWorkerDetectionResponse;
import com.aliyuncs.adb.model.v20190315.DescribeWorkerDetectionResponse.BaseDetectionItem;
import com.aliyuncs.adb.model.v20190315.DescribeWorkerDetectionResponse.BaseDetectionItem.Results;
import com.aliyuncs.adb.model.v20190315.DescribeWorkerDetectionResponse.BaseDetectionItem.Results.BadOperatorAgg;
import com.aliyuncs.adb.model.v20190315.DescribeWorkerDetectionResponse.BaseDetectionItem.Results.BadOperatorAgg.ResultList4;
import com.aliyuncs.adb.model.v20190315.DescribeWorkerDetectionResponse.BaseDetectionItem.Results.BadOperatorDetails;
import com.aliyuncs.adb.model.v20190315.DescribeWorkerDetectionResponse.BaseDetectionItem.Results.BadOperatorDetails.ResultList2;
import com.aliyuncs.adb.model.v20190315.DescribeWorkerDetectionResponse.BaseDetectionItem.Results.PartitionedTablesList;
import com.aliyuncs.adb.model.v20190315.DescribeWorkerDetectionResponse.BaseDetectionItem.Results.SkewedTablesList;
import com.aliyuncs.adb.model.v20190315.DescribeWorkerDetectionResponse.BaseDetectionItem.Results.TopAccessTablesList;
import com.aliyuncs.adb.model.v20190315.DescribeWorkerDetectionResponse.BaseDetectionItem.Results.TopAccessTablesList.ResultList;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeWorkerDetectionResponseUnmarshaller {
public static DescribeWorkerDetectionResponse unmarshall(DescribeWorkerDetectionResponse describeWorkerDetectionResponse, UnmarshallerContext _ctx) {
describeWorkerDetectionResponse.setRequestId(_ctx.stringValue("DescribeWorkerDetectionResponse.RequestId"));
describeWorkerDetectionResponse.setTotalCount(_ctx.stringValue("DescribeWorkerDetectionResponse.TotalCount"));
describeWorkerDetectionResponse.setDBClusterId(_ctx.stringValue("DescribeWorkerDetectionResponse.DBClusterId"));
List<BaseDetectionItem> detectionItems = new ArrayList<BaseDetectionItem>();
for (int i = 0; i < _ctx.lengthValue("DescribeWorkerDetectionResponse.DetectionItems.Length"); i++) {
BaseDetectionItem baseDetectionItem = new BaseDetectionItem();
baseDetectionItem.setName(_ctx.stringValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Name"));
baseDetectionItem.setMessage(_ctx.stringValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Message"));
baseDetectionItem.setStatus(_ctx.stringValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Status"));
Results results = new Results();
List<SkewedTablesList> skewedTables = new ArrayList<SkewedTablesList>();
for (int j = 0; j < _ctx.lengthValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.SkewedTables.Length"); j++) {
SkewedTablesList skewedTablesList = new SkewedTablesList();
skewedTablesList.setSchemaName(_ctx.stringValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.SkewedTables["+ j +"].SchemaName"));
skewedTablesList.setTableName(_ctx.stringValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.SkewedTables["+ j +"].TableName"));
skewedTablesList.setDDL(_ctx.stringValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.SkewedTables["+ j +"].DDL"));
skewedTablesList.setPartitionCount(_ctx.integerValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.SkewedTables["+ j +"].PartitionCount"));
skewedTablesList.setTotalDataSize(_ctx.longValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.SkewedTables["+ j +"].TotalDataSize"));
skewedTablesList.setTotalRowCount(_ctx.longValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.SkewedTables["+ j +"].TotalRowCount"));
skewedTablesList.setTotalPkSize(_ctx.longValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.SkewedTables["+ j +"].TotalPkSize"));
skewedTablesList.setTotalRemoteDataSize(_ctx.longValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.SkewedTables["+ j +"].TotalRemoteDataSize"));
skewedTablesList.setTotalLocalDataSize(_ctx.stringValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.SkewedTables["+ j +"].TotalLocalDataSize"));
skewedTablesList.setShardSkewedRows(_ctx.stringValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.SkewedTables["+ j +"].ShardSkewedRows"));
skewedTables.add(skewedTablesList);
}
results.setSkewedTables(skewedTables);
List<PartitionedTablesList> partitionedTables = new ArrayList<PartitionedTablesList>();
for (int j = 0; j < _ctx.lengthValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.PartitionedTables.Length"); j++) {
PartitionedTablesList partitionedTablesList = new PartitionedTablesList();
partitionedTablesList.setSchemaName(_ctx.stringValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.PartitionedTables["+ j +"].SchemaName"));
partitionedTablesList.setTableName(_ctx.stringValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.PartitionedTables["+ j +"].TableName"));
partitionedTablesList.setDDL(_ctx.stringValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.PartitionedTables["+ j +"].DDL"));
partitionedTablesList.setPartitionCount(_ctx.stringValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.PartitionedTables["+ j +"].PartitionCount"));
partitionedTablesList.setPartitionIds(_ctx.stringValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.PartitionedTables["+ j +"].PartitionIds"));
partitionedTablesList.setTotalDataSize(_ctx.longValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.PartitionedTables["+ j +"].TotalDataSize"));
partitionedTables.add(partitionedTablesList);
}
results.setPartitionedTables(partitionedTables);
List<TopAccessTablesList> topAccessTables = new ArrayList<TopAccessTablesList>();
for (int j = 0; j < _ctx.lengthValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.TopAccessTables.Length"); j++) {
TopAccessTablesList topAccessTablesList = new TopAccessTablesList();
topAccessTablesList.setMetricName(_ctx.stringValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.TopAccessTables["+ j +"].MetricName"));
List<ResultList> searchResults = new ArrayList<ResultList>();
for (int k = 0; k < _ctx.lengthValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.TopAccessTables["+ j +"].SearchResults.Length"); k++) {
ResultList resultList = new ResultList();
resultList.setTableName(_ctx.stringValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.TopAccessTables["+ j +"].SearchResults["+ k +"].TableName"));
resultList.setMaxScanCost(_ctx.longValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.TopAccessTables["+ j +"].SearchResults["+ k +"].MaxScanCost"));
resultList.setAvgScanCost(_ctx.doubleValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.TopAccessTables["+ j +"].SearchResults["+ k +"].AvgScanCost"));
resultList.setMaxScanSize(_ctx.longValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.TopAccessTables["+ j +"].SearchResults["+ k +"].MaxScanSize"));
resultList.setAvgScanSize(_ctx.doubleValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.TopAccessTables["+ j +"].SearchResults["+ k +"].AvgScanSize"));
resultList.setAccessCount(_ctx.longValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.TopAccessTables["+ j +"].SearchResults["+ k +"].AccessCount"));
searchResults.add(resultList);
}
topAccessTablesList.setSearchResults(searchResults);
topAccessTables.add(topAccessTablesList);
}
results.setTopAccessTables(topAccessTables);
List<BadOperatorDetails> operatorDetails = new ArrayList<BadOperatorDetails>();
for (int j = 0; j < _ctx.lengthValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.OperatorDetails.Length"); j++) {
BadOperatorDetails badOperatorDetails = new BadOperatorDetails();
badOperatorDetails.setMetricName(_ctx.stringValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.OperatorDetails["+ j +"].MetricName"));
List<ResultList2> searchResults1 = new ArrayList<ResultList2>();
for (int k = 0; k < _ctx.lengthValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.OperatorDetails["+ j +"].SearchResults.Length"); k++) {
ResultList2 resultList2 = new ResultList2();
resultList2.setProcessId(_ctx.stringValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.OperatorDetails["+ j +"].SearchResults["+ k +"].ProcessId"));
resultList2.setStageId(_ctx.stringValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.OperatorDetails["+ j +"].SearchResults["+ k +"].StageId"));
resultList2.setOperatorName(_ctx.stringValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.OperatorDetails["+ j +"].SearchResults["+ k +"].OperatorName"));
resultList2.setPeakMemory(_ctx.longValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.OperatorDetails["+ j +"].SearchResults["+ k +"].PeakMemory"));
resultList2.setOperatorCost(_ctx.longValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.OperatorDetails["+ j +"].SearchResults["+ k +"].OperatorCost"));
resultList2.setInputRows(_ctx.longValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.OperatorDetails["+ j +"].SearchResults["+ k +"].InputRows"));
resultList2.setOutputRows(_ctx.longValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.OperatorDetails["+ j +"].SearchResults["+ k +"].OutputRows"));
resultList2.setInputSize(_ctx.longValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.OperatorDetails["+ j +"].SearchResults["+ k +"].InputSize"));
resultList2.setOutputSize(_ctx.longValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.OperatorDetails["+ j +"].SearchResults["+ k +"].OutputSize"));
resultList2.setOperatorInfo(_ctx.stringValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.OperatorDetails["+ j +"].SearchResults["+ k +"].OperatorInfo"));
searchResults1.add(resultList2);
}
badOperatorDetails.setSearchResults1(searchResults1);
operatorDetails.add(badOperatorDetails);
}
results.setOperatorDetails(operatorDetails);
List<BadOperatorAgg> operatorAgg = new ArrayList<BadOperatorAgg>();
for (int j = 0; j < _ctx.lengthValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.OperatorAgg.Length"); j++) {
BadOperatorAgg badOperatorAgg = new BadOperatorAgg();
badOperatorAgg.setMetricName(_ctx.stringValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.OperatorAgg["+ j +"].MetricName"));
List<ResultList4> searchResults3 = new ArrayList<ResultList4>();
for (int k = 0; k < _ctx.lengthValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.OperatorAgg["+ j +"].SearchResults.Length"); k++) {
ResultList4 resultList4 = new ResultList4();
resultList4.setOperatorName(_ctx.stringValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.OperatorAgg["+ j +"].SearchResults["+ k +"].OperatorName"));
resultList4.setMaxValue(_ctx.longValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.OperatorAgg["+ j +"].SearchResults["+ k +"].MaxValue"));
resultList4.setTotalValue(_ctx.longValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.OperatorAgg["+ j +"].SearchResults["+ k +"].TotalValue"));
resultList4.setAvgValue(_ctx.doubleValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.OperatorAgg["+ j +"].SearchResults["+ k +"].AvgValue"));
resultList4.setOperatorCount(_ctx.longValue("DescribeWorkerDetectionResponse.DetectionItems["+ i +"].Results.OperatorAgg["+ j +"].SearchResults["+ k +"].OperatorCount"));
searchResults3.add(resultList4);
}
badOperatorAgg.setSearchResults3(searchResults3);
operatorAgg.add(badOperatorAgg);
}
results.setOperatorAgg(operatorAgg);
baseDetectionItem.setResults(results);
detectionItems.add(baseDetectionItem);
}
describeWorkerDetectionResponse.setDetectionItems(detectionItems);
return describeWorkerDetectionResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DetachUserENIResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import com.aliyuncs.adb.model.v20190315.DetachUserENIResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class DetachUserENIResponseUnmarshaller {
public static DetachUserENIResponse unmarshall(DetachUserENIResponse detachUserENIResponse, UnmarshallerContext _ctx) {
detachUserENIResponse.setRequestId(_ctx.stringValue("DetachUserENIResponse.RequestId"));
return detachUserENIResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DisableAdviceServiceResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import com.aliyuncs.adb.model.v20190315.DisableAdviceServiceResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class DisableAdviceServiceResponseUnmarshaller {
public static DisableAdviceServiceResponse unmarshall(DisableAdviceServiceResponse disableAdviceServiceResponse, UnmarshallerContext _ctx) {
disableAdviceServiceResponse.setRequestId(_ctx.stringValue("DisableAdviceServiceResponse.RequestId"));
disableAdviceServiceResponse.setMessage(_ctx.stringValue("DisableAdviceServiceResponse.Message"));
return disableAdviceServiceResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/DownloadDiagnosisRecordsResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import com.aliyuncs.adb.model.v20190315.DownloadDiagnosisRecordsResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class DownloadDiagnosisRecordsResponseUnmarshaller {
public static DownloadDiagnosisRecordsResponse unmarshall(DownloadDiagnosisRecordsResponse downloadDiagnosisRecordsResponse, UnmarshallerContext _ctx) {
downloadDiagnosisRecordsResponse.setRequestId(_ctx.stringValue("DownloadDiagnosisRecordsResponse.RequestId"));
downloadDiagnosisRecordsResponse.setDownloadId(_ctx.integerValue("DownloadDiagnosisRecordsResponse.DownloadId"));
return downloadDiagnosisRecordsResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/EnableAdviceServiceResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import com.aliyuncs.adb.model.v20190315.EnableAdviceServiceResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class EnableAdviceServiceResponseUnmarshaller {
public static EnableAdviceServiceResponse unmarshall(EnableAdviceServiceResponse enableAdviceServiceResponse, UnmarshallerContext _ctx) {
enableAdviceServiceResponse.setRequestId(_ctx.stringValue("EnableAdviceServiceResponse.RequestId"));
enableAdviceServiceResponse.setMessage(_ctx.stringValue("EnableAdviceServiceResponse.Message"));
return enableAdviceServiceResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/GetCreateTableSQLResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import com.aliyuncs.adb.model.v20190315.GetCreateTableSQLResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class GetCreateTableSQLResponseUnmarshaller {
public static GetCreateTableSQLResponse unmarshall(GetCreateTableSQLResponse getCreateTableSQLResponse, UnmarshallerContext _ctx) {
getCreateTableSQLResponse.setRequestId(_ctx.stringValue("GetCreateTableSQLResponse.RequestId"));
getCreateTableSQLResponse.setSQL(_ctx.stringValue("GetCreateTableSQLResponse.SQL"));
getCreateTableSQLResponse.setAccessDeniedDetail(_ctx.stringValue("GetCreateTableSQLResponse.AccessDeniedDetail"));
return getCreateTableSQLResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/GrantOperatorPermissionResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import com.aliyuncs.adb.model.v20190315.GrantOperatorPermissionResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class GrantOperatorPermissionResponseUnmarshaller {
public static GrantOperatorPermissionResponse unmarshall(GrantOperatorPermissionResponse grantOperatorPermissionResponse, UnmarshallerContext _ctx) {
grantOperatorPermissionResponse.setRequestId(_ctx.stringValue("GrantOperatorPermissionResponse.RequestId"));
return grantOperatorPermissionResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/KillProcessResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import com.aliyuncs.adb.model.v20190315.KillProcessResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class KillProcessResponseUnmarshaller {
public static KillProcessResponse unmarshall(KillProcessResponse killProcessResponse, UnmarshallerContext _ctx) {
killProcessResponse.setRequestId(_ctx.stringValue("KillProcessResponse.RequestId"));
return killProcessResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/ListTagResourcesResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.adb.model.v20190315.ListTagResourcesResponse;
import com.aliyuncs.adb.model.v20190315.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<TagResource> tagResources = new ArrayList<TagResource>();
for (int i = 0; i < _ctx.lengthValue("ListTagResourcesResponse.TagResources.Length"); i++) {
TagResource tagResource = new TagResource();
tagResource.setResourceType(_ctx.stringValue("ListTagResourcesResponse.TagResources["+ i +"].ResourceType"));
tagResource.setTagValue(_ctx.stringValue("ListTagResourcesResponse.TagResources["+ i +"].TagValue"));
tagResource.setResourceId(_ctx.stringValue("ListTagResourcesResponse.TagResources["+ i +"].ResourceId"));
tagResource.setTagKey(_ctx.stringValue("ListTagResourcesResponse.TagResources["+ i +"].TagKey"));
tagResources.add(tagResource);
}
listTagResourcesResponse.setTagResources(tagResources);
return listTagResourcesResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/MigrateDBClusterResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import com.aliyuncs.adb.model.v20190315.MigrateDBClusterResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class MigrateDBClusterResponseUnmarshaller {
public static MigrateDBClusterResponse unmarshall(MigrateDBClusterResponse migrateDBClusterResponse, UnmarshallerContext _ctx) {
migrateDBClusterResponse.setRequestId(_ctx.stringValue("MigrateDBClusterResponse.RequestId"));
return migrateDBClusterResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/ModifyAccountDescriptionResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import com.aliyuncs.adb.model.v20190315.ModifyAccountDescriptionResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class ModifyAccountDescriptionResponseUnmarshaller {
public static ModifyAccountDescriptionResponse unmarshall(ModifyAccountDescriptionResponse modifyAccountDescriptionResponse, UnmarshallerContext _ctx) {
modifyAccountDescriptionResponse.setRequestId(_ctx.stringValue("ModifyAccountDescriptionResponse.RequestId"));
return modifyAccountDescriptionResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/ModifyActiveOperationMaintainConfResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import com.aliyuncs.adb.model.v20190315.ModifyActiveOperationMaintainConfResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class ModifyActiveOperationMaintainConfResponseUnmarshaller {
public static ModifyActiveOperationMaintainConfResponse unmarshall(ModifyActiveOperationMaintainConfResponse modifyActiveOperationMaintainConfResponse, UnmarshallerContext _ctx) {
modifyActiveOperationMaintainConfResponse.setRequestId(_ctx.stringValue("ModifyActiveOperationMaintainConfResponse.RequestId"));
return modifyActiveOperationMaintainConfResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/ModifyActiveOperationTasksResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import com.aliyuncs.adb.model.v20190315.ModifyActiveOperationTasksResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class ModifyActiveOperationTasksResponseUnmarshaller {
public static ModifyActiveOperationTasksResponse unmarshall(ModifyActiveOperationTasksResponse modifyActiveOperationTasksResponse, UnmarshallerContext _ctx) {
modifyActiveOperationTasksResponse.setRequestId(_ctx.stringValue("ModifyActiveOperationTasksResponse.RequestId"));
modifyActiveOperationTasksResponse.setIds(_ctx.stringValue("ModifyActiveOperationTasksResponse.Ids"));
return modifyActiveOperationTasksResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/ModifyAuditLogConfigResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import com.aliyuncs.adb.model.v20190315.ModifyAuditLogConfigResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class ModifyAuditLogConfigResponseUnmarshaller {
public static ModifyAuditLogConfigResponse unmarshall(ModifyAuditLogConfigResponse modifyAuditLogConfigResponse, UnmarshallerContext _ctx) {
modifyAuditLogConfigResponse.setRequestId(_ctx.stringValue("ModifyAuditLogConfigResponse.RequestId"));
modifyAuditLogConfigResponse.setUpdateSucceed(_ctx.booleanValue("ModifyAuditLogConfigResponse.UpdateSucceed"));
return modifyAuditLogConfigResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/ModifyAutoRenewAttributeResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import com.aliyuncs.adb.model.v20190315.ModifyAutoRenewAttributeResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class ModifyAutoRenewAttributeResponseUnmarshaller {
public static ModifyAutoRenewAttributeResponse unmarshall(ModifyAutoRenewAttributeResponse modifyAutoRenewAttributeResponse, UnmarshallerContext _ctx) {
modifyAutoRenewAttributeResponse.setRequestId(_ctx.stringValue("ModifyAutoRenewAttributeResponse.RequestId"));
return modifyAutoRenewAttributeResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/ModifyBackupPolicyResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import com.aliyuncs.adb.model.v20190315.ModifyBackupPolicyResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class ModifyBackupPolicyResponseUnmarshaller {
public static ModifyBackupPolicyResponse unmarshall(ModifyBackupPolicyResponse modifyBackupPolicyResponse, UnmarshallerContext _ctx) {
modifyBackupPolicyResponse.setRequestId(_ctx.stringValue("ModifyBackupPolicyResponse.RequestId"));
return modifyBackupPolicyResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/ModifyClusterConnectionStringResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import com.aliyuncs.adb.model.v20190315.ModifyClusterConnectionStringResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class ModifyClusterConnectionStringResponseUnmarshaller {
public static ModifyClusterConnectionStringResponse unmarshall(ModifyClusterConnectionStringResponse modifyClusterConnectionStringResponse, UnmarshallerContext _ctx) {
modifyClusterConnectionStringResponse.setRequestId(_ctx.stringValue("ModifyClusterConnectionStringResponse.RequestId"));
return modifyClusterConnectionStringResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/ModifyDBClusterAccessWhiteListResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import com.aliyuncs.adb.model.v20190315.ModifyDBClusterAccessWhiteListResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class ModifyDBClusterAccessWhiteListResponseUnmarshaller {
public static ModifyDBClusterAccessWhiteListResponse unmarshall(ModifyDBClusterAccessWhiteListResponse modifyDBClusterAccessWhiteListResponse, UnmarshallerContext _ctx) {
modifyDBClusterAccessWhiteListResponse.setRequestId(_ctx.stringValue("ModifyDBClusterAccessWhiteListResponse.RequestId"));
modifyDBClusterAccessWhiteListResponse.setTaskId(_ctx.integerValue("ModifyDBClusterAccessWhiteListResponse.TaskId"));
modifyDBClusterAccessWhiteListResponse.setDBClusterId(_ctx.stringValue("ModifyDBClusterAccessWhiteListResponse.DBClusterId"));
return modifyDBClusterAccessWhiteListResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/ModifyDBClusterDescriptionResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import com.aliyuncs.adb.model.v20190315.ModifyDBClusterDescriptionResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class ModifyDBClusterDescriptionResponseUnmarshaller {
public static ModifyDBClusterDescriptionResponse unmarshall(ModifyDBClusterDescriptionResponse modifyDBClusterDescriptionResponse, UnmarshallerContext _ctx) {
modifyDBClusterDescriptionResponse.setRequestId(_ctx.stringValue("ModifyDBClusterDescriptionResponse.RequestId"));
return modifyDBClusterDescriptionResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/ModifyDBClusterMaintainTimeResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import com.aliyuncs.adb.model.v20190315.ModifyDBClusterMaintainTimeResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class ModifyDBClusterMaintainTimeResponseUnmarshaller {
public static ModifyDBClusterMaintainTimeResponse unmarshall(ModifyDBClusterMaintainTimeResponse modifyDBClusterMaintainTimeResponse, UnmarshallerContext _ctx) {
modifyDBClusterMaintainTimeResponse.setRequestId(_ctx.stringValue("ModifyDBClusterMaintainTimeResponse.RequestId"));
return modifyDBClusterMaintainTimeResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/ModifyDBClusterPayTypeResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import com.aliyuncs.adb.model.v20190315.ModifyDBClusterPayTypeResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class ModifyDBClusterPayTypeResponseUnmarshaller {
public static ModifyDBClusterPayTypeResponse unmarshall(ModifyDBClusterPayTypeResponse modifyDBClusterPayTypeResponse, UnmarshallerContext _ctx) {
modifyDBClusterPayTypeResponse.setRequestId(_ctx.stringValue("ModifyDBClusterPayTypeResponse.RequestId"));
modifyDBClusterPayTypeResponse.setDBClusterId(_ctx.stringValue("ModifyDBClusterPayTypeResponse.DBClusterId"));
modifyDBClusterPayTypeResponse.setOrderId(_ctx.stringValue("ModifyDBClusterPayTypeResponse.OrderId"));
modifyDBClusterPayTypeResponse.setPayType(_ctx.stringValue("ModifyDBClusterPayTypeResponse.PayType"));
return modifyDBClusterPayTypeResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/ModifyDBClusterResourceGroupResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import com.aliyuncs.adb.model.v20190315.ModifyDBClusterResourceGroupResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class ModifyDBClusterResourceGroupResponseUnmarshaller {
public static ModifyDBClusterResourceGroupResponse unmarshall(ModifyDBClusterResourceGroupResponse modifyDBClusterResourceGroupResponse, UnmarshallerContext _ctx) {
modifyDBClusterResourceGroupResponse.setRequestId(_ctx.stringValue("ModifyDBClusterResourceGroupResponse.RequestId"));
return modifyDBClusterResourceGroupResponse;
}
}
|
0
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform
|
java-sources/com/aliyun/aliyun-java-sdk-adb/1.0.28/com/aliyuncs/adb/transform/v20190315/ModifyDBClusterResponseUnmarshaller.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.adb.transform.v20190315;
import com.aliyuncs.adb.model.v20190315.ModifyDBClusterResponse;
import com.aliyuncs.transform.UnmarshallerContext;
public class ModifyDBClusterResponseUnmarshaller {
public static ModifyDBClusterResponse unmarshall(ModifyDBClusterResponse modifyDBClusterResponse, UnmarshallerContext _ctx) {
modifyDBClusterResponse.setRequestId(_ctx.stringValue("ModifyDBClusterResponse.RequestId"));
modifyDBClusterResponse.setDBClusterId(_ctx.stringValue("ModifyDBClusterResponse.DBClusterId"));
modifyDBClusterResponse.setOrderId(_ctx.stringValue("ModifyDBClusterResponse.OrderId"));
return modifyDBClusterResponse;
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.