public static DescribeVpnGatewayResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeVpnGatewayResponse describeVpnGatewayResponse = new DescribeVpnGatewayResponse();

            describeVpnGatewayResponse.HttpResponse      = context.HttpResponse;
            describeVpnGatewayResponse.RequestId         = context.StringValue("DescribeVpnGateway.RequestId");
            describeVpnGatewayResponse.VpnGatewayId      = context.StringValue("DescribeVpnGateway.VpnGatewayId");
            describeVpnGatewayResponse.VpcId             = context.StringValue("DescribeVpnGateway.VpcId");
            describeVpnGatewayResponse.VSwitchId         = context.StringValue("DescribeVpnGateway.VSwitchId");
            describeVpnGatewayResponse.InternetIp        = context.StringValue("DescribeVpnGateway.InternetIp");
            describeVpnGatewayResponse.CreateTime        = context.LongValue("DescribeVpnGateway.CreateTime");
            describeVpnGatewayResponse.EndTime           = context.LongValue("DescribeVpnGateway.EndTime");
            describeVpnGatewayResponse.Spec              = context.StringValue("DescribeVpnGateway.Spec");
            describeVpnGatewayResponse.Name              = context.StringValue("DescribeVpnGateway.Name");
            describeVpnGatewayResponse.Description       = context.StringValue("DescribeVpnGateway.Description");
            describeVpnGatewayResponse.Status            = context.StringValue("DescribeVpnGateway.Status");
            describeVpnGatewayResponse.BusinessStatus    = context.StringValue("DescribeVpnGateway.BusinessStatus");
            describeVpnGatewayResponse.ChargeType        = context.StringValue("DescribeVpnGateway.ChargeType");
            describeVpnGatewayResponse.IpsecVpn          = context.StringValue("DescribeVpnGateway.IpsecVpn");
            describeVpnGatewayResponse.SslVpn            = context.StringValue("DescribeVpnGateway.SslVpn");
            describeVpnGatewayResponse.SslMaxConnections = context.LongValue("DescribeVpnGateway.SslMaxConnections");
            describeVpnGatewayResponse.Tag = context.StringValue("DescribeVpnGateway.Tag");

            return(describeVpnGatewayResponse);
        }
Beispiel #2
0
        public static DescribeVpnGatewayResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DescribeVpnGatewayResponse describeVpnGatewayResponse = new DescribeVpnGatewayResponse();

            describeVpnGatewayResponse.HttpResponse      = _ctx.HttpResponse;
            describeVpnGatewayResponse.RequestId         = _ctx.StringValue("DescribeVpnGateway.RequestId");
            describeVpnGatewayResponse.VpnGatewayId      = _ctx.StringValue("DescribeVpnGateway.VpnGatewayId");
            describeVpnGatewayResponse.VpcId             = _ctx.StringValue("DescribeVpnGateway.VpcId");
            describeVpnGatewayResponse.VSwitchId         = _ctx.StringValue("DescribeVpnGateway.VSwitchId");
            describeVpnGatewayResponse.InternetIp        = _ctx.StringValue("DescribeVpnGateway.InternetIp");
            describeVpnGatewayResponse.CreateTime        = _ctx.LongValue("DescribeVpnGateway.CreateTime");
            describeVpnGatewayResponse.EndTime           = _ctx.LongValue("DescribeVpnGateway.EndTime");
            describeVpnGatewayResponse.Spec              = _ctx.StringValue("DescribeVpnGateway.Spec");
            describeVpnGatewayResponse.Name              = _ctx.StringValue("DescribeVpnGateway.Name");
            describeVpnGatewayResponse.Description       = _ctx.StringValue("DescribeVpnGateway.Description");
            describeVpnGatewayResponse.Status            = _ctx.StringValue("DescribeVpnGateway.Status");
            describeVpnGatewayResponse.BusinessStatus    = _ctx.StringValue("DescribeVpnGateway.BusinessStatus");
            describeVpnGatewayResponse.ChargeType        = _ctx.StringValue("DescribeVpnGateway.ChargeType");
            describeVpnGatewayResponse.IpsecVpn          = _ctx.StringValue("DescribeVpnGateway.IpsecVpn");
            describeVpnGatewayResponse.SslVpn            = _ctx.StringValue("DescribeVpnGateway.SslVpn");
            describeVpnGatewayResponse.SslMaxConnections = _ctx.LongValue("DescribeVpnGateway.SslMaxConnections");
            describeVpnGatewayResponse.Tag           = _ctx.StringValue("DescribeVpnGateway.Tag");
            describeVpnGatewayResponse.EnableBgp     = _ctx.BooleanValue("DescribeVpnGateway.EnableBgp");
            describeVpnGatewayResponse.AutoPropagate = _ctx.BooleanValue("DescribeVpnGateway.AutoPropagate");
            describeVpnGatewayResponse.VpnType       = _ctx.StringValue("DescribeVpnGateway.VpnType");

            DescribeVpnGatewayResponse.DescribeVpnGateway_ReservationData reservationData = new DescribeVpnGatewayResponse.DescribeVpnGateway_ReservationData();
            reservationData.Status                     = _ctx.StringValue("DescribeVpnGateway.ReservationData.Status");
            reservationData.ReservationEndTime         = _ctx.StringValue("DescribeVpnGateway.ReservationData.ReservationEndTime");
            reservationData.ReservationOrderType       = _ctx.StringValue("DescribeVpnGateway.ReservationData.ReservationOrderType");
            reservationData.ReservationSpec            = _ctx.StringValue("DescribeVpnGateway.ReservationData.ReservationSpec");
            reservationData.ReservationIpsec           = _ctx.StringValue("DescribeVpnGateway.ReservationData.ReservationIpsec");
            reservationData.ReservationSsl             = _ctx.StringValue("DescribeVpnGateway.ReservationData.ReservationSsl");
            reservationData.ReservationMaxConnections  = _ctx.IntegerValue("DescribeVpnGateway.ReservationData.ReservationMaxConnections");
            describeVpnGatewayResponse.ReservationData = reservationData;

            List <DescribeVpnGatewayResponse.DescribeVpnGateway_Tag> describeVpnGatewayResponse_tags = new List <DescribeVpnGatewayResponse.DescribeVpnGateway_Tag>();

            for (int i = 0; i < _ctx.Length("DescribeVpnGateway.Tags.Length"); i++)
            {
                DescribeVpnGatewayResponse.DescribeVpnGateway_Tag tag = new DescribeVpnGatewayResponse.DescribeVpnGateway_Tag();
                tag.Key    = _ctx.StringValue("DescribeVpnGateway.Tags[" + i + "].Key");
                tag._Value = _ctx.StringValue("DescribeVpnGateway.Tags[" + i + "].Value");

                describeVpnGatewayResponse_tags.Add(tag);
            }
            describeVpnGatewayResponse.Tags = describeVpnGatewayResponse_tags;

            return(describeVpnGatewayResponse);
        }