public static DescribeParametersResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeParametersResponse describeParametersResponse = new DescribeParametersResponse();

            describeParametersResponse.HttpResponse = context.HttpResponse;
            describeParametersResponse.RequestId = context.StringValue("DescribeParameters.RequestId");
            describeParametersResponse.Engine = context.StringValue("DescribeParameters.Engine");
            describeParametersResponse.EngineVersion = context.StringValue("DescribeParameters.EngineVersion");

            List<DescribeParametersResponse.DBInstanceParameter> configParameters = new List<DescribeParametersResponse.DBInstanceParameter>();
            for (int i = 0; i < context.Length("DescribeParameters.ConfigParameters.Length"); i++) {
                DescribeParametersResponse.DBInstanceParameter dBInstanceParameter = new DescribeParametersResponse.DBInstanceParameter();
                dBInstanceParameter.ParameterName = context.StringValue("DescribeParameters.ConfigParameters["+ i +"].ParameterName");
                dBInstanceParameter.ParameterValue = context.StringValue("DescribeParameters.ConfigParameters["+ i +"].ParameterValue");
                dBInstanceParameter.ParameterDescription = context.StringValue("DescribeParameters.ConfigParameters["+ i +"].ParameterDescription");

                configParameters.Add(dBInstanceParameter);
            }
            describeParametersResponse.ConfigParameters = configParameters;

            List<DescribeParametersResponse.DBInstanceParameter> runningParameters = new List<DescribeParametersResponse.DBInstanceParameter>();
            for (int i = 0; i < context.Length("DescribeParameters.RunningParameters.Length"); i++) {
                DescribeParametersResponse.DBInstanceParameter dBInstanceParameter = new DescribeParametersResponse.DBInstanceParameter();
                dBInstanceParameter.ParameterName = context.StringValue("DescribeParameters.RunningParameters["+ i +"].ParameterName");
                dBInstanceParameter.ParameterValue = context.StringValue("DescribeParameters.RunningParameters["+ i +"].ParameterValue");
                dBInstanceParameter.ParameterDescription = context.StringValue("DescribeParameters.RunningParameters["+ i +"].ParameterDescription");

                runningParameters.Add(dBInstanceParameter);
            }
            describeParametersResponse.RunningParameters = runningParameters;

            return describeParametersResponse;
        }
        public static DescribeParametersResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeParametersResponse describeParametersResponse = new DescribeParametersResponse();

            describeParametersResponse.HttpResponse  = context.HttpResponse;
            describeParametersResponse.RequestId     = context.StringValue("DescribeParameters.RequestId");
            describeParametersResponse.Engine        = context.StringValue("DescribeParameters.Engine");
            describeParametersResponse.EngineVersion = context.StringValue("DescribeParameters.EngineVersion");

            List <DescribeParametersResponse.DescribeParameters_Parameter> describeParametersResponse_configParameters = new List <DescribeParametersResponse.DescribeParameters_Parameter>();

            for (int i = 0; i < context.Length("DescribeParameters.ConfigParameters.Length"); i++)
            {
                DescribeParametersResponse.DescribeParameters_Parameter parameter = new DescribeParametersResponse.DescribeParameters_Parameter();
                parameter.ParameterName        = context.StringValue("DescribeParameters.ConfigParameters[" + i + "].ParameterName");
                parameter.ParameterValue       = context.StringValue("DescribeParameters.ConfigParameters[" + i + "].ParameterValue");
                parameter.ModifiableStatus     = context.BooleanValue("DescribeParameters.ConfigParameters[" + i + "].ModifiableStatus");
                parameter.ForceRestart         = context.BooleanValue("DescribeParameters.ConfigParameters[" + i + "].ForceRestart");
                parameter.CheckingCode         = context.StringValue("DescribeParameters.ConfigParameters[" + i + "].CheckingCode");
                parameter.ParameterDescription = context.StringValue("DescribeParameters.ConfigParameters[" + i + "].ParameterDescription");

                describeParametersResponse_configParameters.Add(parameter);
            }
            describeParametersResponse.ConfigParameters = describeParametersResponse_configParameters;

            List <DescribeParametersResponse.DescribeParameters_Parameter> describeParametersResponse_runningParameters = new List <DescribeParametersResponse.DescribeParameters_Parameter>();

            for (int i = 0; i < context.Length("DescribeParameters.RunningParameters.Length"); i++)
            {
                DescribeParametersResponse.DescribeParameters_Parameter parameter = new DescribeParametersResponse.DescribeParameters_Parameter();
                parameter.ParameterName        = context.StringValue("DescribeParameters.RunningParameters[" + i + "].ParameterName");
                parameter.ParameterValue       = context.StringValue("DescribeParameters.RunningParameters[" + i + "].ParameterValue");
                parameter.ModifiableStatus     = context.BooleanValue("DescribeParameters.RunningParameters[" + i + "].ModifiableStatus");
                parameter.ForceRestart         = context.BooleanValue("DescribeParameters.RunningParameters[" + i + "].ForceRestart");
                parameter.CheckingCode         = context.StringValue("DescribeParameters.RunningParameters[" + i + "].CheckingCode");
                parameter.ParameterDescription = context.StringValue("DescribeParameters.RunningParameters[" + i + "].ParameterDescription");

                describeParametersResponse_runningParameters.Add(parameter);
            }
            describeParametersResponse.RunningParameters = describeParametersResponse_runningParameters;

            return(describeParametersResponse);
        }
        public static DescribeParametersResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DescribeParametersResponse describeParametersResponse = new DescribeParametersResponse();

            describeParametersResponse.HttpResponse = _ctx.HttpResponse;
            describeParametersResponse.RequestId    = _ctx.StringValue("DescribeParameters.RequestId");

            DescribeParametersResponse.DescribeParameters_Data data = new DescribeParametersResponse.DescribeParameters_Data();
            data.Engine        = _ctx.StringValue("DescribeParameters.Data.Engine");
            data.EngineVersion = _ctx.StringValue("DescribeParameters.Data.EngineVersion");

            List <DescribeParametersResponse.DescribeParameters_Data.DescribeParameters_DBInstanceParameter> data_configParameters = new List <DescribeParametersResponse.DescribeParameters_Data.DescribeParameters_DBInstanceParameter>();

            for (int i = 0; i < _ctx.Length("DescribeParameters.Data.ConfigParameters.Length"); i++)
            {
                DescribeParametersResponse.DescribeParameters_Data.DescribeParameters_DBInstanceParameter dBInstanceParameter = new DescribeParametersResponse.DescribeParameters_Data.DescribeParameters_DBInstanceParameter();
                dBInstanceParameter.ParameterDescription = _ctx.StringValue("DescribeParameters.Data.ConfigParameters[" + i + "].ParameterDescription");
                dBInstanceParameter.ParameterName        = _ctx.StringValue("DescribeParameters.Data.ConfigParameters[" + i + "].ParameterName");
                dBInstanceParameter.ParameterValue       = _ctx.StringValue("DescribeParameters.Data.ConfigParameters[" + i + "].ParameterValue");

                data_configParameters.Add(dBInstanceParameter);
            }
            data.ConfigParameters = data_configParameters;

            List <DescribeParametersResponse.DescribeParameters_Data.DescribeParameters_DBInstanceParameter> data_runningParameters = new List <DescribeParametersResponse.DescribeParameters_Data.DescribeParameters_DBInstanceParameter>();

            for (int i = 0; i < _ctx.Length("DescribeParameters.Data.RunningParameters.Length"); i++)
            {
                DescribeParametersResponse.DescribeParameters_Data.DescribeParameters_DBInstanceParameter dBInstanceParameter = new DescribeParametersResponse.DescribeParameters_Data.DescribeParameters_DBInstanceParameter();
                dBInstanceParameter.ParameterDescription = _ctx.StringValue("DescribeParameters.Data.RunningParameters[" + i + "].ParameterDescription");
                dBInstanceParameter.ParameterName        = _ctx.StringValue("DescribeParameters.Data.RunningParameters[" + i + "].ParameterName");
                dBInstanceParameter.ParameterValue       = _ctx.StringValue("DescribeParameters.Data.RunningParameters[" + i + "].ParameterValue");

                data_runningParameters.Add(dBInstanceParameter);
            }
            data.RunningParameters          = data_runningParameters;
            describeParametersResponse.Data = data;

            return(describeParametersResponse);
        }
コード例 #4
0
        public static DescribeParametersResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeParametersResponse describeParametersResponse = new DescribeParametersResponse()
            {
                HttpResponse  = context.HttpResponse,
                RequestId     = context.StringValue("DescribeParameters.RequestId"),
                Engine        = context.StringValue("DescribeParameters.Engine"),
                EngineVersion = context.StringValue("DescribeParameters.EngineVersion")
            };
            List <DescribeParametersResponse.DBInstanceParameter> configParameters = new List <DescribeParametersResponse.DBInstanceParameter>();

            for (int i = 0; i < context.Length("DescribeParameters.ConfigParameters.Length"); i++)
            {
                DescribeParametersResponse.DBInstanceParameter dBInstanceParameter = new DescribeParametersResponse.DBInstanceParameter()
                {
                    ParameterName        = context.StringValue($"DescribeParameters.ConfigParameters[{i}].ParameterName"),
                    ParameterValue       = context.StringValue($"DescribeParameters.ConfigParameters[{i}].ParameterValue"),
                    ParameterDescription = context.StringValue($"DescribeParameters.ConfigParameters[{i}].ParameterDescription")
                };
                configParameters.Add(dBInstanceParameter);
            }
            describeParametersResponse.ConfigParameters = configParameters;

            List <DescribeParametersResponse.DBInstanceParameter> runningParameters = new List <DescribeParametersResponse.DBInstanceParameter>();

            for (int i = 0; i < context.Length("DescribeParameters.RunningParameters.Length"); i++)
            {
                DescribeParametersResponse.DBInstanceParameter dBInstanceParameter = new DescribeParametersResponse.DBInstanceParameter()
                {
                    ParameterName        = context.StringValue($"DescribeParameters.RunningParameters[{i}].ParameterName"),
                    ParameterValue       = context.StringValue($"DescribeParameters.RunningParameters[{i}].ParameterValue"),
                    ParameterDescription = context.StringValue($"DescribeParameters.RunningParameters[{i}].ParameterDescription")
                };
                runningParameters.Add(dBInstanceParameter);
            }
            describeParametersResponse.RunningParameters = runningParameters;

            return(describeParametersResponse);
        }
        public static DescribeParametersResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeParametersResponse describeParametersResponse = new DescribeParametersResponse();

            describeParametersResponse.HttpResponse  = context.HttpResponse;
            describeParametersResponse.RequestId     = context.StringValue("DescribeParameters.RequestId");
            describeParametersResponse.Engine        = context.StringValue("DescribeParameters.Engine");
            describeParametersResponse.EngineVersion = context.StringValue("DescribeParameters.EngineVersion");

            List <DescribeParametersResponse.DescribeParameters_DBInstanceParameter> describeParametersResponse_configParameters = new List <DescribeParametersResponse.DescribeParameters_DBInstanceParameter>();

            for (int i = 0; i < context.Length("DescribeParameters.ConfigParameters.Length"); i++)
            {
                DescribeParametersResponse.DescribeParameters_DBInstanceParameter dBInstanceParameter = new DescribeParametersResponse.DescribeParameters_DBInstanceParameter();
                dBInstanceParameter.ParameterName        = context.StringValue("DescribeParameters.ConfigParameters[" + i + "].ParameterName");
                dBInstanceParameter.ParameterValue       = context.StringValue("DescribeParameters.ConfigParameters[" + i + "].ParameterValue");
                dBInstanceParameter.ParameterDescription = context.StringValue("DescribeParameters.ConfigParameters[" + i + "].ParameterDescription");

                describeParametersResponse_configParameters.Add(dBInstanceParameter);
            }
            describeParametersResponse.ConfigParameters = describeParametersResponse_configParameters;

            List <DescribeParametersResponse.DescribeParameters_DBInstanceParameter> describeParametersResponse_runningParameters = new List <DescribeParametersResponse.DescribeParameters_DBInstanceParameter>();

            for (int i = 0; i < context.Length("DescribeParameters.RunningParameters.Length"); i++)
            {
                DescribeParametersResponse.DescribeParameters_DBInstanceParameter dBInstanceParameter = new DescribeParametersResponse.DescribeParameters_DBInstanceParameter();
                dBInstanceParameter.ParameterName        = context.StringValue("DescribeParameters.RunningParameters[" + i + "].ParameterName");
                dBInstanceParameter.ParameterValue       = context.StringValue("DescribeParameters.RunningParameters[" + i + "].ParameterValue");
                dBInstanceParameter.ParameterDescription = context.StringValue("DescribeParameters.RunningParameters[" + i + "].ParameterDescription");

                describeParametersResponse_runningParameters.Add(dBInstanceParameter);
            }
            describeParametersResponse.RunningParameters = describeParametersResponse_runningParameters;

            return(describeParametersResponse);
        }