public static InventoryRetrievalJobDescriptionUnmarshaller GetInstance() { if (instance == null) { instance = new InventoryRetrievalJobDescriptionUnmarshaller(); } return(instance); }
public GlacierJobDescription Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } GlacierJobDescription glacierJobDescription = new GlacierJobDescription(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("JobId", targetDepth)) { glacierJobDescription.JobId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("JobDescription", targetDepth)) { glacierJobDescription.JobDescription = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Action", targetDepth)) { glacierJobDescription.Action = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ArchiveId", targetDepth)) { glacierJobDescription.ArchiveId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("VaultARN", targetDepth)) { glacierJobDescription.VaultARN = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("CreationDate", targetDepth)) { glacierJobDescription.CreationDate = DateTimeUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Completed", targetDepth)) { glacierJobDescription.Completed = BoolUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("StatusCode", targetDepth)) { glacierJobDescription.StatusCode = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("StatusMessage", targetDepth)) { glacierJobDescription.StatusMessage = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ArchiveSizeInBytes", targetDepth)) { glacierJobDescription.ArchiveSizeInBytes = LongUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("InventorySizeInBytes", targetDepth)) { glacierJobDescription.InventorySizeInBytes = LongUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("SNSTopic", targetDepth)) { glacierJobDescription.SNSTopic = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("CompletionDate", targetDepth)) { glacierJobDescription.CompletionDate = DateTimeUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("SHA256TreeHash", targetDepth)) { glacierJobDescription.SHA256TreeHash = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ArchiveSHA256TreeHash", targetDepth)) { glacierJobDescription.ArchiveSHA256TreeHash = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("RetrievalByteRange", targetDepth)) { glacierJobDescription.RetrievalByteRange = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("InventoryRetrievalParameters", targetDepth)) { glacierJobDescription.InventoryRetrievalParameters = InventoryRetrievalJobDescriptionUnmarshaller.GetInstance().Unmarshall(context); continue; } } return(glacierJobDescription); }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeJobResponse response = new DescribeJobResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("JobId", targetDepth)) { response.JobId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("JobDescription", targetDepth)) { response.JobDescription = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Action", targetDepth)) { response.Action = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ArchiveId", targetDepth)) { response.ArchiveId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("VaultARN", targetDepth)) { response.VaultARN = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("CreationDate", targetDepth)) { response.CreationDate = DateTimeUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Completed", targetDepth)) { response.Completed = BoolUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("StatusCode", targetDepth)) { response.StatusCode = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("StatusMessage", targetDepth)) { response.StatusMessage = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ArchiveSizeInBytes", targetDepth)) { response.ArchiveSizeInBytes = LongUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("InventorySizeInBytes", targetDepth)) { response.InventorySizeInBytes = LongUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("SNSTopic", targetDepth)) { response.SNSTopic = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("CompletionDate", targetDepth)) { response.CompletionDate = DateTimeUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("SHA256TreeHash", targetDepth)) { response.SHA256TreeHash = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ArchiveSHA256TreeHash", targetDepth)) { response.ArchiveSHA256TreeHash = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("RetrievalByteRange", targetDepth)) { response.RetrievalByteRange = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("InventoryRetrievalParameters", targetDepth)) { response.InventoryRetrievalParameters = InventoryRetrievalJobDescriptionUnmarshaller.GetInstance().Unmarshall(context); continue; } } return(response); }
private static void UnmarshallResult(JsonUnmarshallerContext context, DescribeJobResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if (context.TestExpression("JobId", targetDepth)) { context.Read(); response.JobId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("JobDescription", targetDepth)) { context.Read(); response.JobDescription = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Action", targetDepth)) { context.Read(); response.Action = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ArchiveId", targetDepth)) { context.Read(); response.ArchiveId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("VaultARN", targetDepth)) { context.Read(); response.VaultARN = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("CreationDate", targetDepth)) { context.Read(); response.CreationDate = DateTimeUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Completed", targetDepth)) { context.Read(); response.Completed = BoolUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("StatusCode", targetDepth)) { context.Read(); response.StatusCode = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("StatusMessage", targetDepth)) { context.Read(); response.StatusMessage = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ArchiveSizeInBytes", targetDepth)) { context.Read(); response.ArchiveSizeInBytes = LongUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("InventorySizeInBytes", targetDepth)) { context.Read(); response.InventorySizeInBytes = LongUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("SNSTopic", targetDepth)) { context.Read(); response.SNSTopic = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("CompletionDate", targetDepth)) { context.Read(); response.CompletionDate = DateTimeUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("SHA256TreeHash", targetDepth)) { context.Read(); response.SHA256TreeHash = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ArchiveSHA256TreeHash", targetDepth)) { context.Read(); response.ArchiveSHA256TreeHash = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("RetrievalByteRange", targetDepth)) { context.Read(); response.RetrievalByteRange = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("InventoryRetrievalParameters", targetDepth)) { context.Read(); response.InventoryRetrievalParameters = InventoryRetrievalJobDescriptionUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.CurrentDepth <= originalDepth) { return; } } return; }