com.aliyuncs.polardb.transform.v20170801.DescribeDBClusterParametersResponseUnmarshaller 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.DescribeDBClusterParametersResponse;
import com.aliyuncs.polardb.model.v20170801.DescribeDBClusterParametersResponse.Parameter;
import com.aliyuncs.polardb.model.v20170801.DescribeDBClusterParametersResponse.ParametersItem;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeDBClusterParametersResponseUnmarshaller {
public static DescribeDBClusterParametersResponse unmarshall(DescribeDBClusterParametersResponse describeDBClusterParametersResponse, UnmarshallerContext _ctx) {
describeDBClusterParametersResponse.setRequestId(_ctx.stringValue("DescribeDBClusterParametersResponse.RequestId"));
describeDBClusterParametersResponse.setDBVersion(_ctx.stringValue("DescribeDBClusterParametersResponse.DBVersion"));
describeDBClusterParametersResponse.setDBType(_ctx.stringValue("DescribeDBClusterParametersResponse.DBType"));
describeDBClusterParametersResponse.setEngine(_ctx.stringValue("DescribeDBClusterParametersResponse.Engine"));
describeDBClusterParametersResponse.setDBClusterId(_ctx.stringValue("DescribeDBClusterParametersResponse.DBClusterId"));
describeDBClusterParametersResponse.setParameterNumbers(_ctx.stringValue("DescribeDBClusterParametersResponse.ParameterNumbers"));
List runningParameters = new ArrayList();
for (int i = 0; i < _ctx.lengthValue("DescribeDBClusterParametersResponse.RunningParameters.Length"); i++) {
Parameter parameter = new Parameter();
parameter.setCheckingCode(_ctx.stringValue("DescribeDBClusterParametersResponse.RunningParameters["+ i +"].CheckingCode"));
parameter.setDataType(_ctx.stringValue("DescribeDBClusterParametersResponse.RunningParameters["+ i +"].DataType"));
parameter.setParameterName(_ctx.stringValue("DescribeDBClusterParametersResponse.RunningParameters["+ i +"].ParameterName"));
parameter.setParameterValue(_ctx.stringValue("DescribeDBClusterParametersResponse.RunningParameters["+ i +"].ParameterValue"));
parameter.setForceRestart(_ctx.booleanValue("DescribeDBClusterParametersResponse.RunningParameters["+ i +"].ForceRestart"));
parameter.setParameterDescription(_ctx.stringValue("DescribeDBClusterParametersResponse.RunningParameters["+ i +"].ParameterDescription"));
parameter.setParameterStatus(_ctx.stringValue("DescribeDBClusterParametersResponse.RunningParameters["+ i +"].ParameterStatus"));
parameter.setDefaultParameterValue(_ctx.stringValue("DescribeDBClusterParametersResponse.RunningParameters["+ i +"].DefaultParameterValue"));
parameter.setIsModifiable(_ctx.booleanValue("DescribeDBClusterParametersResponse.RunningParameters["+ i +"].IsModifiable"));
parameter.setIsNodeAvailable(_ctx.stringValue("DescribeDBClusterParametersResponse.RunningParameters["+ i +"].IsNodeAvailable"));
parameter.setParamRelyRule(_ctx.stringValue("DescribeDBClusterParametersResponse.RunningParameters["+ i +"].ParamRelyRule"));
parameter.setFactor(_ctx.stringValue("DescribeDBClusterParametersResponse.RunningParameters["+ i +"].Factor"));
runningParameters.add(parameter);
}
describeDBClusterParametersResponse.setRunningParameters(runningParameters);
List parameters = new ArrayList();
for (int i = 0; i < _ctx.lengthValue("DescribeDBClusterParametersResponse.Parameters.Length"); i++) {
ParametersItem parametersItem = new ParametersItem();
parametersItem.setRdsParameterName(_ctx.stringValue("DescribeDBClusterParametersResponse.Parameters["+ i +"].rdsParameterName"));
parametersItem.setRdsParameterValue(_ctx.stringValue("DescribeDBClusterParametersResponse.Parameters["+ i +"].rdsParameterValue"));
parametersItem.setRdsParameterOptional(_ctx.stringValue("DescribeDBClusterParametersResponse.Parameters["+ i +"].rdsParameterOptional"));
parametersItem.setDistParameterName(_ctx.stringValue("DescribeDBClusterParametersResponse.Parameters["+ i +"].distParameterName"));
parametersItem.setDistParameterValue(_ctx.stringValue("DescribeDBClusterParametersResponse.Parameters["+ i +"].distParameterValue"));
parametersItem.setDistParameterOptional(_ctx.stringValue("DescribeDBClusterParametersResponse.Parameters["+ i +"].distParameterOptional"));
parametersItem.setIsEqual(_ctx.stringValue("DescribeDBClusterParametersResponse.Parameters["+ i +"].IsEqual"));
parametersItem.setDistParameterDescription(_ctx.stringValue("DescribeDBClusterParametersResponse.Parameters["+ i +"].distParameterDescription"));
parametersItem.setRdsParameterDescription(_ctx.stringValue("DescribeDBClusterParametersResponse.Parameters["+ i +"].rdsParameterDescription"));
parametersItem.setIsRdsKey(_ctx.stringValue("DescribeDBClusterParametersResponse.Parameters["+ i +"].IsRdsKey"));
parametersItem.setIsPolarDBKey(_ctx.stringValue("DescribeDBClusterParametersResponse.Parameters["+ i +"].IsPolarDBKey"));
parametersItem.setIsInstancePolarDBKey(_ctx.stringValue("DescribeDBClusterParametersResponse.Parameters["+ i +"].IsInstancePolarDBKey"));
parametersItem.setIsInstanceRdsKey(_ctx.stringValue("DescribeDBClusterParametersResponse.Parameters["+ i +"].IsInstanceRdsKey"));
parameters.add(parametersItem);
}
describeDBClusterParametersResponse.setParameters(parameters);
return describeDBClusterParametersResponse;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy