/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeConnectorResponse response = new DescribeConnectorResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("connectorConfiguration", targetDepth)) { var unmarshaller = ConnectorConfigurationUnmarshaller.Instance; response.ConnectorConfiguration = 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(JsonUnmarshallerContext context) { DescribeConnectorResponse response = new DescribeConnectorResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("capacity", targetDepth)) { var unmarshaller = CapacityDescriptionUnmarshaller.Instance; response.Capacity = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ConnectorArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorConfiguration", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.ConnectorConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorDescription", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ConnectorDescription = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ConnectorName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorState", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ConnectorState = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("creationTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.CreationTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("currentVersion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.CurrentVersion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("kafkaCluster", targetDepth)) { var unmarshaller = KafkaClusterDescriptionUnmarshaller.Instance; response.KafkaCluster = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("kafkaClusterClientAuthentication", targetDepth)) { var unmarshaller = KafkaClusterClientAuthenticationDescriptionUnmarshaller.Instance; response.KafkaClusterClientAuthentication = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("kafkaClusterEncryptionInTransit", targetDepth)) { var unmarshaller = KafkaClusterEncryptionInTransitDescriptionUnmarshaller.Instance; response.KafkaClusterEncryptionInTransit = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("kafkaConnectVersion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.KafkaConnectVersion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("logDelivery", targetDepth)) { var unmarshaller = LogDeliveryDescriptionUnmarshaller.Instance; response.LogDelivery = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("plugins", targetDepth)) { var unmarshaller = new ListUnmarshaller <PluginDescription, PluginDescriptionUnmarshaller>(PluginDescriptionUnmarshaller.Instance); response.Plugins = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("serviceExecutionRoleArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ServiceExecutionRoleArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("stateDescription", targetDepth)) { var unmarshaller = StateDescriptionUnmarshaller.Instance; response.StateDescription = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("workerConfiguration", targetDepth)) { var unmarshaller = WorkerConfigurationDescriptionUnmarshaller.Instance; response.WorkerConfiguration = unmarshaller.Unmarshall(context); continue; } } return(response); }