public static CreateBackupPlanResponse Unmarshall(UnmarshallerContext _ctx) { CreateBackupPlanResponse createBackupPlanResponse = new CreateBackupPlanResponse(); createBackupPlanResponse.HttpResponse = _ctx.HttpResponse; createBackupPlanResponse.RequestId = _ctx.StringValue("CreateBackupPlan.RequestId"); return(createBackupPlanResponse); }
public static CreateBackupPlanResponse Unmarshall(UnmarshallerContext _ctx) { CreateBackupPlanResponse createBackupPlanResponse = new CreateBackupPlanResponse(); createBackupPlanResponse.HttpResponse = _ctx.HttpResponse; createBackupPlanResponse.RequestId = _ctx.StringValue("CreateBackupPlan.RequestId"); createBackupPlanResponse.Id = _ctx.StringValue("CreateBackupPlan.Id"); createBackupPlanResponse.Name = _ctx.StringValue("CreateBackupPlan.Name"); createBackupPlanResponse.Description = _ctx.StringValue("CreateBackupPlan.Description"); createBackupPlanResponse.ClusterId = _ctx.StringValue("CreateBackupPlan.ClusterId"); createBackupPlanResponse.RootPath = _ctx.StringValue("CreateBackupPlan.RootPath"); return(createBackupPlanResponse); }
public static CreateBackupPlanResponse Unmarshall(UnmarshallerContext context) { CreateBackupPlanResponse createBackupPlanResponse = new CreateBackupPlanResponse(); createBackupPlanResponse.HttpResponse = context.HttpResponse; createBackupPlanResponse.Success = context.BooleanValue("CreateBackupPlan.Success"); createBackupPlanResponse.ErrCode = context.StringValue("CreateBackupPlan.ErrCode"); createBackupPlanResponse.ErrMessage = context.StringValue("CreateBackupPlan.ErrMessage"); createBackupPlanResponse.HttpStatusCode = context.IntegerValue("CreateBackupPlan.HttpStatusCode"); createBackupPlanResponse.RequestId = context.StringValue("CreateBackupPlan.RequestId"); createBackupPlanResponse.BackupPlanId = context.StringValue("CreateBackupPlan.BackupPlanId"); createBackupPlanResponse.OrderId = context.StringValue("CreateBackupPlan.OrderId"); return(createBackupPlanResponse); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateBackupPlanResponse response = new CreateBackupPlanResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AdvancedBackupSettings", targetDepth)) { var unmarshaller = new ListUnmarshaller <AdvancedBackupSetting, AdvancedBackupSettingUnmarshaller>(AdvancedBackupSettingUnmarshaller.Instance); response.AdvancedBackupSettings = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("BackupPlanArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.BackupPlanArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("BackupPlanId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.BackupPlanId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreationDate", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.CreationDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VersionId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.VersionId = unmarshaller.Unmarshall(context); continue; } } return(response); }