private static void UnmarshallResult(XmlUnmarshallerContext context, DescribePendingMaintenanceActionsResponse 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("Marker", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Marker = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PendingMaintenanceActions/ResourcePendingMaintenanceActions", targetDepth)) { var unmarshaller = ResourcePendingMaintenanceActionsUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.PendingMaintenanceActions.Add(item); continue; } } } return; }
private static void UnmarshallResult(XmlUnmarshallerContext context, ListSAMLProvidersResponse 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("SAMLProviderList/member", targetDepth)) { var unmarshaller = SAMLProviderListEntryUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.SAMLProviderList.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) { DetachLoadBalancerFromSubnetsResponse response = new DetachLoadBalancerFromSubnetsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("DetachLoadBalancerFromSubnetsResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } 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) { AttachVpnGatewayResponse response = new AttachVpnGatewayResponse(); 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("attachment", targetDepth)) { var unmarshaller = VpcAttachmentUnmarshaller.Instance; response.VpcAttachment = unmarshaller.Unmarshall(context); continue; } } } return response; }
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { CreateSpotDatafeedSubscriptionResponse response = new CreateSpotDatafeedSubscriptionResponse(); 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("spotDatafeedSubscription", targetDepth)) { var unmarshaller = SpotDatafeedSubscriptionUnmarshaller.Instance; response.SpotDatafeedSubscription = unmarshaller.Unmarshall(context); continue; } } } return response; }
private static void UnmarshallResult(XmlUnmarshallerContext context, ModifyDBParameterGroupResponse 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("DBParameterGroupName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DBParameterGroupName = unmarshaller.Unmarshall(context); continue; } } } return; }
private static void UnmarshallResult(XmlUnmarshallerContext context, GetRoleResponse 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("Role", targetDepth)) { var unmarshaller = RoleUnmarshaller.Instance; response.Role = unmarshaller.Unmarshall(context); continue; } } } return; }
private static void UnmarshallResult(XmlUnmarshallerContext context, ListEndpointsByPlatformApplicationResponse 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("Endpoints/member", targetDepth)) { var unmarshaller = EndpointUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.Endpoints.Add(item); continue; } if (context.TestExpression("NextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } } return; }
private static void UnmarshallResult(XmlUnmarshallerContext context, UpdateSAMLProviderResponse 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("SAMLProviderArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.SAMLProviderArn = unmarshaller.Unmarshall(context); continue; } } } return; }
private static void UnmarshallResult(XmlUnmarshallerContext context, RevokeCacheSecurityGroupIngressResponse 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)) { var unmarshaller = CacheSecurityGroupUnmarshaller.Instance; response.CacheSecurityGroup = 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) { ListEndpointsByPlatformApplicationResponse response = new ListEndpointsByPlatformApplicationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("ListEndpointsByPlatformApplicationResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } 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) { GetConsoleScreenshotResponse response = new GetConsoleScreenshotResponse(); 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("imageData", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ImageData = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("instanceId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.InstanceId = unmarshaller.Unmarshall(context); continue; } } } return response; }
private static void UnmarshallResult(XmlUnmarshallerContext context, GetContextKeysForCustomPolicyResponse 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("ContextKeyNames/member", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.ContextKeyNames.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) { AuthorizeClusterSecurityGroupIngressResponse response = new AuthorizeClusterSecurityGroupIngressResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("AuthorizeClusterSecurityGroupIngressResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; }
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { DescribeKeyPairsResponse response = new DescribeKeyPairsResponse(); 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("keySet/item", targetDepth)) { var unmarshaller = KeyPairInfoUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.KeyPairs.Add(item); continue; } } } return response; }
private static void UnmarshallResult(XmlUnmarshallerContext context, DescribeClustersResponse 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("clusters/member", targetDepth)) { var unmarshaller = ClusterUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.Clusters.Add(item); continue; } if (context.TestExpression("failures/member", targetDepth)) { var unmarshaller = FailureUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.Failures.Add(item); continue; } } } return; }
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { ModifyDBParameterGroupResponse response = new ModifyDBParameterGroupResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("ModifyDBParameterGroupResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; }
private static void UnmarshallResult(XmlUnmarshallerContext context, DescribeEventCategoriesResponse 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("EventCategoriesMapList/EventCategoriesMap", targetDepth)) { var unmarshaller = EventCategoriesMapUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.EventCategoriesMapList.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) { CreateConfigurationSetEventDestinationResponse response = new CreateConfigurationSetEventDestinationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("CreateConfigurationSetEventDestinationResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } 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) { DisableVpcClassicLinkResponse response = new DisableVpcClassicLinkResponse(); 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("return", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.Return = 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) { AddSourceIdentifierToSubscriptionResponse response = new AddSourceIdentifierToSubscriptionResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("AddSourceIdentifierToSubscriptionResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } 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) { SetIdentityFeedbackForwardingEnabledResponse response = new SetIdentityFeedbackForwardingEnabledResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("SetIdentityFeedbackForwardingEnabledResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; }
private static void UnmarshallResult(XmlUnmarshallerContext context, DescribeDBSecurityGroupsResponse 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("DBSecurityGroups/DBSecurityGroup", targetDepth)) { var unmarshaller = DBSecurityGroupUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.DBSecurityGroups.Add(item); continue; } if (context.TestExpression("Marker", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Marker = unmarshaller.Unmarshall(context); continue; } } } return; }
private static void UnmarshallResult(XmlUnmarshallerContext context, DescribeDefaultClusterParametersResponse 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("DefaultClusterParameters", targetDepth)) { var unmarshaller = DefaultClusterParametersUnmarshaller.Instance; response.DefaultClusterParameters = 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) { ReplaceNetworkAclAssociationResponse response = new ReplaceNetworkAclAssociationResponse(); 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("newAssociationId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NewAssociationId = 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) { GetIdentityMailFromDomainAttributesResponse response = new GetIdentityMailFromDomainAttributesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("GetIdentityMailFromDomainAttributesResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; }
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { DescribeInstanceStatusResponse response = new DescribeInstanceStatusResponse(); 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("instanceStatusSet/item", targetDepth)) { var unmarshaller = InstanceStatusUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.InstanceStatuses.Add(item); continue; } if (context.TestExpression("nextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } } return response; }
private static void UnmarshallResult(XmlUnmarshallerContext context, GetIdentityMailFromDomainAttributesResponse 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("MailFromDomainAttributes/entry", targetDepth)) { var unmarshaller = new KeyValueUnmarshaller<string, IdentityMailFromDomainAttributes, StringUnmarshaller, IdentityMailFromDomainAttributesUnmarshaller>(StringUnmarshaller.Instance, IdentityMailFromDomainAttributesUnmarshaller.Instance); var item = unmarshaller.Unmarshall(context); response.MailFromDomainAttributes.Add(item); continue; } } } return; }
private static void UnmarshallResult(XmlUnmarshallerContext context, DetachLoadBalancerFromSubnetsResponse 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("Subnets/member", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); response.Subnets.Add(item); continue; } } } return; }
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("SolutionStackName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.SolutionStackName = unmarshaller.Unmarshall(context); continue; } } } return; }