public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            UpdateTrailResponse response = new UpdateTrailResponse();

            context.Read();

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

            while (context.Read())
            {
                if (context.TestExpression("Name", targetDepth))
                {
                    context.Read();
                    response.Name = StringUnmarshaller.GetInstance().Unmarshall(context);
                    continue;
                }

                if (context.TestExpression("S3BucketName", targetDepth))
                {
                    context.Read();
                    response.S3BucketName = StringUnmarshaller.GetInstance().Unmarshall(context);
                    continue;
                }

                if (context.TestExpression("S3KeyPrefix", targetDepth))
                {
                    context.Read();
                    response.S3KeyPrefix = StringUnmarshaller.GetInstance().Unmarshall(context);
                    continue;
                }

                if (context.TestExpression("SnsTopicName", targetDepth))
                {
                    context.Read();
                    response.SnsTopicName = StringUnmarshaller.GetInstance().Unmarshall(context);
                    continue;
                }

                if (context.TestExpression("IncludeGlobalServiceEvents", targetDepth))
                {
                    context.Read();
                    response.IncludeGlobalServiceEvents = BoolUnmarshaller.GetInstance().Unmarshall(context);
                    continue;
                }

                if (context.TestExpression("trail", targetDepth))
                {
                    context.Read();
                    response.Trail = TrailUnmarshaller.GetInstance().Unmarshall(context);
                    continue;
                }

                if (context.CurrentDepth <= originalDepth)
                {
                    return;
                }
            }

            return;
        }
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            UpdateTrailResponse response = new UpdateTrailResponse();

            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("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("SnsTopicName", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.SnsTopicName = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return(response);
        }
        public static UpdateTrailResponse Unmarshall(UnmarshallerContext _ctx)
        {
            UpdateTrailResponse updateTrailResponse = new UpdateTrailResponse();

            updateTrailResponse.HttpResponse    = _ctx.HttpResponse;
            updateTrailResponse.SlsProjectArn   = _ctx.StringValue("UpdateTrail.SlsProjectArn");
            updateTrailResponse.EventRW         = _ctx.StringValue("UpdateTrail.EventRW");
            updateTrailResponse.RequestId       = _ctx.StringValue("UpdateTrail.RequestId");
            updateTrailResponse.HomeRegion      = _ctx.StringValue("UpdateTrail.HomeRegion");
            updateTrailResponse.OssKeyPrefix    = _ctx.StringValue("UpdateTrail.OssKeyPrefix");
            updateTrailResponse.OssBucketName   = _ctx.StringValue("UpdateTrail.OssBucketName");
            updateTrailResponse.SlsWriteRoleArn = _ctx.StringValue("UpdateTrail.SlsWriteRoleArn");
            updateTrailResponse.OssWriteRoleArn = _ctx.StringValue("UpdateTrail.OssWriteRoleArn");
            updateTrailResponse.TrailRegion     = _ctx.StringValue("UpdateTrail.TrailRegion");
            updateTrailResponse.Name            = _ctx.StringValue("UpdateTrail.Name");

            return(updateTrailResponse);
        }
        public static UpdateTrailResponse Unmarshall(UnmarshallerContext context)
        {
            UpdateTrailResponse updateTrailResponse = new UpdateTrailResponse();

            updateTrailResponse.HttpResponse    = context.HttpResponse;
            updateTrailResponse.RequestId       = context.StringValue("UpdateTrail.RequestId");
            updateTrailResponse.Param           = context.StringValue("UpdateTrail.Param");
            updateTrailResponse.Result          = context.StringValue("UpdateTrail.Result");
            updateTrailResponse.Name            = context.StringValue("UpdateTrail.Name");
            updateTrailResponse.HomeRegion      = context.StringValue("UpdateTrail.HomeRegion");
            updateTrailResponse.OssBucketName   = context.StringValue("UpdateTrail.OssBucketName");
            updateTrailResponse.OssKeyPrefix    = context.StringValue("UpdateTrail.OssKeyPrefix");
            updateTrailResponse.RoleName        = context.StringValue("UpdateTrail.RoleName");
            updateTrailResponse.SlsProjectArn   = context.StringValue("UpdateTrail.SlsProjectArn");
            updateTrailResponse.SlsWriteRoleArn = context.StringValue("UpdateTrail.SlsWriteRoleArn");
            updateTrailResponse.EventRW         = context.StringValue("UpdateTrail.EventRW");

            return(updateTrailResponse);
        }