Example #1
0
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            DeleteKeyPairResponse response = new DeleteKeyPairResponse();

            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth = 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                }
            }

            return(response);
        }
        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            DescribeSpotFleetInstancesResponse response = new DescribeSpotFleetInstancesResponse();

            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth = 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("activeInstanceSet/item", targetDepth))
                    {
                        var unmarshaller = ActiveInstanceUnmarshaller.Instance;
                        var item         = unmarshaller.Unmarshall(context);
                        response.ActiveInstances.Add(item);
                        continue;
                    }
                    if (context.TestExpression("nextToken", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.NextToken = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("spotFleetRequestId", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.SpotFleetRequestId = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
            }

            return(response);
        }
Example #3
0
        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            TerminateClientVpnConnectionsResponse response = new TerminateClientVpnConnectionsResponse();

            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth = 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("clientVpnEndpointId", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.ClientVpnEndpointId = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("connectionStatuses/item", targetDepth))
                    {
                        var unmarshaller = TerminateConnectionStatusUnmarshaller.Instance;
                        var item         = unmarshaller.Unmarshall(context);
                        response.ConnectionStatuses.Add(item);
                        continue;
                    }
                    if (context.TestExpression("username", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.Username = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
            }

            return(response);
        }
Example #4
0
        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            DescribeElasticGpusResponse response = new DescribeElasticGpusResponse();

            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth = 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("elasticGpuSet/member", targetDepth))
                    {
                        var unmarshaller = ElasticGpusUnmarshaller.Instance;
                        var item         = unmarshaller.Unmarshall(context);
                        response.ElasticGpuSet.Add(item);
                        continue;
                    }
                    if (context.TestExpression("maxResults", targetDepth))
                    {
                        var unmarshaller = IntUnmarshaller.Instance;
                        response.MaxResults = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("nextToken", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.NextToken = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
            }

            return(response);
        }
        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            GetCoipPoolUsageResponse response = new GetCoipPoolUsageResponse();

            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth = 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("coipAddressUsageSet/item", targetDepth))
                    {
                        var unmarshaller = CoipAddressUsageUnmarshaller.Instance;
                        var item         = unmarshaller.Unmarshall(context);
                        response.CoipAddressUsages.Add(item);
                        continue;
                    }
                    if (context.TestExpression("coipPoolId", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.CoipPoolId = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("localGatewayRouteTableId", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.LocalGatewayRouteTableId = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
            }

            return(response);
        }
        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            DescribeVolumeAttributeResponse response = new DescribeVolumeAttributeResponse();

            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth = 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("autoEnableIO/value", targetDepth))
                    {
                        var unmarshaller = BoolUnmarshaller.Instance;
                        response.AutoEnableIO = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("productCodes/item", targetDepth))
                    {
                        var unmarshaller = ProductCodeUnmarshaller.Instance;
                        var item         = unmarshaller.Unmarshall(context);
                        response.ProductCodes.Add(item);
                        continue;
                    }
                    if (context.TestExpression("volumeId", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.VolumeId = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
            }

            return(response);
        }
        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            AssociateEnclaveCertificateIamRoleResponse response = new AssociateEnclaveCertificateIamRoleResponse();

            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth = 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("certificateS3BucketName", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.CertificateS3BucketName = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("certificateS3ObjectKey", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.CertificateS3ObjectKey = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("encryptionKmsKeyId", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.EncryptionKmsKeyId = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
            }

            return(response);
        }
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            DescribeVpcAttributeResponse response = new DescribeVpcAttributeResponse();

            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth = 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("enableDnsHostnames/value", targetDepth))
                    {
                        var unmarshaller = BoolUnmarshaller.Instance;
                        response.EnableDnsHostnames = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("enableDnsSupport/value", targetDepth))
                    {
                        var unmarshaller = BoolUnmarshaller.Instance;
                        response.EnableDnsSupport = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("vpcId", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.VpcId = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
            }

            return(response);
        }
        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            GetPasswordDataResponse response = new GetPasswordDataResponse();

            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth = 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("instanceId", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.InstanceId = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("passwordData", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.PasswordData = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("timestamp", targetDepth))
                    {
                        var unmarshaller = DateTimeUnmarshaller.Instance;
                        response.Timestamp = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
            }

            return(response);
        }
Example #10
0
        private static void UnmarshallResult(XmlUnmarshallerContext context, DescribeCacheParametersResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth += 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("CacheNodeTypeSpecificParameters/CacheNodeTypeSpecificParameter", targetDepth))
                    {
                        var unmarshaller = CacheNodeTypeSpecificParameterUnmarshaller.Instance;
                        var item         = unmarshaller.Unmarshall(context);
                        response.CacheNodeTypeSpecificParameters.Add(item);
                        continue;
                    }
                    if (context.TestExpression("Marker", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.Marker = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("Parameters/Parameter", targetDepth))
                    {
                        var unmarshaller = ParameterUnmarshaller.Instance;
                        var item         = unmarshaller.Unmarshall(context);
                        response.Parameters.Add(item);
                        continue;
                    }
                }
            }

            return;
        }
        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            AssociateVpcCidrBlockResponse response = new AssociateVpcCidrBlockResponse();

            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth = 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("cidrBlockAssociation", targetDepth))
                    {
                        var unmarshaller = VpcCidrBlockAssociationUnmarshaller.Instance;
                        response.CidrBlockAssociation = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("ipv6CidrBlockAssociation", targetDepth))
                    {
                        var unmarshaller = VpcIpv6CidrBlockAssociationUnmarshaller.Instance;
                        response.Ipv6CidrBlockAssociation = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("vpcId", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.VpcId = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
            }

            return(response);
        }
        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            AllocateAddressResponse response = new AllocateAddressResponse();

            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth = 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("allocationId", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.AllocationId = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("domain", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.Domain = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("publicIp", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.PublicIp = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
            }

            return(response);
        }
Example #13
0
        private static void UnmarshallResult(XmlUnmarshallerContext context, GetMetricDataResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth += 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("Messages/member", targetDepth))
                    {
                        var unmarshaller = MessageDataUnmarshaller.Instance;
                        var item         = unmarshaller.Unmarshall(context);
                        response.Messages.Add(item);
                        continue;
                    }
                    if (context.TestExpression("MetricDataResults/member", targetDepth))
                    {
                        var unmarshaller = MetricDataResultUnmarshaller.Instance;
                        var item         = unmarshaller.Unmarshall(context);
                        response.MetricDataResults.Add(item);
                        continue;
                    }
                    if (context.TestExpression("NextToken", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.NextToken = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
            }

            return;
        }
        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            ImportSnapshotResponse response = new ImportSnapshotResponse();

            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth = 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("description", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.Description = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("importTaskId", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.ImportTaskId = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("snapshotTaskDetail", targetDepth))
                    {
                        var unmarshaller = SnapshotTaskDetailUnmarshaller.Instance;
                        response.SnapshotTaskDetail = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
            }

            return(response);
        }
        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            CancelImportTaskResponse response = new CancelImportTaskResponse();

            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth = 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("importTaskId", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.ImportTaskId = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("previousState", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.PreviousState = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("state", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.State = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
            }

            return(response);
        }
        private static void UnmarshallResult(XmlUnmarshallerContext context, DescribeConfigurationOptionsResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth += 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("Options/member", targetDepth))
                    {
                        var unmarshaller = ConfigurationOptionDescriptionUnmarshaller.Instance;
                        var item         = unmarshaller.Unmarshall(context);
                        response.Options.Add(item);
                        continue;
                    }
                    if (context.TestExpression("PlatformArn", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.PlatformArn = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("SolutionStackName", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.SolutionStackName = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
            }

            return;
        }
        private static void UnmarshallResult(XmlUnmarshallerContext context, UpdateJobResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth += 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("ArtifactList/member", targetDepth))
                    {
                        var unmarshaller = ArtifactUnmarshaller.Instance;
                        var item         = unmarshaller.Unmarshall(context);
                        response.ArtifactList.Add(item);
                        continue;
                    }
                    if (context.TestExpression("Success", targetDepth))
                    {
                        var unmarshaller = BoolUnmarshaller.Instance;
                        response.Success = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("WarningMessage", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.WarningMessage = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
            }

            return;
        }
        private static void UnmarshallResult(XmlUnmarshallerContext context, ListRoleTagsResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth += 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("IsTruncated", targetDepth))
                    {
                        var unmarshaller = BoolUnmarshaller.Instance;
                        response.IsTruncated = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("Marker", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.Marker = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("Tags/member", targetDepth))
                    {
                        var unmarshaller = TagUnmarshaller.Instance;
                        var item         = unmarshaller.Unmarshall(context);
                        response.Tags.Add(item);
                        continue;
                    }
                }
            }

            return;
        }
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            AssumeRoleWithSAMLResponse assumeRoleWithSAMLResponse = new AssumeRoleWithSAMLResponse();

            context.Read();
            int currentDepth = context.get_CurrentDepth();

            while (context.ReadAtDepth(currentDepth))
            {
                if (context.get_IsStartElement())
                {
                    if (context.TestExpression("AssumeRoleWithSAMLResult", 2))
                    {
                        UnmarshallResult(context, assumeRoleWithSAMLResponse);
                    }
                    else if (context.TestExpression("ResponseMetadata", 2))
                    {
                        assumeRoleWithSAMLResponse.set_ResponseMetadata(ResponseMetadataUnmarshaller.get_Instance().Unmarshall(context));
                    }
                }
            }
            return(assumeRoleWithSAMLResponse);
        }
        private static void UnmarshallResult(XmlUnmarshallerContext context, GetFederationTokenResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth += 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("Credentials", targetDepth))
                    {
                        var unmarshaller = CredentialsUnmarshaller.Instance;
                        response.Credentials = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("FederatedUser", targetDepth))
                    {
                        var unmarshaller = FederatedUserUnmarshaller.Instance;
                        response.FederatedUser = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("PackedPolicySize", targetDepth))
                    {
                        var unmarshaller = IntUnmarshaller.Instance;
                        response.PackedPolicySize = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
            }

            return;
        }
Example #21
0
        private static void UnmarshallResult(XmlUnmarshallerContext context, GetUserPolicyResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth += 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("PolicyDocument", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.PolicyDocument = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("PolicyName", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.PolicyName = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("UserName", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.UserName = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
            }

            return;
        }
        private static void UnmarshallResult(XmlUnmarshallerContext context, GetCredentialReportResponse response)
        {
            
            int originalDepth = context.CurrentDepth;
            int targetDepth = originalDepth + 1;
            
            if (context.IsStartOfDocument) 
               targetDepth += 2;
            
            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {

                    if (context.TestExpression("Content", targetDepth))
                    {
                        var unmarshaller = MemoryStreamUnmarshaller.Instance;
                        response.Content = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("GeneratedTime", targetDepth))
                    {
                        var unmarshaller = DateTimeUnmarshaller.Instance;
                        response.GeneratedTime = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("ReportFormat", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.ReportFormat = unmarshaller.Unmarshall(context);
                        continue;
                    }
                } 
           }

            return;
        }
        private static void UnmarshallResult(XmlUnmarshallerContext context, GetClusterCredentialsResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth += 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("DbPassword", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.DbPassword = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("DbUser", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.DbUser = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("Expiration", targetDepth))
                    {
                        var unmarshaller = DateTimeUnmarshaller.Instance;
                        response.Expiration = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
            }

            return;
        }
        private static void UnmarshallResult(XmlUnmarshallerContext context, DownloadDBLogFilePortionResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth += 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("AdditionalDataPending", targetDepth))
                    {
                        var unmarshaller = BoolUnmarshaller.Instance;
                        response.AdditionalDataPending = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("LogFileData", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.LogFileData = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("Marker", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.Marker = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
            }

            return;
        }
        private static void UnmarshallResult(XmlUnmarshallerContext context, GetSAMLProviderResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth += 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("CreateDate", targetDepth))
                    {
                        var unmarshaller = DateTimeUnmarshaller.Instance;
                        response.CreateDate = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("SAMLMetadataDocument", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.SAMLMetadataDocument = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("ValidUntil", targetDepth))
                    {
                        var unmarshaller = DateTimeUnmarshaller.Instance;
                        response.ValidUntil = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
            }

            return;
        }
        private static void UnmarshallResult(XmlUnmarshallerContext context, StopActivityStreamResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth += 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("KinesisStreamName", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.KinesisStreamName = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("KmsKeyId", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.KmsKeyId = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("Status", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.Status = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
            }

            return;
        }
        private static void UnmarshallResult(XmlUnmarshallerContext context, GetSendQuotaResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth += 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("Max24HourSend", targetDepth))
                    {
                        var unmarshaller = DoubleUnmarshaller.Instance;
                        response.Max24HourSend = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("MaxSendRate", targetDepth))
                    {
                        var unmarshaller = DoubleUnmarshaller.Instance;
                        response.MaxSendRate = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("SentLast24Hours", targetDepth))
                    {
                        var unmarshaller = DoubleUnmarshaller.Instance;
                        response.SentLast24Hours = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
            }

            return;
        }
        private static void UnmarshallResult(XmlUnmarshallerContext context, SendMessageResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth += 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("MD5OfMessageAttributes", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.MD5OfMessageAttributes = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("MD5OfMessageBody", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.MD5OfMessageBody = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("MessageId", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.MessageId = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
            }

            return;
        }
        private static void UnmarshallResult(XmlUnmarshallerContext context, CreateCacheSecurityGroupResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth += 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("CacheSecurityGroup", targetDepth))
                    {
                        response.CacheSecurityGroup = CacheSecurityGroupUnmarshaller.Instance.Unmarshall(context);
                        continue;
                    }
                }
            }

            return;
        }
        private static void UnmarshallResult(XmlUnmarshallerContext context, DeleteClusterSnapshotResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth += 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("Snapshot", targetDepth))
                    {
                        response.Snapshot = SnapshotUnmarshaller.Instance.Unmarshall(context);
                        continue;
                    }
                }
            }

            return;
        }