Ejemplo n.º 1
0
        public static DescribeVpnConnectionResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DescribeVpnConnectionResponse describeVpnConnectionResponse = new DescribeVpnConnectionResponse();

            describeVpnConnectionResponse.HttpResponse      = _ctx.HttpResponse;
            describeVpnConnectionResponse.RequestId         = _ctx.StringValue("DescribeVpnConnection.RequestId");
            describeVpnConnectionResponse.VpnConnectionId   = _ctx.StringValue("DescribeVpnConnection.VpnConnectionId");
            describeVpnConnectionResponse.CustomerGatewayId = _ctx.StringValue("DescribeVpnConnection.CustomerGatewayId");
            describeVpnConnectionResponse.VpnGatewayId      = _ctx.StringValue("DescribeVpnConnection.VpnGatewayId");
            describeVpnConnectionResponse.Name                = _ctx.StringValue("DescribeVpnConnection.Name");
            describeVpnConnectionResponse.LocalSubnet         = _ctx.StringValue("DescribeVpnConnection.LocalSubnet");
            describeVpnConnectionResponse.RemoteSubnet        = _ctx.StringValue("DescribeVpnConnection.RemoteSubnet");
            describeVpnConnectionResponse.CreateTime          = _ctx.LongValue("DescribeVpnConnection.CreateTime");
            describeVpnConnectionResponse.EffectImmediately   = _ctx.BooleanValue("DescribeVpnConnection.EffectImmediately");
            describeVpnConnectionResponse.Status              = _ctx.StringValue("DescribeVpnConnection.Status");
            describeVpnConnectionResponse.EnableDpd           = _ctx.BooleanValue("DescribeVpnConnection.EnableDpd");
            describeVpnConnectionResponse.EnableNatTraversal  = _ctx.BooleanValue("DescribeVpnConnection.EnableNatTraversal");
            describeVpnConnectionResponse.RemoteCaCertificate = _ctx.StringValue("DescribeVpnConnection.RemoteCaCertificate");

            DescribeVpnConnectionResponse.DescribeVpnConnection_IkeConfig ikeConfig = new DescribeVpnConnectionResponse.DescribeVpnConnection_IkeConfig();
            ikeConfig.Psk         = _ctx.StringValue("DescribeVpnConnection.IkeConfig.Psk");
            ikeConfig.IkeVersion  = _ctx.StringValue("DescribeVpnConnection.IkeConfig.IkeVersion");
            ikeConfig.IkeMode     = _ctx.StringValue("DescribeVpnConnection.IkeConfig.IkeMode");
            ikeConfig.IkeEncAlg   = _ctx.StringValue("DescribeVpnConnection.IkeConfig.IkeEncAlg");
            ikeConfig.IkeAuthAlg  = _ctx.StringValue("DescribeVpnConnection.IkeConfig.IkeAuthAlg");
            ikeConfig.IkePfs      = _ctx.StringValue("DescribeVpnConnection.IkeConfig.IkePfs");
            ikeConfig.IkeLifetime = _ctx.LongValue("DescribeVpnConnection.IkeConfig.IkeLifetime");
            ikeConfig.LocalId     = _ctx.StringValue("DescribeVpnConnection.IkeConfig.LocalId");
            ikeConfig.RemoteId    = _ctx.StringValue("DescribeVpnConnection.IkeConfig.RemoteId");
            describeVpnConnectionResponse.IkeConfig = ikeConfig;

            DescribeVpnConnectionResponse.DescribeVpnConnection_IpsecConfig ipsecConfig = new DescribeVpnConnectionResponse.DescribeVpnConnection_IpsecConfig();
            ipsecConfig.IpsecEncAlg   = _ctx.StringValue("DescribeVpnConnection.IpsecConfig.IpsecEncAlg");
            ipsecConfig.IpsecAuthAlg  = _ctx.StringValue("DescribeVpnConnection.IpsecConfig.IpsecAuthAlg");
            ipsecConfig.IpsecPfs      = _ctx.StringValue("DescribeVpnConnection.IpsecConfig.IpsecPfs");
            ipsecConfig.IpsecLifetime = _ctx.LongValue("DescribeVpnConnection.IpsecConfig.IpsecLifetime");
            describeVpnConnectionResponse.IpsecConfig = ipsecConfig;

            DescribeVpnConnectionResponse.DescribeVpnConnection_VcoHealthCheck vcoHealthCheck = new DescribeVpnConnectionResponse.DescribeVpnConnection_VcoHealthCheck();
            vcoHealthCheck.Enable   = _ctx.StringValue("DescribeVpnConnection.VcoHealthCheck.Enable");
            vcoHealthCheck.Sip      = _ctx.StringValue("DescribeVpnConnection.VcoHealthCheck.Sip");
            vcoHealthCheck.Dip      = _ctx.StringValue("DescribeVpnConnection.VcoHealthCheck.Dip");
            vcoHealthCheck.Interval = _ctx.IntegerValue("DescribeVpnConnection.VcoHealthCheck.Interval");
            vcoHealthCheck.Retry    = _ctx.IntegerValue("DescribeVpnConnection.VcoHealthCheck.Retry");
            vcoHealthCheck.Status   = _ctx.StringValue("DescribeVpnConnection.VcoHealthCheck.Status");
            describeVpnConnectionResponse.VcoHealthCheck = vcoHealthCheck;

            DescribeVpnConnectionResponse.DescribeVpnConnection_VpnBgpConfig vpnBgpConfig = new DescribeVpnConnectionResponse.DescribeVpnConnection_VpnBgpConfig();
            vpnBgpConfig.EnableBgp  = _ctx.StringValue("DescribeVpnConnection.VpnBgpConfig.EnableBgp");
            vpnBgpConfig.TunnelCidr = _ctx.StringValue("DescribeVpnConnection.VpnBgpConfig.TunnelCidr");
            vpnBgpConfig.LocalBgpIp = _ctx.StringValue("DescribeVpnConnection.VpnBgpConfig.LocalBgpIp");
            vpnBgpConfig.PeerBgpIp  = _ctx.StringValue("DescribeVpnConnection.VpnBgpConfig.PeerBgpIp");
            vpnBgpConfig.LocalAsn   = _ctx.StringValue("DescribeVpnConnection.VpnBgpConfig.LocalAsn");
            vpnBgpConfig.PeerAsn    = _ctx.StringValue("DescribeVpnConnection.VpnBgpConfig.PeerAsn");
            vpnBgpConfig.Status     = _ctx.StringValue("DescribeVpnConnection.VpnBgpConfig.Status");
            describeVpnConnectionResponse.VpnBgpConfig = vpnBgpConfig;

            return(describeVpnConnectionResponse);
        }
Ejemplo n.º 2
0
        public static DescribeVpnConnectionResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeVpnConnectionResponse describeVpnConnectionResponse = new DescribeVpnConnectionResponse();

            describeVpnConnectionResponse.HttpResponse      = context.HttpResponse;
            describeVpnConnectionResponse.RequestId         = context.StringValue("DescribeVpnConnection.RequestId");
            describeVpnConnectionResponse.VpnConnectionId   = context.StringValue("DescribeVpnConnection.VpnConnectionId");
            describeVpnConnectionResponse.CustomerGatewayId = context.StringValue("DescribeVpnConnection.CustomerGatewayId");
            describeVpnConnectionResponse.VpnGatewayId      = context.StringValue("DescribeVpnConnection.VpnGatewayId");
            describeVpnConnectionResponse.Name               = context.StringValue("DescribeVpnConnection.Name");
            describeVpnConnectionResponse.LocalSubnet        = context.StringValue("DescribeVpnConnection.LocalSubnet");
            describeVpnConnectionResponse.RemoteSubnet       = context.StringValue("DescribeVpnConnection.RemoteSubnet");
            describeVpnConnectionResponse.CreateTime         = context.LongValue("DescribeVpnConnection.CreateTime");
            describeVpnConnectionResponse.EffectImmediately  = context.BooleanValue("DescribeVpnConnection.EffectImmediately");
            describeVpnConnectionResponse.Status             = context.StringValue("DescribeVpnConnection.Status");
            describeVpnConnectionResponse.EnableDpd          = context.BooleanValue("DescribeVpnConnection.EnableDpd");
            describeVpnConnectionResponse.EnableNatTraversal = context.BooleanValue("DescribeVpnConnection.EnableNatTraversal");

            DescribeVpnConnectionResponse.DescribeVpnConnection_IkeConfig ikeConfig = new DescribeVpnConnectionResponse.DescribeVpnConnection_IkeConfig();
            ikeConfig.Psk         = context.StringValue("DescribeVpnConnection.IkeConfig.Psk");
            ikeConfig.IkeVersion  = context.StringValue("DescribeVpnConnection.IkeConfig.IkeVersion");
            ikeConfig.IkeMode     = context.StringValue("DescribeVpnConnection.IkeConfig.IkeMode");
            ikeConfig.IkeEncAlg   = context.StringValue("DescribeVpnConnection.IkeConfig.IkeEncAlg");
            ikeConfig.IkeAuthAlg  = context.StringValue("DescribeVpnConnection.IkeConfig.IkeAuthAlg");
            ikeConfig.IkePfs      = context.StringValue("DescribeVpnConnection.IkeConfig.IkePfs");
            ikeConfig.IkeLifetime = context.LongValue("DescribeVpnConnection.IkeConfig.IkeLifetime");
            ikeConfig.LocalId     = context.StringValue("DescribeVpnConnection.IkeConfig.LocalId");
            ikeConfig.RemoteId    = context.StringValue("DescribeVpnConnection.IkeConfig.RemoteId");
            describeVpnConnectionResponse.IkeConfig = ikeConfig;

            DescribeVpnConnectionResponse.DescribeVpnConnection_IpsecConfig ipsecConfig = new DescribeVpnConnectionResponse.DescribeVpnConnection_IpsecConfig();
            ipsecConfig.IpsecEncAlg   = context.StringValue("DescribeVpnConnection.IpsecConfig.IpsecEncAlg");
            ipsecConfig.IpsecAuthAlg  = context.StringValue("DescribeVpnConnection.IpsecConfig.IpsecAuthAlg");
            ipsecConfig.IpsecPfs      = context.StringValue("DescribeVpnConnection.IpsecConfig.IpsecPfs");
            ipsecConfig.IpsecLifetime = context.LongValue("DescribeVpnConnection.IpsecConfig.IpsecLifetime");
            describeVpnConnectionResponse.IpsecConfig = ipsecConfig;

            DescribeVpnConnectionResponse.DescribeVpnConnection_VcoHealthCheck vcoHealthCheck = new DescribeVpnConnectionResponse.DescribeVpnConnection_VcoHealthCheck();
            vcoHealthCheck.Enable   = context.StringValue("DescribeVpnConnection.VcoHealthCheck.Enable");
            vcoHealthCheck.Sip      = context.StringValue("DescribeVpnConnection.VcoHealthCheck.Sip");
            vcoHealthCheck.Dip      = context.StringValue("DescribeVpnConnection.VcoHealthCheck.Dip");
            vcoHealthCheck.Interval = context.IntegerValue("DescribeVpnConnection.VcoHealthCheck.Interval");
            vcoHealthCheck.Retry    = context.IntegerValue("DescribeVpnConnection.VcoHealthCheck.Retry");
            vcoHealthCheck.Status   = context.StringValue("DescribeVpnConnection.VcoHealthCheck.Status");
            describeVpnConnectionResponse.VcoHealthCheck = vcoHealthCheck;

            return(describeVpnConnectionResponse);
        }
        public static DescribeVpnConnectionResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeVpnConnectionResponse describeVpnConnectionResponse = new DescribeVpnConnectionResponse();

            describeVpnConnectionResponse.HttpResponse      = context.HttpResponse;
            describeVpnConnectionResponse.RequestId         = context.StringValue("DescribeVpnConnection.RequestId");
            describeVpnConnectionResponse.VpnConnectionId   = context.StringValue("DescribeVpnConnection.VpnConnectionId");
            describeVpnConnectionResponse.CustomerGatewayId = context.StringValue("DescribeVpnConnection.CustomerGatewayId");
            describeVpnConnectionResponse.VpnGatewayId      = context.StringValue("DescribeVpnConnection.VpnGatewayId");
            describeVpnConnectionResponse.Name              = context.StringValue("DescribeVpnConnection.Name");
            describeVpnConnectionResponse.LocalSubnet       = context.StringValue("DescribeVpnConnection.LocalSubnet");
            describeVpnConnectionResponse.RemoteSubnet      = context.StringValue("DescribeVpnConnection.RemoteSubnet");
            describeVpnConnectionResponse.CreateTime        = context.LongValue("DescribeVpnConnection.CreateTime");
            describeVpnConnectionResponse.EffectImmediately = context.BooleanValue("DescribeVpnConnection.EffectImmediately");
            describeVpnConnectionResponse.Status            = context.StringValue("DescribeVpnConnection.Status");

            DescribeVpnConnectionResponse.DescribeVpnConnection_IkeConfig ikeConfig = new DescribeVpnConnectionResponse.DescribeVpnConnection_IkeConfig();
            ikeConfig.Psk         = context.StringValue("DescribeVpnConnection.IkeConfig.Psk");
            ikeConfig.IkeVersion  = context.StringValue("DescribeVpnConnection.IkeConfig.IkeVersion");
            ikeConfig.IkeMode     = context.StringValue("DescribeVpnConnection.IkeConfig.IkeMode");
            ikeConfig.IkeEncAlg   = context.StringValue("DescribeVpnConnection.IkeConfig.IkeEncAlg");
            ikeConfig.IkeAuthAlg  = context.StringValue("DescribeVpnConnection.IkeConfig.IkeAuthAlg");
            ikeConfig.IkePfs      = context.StringValue("DescribeVpnConnection.IkeConfig.IkePfs");
            ikeConfig.IkeLifetime = context.LongValue("DescribeVpnConnection.IkeConfig.IkeLifetime");
            ikeConfig.LocalId     = context.StringValue("DescribeVpnConnection.IkeConfig.LocalId");
            ikeConfig.RemoteId    = context.StringValue("DescribeVpnConnection.IkeConfig.RemoteId");
            describeVpnConnectionResponse.IkeConfig = ikeConfig;

            DescribeVpnConnectionResponse.DescribeVpnConnection_IpsecConfig ipsecConfig = new DescribeVpnConnectionResponse.DescribeVpnConnection_IpsecConfig();
            ipsecConfig.IpsecEncAlg   = context.StringValue("DescribeVpnConnection.IpsecConfig.IpsecEncAlg");
            ipsecConfig.IpsecAuthAlg  = context.StringValue("DescribeVpnConnection.IpsecConfig.IpsecAuthAlg");
            ipsecConfig.IpsecPfs      = context.StringValue("DescribeVpnConnection.IpsecConfig.IpsecPfs");
            ipsecConfig.IpsecLifetime = context.LongValue("DescribeVpnConnection.IpsecConfig.IpsecLifetime");
            describeVpnConnectionResponse.IpsecConfig = ipsecConfig;

            return(describeVpnConnectionResponse);
        }