com.aliyuncs.polardb.transform.v20170801.DescribeScheduleTasksResponseUnmarshaller Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aliyun-java-sdk-polardb Show documentation
Show all versions of aliyun-java-sdk-polardb Show documentation
Aliyun Open API SDK for Java
Copyright (C) Alibaba Cloud Computing
All rights reserved.
版权所有 (C)阿里云计算有限公司
http://www.aliyun.com
The newest version!
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.polardb.transform.v20170801;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.polardb.model.v20170801.DescribeScheduleTasksResponse;
import com.aliyuncs.polardb.model.v20170801.DescribeScheduleTasksResponse.Data;
import com.aliyuncs.polardb.model.v20170801.DescribeScheduleTasksResponse.Data.TimerInfosItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeScheduleTasksResponseUnmarshaller {
public static DescribeScheduleTasksResponse unmarshall(DescribeScheduleTasksResponse describeScheduleTasksResponse, UnmarshallerContext _ctx) {
describeScheduleTasksResponse.setRequestId(_ctx.stringValue("DescribeScheduleTasksResponse.RequestId"));
describeScheduleTasksResponse.setCode(_ctx.stringValue("DescribeScheduleTasksResponse.Code"));
describeScheduleTasksResponse.setMessage(_ctx.stringValue("DescribeScheduleTasksResponse.Message"));
describeScheduleTasksResponse.setSuccess(_ctx.booleanValue("DescribeScheduleTasksResponse.Success"));
Data data = new Data();
data.setPageNumber(_ctx.integerValue("DescribeScheduleTasksResponse.Data.PageNumber"));
data.setPageSize(_ctx.integerValue("DescribeScheduleTasksResponse.Data.PageSize"));
data.setTotalRecordCount(_ctx.integerValue("DescribeScheduleTasksResponse.Data.TotalRecordCount"));
List timerInfos = new ArrayList();
for (int i = 0; i < _ctx.lengthValue("DescribeScheduleTasksResponse.Data.TimerInfos.Length"); i++) {
TimerInfosItem timerInfosItem = new TimerInfosItem();
timerInfosItem.setAction(_ctx.stringValue("DescribeScheduleTasksResponse.Data.TimerInfos["+ i +"].Action"));
timerInfosItem.setCrontabJobId(_ctx.stringValue("DescribeScheduleTasksResponse.Data.TimerInfos["+ i +"].CrontabJobId"));
timerInfosItem.setDBClusterId(_ctx.stringValue("DescribeScheduleTasksResponse.Data.TimerInfos["+ i +"].DBClusterId"));
timerInfosItem.setDbClusterDescription(_ctx.stringValue("DescribeScheduleTasksResponse.Data.TimerInfos["+ i +"].DbClusterDescription"));
timerInfosItem.setDbClusterStatus(_ctx.stringValue("DescribeScheduleTasksResponse.Data.TimerInfos["+ i +"].DbClusterStatus"));
timerInfosItem.setOrderId(_ctx.stringValue("DescribeScheduleTasksResponse.Data.TimerInfos["+ i +"].OrderId"));
timerInfosItem.setPlannedEndTime(_ctx.stringValue("DescribeScheduleTasksResponse.Data.TimerInfos["+ i +"].PlannedEndTime"));
timerInfosItem.setPlannedFlashingOffTime(_ctx.stringValue("DescribeScheduleTasksResponse.Data.TimerInfos["+ i +"].PlannedFlashingOffTime"));
timerInfosItem.setPlannedStartTime(_ctx.stringValue("DescribeScheduleTasksResponse.Data.TimerInfos["+ i +"].PlannedStartTime"));
timerInfosItem.setPlannedTime(_ctx.stringValue("DescribeScheduleTasksResponse.Data.TimerInfos["+ i +"].PlannedTime"));
timerInfosItem.setRegion(_ctx.stringValue("DescribeScheduleTasksResponse.Data.TimerInfos["+ i +"].Region"));
timerInfosItem.setStatus(_ctx.stringValue("DescribeScheduleTasksResponse.Data.TimerInfos["+ i +"].Status"));
timerInfosItem.setTaskCancel(_ctx.booleanValue("DescribeScheduleTasksResponse.Data.TimerInfos["+ i +"].TaskCancel"));
timerInfosItem.setTaskId(_ctx.stringValue("DescribeScheduleTasksResponse.Data.TimerInfos["+ i +"].TaskId"));
timerInfos.add(timerInfosItem);
}
data.setTimerInfos(timerInfos);
describeScheduleTasksResponse.setData(data);
return describeScheduleTasksResponse;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy