public static CreateBackupResponse Unmarshall(UnmarshallerContext _ctx)
        {
            CreateBackupResponse createBackupResponse = new CreateBackupResponse();

            createBackupResponse.HttpResponse     = _ctx.HttpResponse;
            createBackupResponse.RequestId        = _ctx.StringValue("CreateBackup.RequestId");
            createBackupResponse.BizId            = _ctx.StringValue("CreateBackup.BizId");
            createBackupResponse.DataSourceId     = _ctx.LongValue("CreateBackup.DataSourceId");
            createBackupResponse.TaskType         = _ctx.StringValue("CreateBackup.TaskType");
            createBackupResponse.TaskStatus       = _ctx.StringValue("CreateBackup.TaskStatus");
            createBackupResponse.StartTime        = _ctx.LongValue("CreateBackup.StartTime");
            createBackupResponse.EndTime          = _ctx.LongValue("CreateBackup.EndTime");
            createBackupResponse.TaskDetail       = _ctx.StringValue("CreateBackup.TaskDetail");
            createBackupResponse.TaskResultDetail = _ctx.StringValue("CreateBackup.TaskResultDetail");
            createBackupResponse.TaskProcess      = _ctx.IntegerValue("CreateBackup.TaskProcess");
            createBackupResponse.TriggerUser      = _ctx.StringValue("CreateBackup.TriggerUser");
            createBackupResponse.TriggerType      = _ctx.StringValue("CreateBackup.TriggerType");
            createBackupResponse.GmtCreate        = _ctx.LongValue("CreateBackup.GmtCreate");
            createBackupResponse.GmtModified      = _ctx.LongValue("CreateBackup.GmtModified");
            createBackupResponse.ClusterBizId     = _ctx.StringValue("CreateBackup.ClusterBizId");
            createBackupResponse.HostName         = _ctx.StringValue("CreateBackup.HostName");
            createBackupResponse.EcmTaskId        = _ctx.LongValue("CreateBackup.EcmTaskId");

            return(createBackupResponse);
        }
        public static CreateBackupResponse Unmarshall(UnmarshallerContext context)
        {
            CreateBackupResponse createBackupResponse = new CreateBackupResponse();

            createBackupResponse.HttpResponse = context.HttpResponse;
            createBackupResponse.RequestId = context.StringValue("CreateBackup.RequestId");

            return createBackupResponse;
        }
        public static CreateBackupResponse Unmarshall(UnmarshallerContext context)
        {
            CreateBackupResponse createBackupResponse = new CreateBackupResponse();

            createBackupResponse.HttpResponse = context.HttpResponse;
            createBackupResponse.RequestId    = context.StringValue("CreateBackup.RequestId");

            return(createBackupResponse);
        }
Beispiel #4
0
        public static CreateBackupResponse Unmarshall(UnmarshallerContext _ctx)
        {
            CreateBackupResponse createBackupResponse = new CreateBackupResponse();

            createBackupResponse.HttpResponse = _ctx.HttpResponse;
            createBackupResponse.RequestId    = _ctx.StringValue("CreateBackup.RequestId");
            createBackupResponse.BackupJobId  = _ctx.StringValue("CreateBackup.BackupJobId");

            return(createBackupResponse);
        }
        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>  
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            CreateBackupResponse response = new CreateBackupResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;
            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("Backup", targetDepth))
                {
                    var unmarshaller = BackupUnmarshaller.Instance;
                    response.Backup = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return response;
        }