public static ModifySecurityGroupConfigurationResponse Unmarshall(UnmarshallerContext _ctx)
        {
            ModifySecurityGroupConfigurationResponse modifySecurityGroupConfigurationResponse = new ModifySecurityGroupConfigurationResponse();

            modifySecurityGroupConfigurationResponse.HttpResponse = _ctx.HttpResponse;
            modifySecurityGroupConfigurationResponse.RequestId    = _ctx.StringValue("ModifySecurityGroupConfiguration.RequestId");

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

            modifySecurityGroupConfigurationResponse.HttpResponse   = context.HttpResponse;
            modifySecurityGroupConfigurationResponse.RequestId      = context.StringValue("ModifySecurityGroupConfiguration.RequestId");
            modifySecurityGroupConfigurationResponse.DBInstanceName = context.StringValue("ModifySecurityGroupConfiguration.DBInstanceName");

            List <ModifySecurityGroupConfigurationResponse.ModifySecurityGroupConfiguration_EcsSecurityGroupRelation> modifySecurityGroupConfigurationResponse_items = new List <ModifySecurityGroupConfigurationResponse.ModifySecurityGroupConfiguration_EcsSecurityGroupRelation>();

            for (int i = 0; i < context.Length("ModifySecurityGroupConfiguration.Items.Length"); i++)
            {
                ModifySecurityGroupConfigurationResponse.ModifySecurityGroupConfiguration_EcsSecurityGroupRelation ecsSecurityGroupRelation = new ModifySecurityGroupConfigurationResponse.ModifySecurityGroupConfiguration_EcsSecurityGroupRelation();
                ecsSecurityGroupRelation.RegionId        = context.StringValue("ModifySecurityGroupConfiguration.Items[" + i + "].RegionId");
                ecsSecurityGroupRelation.SecurityGroupId = context.StringValue("ModifySecurityGroupConfiguration.Items[" + i + "].SecurityGroupId");
                ecsSecurityGroupRelation.NetworkType     = context.StringValue("ModifySecurityGroupConfiguration.Items[" + i + "].NetworkType");

                modifySecurityGroupConfigurationResponse_items.Add(ecsSecurityGroupRelation);
            }
            modifySecurityGroupConfigurationResponse.Items = modifySecurityGroupConfigurationResponse_items;

            return(modifySecurityGroupConfigurationResponse);
        }