Example #1
0
        public static ListVpcEndpointsResponse Unmarshall(UnmarshallerContext _ctx)
        {
            ListVpcEndpointsResponse listVpcEndpointsResponse = new ListVpcEndpointsResponse();

            listVpcEndpointsResponse.HttpResponse = _ctx.HttpResponse;
            listVpcEndpointsResponse.MaxResults   = _ctx.StringValue("ListVpcEndpoints.MaxResults");
            listVpcEndpointsResponse.NextToken    = _ctx.StringValue("ListVpcEndpoints.NextToken");
            listVpcEndpointsResponse.RequestId    = _ctx.StringValue("ListVpcEndpoints.RequestId");

            List <ListVpcEndpointsResponse.ListVpcEndpoints_Endpoint> listVpcEndpointsResponse_endpoints = new List <ListVpcEndpointsResponse.ListVpcEndpoints_Endpoint>();

            for (int i = 0; i < _ctx.Length("ListVpcEndpoints.Endpoints.Length"); i++)
            {
                ListVpcEndpointsResponse.ListVpcEndpoints_Endpoint endpoint = new ListVpcEndpointsResponse.ListVpcEndpoints_Endpoint();
                endpoint.EndpointId             = _ctx.StringValue("ListVpcEndpoints.Endpoints[" + i + "].EndpointId");
                endpoint.EndpointName           = _ctx.StringValue("ListVpcEndpoints.Endpoints[" + i + "].EndpointName");
                endpoint.EndpointDescription    = _ctx.StringValue("ListVpcEndpoints.Endpoints[" + i + "].EndpointDescription");
                endpoint.EndpointStatus         = _ctx.StringValue("ListVpcEndpoints.Endpoints[" + i + "].EndpointStatus");
                endpoint.EndpointBusinessStatus = _ctx.StringValue("ListVpcEndpoints.Endpoints[" + i + "].EndpointBusinessStatus");
                endpoint.EndpointDomain         = _ctx.StringValue("ListVpcEndpoints.Endpoints[" + i + "].EndpointDomain");
                endpoint.Bandwidth        = _ctx.LongValue("ListVpcEndpoints.Endpoints[" + i + "].Bandwidth");
                endpoint.ConnectionStatus = _ctx.StringValue("ListVpcEndpoints.Endpoints[" + i + "].ConnectionStatus");
                endpoint.ServiceId        = _ctx.StringValue("ListVpcEndpoints.Endpoints[" + i + "].ServiceId");
                endpoint.ServiceName      = _ctx.StringValue("ListVpcEndpoints.Endpoints[" + i + "].ServiceName");
                endpoint.VpcId            = _ctx.StringValue("ListVpcEndpoints.Endpoints[" + i + "].VpcId");
                endpoint.CreateTime       = _ctx.StringValue("ListVpcEndpoints.Endpoints[" + i + "].CreateTime");
                endpoint.RegionId         = _ctx.StringValue("ListVpcEndpoints.Endpoints[" + i + "].RegionId");
                endpoint.ResourceOwner    = _ctx.BooleanValue("ListVpcEndpoints.Endpoints[" + i + "].ResourceOwner");

                listVpcEndpointsResponse_endpoints.Add(endpoint);
            }
            listVpcEndpointsResponse.Endpoints = listVpcEndpointsResponse_endpoints;

            return(listVpcEndpointsResponse);
        }
Example #2
0
        public static ListVpcEndpointsResponse Unmarshall(UnmarshallerContext context)
        {
            ListVpcEndpointsResponse listVpcEndpointsResponse = new ListVpcEndpointsResponse();

            listVpcEndpointsResponse.HttpResponse = context.HttpResponse;
            listVpcEndpointsResponse.RequestId    = context.StringValue("ListVpcEndpoints.RequestId");
            listVpcEndpointsResponse.NextToken    = context.StringValue("ListVpcEndpoints.NextToken");
            listVpcEndpointsResponse.MaxResults   = context.IntegerValue("ListVpcEndpoints.MaxResults");

            List <ListVpcEndpointsResponse.ListVpcEndpoints_VpcEndpoint> listVpcEndpointsResponse_vpcEndpoints = new List <ListVpcEndpointsResponse.ListVpcEndpoints_VpcEndpoint>();

            for (int i = 0; i < context.Length("ListVpcEndpoints.VpcEndpoints.Length"); i++)
            {
                ListVpcEndpointsResponse.ListVpcEndpoints_VpcEndpoint vpcEndpoint = new ListVpcEndpointsResponse.ListVpcEndpoints_VpcEndpoint();
                vpcEndpoint.VpcEndpointId = context.StringValue("ListVpcEndpoints.VpcEndpoints[" + i + "].VpcEndpointId");
                vpcEndpoint.LedgerId      = context.StringValue("ListVpcEndpoints.VpcEndpoints[" + i + "].LedgerId");
                vpcEndpoint.MemberId      = context.StringValue("ListVpcEndpoints.VpcEndpoints[" + i + "].MemberId");
                vpcEndpoint.RegionId      = context.StringValue("ListVpcEndpoints.VpcEndpoints[" + i + "].RegionId");
                vpcEndpoint.VpcId         = context.StringValue("ListVpcEndpoints.VpcEndpoints[" + i + "].VpcId");
                vpcEndpoint.VSwitchId     = context.StringValue("ListVpcEndpoints.VpcEndpoints[" + i + "].VSwitchId");
                vpcEndpoint.Address       = context.StringValue("ListVpcEndpoints.VpcEndpoints[" + i + "].Address");
                vpcEndpoint.CreateTime    = context.LongValue("ListVpcEndpoints.VpcEndpoints[" + i + "].CreateTime");
                vpcEndpoint.Status        = context.StringValue("ListVpcEndpoints.VpcEndpoints[" + i + "].Status");

                listVpcEndpointsResponse_vpcEndpoints.Add(vpcEndpoint);
            }
            listVpcEndpointsResponse.VpcEndpoints = listVpcEndpointsResponse_vpcEndpoints;

            return(listVpcEndpointsResponse);
        }