public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
CreateTrailResponse response = new CreateTrailResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("CloudWatchLogsLogGroupArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.CloudWatchLogsLogGroupArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CloudWatchLogsRoleArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.CloudWatchLogsRoleArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("IncludeGlobalServiceEvents", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
response.IncludeGlobalServiceEvents = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("IsMultiRegionTrail", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
response.IsMultiRegionTrail = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("KmsKeyId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.KmsKeyId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("LogFileValidationEnabled", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
response.LogFileValidationEnabled = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Name", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Name = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("S3BucketName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.S3BucketName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("S3KeyPrefix", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.S3KeyPrefix = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SnsTopicARN", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.SnsTopicARN = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SnsTopicName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.SnsTopicName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("TrailARN", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.TrailARN = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}